b8d8757f642c1b08af18a0de7c1bf4d0a2936147
[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.208.
4 #
5 # Report bugs to <enrico.scholz@informatik.tu-chemnitz.de>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='util-vserver'
425 PACKAGE_TARNAME='util-vserver'
426 PACKAGE_VERSION='0.30.208'
427 PACKAGE_STRING='util-vserver 0.30.208'
428 PACKAGE_BUGREPORT='enrico.scholz@informatik.tu-chemnitz.de'
429
430 ac_unique_file="src/capchroot.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os GPG_KEY CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S 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 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 kernelincludedir vserverdir CVS2CL_TAG CVS2CL HAVE_CVS2CL_TRUE HAVE_CVS2CL_FALSE RCS2LOG HAVE_RCS2LOG_TRUE HAVE_RCS2LOG_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.208 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.208:";;
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   --disable-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,v13,fscompat,net,ALL
1067                           (default: all except 'legacy')
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-kerneldir=DIR    assume kernelsources in DIR (default:
1080                           /lib/modules/<current>/build)
1081   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1082   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1083                           values are 'fast', 'traditional' and 'auto'
1084                           (default: auto)
1085
1086 Some influential environment variables:
1087   CXX         C++ compiler command
1088   CXXFLAGS    C++ compiler flags
1089   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1090               nonstandard directory <lib dir>
1091   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092               headers in a nonstandard directory <include dir>
1093   CC          C compiler command
1094   CFLAGS      C compiler flags
1095   DIET        The 'diet' wrapper (default: diet)
1096   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1097   CPP         C preprocessor
1098   CXXCPP      C++ preprocessor
1099   F77         Fortran 77 compiler command
1100   FFLAGS      Fortran 77 compiler flags
1101
1102 Use these variables to override the choices made by `configure' or to help
1103 it to find libraries and programs with nonstandard names/locations.
1104
1105 Report bugs to <enrico.scholz@informatik.tu-chemnitz.de>.
1106 _ACEOF
1107 fi
1108
1109 if test "$ac_init_help" = "recursive"; then
1110   # If there are subdirs, report their specific --help.
1111   ac_popdir=`pwd`
1112   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113     test -d $ac_dir || continue
1114     ac_builddir=.
1115
1116 if test "$ac_dir" != .; then
1117   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118   # A "../" for each directory in $ac_dir_suffix.
1119   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120 else
1121   ac_dir_suffix= ac_top_builddir=
1122 fi
1123
1124 case $srcdir in
1125   .)  # No --srcdir option.  We are building in place.
1126     ac_srcdir=.
1127     if test -z "$ac_top_builddir"; then
1128        ac_top_srcdir=.
1129     else
1130        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131     fi ;;
1132   [\\/]* | ?:[\\/]* )  # Absolute path.
1133     ac_srcdir=$srcdir$ac_dir_suffix;
1134     ac_top_srcdir=$srcdir ;;
1135   *) # Relative path.
1136     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138 esac
1139
1140 # Do not use `cd foo && pwd` to compute absolute paths, because
1141 # the directories may not exist.
1142 case `pwd` in
1143 .) ac_abs_builddir="$ac_dir";;
1144 *)
1145   case "$ac_dir" in
1146   .) ac_abs_builddir=`pwd`;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149   esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1153 *)
1154   case ${ac_top_builddir}. in
1155   .) ac_abs_top_builddir=$ac_abs_builddir;;
1156   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158   esac;;
1159 esac
1160 case $ac_abs_builddir in
1161 .) ac_abs_srcdir=$ac_srcdir;;
1162 *)
1163   case $ac_srcdir in
1164   .) ac_abs_srcdir=$ac_abs_builddir;;
1165   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167   esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1171 *)
1172   case $ac_top_srcdir in
1173   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176   esac;;
1177 esac
1178
1179     cd $ac_dir
1180     # Check for guested configure; otherwise get Cygnus style configure.
1181     if test -f $ac_srcdir/configure.gnu; then
1182       echo
1183       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1184     elif test -f $ac_srcdir/configure; then
1185       echo
1186       $SHELL $ac_srcdir/configure  --help=recursive
1187     elif test -f $ac_srcdir/configure.ac ||
1188            test -f $ac_srcdir/configure.in; then
1189       echo
1190       $ac_configure --help
1191     else
1192       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193     fi
1194     cd $ac_popdir
1195   done
1196 fi
1197
1198 test -n "$ac_init_help" && exit 0
1199 if $ac_init_version; then
1200   cat <<\_ACEOF
1201 util-vserver configure 0.30.208
1202 generated by GNU Autoconf 2.59
1203
1204 Copyright (C) 2003 Free Software Foundation, Inc.
1205 This configure script is free software; the Free Software Foundation
1206 gives unlimited permission to copy, distribute and modify it.
1207 _ACEOF
1208   exit 0
1209 fi
1210 exec 5>config.log
1211 cat >&5 <<_ACEOF
1212 This file contains any messages produced by compilers while
1213 running configure, to aid debugging if configure makes a mistake.
1214
1215 It was created by util-vserver $as_me 0.30.208, which was
1216 generated by GNU Autoconf 2.59.  Invocation command line was
1217
1218   $ $0 $@
1219
1220 _ACEOF
1221 {
1222 cat <<_ASUNAME
1223 ## --------- ##
1224 ## Platform. ##
1225 ## --------- ##
1226
1227 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1235
1236 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1237 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1238 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1240 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1241 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1242 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1243
1244 _ASUNAME
1245
1246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247 for as_dir in $PATH
1248 do
1249   IFS=$as_save_IFS
1250   test -z "$as_dir" && as_dir=.
1251   echo "PATH: $as_dir"
1252 done
1253
1254 } >&5
1255
1256 cat >&5 <<_ACEOF
1257
1258
1259 ## ----------- ##
1260 ## Core tests. ##
1261 ## ----------- ##
1262
1263 _ACEOF
1264
1265
1266 # Keep a trace of the command line.
1267 # Strip out --no-create and --no-recursion so they do not pile up.
1268 # Strip out --silent because we don't want to record it for future runs.
1269 # Also quote any args containing shell meta-characters.
1270 # Make two passes to allow for proper duplicate-argument suppression.
1271 ac_configure_args=
1272 ac_configure_args0=
1273 ac_configure_args1=
1274 ac_sep=
1275 ac_must_keep_next=false
1276 for ac_pass in 1 2
1277 do
1278   for ac_arg
1279   do
1280     case $ac_arg in
1281     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283     | -silent | --silent | --silen | --sile | --sil)
1284       continue ;;
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     esac
1288     case $ac_pass in
1289     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290     2)
1291       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292       if test $ac_must_keep_next = true; then
1293         ac_must_keep_next=false # Got value, back to normal.
1294       else
1295         case $ac_arg in
1296           *=* | --config-cache | -C | -disable-* | --disable-* \
1297           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299           | -with-* | --with-* | -without-* | --without-* | --x)
1300             case "$ac_configure_args0 " in
1301               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302             esac
1303             ;;
1304           -* ) ac_must_keep_next=true ;;
1305         esac
1306       fi
1307       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308       # Get rid of the leading space.
1309       ac_sep=" "
1310       ;;
1311     esac
1312   done
1313 done
1314 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317 # When interrupted or exit'd, cleanup temporary files, and complete
1318 # config.log.  We remove comments because anyway the quotes in there
1319 # would cause problems or look ugly.
1320 # WARNING: Be sure not to use single quotes in there, as some shells,
1321 # such as our DU 5.0 friend, will then `close' the trap.
1322 trap 'exit_status=$?
1323   # Save into config.log some information that might help in debugging.
1324   {
1325     echo
1326
1327     cat <<\_ASBOX
1328 ## ---------------- ##
1329 ## Cache variables. ##
1330 ## ---------------- ##
1331 _ASBOX
1332     echo
1333     # The following way of writing the cache mishandles newlines in values,
1334 {
1335   (set) 2>&1 |
1336     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337     *ac_space=\ *)
1338       sed -n \
1339         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1341       ;;
1342     *)
1343       sed -n \
1344         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1345       ;;
1346     esac;
1347 }
1348     echo
1349
1350     cat <<\_ASBOX
1351 ## ----------------- ##
1352 ## Output variables. ##
1353 ## ----------------- ##
1354 _ASBOX
1355     echo
1356     for ac_var in $ac_subst_vars
1357     do
1358       eval ac_val=$`echo $ac_var`
1359       echo "$ac_var='"'"'$ac_val'"'"'"
1360     done | sort
1361     echo
1362
1363     if test -n "$ac_subst_files"; then
1364       cat <<\_ASBOX
1365 ## ------------- ##
1366 ## Output files. ##
1367 ## ------------- ##
1368 _ASBOX
1369       echo
1370       for ac_var in $ac_subst_files
1371       do
1372         eval ac_val=$`echo $ac_var`
1373         echo "$ac_var='"'"'$ac_val'"'"'"
1374       done | sort
1375       echo
1376     fi
1377
1378     if test -s confdefs.h; then
1379       cat <<\_ASBOX
1380 ## ----------- ##
1381 ## confdefs.h. ##
1382 ## ----------- ##
1383 _ASBOX
1384       echo
1385       sed "/^$/d" confdefs.h | sort
1386       echo
1387     fi
1388     test "$ac_signal" != 0 &&
1389       echo "$as_me: caught signal $ac_signal"
1390     echo "$as_me: exit $exit_status"
1391   } >&5
1392   rm -f core *.core &&
1393   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394     exit $exit_status
1395      ' 0
1396 for ac_signal in 1 2 13 15; do
1397   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398 done
1399 ac_signal=0
1400
1401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1402 rm -rf conftest* confdefs.h
1403 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404 echo >confdefs.h
1405
1406 # Predefined preprocessor variables.
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_NAME "$PACKAGE_NAME"
1410 _ACEOF
1411
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415 _ACEOF
1416
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_STRING "$PACKAGE_STRING"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430 _ACEOF
1431
1432
1433 # Let the site file select an alternate cache file if it wants to.
1434 # Prefer explicitly selected file to automatically selected ones.
1435 if test -z "$CONFIG_SITE"; then
1436   if test "x$prefix" != xNONE; then
1437     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438   else
1439     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440   fi
1441 fi
1442 for ac_site_file in $CONFIG_SITE; do
1443   if test -r "$ac_site_file"; then
1444     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445 echo "$as_me: loading site script $ac_site_file" >&6;}
1446     sed 's/^/| /' "$ac_site_file" >&5
1447     . "$ac_site_file"
1448   fi
1449 done
1450
1451 if test -r "$cache_file"; then
1452   # Some versions of bash will fail to source /dev/null (special
1453   # files actually), so we avoid doing that.
1454   if test -f "$cache_file"; then
1455     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456 echo "$as_me: loading cache $cache_file" >&6;}
1457     case $cache_file in
1458       [\\/]* | ?:[\\/]* ) . $cache_file;;
1459       *)                      . ./$cache_file;;
1460     esac
1461   fi
1462 else
1463   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464 echo "$as_me: creating cache $cache_file" >&6;}
1465   >$cache_file
1466 fi
1467
1468 # Check that the precious variables saved in the cache have kept the same
1469 # value.
1470 ac_cache_corrupted=false
1471 for ac_var in `(set) 2>&1 |
1472                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1473   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474   eval ac_new_set=\$ac_env_${ac_var}_set
1475   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476   eval ac_new_val="\$ac_env_${ac_var}_value"
1477   case $ac_old_set,$ac_new_set in
1478     set,)
1479       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481       ac_cache_corrupted=: ;;
1482     ,set)
1483       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485       ac_cache_corrupted=: ;;
1486     ,);;
1487     *)
1488       if test "x$ac_old_val" != "x$ac_new_val"; then
1489         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1490 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1491         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1492 echo "$as_me:   former value:  $ac_old_val" >&2;}
1493         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1494 echo "$as_me:   current value: $ac_new_val" >&2;}
1495         ac_cache_corrupted=:
1496       fi;;
1497   esac
1498   # Pass precious variables to config.status.
1499   if test "$ac_new_set" = set; then
1500     case $ac_new_val in
1501     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503     *) ac_arg=$ac_var=$ac_new_val ;;
1504     esac
1505     case " $ac_configure_args " in
1506       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1507       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508     esac
1509   fi
1510 done
1511 if $ac_cache_corrupted; then
1512   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516    { (exit 1); exit 1; }; }
1517 fi
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552           ac_config_headers="$ac_config_headers config.h"
1553
1554
1555 am__api_version="1.9"
1556 ac_aux_dir=
1557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Find a good install program.  We prefer a C program (faster),
1582 # so one script is as good as another.  But avoid the broken or
1583 # incompatible versions:
1584 # SysV /etc/install, /usr/sbin/install
1585 # SunOS /usr/etc/install
1586 # IRIX /sbin/install
1587 # AIX /bin/install
1588 # AmigaOS /C/install, which installs bootblocks on floppy discs
1589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1592 # OS/2's system install, which has a completely different semantic
1593 # ./install, which can be erroneously created by make from ./install.sh.
1594 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1595 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1596 if test -z "$INSTALL"; then
1597 if test "${ac_cv_path_install+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603   IFS=$as_save_IFS
1604   test -z "$as_dir" && as_dir=.
1605   # Account for people who put trailing slashes in PATH elements.
1606 case $as_dir/ in
1607   ./ | .// | /cC/* | \
1608   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1609   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1610   /usr/ucb/* ) ;;
1611   *)
1612     # OSF1 and SCO ODT 3.0 have their own names for install.
1613     # Don't use installbsd from OSF since it installs stuff as root
1614     # by default.
1615     for ac_prog in ginstall scoinst install; do
1616       for ac_exec_ext in '' $ac_executable_extensions; do
1617         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1618           if test $ac_prog = install &&
1619             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1620             # AIX install.  It has an incompatible calling convention.
1621             :
1622           elif test $ac_prog = install &&
1623             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1624             # program-specific install script used by HP pwplus--don't use.
1625             :
1626           else
1627             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1628             break 3
1629           fi
1630         fi
1631       done
1632     done
1633     ;;
1634 esac
1635 done
1636
1637
1638 fi
1639   if test "${ac_cv_path_install+set}" = set; then
1640     INSTALL=$ac_cv_path_install
1641   else
1642     # As a last resort, use the slow shell script.  We don't cache a
1643     # path for INSTALL within a source directory, because that will
1644     # break other packages using the cache if that directory is
1645     # removed, or if the path is relative.
1646     INSTALL=$ac_install_sh
1647   fi
1648 fi
1649 echo "$as_me:$LINENO: result: $INSTALL" >&5
1650 echo "${ECHO_T}$INSTALL" >&6
1651
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1655
1656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1657
1658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1659
1660 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1661 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1662 # Just in case
1663 sleep 1
1664 echo timestamp > conftest.file
1665 # Do `set' in a subshell so we don't clobber the current shell's
1666 # arguments.  Must try -L first in case configure is actually a
1667 # symlink; some systems play weird games with the mod time of symlinks
1668 # (eg FreeBSD returns the mod time of the symlink's containing
1669 # directory).
1670 if (
1671    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1672    if test "$*" = "X"; then
1673       # -L didn't work.
1674       set X `ls -t $srcdir/configure conftest.file`
1675    fi
1676    rm -f conftest.file
1677    if test "$*" != "X $srcdir/configure conftest.file" \
1678       && test "$*" != "X conftest.file $srcdir/configure"; then
1679
1680       # If neither matched, then we have a broken ls.  This can happen
1681       # if, for instance, CONFIG_SHELL is bash and it inherits a
1682       # broken ls alias from the environment.  This has actually
1683       # happened.  Such a system could not be considered "sane".
1684       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1685 alias in your environment" >&5
1686 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1687 alias in your environment" >&2;}
1688    { (exit 1); exit 1; }; }
1689    fi
1690
1691    test "$2" = conftest.file
1692    )
1693 then
1694    # Ok.
1695    :
1696 else
1697    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1698 Check your system clock" >&5
1699 echo "$as_me: error: newly created file is older than distributed files!
1700 Check your system clock" >&2;}
1701    { (exit 1); exit 1; }; }
1702 fi
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705 test "$program_prefix" != NONE &&
1706   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1707 # Use a double $ so make ignores it.
1708 test "$program_suffix" != NONE &&
1709   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1710 # Double any \ or $.  echo might interpret backslashes.
1711 # By default was `s,x,x', remove it if useless.
1712 cat <<\_ACEOF >conftest.sed
1713 s/[\\$]/&&/g;s/;s,x,x,$//
1714 _ACEOF
1715 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1716 rm conftest.sed
1717
1718 # expand $ac_aux_dir to an absolute path
1719 am_aux_dir=`cd $ac_aux_dir && pwd`
1720
1721 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1722 # Use eval to expand $SHELL
1723 if eval "$MISSING --run true"; then
1724   am_missing_run="$MISSING --run "
1725 else
1726   am_missing_run=
1727   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1728 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1729 fi
1730
1731 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1732   # We used to keeping the `.' as first argument, in order to
1733   # allow $(mkdir_p) to be used without argument.  As in
1734   #   $(mkdir_p) $(somedir)
1735   # where $(somedir) is conditionally defined.  However this is wrong
1736   # for two reasons:
1737   #  1. if the package is installed by a user who cannot write `.'
1738   #     make install will fail,
1739   #  2. the above comment should most certainly read
1740   #     $(mkdir_p) $(DESTDIR)$(somedir)
1741   #     so it does not work when $(somedir) is undefined and
1742   #     $(DESTDIR) is not.
1743   #  To support the latter case, we have to write
1744   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1745   #  so the `.' trick is pointless.
1746   mkdir_p='mkdir -p --'
1747 else
1748   # On NextStep and OpenStep, the `mkdir' command does not
1749   # recognize any option.  It will interpret all options as
1750   # directories to create, and then abort because `.' already
1751   # exists.
1752   for d in ./-p ./--version;
1753   do
1754     test -d $d && rmdir $d
1755   done
1756   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1757   if test -f "$ac_aux_dir/mkinstalldirs"; then
1758     mkdir_p='$(mkinstalldirs)'
1759   else
1760     mkdir_p='$(install_sh) -d'
1761   fi
1762 fi
1763
1764 for ac_prog in gawk mawk nawk awk
1765 do
1766   # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy $ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_AWK+set}" = set; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   if test -n "$AWK"; then
1774   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779   IFS=$as_save_IFS
1780   test -z "$as_dir" && as_dir=.
1781   for ac_exec_ext in '' $ac_executable_extensions; do
1782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783     ac_cv_prog_AWK="$ac_prog"
1784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785     break 2
1786   fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 AWK=$ac_cv_prog_AWK
1793 if test -n "$AWK"; then
1794   echo "$as_me:$LINENO: result: $AWK" >&5
1795 echo "${ECHO_T}$AWK" >&6
1796 else
1797   echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801   test -n "$AWK" && break
1802 done
1803
1804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   cat >conftest.make <<\_ACEOF
1811 all:
1812         @echo 'ac_maketemp="$(MAKE)"'
1813 _ACEOF
1814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1816 if test -n "$ac_maketemp"; then
1817   eval ac_cv_prog_make_${ac_make}_set=yes
1818 else
1819   eval ac_cv_prog_make_${ac_make}_set=no
1820 fi
1821 rm -f conftest.make
1822 fi
1823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1824   echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1826   SET_MAKE=
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830   SET_MAKE="MAKE=${MAKE-make}"
1831 fi
1832
1833 rm -rf .tst 2>/dev/null
1834 mkdir .tst 2>/dev/null
1835 if test -d .tst; then
1836   am__leading_dot=.
1837 else
1838   am__leading_dot=_
1839 fi
1840 rmdir .tst 2>/dev/null
1841
1842 # test to see if srcdir already configured
1843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1844    test -f $srcdir/config.status; then
1845   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 # test whether we have cygpath
1851 if test -z "$CYGPATH_W"; then
1852   if (cygpath --version) >/dev/null 2>/dev/null; then
1853     CYGPATH_W='cygpath -w'
1854   else
1855     CYGPATH_W=echo
1856   fi
1857 fi
1858
1859
1860 # Define the identity of the package.
1861  PACKAGE='util-vserver'
1862  VERSION='0.30.208'
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE "$PACKAGE"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define VERSION "$VERSION"
1872 _ACEOF
1873
1874 # Some tools Automake needs.
1875
1876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1877
1878
1879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1880
1881
1882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1883
1884
1885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1886
1887
1888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1889
1890 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1891
1892 # Installed binaries are usually stripped using `strip' when the user
1893 # run `make install-strip'.  However `strip' might not be the right
1894 # tool to use in cross-compilation environments, therefore Automake
1895 # will honor the `STRIP' environment variable to overrule this program.
1896 if test "$cross_compiling" != no; then
1897   if test -n "$ac_tool_prefix"; then
1898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}strip; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_STRIP+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   if test -n "$STRIP"; then
1906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921
1922 fi
1923 fi
1924 STRIP=$ac_cv_prog_STRIP
1925 if test -n "$STRIP"; then
1926   echo "$as_me:$LINENO: result: $STRIP" >&5
1927 echo "${ECHO_T}$STRIP" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933 fi
1934 if test -z "$ac_cv_prog_STRIP"; then
1935   ac_ct_STRIP=$STRIP
1936   # Extract the first word of "strip", so it can be a program name with args.
1937 set dummy strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$ac_ct_STRIP"; then
1944   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_ac_ct_STRIP="strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1961 fi
1962 fi
1963 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1964 if test -n "$ac_ct_STRIP"; then
1965   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1966 echo "${ECHO_T}$ac_ct_STRIP" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972   STRIP=$ac_ct_STRIP
1973 else
1974   STRIP="$ac_cv_prog_STRIP"
1975 fi
1976
1977 fi
1978 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1979
1980 # We need awk for the "check" target.  The system "awk" is bad on
1981 # some platforms.
1982 # Always define AMTAR for backward compatibility.
1983
1984 AMTAR=${AMTAR-"${am_missing_run}tar"}
1985
1986 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1987
1988
1989
1990
1991
1992 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1993 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1994     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996   enableval="$enable_maintainer_mode"
1997   USE_MAINTAINER_MODE=$enableval
1998 else
1999   USE_MAINTAINER_MODE=no
2000 fi;
2001   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2002 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2003
2004
2005 if test $USE_MAINTAINER_MODE = yes; then
2006   MAINTAINER_MODE_TRUE=
2007   MAINTAINER_MODE_FALSE='#'
2008 else
2009   MAINTAINER_MODE_TRUE='#'
2010   MAINTAINER_MODE_FALSE=
2011 fi
2012
2013   MAINT=$MAINTAINER_MODE_TRUE
2014
2015
2016
2017 # Make sure we can run config.sub.
2018 $ac_config_sub sun4 >/dev/null 2>&1 ||
2019   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2021    { (exit 1); exit 1; }; }
2022
2023 echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2025 if test "${ac_cv_build+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   ac_cv_build_alias=$build_alias
2029 test -z "$ac_cv_build_alias" &&
2030   ac_cv_build_alias=`$ac_config_guess`
2031 test -z "$ac_cv_build_alias" &&
2032   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034    { (exit 1); exit 1; }; }
2035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2036   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 fi
2041 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6
2043 build=$ac_cv_build
2044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2047
2048
2049 echo "$as_me:$LINENO: checking host system type" >&5
2050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2051 if test "${ac_cv_host+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   ac_cv_host_alias=$host_alias
2055 test -z "$ac_cv_host_alias" &&
2056   ac_cv_host_alias=$ac_cv_build_alias
2057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2058   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2060    { (exit 1); exit 1; }; }
2061
2062 fi
2063 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064 echo "${ECHO_T}$ac_cv_host" >&6
2065 host=$ac_cv_host
2066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2069
2070
2071
2072 GPG_KEY="0xFFD316AC53ACA43A!"
2073
2074
2075 # Checks for programs.
2076 ac_ext=cc
2077 ac_cpp='$CXXCPP $CPPFLAGS'
2078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2083   do
2084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CXX+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$CXX"; then
2092   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 CXX=$ac_cv_prog_CXX
2111 if test -n "$CXX"; then
2112   echo "$as_me:$LINENO: result: $CXX" >&5
2113 echo "${ECHO_T}$CXX" >&6
2114 else
2115   echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119     test -n "$CXX" && break
2120   done
2121 fi
2122 if test -z "$CXX"; then
2123   ac_ct_CXX=$CXX
2124   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2125 do
2126   # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$ac_ct_CXX"; then
2134   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_prog_ac_ct_CXX="$ac_prog"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2153 if test -n "$ac_ct_CXX"; then
2154   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2155 echo "${ECHO_T}$ac_ct_CXX" >&6
2156 else
2157   echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161   test -n "$ac_ct_CXX" && break
2162 done
2163 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2164
2165   CXX=$ac_ct_CXX
2166 fi
2167
2168
2169 # Provide some information about the compiler.
2170 echo "$as_me:$LINENO:" \
2171      "checking for C++ compiler version" >&5
2172 ac_compiler=`set X $ac_compile; echo $2`
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174   (eval $ac_compiler --version </dev/null >&5) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179   (eval $ac_compiler -v </dev/null >&5) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184   (eval $ac_compiler -V </dev/null >&5) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 ac_clean_files_save=$ac_clean_files
2205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206 # Try to create an executable without -o first, disregard a.out.
2207 # It will help us diagnose broken compilers, and finding out an intuition
2208 # of exeext.
2209 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2210 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213   (eval $ac_link_default) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # Find the output, starting from the most likely.  This scheme is
2218 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2219 # resort.
2220
2221 # Be careful to initialize this variable, since it used to be cached.
2222 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2223 ac_cv_exeext=
2224 # b.out is created by i960 compilers.
2225 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2226 do
2227   test -f "$ac_file" || continue
2228   case $ac_file in
2229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2230         ;;
2231     conftest.$ac_ext )
2232         # This is the source file.
2233         ;;
2234     [ab].out )
2235         # We found the default executable, but exeext='' is most
2236         # certainly right.
2237         break;;
2238     *.* )
2239         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240         # FIXME: I believe we export ac_cv_exeext for Libtool,
2241         # but it would be cool to find out if it's true.  Does anybody
2242         # maintain Libtool? --akim.
2243         export ac_cv_exeext
2244         break;;
2245     * )
2246         break;;
2247   esac
2248 done
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C++ compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257    { (exit 77); exit 77; }; }
2258 fi
2259
2260 ac_exeext=$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6
2263
2264 # Check the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2267 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271   if { ac_try='./$ac_file'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277     cross_compiling=no
2278   else
2279     if test "$cross_compiling" = maybe; then
2280         cross_compiling=yes
2281     else
2282         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C++ compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289     fi
2290   fi
2291 fi
2292 echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6
2294
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check the compiler produces executables we can run.  If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6
2303
2304 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307   (eval $ac_link) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2313 # work properly (i.e., refer to `conftest.exe'), while it won't with
2314 # `rm'.
2315 for ac_file in conftest.exe conftest conftest.*; do
2316   test -f "$ac_file" || continue
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320           export ac_cv_exeext
2321           break;;
2322     * ) break;;
2323   esac
2324 done
2325 else
2326   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335 echo "${ECHO_T}$ac_cv_exeext" >&6
2336
2337 rm -f conftest.$ac_ext
2338 EXEEXT=$ac_cv_exeext
2339 ac_exeext=$EXEEXT
2340 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342 if test "${ac_cv_objext+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.o conftest.obj
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2367   case $ac_file in
2368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2370        break;;
2371   esac
2372 done
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&2;}
2381    { (exit 1); exit 1; }; }
2382 fi
2383
2384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385 fi
2386 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387 echo "${ECHO_T}$ac_cv_objext" >&6
2388 OBJEXT=$ac_cv_objext
2389 ac_objext=$OBJEXT
2390 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405 #ifndef __GNUC__
2406        choke me
2407 #endif
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_cxx_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   ac_compiler_gnu=yes
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 ac_compiler_gnu=no
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2444
2445 fi
2446 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2447 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2448 GXX=`test $ac_compiler_gnu = yes && echo yes`
2449 ac_test_CXXFLAGS=${CXXFLAGS+set}
2450 ac_save_CXXFLAGS=$CXXFLAGS
2451 CXXFLAGS="-g"
2452 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2453 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cxx_g+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>conftest.er1
2475   ac_status=$?
2476   grep -v '^ *+' conftest.er1 >conftest.err
2477   rm -f conftest.er1
2478   cat conftest.err >&5
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); } &&
2481          { ac_try='test -z "$ac_cxx_werror_flag"
2482                          || test ! -s conftest.err'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; } &&
2488          { ac_try='test -s conftest.$ac_objext'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   ac_cv_prog_cxx_g=yes
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_cv_prog_cxx_g=no
2500 fi
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502 fi
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2505 if test "$ac_test_CXXFLAGS" = set; then
2506   CXXFLAGS=$ac_save_CXXFLAGS
2507 elif test $ac_cv_prog_cxx_g = yes; then
2508   if test "$GXX" = yes; then
2509     CXXFLAGS="-g -O2"
2510   else
2511     CXXFLAGS="-g"
2512   fi
2513 else
2514   if test "$GXX" = yes; then
2515     CXXFLAGS="-O2"
2516   else
2517     CXXFLAGS=
2518   fi
2519 fi
2520 for ac_declaration in \
2521    '' \
2522    'extern "C" void std::exit (int) throw (); using std::exit;' \
2523    'extern "C" void std::exit (int); using std::exit;' \
2524    'extern "C" void exit (int) throw ();' \
2525    'extern "C" void exit (int);' \
2526    'void exit (int);'
2527 do
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534 $ac_declaration
2535 #include <stdlib.h>
2536 int
2537 main ()
2538 {
2539 exit (42);
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_cxx_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   :
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 continue
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574   cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 $ac_declaration
2581 int
2582 main ()
2583 {
2584 exit (42);
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_cxx_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   break
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 fi
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 rm -f conftest*
2620 if test -n "$ac_declaration"; then
2621   echo '#ifdef __cplusplus' >>confdefs.h
2622   echo $ac_declaration      >>confdefs.h
2623   echo '#endif'             >>confdefs.h
2624 fi
2625
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 DEPDIR="${am__leading_dot}deps"
2632
2633           ac_config_commands="$ac_config_commands depfiles"
2634
2635
2636 am_make=${MAKE-make}
2637 cat > confinc << 'END'
2638 am__doit:
2639         @echo done
2640 .PHONY: am__doit
2641 END
2642 # If we don't find an include directive, just comment out the code.
2643 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2644 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2645 am__include="#"
2646 am__quote=
2647 _am_result=none
2648 # First try GNU make style include.
2649 echo "include confinc" > confmf
2650 # We grep out `Entering directory' and `Leaving directory'
2651 # messages which can occur if `w' ends up in MAKEFLAGS.
2652 # In particular we don't look at `^make:' because GNU make might
2653 # be invoked under some other name (usually "gmake"), in which
2654 # case it prints its new name instead of `make'.
2655 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2656    am__include=include
2657    am__quote=
2658    _am_result=GNU
2659 fi
2660 # Now try BSD make style include.
2661 if test "$am__include" = "#"; then
2662    echo '.include "confinc"' > confmf
2663    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2664       am__include=.include
2665       am__quote="\""
2666       _am_result=BSD
2667    fi
2668 fi
2669
2670
2671 echo "$as_me:$LINENO: result: $_am_result" >&5
2672 echo "${ECHO_T}$_am_result" >&6
2673 rm -f confinc confmf
2674
2675 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2676 if test "${enable_dependency_tracking+set}" = set; then
2677   enableval="$enable_dependency_tracking"
2678
2679 fi;
2680 if test "x$enable_dependency_tracking" != xno; then
2681   am_depcomp="$ac_aux_dir/depcomp"
2682   AMDEPBACKSLASH='\'
2683 fi
2684
2685
2686 if test "x$enable_dependency_tracking" != xno; then
2687   AMDEP_TRUE=
2688   AMDEP_FALSE='#'
2689 else
2690   AMDEP_TRUE='#'
2691   AMDEP_FALSE=
2692 fi
2693
2694
2695
2696
2697 depcc="$CXX"  am_compiler_list=
2698
2699 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2700 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2701 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2705   # We make a subdir and do the tests there.  Otherwise we can end up
2706   # making bogus files that we don't know about and never remove.  For
2707   # instance it was reported that on HP-UX the gcc test will end up
2708   # making a dummy file named `D' -- because `-MD' means `put the output
2709   # in D'.
2710   mkdir conftest.dir
2711   # Copy depcomp to subdir because otherwise we won't find it if we're
2712   # using a relative directory.
2713   cp "$am_depcomp" conftest.dir
2714   cd conftest.dir
2715   # We will build objects and dependencies in a subdirectory because
2716   # it helps to detect inapplicable dependency modes.  For instance
2717   # both Tru64's cc and ICC support -MD to output dependencies as a
2718   # side effect of compilation, but ICC will put the dependencies in
2719   # the current directory while Tru64 will put them in the object
2720   # directory.
2721   mkdir sub
2722
2723   am_cv_CXX_dependencies_compiler_type=none
2724   if test "$am_compiler_list" = ""; then
2725      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2726   fi
2727   for depmode in $am_compiler_list; do
2728     # Setup a source with many dependencies, because some compilers
2729     # like to wrap large dependency lists on column 80 (with \), and
2730     # we should not choose a depcomp mode which is confused by this.
2731     #
2732     # We need to recreate these files for each test, as the compiler may
2733     # overwrite some of them when testing with obscure command lines.
2734     # This happens at least with the AIX C compiler.
2735     : > sub/conftest.c
2736     for i in 1 2 3 4 5 6; do
2737       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2738       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2739       # Solaris 8's {/usr,}/bin/sh.
2740       touch sub/conftst$i.h
2741     done
2742     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2743
2744     case $depmode in
2745     nosideeffect)
2746       # after this tag, mechanisms are not by side-effect, so they'll
2747       # only be used when explicitly requested
2748       if test "x$enable_dependency_tracking" = xyes; then
2749         continue
2750       else
2751         break
2752       fi
2753       ;;
2754     none) break ;;
2755     esac
2756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2757     # mode.  It turns out that the SunPro C++ compiler does not properly
2758     # handle `-M -o', and we need to detect this.
2759     if depmode=$depmode \
2760        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2761        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2762        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2763          >/dev/null 2>conftest.err &&
2764        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2765        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2766        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2767       # icc doesn't choke on unknown options, it will just issue warnings
2768       # or remarks (even with -Werror).  So we grep stderr for any message
2769       # that says an option was ignored or not supported.
2770       # When given -MP, icc 7.0 and 7.1 complain thusly:
2771       #   icc: Command line warning: ignoring option '-M'; no argument required
2772       # The diagnosis changed in icc 8.0:
2773       #   icc: Command line remark: option '-MP' not supported
2774       if (grep 'ignoring option' conftest.err ||
2775           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2776         am_cv_CXX_dependencies_compiler_type=$depmode
2777         break
2778       fi
2779     fi
2780   done
2781
2782   cd ..
2783   rm -rf conftest.dir
2784 else
2785   am_cv_CXX_dependencies_compiler_type=none
2786 fi
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2790 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2792
2793
2794
2795 if
2796   test "x$enable_dependency_tracking" != xno \
2797   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2798   am__fastdepCXX_TRUE=
2799   am__fastdepCXX_FALSE='#'
2800 else
2801   am__fastdepCXX_TRUE='#'
2802   am__fastdepCXX_FALSE=
2803 fi
2804
2805
2806 ac_ext=c
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 if test -n "$ac_tool_prefix"; then
2812   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$CC"; then
2820   ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_exec_ext in '' $ac_executable_extensions; do
2828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   echo "$as_me:$LINENO: result: $CC" >&5
2841 echo "${ECHO_T}$CC" >&6
2842 else
2843   echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847 fi
2848 if test -z "$ac_cv_prog_CC"; then
2849   ac_ct_CC=$CC
2850   # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$ac_ct_CC"; then
2858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     ac_cv_prog_ac_ct_CC="gcc"
2868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6
2880 else
2881   echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 fi
2884
2885   CC=$ac_ct_CC
2886 else
2887   CC="$ac_cv_prog_CC"
2888 fi
2889
2890 if test -z "$CC"; then
2891   if test -n "$ac_tool_prefix"; then
2892   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909     ac_cv_prog_CC="${ac_tool_prefix}cc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920   echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6
2922 else
2923   echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2925 fi
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929   ac_ct_CC=$CC
2930   # Extract the first word of "cc", so it can be a program name with args.
2931 set dummy cc; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   if test -n "$ac_ct_CC"; then
2938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945   for ac_exec_ext in '' $ac_executable_extensions; do
2946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_ac_ct_CC="cc"
2948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952 done
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959 echo "${ECHO_T}$ac_ct_CC" >&6
2960 else
2961   echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 fi
2964
2965   CC=$ac_ct_CC
2966 else
2967   CC="$ac_cv_prog_CC"
2968 fi
2969
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000
3001 if test $ac_prog_rejected = yes; then
3002   # We found a bogon in the path, so make sure we never use it.
3003   set dummy $ac_cv_prog_CC
3004   shift
3005   if test $# != 0; then
3006     # We chose a different compiler from the bogus one.
3007     # However, it has the same basename, so the bogon will be chosen
3008     # first if we set CC to just the basename; use the full file name.
3009     shift
3010     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011   fi
3012 fi
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017   echo "$as_me:$LINENO: result: $CC" >&5
3018 echo "${ECHO_T}$CC" >&6
3019 else
3020   echo "$as_me:$LINENO: result: no" >&5
3021 echo "${ECHO_T}no" >&6
3022 fi
3023
3024 fi
3025 if test -z "$CC"; then
3026   if test -n "$ac_tool_prefix"; then
3027   for ac_prog in cl
3028   do
3029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044   for ac_exec_ext in '' $ac_executable_extensions; do
3045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051 done
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6
3059 else
3060   echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3062 fi
3063
3064     test -n "$CC" && break
3065   done
3066 fi
3067 if test -z "$CC"; then
3068   ac_ct_CC=$CC
3069   for ac_prog in cl
3070 do
3071   # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   if test -n "$ac_ct_CC"; then
3079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086   for ac_exec_ext in '' $ac_executable_extensions; do
3087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     ac_cv_prog_ac_ct_CC="$ac_prog"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094
3095 fi
3096 fi
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 echo "${ECHO_T}$ac_ct_CC" >&6
3101 else
3102   echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104 fi
3105
3106   test -n "$ac_ct_CC" && break
3107 done
3108
3109   CC=$ac_ct_CC
3110 fi
3111
3112 fi
3113
3114
3115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: no acceptable C compiler found in \$PATH
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120
3121 # Provide some information about the compiler.
3122 echo "$as_me:$LINENO:" \
3123      "checking for C compiler version" >&5
3124 ac_compiler=`set X $ac_compile; echo $2`
3125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126   (eval $ac_compiler --version </dev/null >&5) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }
3130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131   (eval $ac_compiler -v </dev/null >&5) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }
3135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136   (eval $ac_compiler -V </dev/null >&5) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }
3140
3141 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156 #ifndef __GNUC__
3157        choke me
3158 #endif
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166   (eval $ac_compile) 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_c_werror_flag"
3174                          || test ! -s conftest.err'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; } &&
3180          { ac_try='test -s conftest.$ac_objext'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_compiler_gnu=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ac_compiler_gnu=no
3192 fi
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3199 GCC=`test $ac_compiler_gnu = yes && echo yes`
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3202 CFLAGS="-g"
3203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3205 if test "${ac_cv_prog_cc_g+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -z "$ac_c_werror_flag"
3233                          || test ! -s conftest.err'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; } &&
3239          { ac_try='test -s conftest.$ac_objext'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; }; then
3245   ac_cv_prog_cc_g=yes
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 ac_cv_prog_cc_g=no
3251 fi
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3256 if test "$ac_test_CFLAGS" = set; then
3257   CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259   if test "$GCC" = yes; then
3260     CFLAGS="-g -O2"
3261   else
3262     CFLAGS="-g"
3263   fi
3264 else
3265   if test "$GCC" = yes; then
3266     CFLAGS="-O2"
3267   else
3268     CFLAGS=
3269   fi
3270 fi
3271 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3272 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3273 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_cv_prog_cc_stdc=no
3277 ac_save_CC=$CC
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <stdarg.h>
3285 #include <stdio.h>
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3292      char **p;
3293      int i;
3294 {
3295   return p[i];
3296 }
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3298 {
3299   char *s;
3300   va_list v;
3301   va_start (v,p);
3302   s = g (p, va_arg (v,int));
3303   va_end (v);
3304   return s;
3305 }
3306
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3308    function prototypes and stuff, but not '\xHH' hex character constants.
3309    These don't provoke an error unfortunately, instead are silently treated
3310    as 'x'.  The following induces an error, until -std1 is added to get
3311    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3312    array size at least.  It's necessary to write '\x00'==0 to get something
3313    that's true only with -std1.  */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320 int argc;
3321 char **argv;
3322 int
3323 main ()
3324 {
3325 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 # Don't try gcc -ansi; that turns off useful extensions and
3331 # breaks some systems' header files.
3332 # AIX                   -qlanglvl=ansi
3333 # Ultrix and OSF/1      -std1
3334 # HP-UX 10.20 and later -Ae
3335 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3336 # SVR4                  -Xc -D__EXTENSIONS__
3337 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338 do
3339   CC="$ac_save_CC $ac_arg"
3340   rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342   (eval $ac_compile) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -z "$ac_c_werror_flag"
3350                          || test ! -s conftest.err'
3351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352   (eval $ac_try) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; } &&
3356          { ac_try='test -s conftest.$ac_objext'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_prog_cc_stdc=$ac_arg
3363 break
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 fi
3369 rm -f conftest.err conftest.$ac_objext
3370 done
3371 rm -f conftest.$ac_ext conftest.$ac_objext
3372 CC=$ac_save_CC
3373
3374 fi
3375
3376 case "x$ac_cv_prog_cc_stdc" in
3377   x|xno)
3378     echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6 ;;
3380   *)
3381     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3383     CC="$CC $ac_cv_prog_cc_stdc" ;;
3384 esac
3385
3386 # Some people use a C++ compiler to compile C.  Since we use `exit',
3387 # in C++ we need to declare it.  In case someone uses the same compiler
3388 # for both compiling C and C++ we need to have the C++ compiler decide
3389 # the declaration of exit, since it's the most demanding environment.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #ifndef __cplusplus
3392   choke me
3393 #endif
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397   (eval $ac_compile) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"
3405                          || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest.$ac_objext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   for ac_declaration in \
3418    '' \
3419    'extern "C" void std::exit (int) throw (); using std::exit;' \
3420    'extern "C" void std::exit (int); using std::exit;' \
3421    'extern "C" void exit (int) throw ();' \
3422    'extern "C" void exit (int);' \
3423    'void exit (int);'
3424 do
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 $ac_declaration
3432 #include <stdlib.h>
3433 int
3434 main ()
3435 {
3436 exit (42);
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   :
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 continue
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 $ac_declaration
3478 int
3479 main ()
3480 {
3481 exit (42);
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488   (eval $ac_compile) 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } &&
3495          { ac_try='test -z "$ac_c_werror_flag"
3496                          || test ! -s conftest.err'
3497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; } &&
3502          { ac_try='test -s conftest.$ac_objext'
3503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504   (eval $ac_try) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }; }; then
3508   break
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 fi
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515 done
3516 rm -f conftest*
3517 if test -n "$ac_declaration"; then
3518   echo '#ifdef __cplusplus' >>confdefs.h
3519   echo $ac_declaration      >>confdefs.h
3520   echo '#endif'             >>confdefs.h
3521 fi
3522
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 fi
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535 depcc="$CC"   am_compiler_list=
3536
3537 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3538 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3539 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3543   # We make a subdir and do the tests there.  Otherwise we can end up
3544   # making bogus files that we don't know about and never remove.  For
3545   # instance it was reported that on HP-UX the gcc test will end up
3546   # making a dummy file named `D' -- because `-MD' means `put the output
3547   # in D'.
3548   mkdir conftest.dir
3549   # Copy depcomp to subdir because otherwise we won't find it if we're
3550   # using a relative directory.
3551   cp "$am_depcomp" conftest.dir
3552   cd conftest.dir
3553   # We will build objects and dependencies in a subdirectory because
3554   # it helps to detect inapplicable dependency modes.  For instance
3555   # both Tru64's cc and ICC support -MD to output dependencies as a
3556   # side effect of compilation, but ICC will put the dependencies in
3557   # the current directory while Tru64 will put them in the object
3558   # directory.
3559   mkdir sub
3560
3561   am_cv_CC_dependencies_compiler_type=none
3562   if test "$am_compiler_list" = ""; then
3563      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3564   fi
3565   for depmode in $am_compiler_list; do
3566     # Setup a source with many dependencies, because some compilers
3567     # like to wrap large dependency lists on column 80 (with \), and
3568     # we should not choose a depcomp mode which is confused by this.
3569     #
3570     # We need to recreate these files for each test, as the compiler may
3571     # overwrite some of them when testing with obscure command lines.
3572     # This happens at least with the AIX C compiler.
3573     : > sub/conftest.c
3574     for i in 1 2 3 4 5 6; do
3575       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3577       # Solaris 8's {/usr,}/bin/sh.
3578       touch sub/conftst$i.h
3579     done
3580     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3581
3582     case $depmode in
3583     nosideeffect)
3584       # after this tag, mechanisms are not by side-effect, so they'll
3585       # only be used when explicitly requested
3586       if test "x$enable_dependency_tracking" = xyes; then
3587         continue
3588       else
3589         break
3590       fi
3591       ;;
3592     none) break ;;
3593     esac
3594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3595     # mode.  It turns out that the SunPro C++ compiler does not properly
3596     # handle `-M -o', and we need to detect this.
3597     if depmode=$depmode \
3598        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3599        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3600        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3601          >/dev/null 2>conftest.err &&
3602        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3603        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3604        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3605       # icc doesn't choke on unknown options, it will just issue warnings
3606       # or remarks (even with -Werror).  So we grep stderr for any message
3607       # that says an option was ignored or not supported.
3608       # When given -MP, icc 7.0 and 7.1 complain thusly:
3609       #   icc: Command line warning: ignoring option '-M'; no argument required
3610       # The diagnosis changed in icc 8.0:
3611       #   icc: Command line remark: option '-MP' not supported
3612       if (grep 'ignoring option' conftest.err ||
3613           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3614         am_cv_CC_dependencies_compiler_type=$depmode
3615         break
3616       fi
3617     fi
3618   done
3619
3620   cd ..
3621   rm -rf conftest.dir
3622 else
3623   am_cv_CC_dependencies_compiler_type=none
3624 fi
3625
3626 fi
3627 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3628 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3629 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3630
3631
3632
3633 if
3634   test "x$enable_dependency_tracking" != xno \
3635   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636   am__fastdepCC_TRUE=
3637   am__fastdepCC_FALSE='#'
3638 else
3639   am__fastdepCC_TRUE='#'
3640   am__fastdepCC_FALSE=
3641 fi
3642
3643
3644 # Find a good install program.  We prefer a C program (faster),
3645 # so one script is as good as another.  But avoid the broken or
3646 # incompatible versions:
3647 # SysV /etc/install, /usr/sbin/install
3648 # SunOS /usr/etc/install
3649 # IRIX /sbin/install
3650 # AIX /bin/install
3651 # AmigaOS /C/install, which installs bootblocks on floppy discs
3652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655 # OS/2's system install, which has a completely different semantic
3656 # ./install, which can be erroneously created by make from ./install.sh.
3657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3659 if test -z "$INSTALL"; then
3660 if test "${ac_cv_path_install+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   # Account for people who put trailing slashes in PATH elements.
3669 case $as_dir/ in
3670   ./ | .// | /cC/* | \
3671   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3672   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3673   /usr/ucb/* ) ;;
3674   *)
3675     # OSF1 and SCO ODT 3.0 have their own names for install.
3676     # Don't use installbsd from OSF since it installs stuff as root
3677     # by default.
3678     for ac_prog in ginstall scoinst install; do
3679       for ac_exec_ext in '' $ac_executable_extensions; do
3680         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3681           if test $ac_prog = install &&
3682             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683             # AIX install.  It has an incompatible calling convention.
3684             :
3685           elif test $ac_prog = install &&
3686             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687             # program-specific install script used by HP pwplus--don't use.
3688             :
3689           else
3690             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691             break 3
3692           fi
3693         fi
3694       done
3695     done
3696     ;;
3697 esac
3698 done
3699
3700
3701 fi
3702   if test "${ac_cv_path_install+set}" = set; then
3703     INSTALL=$ac_cv_path_install
3704   else
3705     # As a last resort, use the slow shell script.  We don't cache a
3706     # path for INSTALL within a source directory, because that will
3707     # break other packages using the cache if that directory is
3708     # removed, or if the path is relative.
3709     INSTALL=$ac_install_sh
3710   fi
3711 fi
3712 echo "$as_me:$LINENO: result: $INSTALL" >&5
3713 echo "${ECHO_T}$INSTALL" >&6
3714
3715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3716 # It thinks the first close brace ends the variable substitution.
3717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3718
3719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3720
3721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3722
3723 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3724 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3725 LN_S=$as_ln_s
3726 if test "$LN_S" = "ln -s"; then
3727   echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3731 echo "${ECHO_T}no, using $LN_S" >&6
3732 fi
3733
3734 if test "x$CC" != xcc; then
3735   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3736 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3737 else
3738   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3739 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3740 fi
3741 set dummy $CC; ac_cc=`echo $2 |
3742                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3743 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h.  */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h.  */
3752
3753 int
3754 main ()
3755 {
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 # Make sure it works both with $CC and with simple cc.
3762 # We do the test twice because some compilers refuse to overwrite an
3763 # existing .o file with -o, though they will create one.
3764 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3765 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766   (eval $ac_try) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); };
3775 then
3776   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3777   if test "x$CC" != xcc; then
3778     # Test first that cc exists at all.
3779     if { ac_try='cc -c conftest.$ac_ext >&5'
3780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781   (eval $ac_try) 2>&5
3782   ac_status=$?
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); }; }; then
3785       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3786       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787   (eval $ac_try) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); };
3796       then
3797         # cc works too.
3798         :
3799       else
3800         # cc exists but doesn't like -o.
3801         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3802       fi
3803     fi
3804   fi
3805 else
3806   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3807 fi
3808 rm -f conftest*
3809
3810 fi
3811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3812   echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817
3818 cat >>confdefs.h <<\_ACEOF
3819 #define NO_MINUS_C_MINUS_O 1
3820 _ACEOF
3821
3822 fi
3823
3824 # FIXME: we rely on the cache variable name because
3825 # there is no other way.
3826 set dummy $CC
3827 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3829    # Losing compiler, so override with the script.
3830    # FIXME: It is wrong to rewrite CC.
3831    # But if we don't then we get into trouble of one sort or another.
3832    # A longer-term fix would be to have automake use am__CC in this case,
3833    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3834    CC="$am_aux_dir/compile $CC"
3835 fi
3836
3837
3838
3839
3840
3841         if test -n "$PYTHON"; then
3842       # If the user set $PYTHON, use it and don't search something else.
3843       echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
3844 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6
3845       prog="import sys, string
3846 # split strings by '.' and convert to numeric.  Append some zeros
3847 # because we need at least 4 digits for the hex conversion.
3848 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3849 minverhex = 0
3850 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3851 sys.exit(sys.hexversion < minverhex)"
3852   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3853    ($PYTHON -c "$prog") >&5 2>&5
3854    ac_status=$?
3855    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856    (exit $ac_status); }; then
3857   echo "$as_me:$LINENO: result: yes" >&5
3858 echo "${ECHO_T}yes" >&6
3859 else
3860   { { echo "$as_me:$LINENO: error: too old" >&5
3861 echo "$as_me: error: too old" >&2;}
3862    { (exit 1); exit 1; }; }
3863 fi
3864
3865       am_display_PYTHON=$PYTHON
3866     else
3867       # Otherwise, try each interpreter until we find one that satisfies
3868       # VERSION.
3869       echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
3870 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6
3871 if test "${am_cv_pathless_PYTHON+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874
3875         for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3876           test "$am_cv_pathless_PYTHON" = none && break
3877           prog="import sys, string
3878 # split strings by '.' and convert to numeric.  Append some zeros
3879 # because we need at least 4 digits for the hex conversion.
3880 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3881 minverhex = 0
3882 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3883 sys.exit(sys.hexversion < minverhex)"
3884   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3885    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3886    ac_status=$?
3887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888    (exit $ac_status); }; then
3889   break
3890 fi
3891
3892         done
3893 fi
3894 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3895 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3896       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3897       if test "$am_cv_pathless_PYTHON" = none; then
3898         PYTHON=:
3899       else
3900         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3901 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_path_PYTHON+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   case $PYTHON in
3908   [\\/]* | ?:[\\/]*)
3909   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3910   ;;
3911   *)
3912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924 done
3925
3926   ;;
3927 esac
3928 fi
3929 PYTHON=$ac_cv_path_PYTHON
3930
3931 if test -n "$PYTHON"; then
3932   echo "$as_me:$LINENO: result: $PYTHON" >&5
3933 echo "${ECHO_T}$PYTHON" >&6
3934 else
3935   echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939       fi
3940       am_display_PYTHON=$am_cv_pathless_PYTHON
3941     fi
3942
3943
3944   if test "$PYTHON" = :; then
3945       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
3946 echo "$as_me: error: no suitable Python interpreter found" >&2;}
3947    { (exit 1); exit 1; }; }
3948   else
3949
3950
3951   echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
3952 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
3953 if test "${am_cv_python_version+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
3957 fi
3958 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
3959 echo "${ECHO_T}$am_cv_python_version" >&6
3960   PYTHON_VERSION=$am_cv_python_version
3961
3962
3963
3964   PYTHON_PREFIX='${prefix}'
3965
3966   PYTHON_EXEC_PREFIX='${exec_prefix}'
3967
3968
3969
3970   echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
3971 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
3972 if test "${am_cv_python_platform+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
3976 fi
3977 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
3978 echo "${ECHO_T}$am_cv_python_platform" >&6
3979   PYTHON_PLATFORM=$am_cv_python_platform
3980
3981
3982
3983
3984                 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
3985 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
3986 if test "${am_cv_python_pythondir+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
3990      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3991 fi
3992 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
3993 echo "${ECHO_T}$am_cv_python_pythondir" >&6
3994   pythondir=$am_cv_python_pythondir
3995
3996
3997
3998   pkgpythondir=\${pythondir}/$PACKAGE
3999
4000
4001             echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4002 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
4003 if test "${am_cv_python_pyexecdir+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4007      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4008 fi
4009 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4010 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
4011   pyexecdir=$am_cv_python_pyexecdir
4012
4013
4014
4015   pkgpyexecdir=\${pyexecdir}/$PACKAGE
4016
4017
4018
4019   fi
4020
4021
4022
4023
4024
4025
4026         echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4027 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
4028 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031
4032                 ac_ext=cc
4033 ac_cpp='$CXXCPP $CPPFLAGS'
4034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4037
4038                 cat >conftest.$ac_ext <<_ACEOF
4039
4040                     #include <ostream>
4041
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_cxx_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ensc_cv_cxx_cxxcompiler=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ensc_cv_cxx_cxxcompiler=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073                 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
4079
4080 fi
4081 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4082 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
4083
4084
4085
4086 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4087   ENSC_HAVE_CXX_COMPILER_TRUE=
4088   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4089 else
4090   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4091   ENSC_HAVE_CXX_COMPILER_FALSE=
4092 fi
4093
4094
4095         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4096                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4097 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4098         fi
4099
4100
4101
4102
4103
4104         echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4105 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
4106 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109
4110                 ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116                 cat >conftest.$ac_ext <<_ACEOF
4117
4118 int main(int argc, char *argv) {
4119   struct { int x; }   a = { .x = argc };
4120   if (0) return 0;
4121   int b;
4122 }
4123
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127   (eval $ac_compile) 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } &&
4134          { ac_try='test -z "$ac_c_werror_flag"
4135                          || test ! -s conftest.err'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest.$ac_objext'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147   ensc_cv_c99_c99compiler=yes
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ensc_cv_c99_c99compiler=no
4153 fi
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155                 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161
4162 fi
4163 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4164 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
4165
4166
4167
4168 if test x"$ensc_cv_c99_c99compiler" = xyes; then
4169   ENSC_HAVE_C99_COMPILER_TRUE=
4170   ENSC_HAVE_C99_COMPILER_FALSE='#'
4171 else
4172   ENSC_HAVE_C99_COMPILER_TRUE='#'
4173   ENSC_HAVE_C99_COMPILER_FALSE=
4174 fi
4175
4176
4177         if test x"$ensc_cv_c99_c99compiler" = xno; then
4178                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4179 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4180         fi
4181
4182
4183
4184         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4185
4186
4187         ENSC_PATHPROG_SED=
4188
4189
4190
4191
4192
4193
4194
4195         if test -z ""; then
4196                 rq=true
4197         else
4198                 rq=false
4199         fi
4200
4201         if $rq; then
4202                 ensc_dflt=
4203         else
4204                 ensc_dflt=""
4205         fi
4206
4207         for ac_prog in awk
4208 do
4209   # Extract the first word of "$ac_prog", so it can be a program name with args.
4210 set dummy $ac_prog; ac_word=$2
4211 echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4213 if test "${ac_cv_path_AWK+set}" = set; then
4214   echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216   case $AWK in
4217   [\\/]* | ?:[\\/]*)
4218   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4219   ;;
4220   *)
4221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $ensc_searchpath
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226   for ac_exec_ext in '' $ac_executable_extensions; do
4227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230     break 2
4231   fi
4232 done
4233 done
4234
4235   ;;
4236 esac
4237 fi
4238 AWK=$ac_cv_path_AWK
4239
4240 if test -n "$AWK"; then
4241   echo "$as_me:$LINENO: result: $AWK" >&5
4242 echo "${ECHO_T}$AWK" >&6
4243 else
4244   echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4246 fi
4247
4248   test -n "$AWK" && break
4249 done
4250 test -n "$AWK" || AWK="$ensc_dflt"
4251
4252
4253         if test -z "${AWK}" && $rq; then
4254                 if test -z ""; then
4255                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4256 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4257    { (exit 1); exit 1; }; }
4258                 else
4259                         { { echo "$as_me:$LINENO: error:
4260 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4261 " >&5
4262 echo "$as_me: error:
4263 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4264 " >&2;}
4265    { (exit 1); exit 1; }; }
4266                 fi
4267         fi
4268
4269         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4270
4271         test "${AWK}"
4272
4273
4274
4275
4276         if test -z ""; then
4277                 rq=true
4278         else
4279                 rq=false
4280         fi
4281
4282         if $rq; then
4283                 ensc_dflt=
4284         else
4285                 ensc_dflt=""
4286         fi
4287
4288         for ac_prog in cat
4289 do
4290   # Extract the first word of "$ac_prog", so it can be a program name with args.
4291 set dummy $ac_prog; ac_word=$2
4292 echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294 if test "${ac_cv_path_CAT+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   case $CAT in
4298   [\\/]* | ?:[\\/]*)
4299   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4300   ;;
4301   *)
4302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $ensc_searchpath
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307   for ac_exec_ext in '' $ac_executable_extensions; do
4308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314 done
4315
4316   ;;
4317 esac
4318 fi
4319 CAT=$ac_cv_path_CAT
4320
4321 if test -n "$CAT"; then
4322   echo "$as_me:$LINENO: result: $CAT" >&5
4323 echo "${ECHO_T}$CAT" >&6
4324 else
4325   echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4327 fi
4328
4329   test -n "$CAT" && break
4330 done
4331 test -n "$CAT" || CAT="$ensc_dflt"
4332
4333
4334         if test -z "${CAT}" && $rq; then
4335                 if test -z ""; then
4336                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4337 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4338    { (exit 1); exit 1; }; }
4339                 else
4340                         { { echo "$as_me:$LINENO: error:
4341 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4342 " >&5
4343 echo "$as_me: error:
4344 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4345 " >&2;}
4346    { (exit 1); exit 1; }; }
4347                 fi
4348         fi
4349
4350         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4351
4352         test "${CAT}"
4353
4354
4355
4356
4357         if test -z ""; then
4358                 rq=true
4359         else
4360                 rq=false
4361         fi
4362
4363         if $rq; then
4364                 ensc_dflt=
4365         else
4366                 ensc_dflt=""
4367         fi
4368
4369         for ac_prog in chown
4370 do
4371   # Extract the first word of "$ac_prog", so it can be a program name with args.
4372 set dummy $ac_prog; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_path_CHOWN+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   case $CHOWN in
4379   [\\/]* | ?:[\\/]*)
4380   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4381   ;;
4382   *)
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $ensc_searchpath
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395 done
4396
4397   ;;
4398 esac
4399 fi
4400 CHOWN=$ac_cv_path_CHOWN
4401
4402 if test -n "$CHOWN"; then
4403   echo "$as_me:$LINENO: result: $CHOWN" >&5
4404 echo "${ECHO_T}$CHOWN" >&6
4405 else
4406   echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 fi
4409
4410   test -n "$CHOWN" && break
4411 done
4412 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4413
4414
4415         if test -z "${CHOWN}" && $rq; then
4416                 if test -z ""; then
4417                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4418 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4419    { (exit 1); exit 1; }; }
4420                 else
4421                         { { echo "$as_me:$LINENO: error:
4422 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4423 " >&5
4424 echo "$as_me: error:
4425 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4426 " >&2;}
4427    { (exit 1); exit 1; }; }
4428                 fi
4429         fi
4430
4431         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4432
4433         test "${CHOWN}"
4434
4435
4436
4437
4438         if test -z ""; then
4439                 rq=true
4440         else
4441                 rq=false
4442         fi
4443
4444         if $rq; then
4445                 ensc_dflt=
4446         else
4447                 ensc_dflt=""
4448         fi
4449
4450         for ac_prog in cmp
4451 do
4452   # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy $ac_prog; ac_word=$2
4454 echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_path_CMP+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   case $CMP in
4460   [\\/]* | ?:[\\/]*)
4461   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4462   ;;
4463   *)
4464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $ensc_searchpath
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477
4478   ;;
4479 esac
4480 fi
4481 CMP=$ac_cv_path_CMP
4482
4483 if test -n "$CMP"; then
4484   echo "$as_me:$LINENO: result: $CMP" >&5
4485 echo "${ECHO_T}$CMP" >&6
4486 else
4487   echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4489 fi
4490
4491   test -n "$CMP" && break
4492 done
4493 test -n "$CMP" || CMP="$ensc_dflt"
4494
4495
4496         if test -z "${CMP}" && $rq; then
4497                 if test -z ""; then
4498                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4499 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4500    { (exit 1); exit 1; }; }
4501                 else
4502                         { { echo "$as_me:$LINENO: error:
4503 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4504 " >&5
4505 echo "$as_me: error:
4506 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4507 " >&2;}
4508    { (exit 1); exit 1; }; }
4509                 fi
4510         fi
4511
4512         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4513
4514         test "${CMP}"
4515
4516
4517
4518
4519         if test -z ""; then
4520                 rq=true
4521         else
4522                 rq=false
4523         fi
4524
4525         if $rq; then
4526                 ensc_dflt=
4527         else
4528                 ensc_dflt=""
4529         fi
4530
4531         for ac_prog in cp
4532 do
4533   # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_path_CP+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   case $CP in
4541   [\\/]* | ?:[\\/]*)
4542   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4543   ;;
4544   *)
4545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $ensc_searchpath
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_exec_ext in '' $ac_executable_extensions; do
4551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554     break 2
4555   fi
4556 done
4557 done
4558
4559   ;;
4560 esac
4561 fi
4562 CP=$ac_cv_path_CP
4563
4564 if test -n "$CP"; then
4565   echo "$as_me:$LINENO: result: $CP" >&5
4566 echo "${ECHO_T}$CP" >&6
4567 else
4568   echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6
4570 fi
4571
4572   test -n "$CP" && break
4573 done
4574 test -n "$CP" || CP="$ensc_dflt"
4575
4576
4577         if test -z "${CP}" && $rq; then
4578                 if test -z ""; then
4579                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4580 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4581    { (exit 1); exit 1; }; }
4582                 else
4583                         { { echo "$as_me:$LINENO: error:
4584 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4585 " >&5
4586 echo "$as_me: error:
4587 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4588 " >&2;}
4589    { (exit 1); exit 1; }; }
4590                 fi
4591         fi
4592
4593         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4594
4595         test "${CP}"
4596
4597
4598
4599
4600         if test -z ""; then
4601                 rq=true
4602         else
4603                 rq=false
4604         fi
4605
4606         if $rq; then
4607                 ensc_dflt=
4608         else
4609                 ensc_dflt=""
4610         fi
4611
4612         for ac_prog in dirname
4613 do
4614   # Extract the first word of "$ac_prog", so it can be a program name with args.
4615 set dummy $ac_prog; ac_word=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_path_DIRNAME+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   case $DIRNAME in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $ensc_searchpath
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639
4640   ;;
4641 esac
4642 fi
4643 DIRNAME=$ac_cv_path_DIRNAME
4644
4645 if test -n "$DIRNAME"; then
4646   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4647 echo "${ECHO_T}$DIRNAME" >&6
4648 else
4649   echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6
4651 fi
4652
4653   test -n "$DIRNAME" && break
4654 done
4655 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4656
4657
4658         if test -z "${DIRNAME}" && $rq; then
4659                 if test -z ""; then
4660                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4661 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4662    { (exit 1); exit 1; }; }
4663                 else
4664                         { { echo "$as_me:$LINENO: error:
4665 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4666 " >&5
4667 echo "$as_me: error:
4668 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4669 " >&2;}
4670    { (exit 1); exit 1; }; }
4671                 fi
4672         fi
4673
4674         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4675
4676         test "${DIRNAME}"
4677
4678
4679
4680
4681         if test -z ""; then
4682                 rq=true
4683         else
4684                 rq=false
4685         fi
4686
4687         if $rq; then
4688                 ensc_dflt=
4689         else
4690                 ensc_dflt=""
4691         fi
4692
4693         for ac_prog in egrep
4694 do
4695   # Extract the first word of "$ac_prog", so it can be a program name with args.
4696 set dummy $ac_prog; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_path_EGREP+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   case $EGREP in
4703   [\\/]* | ?:[\\/]*)
4704   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4705   ;;
4706   *)
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $ensc_searchpath
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720
4721   ;;
4722 esac
4723 fi
4724 EGREP=$ac_cv_path_EGREP
4725
4726 if test -n "$EGREP"; then
4727   echo "$as_me:$LINENO: result: $EGREP" >&5
4728 echo "${ECHO_T}$EGREP" >&6
4729 else
4730   echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732 fi
4733
4734   test -n "$EGREP" && break
4735 done
4736 test -n "$EGREP" || EGREP="$ensc_dflt"
4737
4738
4739         if test -z "${EGREP}" && $rq; then
4740                 if test -z ""; then
4741                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4742 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4743    { (exit 1); exit 1; }; }
4744                 else
4745                         { { echo "$as_me:$LINENO: error:
4746 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4747 " >&5
4748 echo "$as_me: error:
4749 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4750 " >&2;}
4751    { (exit 1); exit 1; }; }
4752                 fi
4753         fi
4754
4755         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4756
4757         test "${EGREP}"
4758
4759
4760
4761
4762         if test -z ""; then
4763                 rq=true
4764         else
4765                 rq=false
4766         fi
4767
4768         if $rq; then
4769                 ensc_dflt=
4770         else
4771                 ensc_dflt=""
4772         fi
4773
4774         for ac_prog in env
4775 do
4776   # Extract the first word of "$ac_prog", so it can be a program name with args.
4777 set dummy $ac_prog; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_path_ENV+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   case $ENV in
4784   [\\/]* | ?:[\\/]*)
4785   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4786   ;;
4787   *)
4788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $ensc_searchpath
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793   for ac_exec_ext in '' $ac_executable_extensions; do
4794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801
4802   ;;
4803 esac
4804 fi
4805 ENV=$ac_cv_path_ENV
4806
4807 if test -n "$ENV"; then
4808   echo "$as_me:$LINENO: result: $ENV" >&5
4809 echo "${ECHO_T}$ENV" >&6
4810 else
4811   echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6
4813 fi
4814
4815   test -n "$ENV" && break
4816 done
4817 test -n "$ENV" || ENV="$ensc_dflt"
4818
4819
4820         if test -z "${ENV}" && $rq; then
4821                 if test -z ""; then
4822                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4823 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4824    { (exit 1); exit 1; }; }
4825                 else
4826                         { { echo "$as_me:$LINENO: error:
4827 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4828 " >&5
4829 echo "$as_me: error:
4830 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4831 " >&2;}
4832    { (exit 1); exit 1; }; }
4833                 fi
4834         fi
4835
4836         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4837
4838         test "${ENV}"
4839
4840
4841
4842
4843         if test -z ""; then
4844                 rq=true
4845         else
4846                 rq=false
4847         fi
4848
4849         if $rq; then
4850                 ensc_dflt=
4851         else
4852                 ensc_dflt=""
4853         fi
4854
4855         for ac_prog in grep
4856 do
4857   # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_path_GREP+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $GREP in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $ensc_searchpath
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882
4883   ;;
4884 esac
4885 fi
4886 GREP=$ac_cv_path_GREP
4887
4888 if test -n "$GREP"; then
4889   echo "$as_me:$LINENO: result: $GREP" >&5
4890 echo "${ECHO_T}$GREP" >&6
4891 else
4892   echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4894 fi
4895
4896   test -n "$GREP" && break
4897 done
4898 test -n "$GREP" || GREP="$ensc_dflt"
4899
4900
4901         if test -z "${GREP}" && $rq; then
4902                 if test -z ""; then
4903                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4904 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4905    { (exit 1); exit 1; }; }
4906                 else
4907                         { { echo "$as_me:$LINENO: error:
4908 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4909 " >&5
4910 echo "$as_me: error:
4911 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4912 " >&2;}
4913    { (exit 1); exit 1; }; }
4914                 fi
4915         fi
4916
4917         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4918
4919         test "${GREP}"
4920
4921
4922
4923
4924         if test -z ""; then
4925                 rq=true
4926         else
4927                 rq=false
4928         fi
4929
4930         if $rq; then
4931                 ensc_dflt=
4932         else
4933                 ensc_dflt=""
4934         fi
4935
4936         for ac_prog in ln
4937 do
4938   # Extract the first word of "$ac_prog", so it can be a program name with args.
4939 set dummy $ac_prog; ac_word=$2
4940 echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4942 if test "${ac_cv_path_LN+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   case $LN in
4946   [\\/]* | ?:[\\/]*)
4947   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4948   ;;
4949   *)
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $ensc_searchpath
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   for ac_exec_ext in '' $ac_executable_extensions; do
4956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962 done
4963
4964   ;;
4965 esac
4966 fi
4967 LN=$ac_cv_path_LN
4968
4969 if test -n "$LN"; then
4970   echo "$as_me:$LINENO: result: $LN" >&5
4971 echo "${ECHO_T}$LN" >&6
4972 else
4973   echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977   test -n "$LN" && break
4978 done
4979 test -n "$LN" || LN="$ensc_dflt"
4980
4981
4982         if test -z "${LN}" && $rq; then
4983                 if test -z ""; then
4984                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
4985 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4986    { (exit 1); exit 1; }; }
4987                 else
4988                         { { echo "$as_me:$LINENO: error:
4989 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4990 " >&5
4991 echo "$as_me: error:
4992 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4993 " >&2;}
4994    { (exit 1); exit 1; }; }
4995                 fi
4996         fi
4997
4998         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
4999
5000         test "${LN}"
5001
5002
5003
5004
5005         if test -z ""; then
5006                 rq=true
5007         else
5008                 rq=false
5009         fi
5010
5011         if $rq; then
5012                 ensc_dflt=
5013         else
5014                 ensc_dflt=""
5015         fi
5016
5017         for ac_prog in mkdir
5018 do
5019   # Extract the first word of "$ac_prog", so it can be a program name with args.
5020 set dummy $ac_prog; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_path_MKDIR+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   case $MKDIR in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $ensc_searchpath
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044
5045   ;;
5046 esac
5047 fi
5048 MKDIR=$ac_cv_path_MKDIR
5049
5050 if test -n "$MKDIR"; then
5051   echo "$as_me:$LINENO: result: $MKDIR" >&5
5052 echo "${ECHO_T}$MKDIR" >&6
5053 else
5054   echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5056 fi
5057
5058   test -n "$MKDIR" && break
5059 done
5060 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5061
5062
5063         if test -z "${MKDIR}" && $rq; then
5064                 if test -z ""; then
5065                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5066 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5067    { (exit 1); exit 1; }; }
5068                 else
5069                         { { echo "$as_me:$LINENO: error:
5070 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5071 " >&5
5072 echo "$as_me: error:
5073 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5074 " >&2;}
5075    { (exit 1); exit 1; }; }
5076                 fi
5077         fi
5078
5079         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5080
5081         test "${MKDIR}"
5082
5083
5084
5085
5086         if test -z ""; then
5087                 rq=true
5088         else
5089                 rq=false
5090         fi
5091
5092         if $rq; then
5093                 ensc_dflt=
5094         else
5095                 ensc_dflt=""
5096         fi
5097
5098         for ac_prog in mkfifo
5099 do
5100   # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy $ac_prog; ac_word=$2
5102 echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104 if test "${ac_cv_path_MKFIFO+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   case $MKFIFO in
5108   [\\/]* | ?:[\\/]*)
5109   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5110   ;;
5111   *)
5112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $ensc_searchpath
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125
5126   ;;
5127 esac
5128 fi
5129 MKFIFO=$ac_cv_path_MKFIFO
5130
5131 if test -n "$MKFIFO"; then
5132   echo "$as_me:$LINENO: result: $MKFIFO" >&5
5133 echo "${ECHO_T}$MKFIFO" >&6
5134 else
5135   echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5137 fi
5138
5139   test -n "$MKFIFO" && break
5140 done
5141 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5142
5143
5144         if test -z "${MKFIFO}" && $rq; then
5145                 if test -z ""; then
5146                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5147 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5148    { (exit 1); exit 1; }; }
5149                 else
5150                         { { echo "$as_me:$LINENO: error:
5151 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5152 " >&5
5153 echo "$as_me: error:
5154 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5155 " >&2;}
5156    { (exit 1); exit 1; }; }
5157                 fi
5158         fi
5159
5160         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5161
5162         test "${MKFIFO}"
5163
5164
5165
5166
5167         if test -z ""; then
5168                 rq=true
5169         else
5170                 rq=false
5171         fi
5172
5173         if $rq; then
5174                 ensc_dflt=
5175         else
5176                 ensc_dflt=""
5177         fi
5178
5179         for ac_prog in mktemp
5180 do
5181   # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 set dummy $ac_prog; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_path_MKTEMP+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   case $MKTEMP in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $ensc_searchpath
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206
5207   ;;
5208 esac
5209 fi
5210 MKTEMP=$ac_cv_path_MKTEMP
5211
5212 if test -n "$MKTEMP"; then
5213   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5214 echo "${ECHO_T}$MKTEMP" >&6
5215 else
5216   echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5218 fi
5219
5220   test -n "$MKTEMP" && break
5221 done
5222 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5223
5224
5225         if test -z "${MKTEMP}" && $rq; then
5226                 if test -z ""; then
5227                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5228 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5229    { (exit 1); exit 1; }; }
5230                 else
5231                         { { echo "$as_me:$LINENO: error:
5232 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5233 " >&5
5234 echo "$as_me: error:
5235 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5236 " >&2;}
5237    { (exit 1); exit 1; }; }
5238                 fi
5239         fi
5240
5241         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5242
5243         test "${MKTEMP}"
5244
5245
5246
5247
5248         if test -z ""; then
5249                 rq=true
5250         else
5251                 rq=false
5252         fi
5253
5254         if $rq; then
5255                 ensc_dflt=
5256         else
5257                 ensc_dflt=""
5258         fi
5259
5260         for ac_prog in mount
5261 do
5262   # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_path_MOUNT+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   case $MOUNT in
5270   [\\/]* | ?:[\\/]*)
5271   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5272   ;;
5273   *)
5274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $ensc_searchpath
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279   for ac_exec_ext in '' $ac_executable_extensions; do
5280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283     break 2
5284   fi
5285 done
5286 done
5287
5288   ;;
5289 esac
5290 fi
5291 MOUNT=$ac_cv_path_MOUNT
5292
5293 if test -n "$MOUNT"; then
5294   echo "$as_me:$LINENO: result: $MOUNT" >&5
5295 echo "${ECHO_T}$MOUNT" >&6
5296 else
5297   echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5299 fi
5300
5301   test -n "$MOUNT" && break
5302 done
5303 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5304
5305
5306         if test -z "${MOUNT}" && $rq; then
5307                 if test -z ""; then
5308                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5309 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5310    { (exit 1); exit 1; }; }
5311                 else
5312                         { { echo "$as_me:$LINENO: error:
5313 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5314 " >&5
5315 echo "$as_me: error:
5316 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5317 " >&2;}
5318    { (exit 1); exit 1; }; }
5319                 fi
5320         fi
5321
5322         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5323
5324         test "${MOUNT}"
5325
5326
5327
5328
5329         if test -z ""; then
5330                 rq=true
5331         else
5332                 rq=false
5333         fi
5334
5335         if $rq; then
5336                 ensc_dflt=
5337         else
5338                 ensc_dflt=""
5339         fi
5340
5341         for ac_prog in mv
5342 do
5343   # Extract the first word of "$ac_prog", so it can be a program name with args.
5344 set dummy $ac_prog; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_path_MV+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   case $MV in
5351   [\\/]* | ?:[\\/]*)
5352   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5353   ;;
5354   *)
5355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $ensc_searchpath
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360   for ac_exec_ext in '' $ac_executable_extensions; do
5361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367 done
5368
5369   ;;
5370 esac
5371 fi
5372 MV=$ac_cv_path_MV
5373
5374 if test -n "$MV"; then
5375   echo "$as_me:$LINENO: result: $MV" >&5
5376 echo "${ECHO_T}$MV" >&6
5377 else
5378   echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6
5380 fi
5381
5382   test -n "$MV" && break
5383 done
5384 test -n "$MV" || MV="$ensc_dflt"
5385
5386
5387         if test -z "${MV}" && $rq; then
5388                 if test -z ""; then
5389                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5390 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5391    { (exit 1); exit 1; }; }
5392                 else
5393                         { { echo "$as_me:$LINENO: error:
5394 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5395 " >&5
5396 echo "$as_me: error:
5397 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5398 " >&2;}
5399    { (exit 1); exit 1; }; }
5400                 fi
5401         fi
5402
5403         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5404
5405         test "${MV}"
5406
5407
5408
5409
5410         if test -z ""; then
5411                 rq=true
5412         else
5413                 rq=false
5414         fi
5415
5416         if $rq; then
5417                 ensc_dflt=
5418         else
5419                 ensc_dflt=""
5420         fi
5421
5422         for ac_prog in nice
5423 do
5424   # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_path_NICE+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   case $NICE in
5432   [\\/]* | ?:[\\/]*)
5433   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5434   ;;
5435   *)
5436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $ensc_searchpath
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441   for ac_exec_ext in '' $ac_executable_extensions; do
5442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448 done
5449
5450   ;;
5451 esac
5452 fi
5453 NICE=$ac_cv_path_NICE
5454
5455 if test -n "$NICE"; then
5456   echo "$as_me:$LINENO: result: $NICE" >&5
5457 echo "${ECHO_T}$NICE" >&6
5458 else
5459   echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5461 fi
5462
5463   test -n "$NICE" && break
5464 done
5465 test -n "$NICE" || NICE="$ensc_dflt"
5466
5467
5468         if test -z "${NICE}" && $rq; then
5469                 if test -z ""; then
5470                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5471 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5472    { (exit 1); exit 1; }; }
5473                 else
5474                         { { echo "$as_me:$LINENO: error:
5475 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5476 " >&5
5477 echo "$as_me: error:
5478 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5479 " >&2;}
5480    { (exit 1); exit 1; }; }
5481                 fi
5482         fi
5483
5484         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5485
5486         test "${NICE}"
5487
5488
5489
5490
5491         if test -z ""; then
5492                 rq=true
5493         else
5494                 rq=false
5495         fi
5496
5497         if $rq; then
5498                 ensc_dflt=
5499         else
5500                 ensc_dflt=""
5501         fi
5502
5503         for ac_prog in ps
5504 do
5505   # Extract the first word of "$ac_prog", so it can be a program name with args.
5506 set dummy $ac_prog; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_path_PS+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   case $PS in
5513   [\\/]* | ?:[\\/]*)
5514   ac_cv_path_PS="$PS" # Let the user override the test with a path.
5515   ;;
5516   *)
5517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $ensc_searchpath
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522   for ac_exec_ext in '' $ac_executable_extensions; do
5523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529 done
5530
5531   ;;
5532 esac
5533 fi
5534 PS=$ac_cv_path_PS
5535
5536 if test -n "$PS"; then
5537   echo "$as_me:$LINENO: result: $PS" >&5
5538 echo "${ECHO_T}$PS" >&6
5539 else
5540   echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6
5542 fi
5543
5544   test -n "$PS" && break
5545 done
5546 test -n "$PS" || PS="$ensc_dflt"
5547
5548
5549         if test -z "${PS}" && $rq; then
5550                 if test -z ""; then
5551                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5552 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5553    { (exit 1); exit 1; }; }
5554                 else
5555                         { { echo "$as_me:$LINENO: error:
5556 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5557 " >&5
5558 echo "$as_me: error:
5559 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5560 " >&2;}
5561    { (exit 1); exit 1; }; }
5562                 fi
5563         fi
5564
5565         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5566
5567         test "${PS}"
5568
5569
5570
5571
5572         if test -z ""; then
5573                 rq=true
5574         else
5575                 rq=false
5576         fi
5577
5578         if $rq; then
5579                 ensc_dflt=
5580         else
5581                 ensc_dflt=""
5582         fi
5583
5584         for ac_prog in rm
5585 do
5586   # Extract the first word of "$ac_prog", so it can be a program name with args.
5587 set dummy $ac_prog; ac_word=$2
5588 echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5590 if test "${ac_cv_path_RM+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593   case $RM in
5594   [\\/]* | ?:[\\/]*)
5595   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5596   ;;
5597   *)
5598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $ensc_searchpath
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603   for ac_exec_ext in '' $ac_executable_extensions; do
5604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610 done
5611
5612   ;;
5613 esac
5614 fi
5615 RM=$ac_cv_path_RM
5616
5617 if test -n "$RM"; then
5618   echo "$as_me:$LINENO: result: $RM" >&5
5619 echo "${ECHO_T}$RM" >&6
5620 else
5621   echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5623 fi
5624
5625   test -n "$RM" && break
5626 done
5627 test -n "$RM" || RM="$ensc_dflt"
5628
5629
5630         if test -z "${RM}" && $rq; then
5631                 if test -z ""; then
5632                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5633 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5634    { (exit 1); exit 1; }; }
5635                 else
5636                         { { echo "$as_me:$LINENO: error:
5637 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5638 " >&5
5639 echo "$as_me: error:
5640 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5641 " >&2;}
5642    { (exit 1); exit 1; }; }
5643                 fi
5644         fi
5645
5646         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5647
5648         test "${RM}"
5649
5650
5651
5652
5653         if test -z ""; then
5654                 rq=true
5655         else
5656                 rq=false
5657         fi
5658
5659         if $rq; then
5660                 ensc_dflt=
5661         else
5662                 ensc_dflt=""
5663         fi
5664
5665         for ac_prog in rmdir
5666 do
5667   # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5671 if test "${ac_cv_path_RMDIR+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   case $RMDIR in
5675   [\\/]* | ?:[\\/]*)
5676   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5677   ;;
5678   *)
5679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $ensc_searchpath
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684   for ac_exec_ext in '' $ac_executable_extensions; do
5685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
5687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691 done
5692
5693   ;;
5694 esac
5695 fi
5696 RMDIR=$ac_cv_path_RMDIR
5697
5698 if test -n "$RMDIR"; then
5699   echo "$as_me:$LINENO: result: $RMDIR" >&5
5700 echo "${ECHO_T}$RMDIR" >&6
5701 else
5702   echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6
5704 fi
5705
5706   test -n "$RMDIR" && break
5707 done
5708 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5709
5710
5711         if test -z "${RMDIR}" && $rq; then
5712                 if test -z ""; then
5713                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5714 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5715    { (exit 1); exit 1; }; }
5716                 else
5717                         { { echo "$as_me:$LINENO: error:
5718 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5719 " >&5
5720 echo "$as_me: error:
5721 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5722 " >&2;}
5723    { (exit 1); exit 1; }; }
5724                 fi
5725         fi
5726
5727         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5728
5729         test "${RMDIR}"
5730
5731
5732
5733
5734         if test -z ""; then
5735                 rq=true
5736         else
5737                 rq=false
5738         fi
5739
5740         if $rq; then
5741                 ensc_dflt=
5742         else
5743                 ensc_dflt=""
5744         fi
5745
5746         for ac_prog in sed
5747 do
5748   # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752 if test "${ac_cv_path_SED+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   case $SED in
5756   [\\/]* | ?:[\\/]*)
5757   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5758   ;;
5759   *)
5760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $ensc_searchpath
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765   for ac_exec_ext in '' $ac_executable_extensions; do
5766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772 done
5773
5774   ;;
5775 esac
5776 fi
5777 SED=$ac_cv_path_SED
5778
5779 if test -n "$SED"; then
5780   echo "$as_me:$LINENO: result: $SED" >&5
5781 echo "${ECHO_T}$SED" >&6
5782 else
5783   echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785 fi
5786
5787   test -n "$SED" && break
5788 done
5789 test -n "$SED" || SED="$ensc_dflt"
5790
5791
5792         if test -z "${SED}" && $rq; then
5793                 if test -z ""; then
5794                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5795 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5796    { (exit 1); exit 1; }; }
5797                 else
5798                         { { echo "$as_me:$LINENO: error:
5799 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5800 " >&5
5801 echo "$as_me: error:
5802 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5803 " >&2;}
5804    { (exit 1); exit 1; }; }
5805                 fi
5806         fi
5807
5808         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5809
5810         test "${SED}"
5811
5812
5813
5814
5815         if test -z ""; then
5816                 rq=true
5817         else
5818                 rq=false
5819         fi
5820
5821         if $rq; then
5822                 ensc_dflt=
5823         else
5824                 ensc_dflt=""
5825         fi
5826
5827         for ac_prog in sh
5828 do
5829   # Extract the first word of "$ac_prog", so it can be a program name with args.
5830 set dummy $ac_prog; ac_word=$2
5831 echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5833 if test "${ac_cv_path_SH+set}" = set; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   case $SH in
5837   [\\/]* | ?:[\\/]*)
5838   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5839   ;;
5840   *)
5841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $ensc_searchpath
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846   for ac_exec_ext in '' $ac_executable_extensions; do
5847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850     break 2
5851   fi
5852 done
5853 done
5854
5855   ;;
5856 esac
5857 fi
5858 SH=$ac_cv_path_SH
5859
5860 if test -n "$SH"; then
5861   echo "$as_me:$LINENO: result: $SH" >&5
5862 echo "${ECHO_T}$SH" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868   test -n "$SH" && break
5869 done
5870 test -n "$SH" || SH="$ensc_dflt"
5871
5872
5873         if test -z "${SH}" && $rq; then
5874                 if test -z ""; then
5875                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5876 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5877    { (exit 1); exit 1; }; }
5878                 else
5879                         { { echo "$as_me:$LINENO: error:
5880 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5881 " >&5
5882 echo "$as_me: error:
5883 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5884 " >&2;}
5885    { (exit 1); exit 1; }; }
5886                 fi
5887         fi
5888
5889         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5890
5891         test "${SH}"
5892
5893
5894
5895
5896         if test -z ""; then
5897                 rq=true
5898         else
5899                 rq=false
5900         fi
5901
5902         if $rq; then
5903                 ensc_dflt=
5904         else
5905                 ensc_dflt=""
5906         fi
5907
5908         for ac_prog in tac
5909 do
5910   # Extract the first word of "$ac_prog", so it can be a program name with args.
5911 set dummy $ac_prog; ac_word=$2
5912 echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914 if test "${ac_cv_path_TAC+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $TAC in
5918   [\\/]* | ?:[\\/]*)
5919   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
5920   ;;
5921   *)
5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $ensc_searchpath
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936   ;;
5937 esac
5938 fi
5939 TAC=$ac_cv_path_TAC
5940
5941 if test -n "$TAC"; then
5942   echo "$as_me:$LINENO: result: $TAC" >&5
5943 echo "${ECHO_T}$TAC" >&6
5944 else
5945   echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5947 fi
5948
5949   test -n "$TAC" && break
5950 done
5951 test -n "$TAC" || TAC="$ensc_dflt"
5952
5953
5954         if test -z "${TAC}" && $rq; then
5955                 if test -z ""; then
5956                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
5957 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5958    { (exit 1); exit 1; }; }
5959                 else
5960                         { { echo "$as_me:$LINENO: error:
5961 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5962 " >&5
5963 echo "$as_me: error:
5964 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5965 " >&2;}
5966    { (exit 1); exit 1; }; }
5967                 fi
5968         fi
5969
5970         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
5971
5972         test "${TAC}"
5973
5974
5975
5976
5977         if test -z ""; then
5978                 rq=true
5979         else
5980                 rq=false
5981         fi
5982
5983         if $rq; then
5984                 ensc_dflt=
5985         else
5986                 ensc_dflt=""
5987         fi
5988
5989         for ac_prog in tar
5990 do
5991   # Extract the first word of "$ac_prog", so it can be a program name with args.
5992 set dummy $ac_prog; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_path_TAR+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   case $TAR in
5999   [\\/]* | ?:[\\/]*)
6000   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6001   ;;
6002   *)
6003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $ensc_searchpath
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016
6017   ;;
6018 esac
6019 fi
6020 TAR=$ac_cv_path_TAR
6021
6022 if test -n "$TAR"; then
6023   echo "$as_me:$LINENO: result: $TAR" >&5
6024 echo "${ECHO_T}$TAR" >&6
6025 else
6026   echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6
6028 fi
6029
6030   test -n "$TAR" && break
6031 done
6032 test -n "$TAR" || TAR="$ensc_dflt"
6033
6034
6035         if test -z "${TAR}" && $rq; then
6036                 if test -z ""; then
6037                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6038 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6039    { (exit 1); exit 1; }; }
6040                 else
6041                         { { echo "$as_me:$LINENO: error:
6042 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6043 " >&5
6044 echo "$as_me: error:
6045 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6046 " >&2;}
6047    { (exit 1); exit 1; }; }
6048                 fi
6049         fi
6050
6051         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6052
6053         test "${TAR}"
6054
6055
6056
6057
6058         if test -z ""; then
6059                 rq=true
6060         else
6061                 rq=false
6062         fi
6063
6064         if $rq; then
6065                 ensc_dflt=
6066         else
6067                 ensc_dflt=""
6068         fi
6069
6070         for ac_prog in touch
6071 do
6072   # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_path_TOUCH+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   case $TOUCH in
6080   [\\/]* | ?:[\\/]*)
6081   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6082   ;;
6083   *)
6084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $ensc_searchpath
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089   for ac_exec_ext in '' $ac_executable_extensions; do
6090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096 done
6097
6098   ;;
6099 esac
6100 fi
6101 TOUCH=$ac_cv_path_TOUCH
6102
6103 if test -n "$TOUCH"; then
6104   echo "$as_me:$LINENO: result: $TOUCH" >&5
6105 echo "${ECHO_T}$TOUCH" >&6
6106 else
6107   echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6
6109 fi
6110
6111   test -n "$TOUCH" && break
6112 done
6113 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6114
6115
6116         if test -z "${TOUCH}" && $rq; then
6117                 if test -z ""; then
6118                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6119 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6120    { (exit 1); exit 1; }; }
6121                 else
6122                         { { echo "$as_me:$LINENO: error:
6123 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6124 " >&5
6125 echo "$as_me: error:
6126 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6127 " >&2;}
6128    { (exit 1); exit 1; }; }
6129                 fi
6130         fi
6131
6132         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6133
6134         test "${TOUCH}"
6135
6136
6137
6138
6139         if test -z ""; then
6140                 rq=true
6141         else
6142                 rq=false
6143         fi
6144
6145         if $rq; then
6146                 ensc_dflt=
6147         else
6148                 ensc_dflt=""
6149         fi
6150
6151         for ac_prog in tty
6152 do
6153   # Extract the first word of "$ac_prog", so it can be a program name with args.
6154 set dummy $ac_prog; ac_word=$2
6155 echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6157 if test "${ac_cv_path_TTY+set}" = set; then
6158   echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160   case $TTY in
6161   [\\/]* | ?:[\\/]*)
6162   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6163   ;;
6164   *)
6165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $ensc_searchpath
6167 do
6168   IFS=$as_save_IFS
6169   test -z "$as_dir" && as_dir=.
6170   for ac_exec_ext in '' $ac_executable_extensions; do
6171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174     break 2
6175   fi
6176 done
6177 done
6178
6179   ;;
6180 esac
6181 fi
6182 TTY=$ac_cv_path_TTY
6183
6184 if test -n "$TTY"; then
6185   echo "$as_me:$LINENO: result: $TTY" >&5
6186 echo "${ECHO_T}$TTY" >&6
6187 else
6188   echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6
6190 fi
6191
6192   test -n "$TTY" && break
6193 done
6194 test -n "$TTY" || TTY="$ensc_dflt"
6195
6196
6197         if test -z "${TTY}" && $rq; then
6198                 if test -z ""; then
6199                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6200 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6201    { (exit 1); exit 1; }; }
6202                 else
6203                         { { echo "$as_me:$LINENO: error:
6204 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6205 " >&5
6206 echo "$as_me: error:
6207 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6208 " >&2;}
6209    { (exit 1); exit 1; }; }
6210                 fi
6211         fi
6212
6213         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6214
6215         test "${TTY}"
6216
6217
6218
6219
6220         if test -z ""; then
6221                 rq=true
6222         else
6223                 rq=false
6224         fi
6225
6226         if $rq; then
6227                 ensc_dflt=
6228         else
6229                 ensc_dflt=""
6230         fi
6231
6232         for ac_prog in umount
6233 do
6234   # Extract the first word of "$ac_prog", so it can be a program name with args.
6235 set dummy $ac_prog; ac_word=$2
6236 echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6238 if test "${ac_cv_path_UMOUNT+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   case $UMOUNT in
6242   [\\/]* | ?:[\\/]*)
6243   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6244   ;;
6245   *)
6246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $ensc_searchpath
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259
6260   ;;
6261 esac
6262 fi
6263 UMOUNT=$ac_cv_path_UMOUNT
6264
6265 if test -n "$UMOUNT"; then
6266   echo "$as_me:$LINENO: result: $UMOUNT" >&5
6267 echo "${ECHO_T}$UMOUNT" >&6
6268 else
6269   echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6271 fi
6272
6273   test -n "$UMOUNT" && break
6274 done
6275 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6276
6277
6278         if test -z "${UMOUNT}" && $rq; then
6279                 if test -z ""; then
6280                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6281 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6282    { (exit 1); exit 1; }; }
6283                 else
6284                         { { echo "$as_me:$LINENO: error:
6285 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6286 " >&5
6287 echo "$as_me: error:
6288 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6289 " >&2;}
6290    { (exit 1); exit 1; }; }
6291                 fi
6292         fi
6293
6294         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6295
6296         test "${UMOUNT}"
6297
6298
6299
6300
6301         if test -z ""; then
6302                 rq=true
6303         else
6304                 rq=false
6305         fi
6306
6307         if $rq; then
6308                 ensc_dflt=
6309         else
6310                 ensc_dflt=""
6311         fi
6312
6313         for ac_prog in wc
6314 do
6315   # Extract the first word of "$ac_prog", so it can be a program name with args.
6316 set dummy $ac_prog; ac_word=$2
6317 echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6319 if test "${ac_cv_path_WC+set}" = set; then
6320   echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
6322   case $WC in
6323   [\\/]* | ?:[\\/]*)
6324   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6325   ;;
6326   *)
6327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $ensc_searchpath
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332   for ac_exec_ext in '' $ac_executable_extensions; do
6333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339 done
6340
6341   ;;
6342 esac
6343 fi
6344 WC=$ac_cv_path_WC
6345
6346 if test -n "$WC"; then
6347   echo "$as_me:$LINENO: result: $WC" >&5
6348 echo "${ECHO_T}$WC" >&6
6349 else
6350   echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6352 fi
6353
6354   test -n "$WC" && break
6355 done
6356 test -n "$WC" || WC="$ensc_dflt"
6357
6358
6359         if test -z "${WC}" && $rq; then
6360                 if test -z ""; then
6361                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6362 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6363    { (exit 1); exit 1; }; }
6364                 else
6365                         { { echo "$as_me:$LINENO: error:
6366 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6367 " >&5
6368 echo "$as_me: error:
6369 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6370 " >&2;}
6371    { (exit 1); exit 1; }; }
6372                 fi
6373         fi
6374
6375         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6376
6377         test "${WC}"
6378
6379
6380
6381
6382
6383
6384         if test -z ""; then
6385                 rq=true
6386         else
6387                 rq=false
6388         fi
6389
6390         if $rq; then
6391                 ensc_dflt=
6392         else
6393                 ensc_dflt=""
6394         fi
6395
6396         for ac_prog in ip
6397 do
6398   # Extract the first word of "$ac_prog", so it can be a program name with args.
6399 set dummy $ac_prog; ac_word=$2
6400 echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402 if test "${ac_cv_path_IP+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   case $IP in
6406   [\\/]* | ?:[\\/]*)
6407   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6408   ;;
6409   *)
6410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $ensc_searchpath
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415   for ac_exec_ext in '' $ac_executable_extensions; do
6416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422 done
6423
6424   ;;
6425 esac
6426 fi
6427 IP=$ac_cv_path_IP
6428
6429 if test -n "$IP"; then
6430   echo "$as_me:$LINENO: result: $IP" >&5
6431 echo "${ECHO_T}$IP" >&6
6432 else
6433   echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6
6435 fi
6436
6437   test -n "$IP" && break
6438 done
6439 test -n "$IP" || IP="$ensc_dflt"
6440
6441
6442         if test -z "${IP}" && $rq; then
6443                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6444                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6445 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6446    { (exit 1); exit 1; }; }
6447                 else
6448                         { { echo "$as_me:$LINENO: error:
6449 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6450 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6451 echo "$as_me: error:
6452 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6453 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6454    { (exit 1); exit 1; }; }
6455                 fi
6456         fi
6457
6458         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6459
6460         test "${IP}"
6461
6462
6463
6464
6465         if test -z ""; then
6466                 rq=true
6467         else
6468                 rq=false
6469         fi
6470
6471         if $rq; then
6472                 ensc_dflt=
6473         else
6474                 ensc_dflt=""
6475         fi
6476
6477         for ac_prog in iptables
6478 do
6479   # Extract the first word of "$ac_prog", so it can be a program name with args.
6480 set dummy $ac_prog; ac_word=$2
6481 echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6483 if test "${ac_cv_path_IPTABLES+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   case $IPTABLES in
6487   [\\/]* | ?:[\\/]*)
6488   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6489   ;;
6490   *)
6491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $ensc_searchpath
6493 do
6494   IFS=$as_save_IFS
6495   test -z "$as_dir" && as_dir=.
6496   for ac_exec_ext in '' $ac_executable_extensions; do
6497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
6499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500     break 2
6501   fi
6502 done
6503 done
6504
6505   ;;
6506 esac
6507 fi
6508 IPTABLES=$ac_cv_path_IPTABLES
6509
6510 if test -n "$IPTABLES"; then
6511   echo "$as_me:$LINENO: result: $IPTABLES" >&5
6512 echo "${ECHO_T}$IPTABLES" >&6
6513 else
6514   echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6516 fi
6517
6518   test -n "$IPTABLES" && break
6519 done
6520 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6521
6522
6523         if test -z "${IPTABLES}" && $rq; then
6524                 if test -z ""; then
6525                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6526 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6527    { (exit 1); exit 1; }; }
6528                 else
6529                         { { echo "$as_me:$LINENO: error:
6530 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6531 " >&5
6532 echo "$as_me: error:
6533 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6534 " >&2;}
6535    { (exit 1); exit 1; }; }
6536                 fi
6537         fi
6538
6539         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6540
6541         test "${IPTABLES}"
6542
6543
6544
6545
6546         if test -z ""; then
6547                 rq=true
6548         else
6549                 rq=false
6550         fi
6551
6552         if $rq; then
6553                 ensc_dflt=
6554         else
6555                 ensc_dflt=""
6556         fi
6557
6558         for ac_prog in modprobe
6559 do
6560   # Extract the first word of "$ac_prog", so it can be a program name with args.
6561 set dummy $ac_prog; ac_word=$2
6562 echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564 if test "${ac_cv_path_MODPROBE+set}" = set; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   case $MODPROBE in
6568   [\\/]* | ?:[\\/]*)
6569   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
6570   ;;
6571   *)
6572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $ensc_searchpath
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577   for ac_exec_ext in '' $ac_executable_extensions; do
6578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
6580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584 done
6585
6586   ;;
6587 esac
6588 fi
6589 MODPROBE=$ac_cv_path_MODPROBE
6590
6591 if test -n "$MODPROBE"; then
6592   echo "$as_me:$LINENO: result: $MODPROBE" >&5
6593 echo "${ECHO_T}$MODPROBE" >&6
6594 else
6595   echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6
6597 fi
6598
6599   test -n "$MODPROBE" && break
6600 done
6601 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6602
6603
6604         if test -z "${MODPROBE}" && $rq; then
6605                 if test -z ""; then
6606                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6607 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6608    { (exit 1); exit 1; }; }
6609                 else
6610                         { { echo "$as_me:$LINENO: error:
6611 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6612 " >&5
6613 echo "$as_me: error:
6614 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6615 " >&2;}
6616    { (exit 1); exit 1; }; }
6617                 fi
6618         fi
6619
6620         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6621
6622         test "${MODPROBE}"
6623
6624
6625
6626
6627         if test -z ""; then
6628                 rq=true
6629         else
6630                 rq=false
6631         fi
6632
6633         if $rq; then
6634                 ensc_dflt=
6635         else
6636                 ensc_dflt=""
6637         fi
6638
6639         for ac_prog in nameif
6640 do
6641   # Extract the first word of "$ac_prog", so it can be a program name with args.
6642 set dummy $ac_prog; ac_word=$2
6643 echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6645 if test "${ac_cv_path_NAMEIF+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   case $NAMEIF in
6649   [\\/]* | ?:[\\/]*)
6650   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
6651   ;;
6652   *)
6653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $ensc_searchpath
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666
6667   ;;
6668 esac
6669 fi
6670 NAMEIF=$ac_cv_path_NAMEIF
6671
6672 if test -n "$NAMEIF"; then
6673   echo "$as_me:$LINENO: result: $NAMEIF" >&5
6674 echo "${ECHO_T}$NAMEIF" >&6
6675 else
6676   echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6
6678 fi
6679
6680   test -n "$NAMEIF" && break
6681 done
6682 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6683
6684
6685         if test -z "${NAMEIF}" && $rq; then
6686                 if test -z ""; then
6687                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6688 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6689    { (exit 1); exit 1; }; }
6690                 else
6691                         { { echo "$as_me:$LINENO: error:
6692 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6693 " >&5
6694 echo "$as_me: error:
6695 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6696 " >&2;}
6697    { (exit 1); exit 1; }; }
6698                 fi
6699         fi
6700
6701         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6702
6703         test "${NAMEIF}"
6704
6705
6706
6707
6708         if test -z ""; then
6709                 rq=true
6710         else
6711                 rq=false
6712         fi
6713
6714         if $rq; then
6715                 ensc_dflt=
6716         else
6717                 ensc_dflt=""
6718         fi
6719
6720         for ac_prog in nohup
6721 do
6722   # Extract the first word of "$ac_prog", so it can be a program name with args.
6723 set dummy $ac_prog; ac_word=$2
6724 echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6726 if test "${ac_cv_path_NOHUP+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   case $NOHUP in
6730   [\\/]* | ?:[\\/]*)
6731   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
6732   ;;
6733   *)
6734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $ensc_searchpath
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739   for ac_exec_ext in '' $ac_executable_extensions; do
6740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
6742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746 done
6747
6748   ;;
6749 esac
6750 fi
6751 NOHUP=$ac_cv_path_NOHUP
6752
6753 if test -n "$NOHUP"; then
6754   echo "$as_me:$LINENO: result: $NOHUP" >&5
6755 echo "${ECHO_T}$NOHUP" >&6
6756 else
6757   echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6759 fi
6760
6761   test -n "$NOHUP" && break
6762 done
6763 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6764
6765
6766         if test -z "${NOHUP}" && $rq; then
6767                 if test -z ""; then
6768                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6769 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6770    { (exit 1); exit 1; }; }
6771                 else
6772                         { { echo "$as_me:$LINENO: error:
6773 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6774 " >&5
6775 echo "$as_me: error:
6776 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6777 " >&2;}
6778    { (exit 1); exit 1; }; }
6779                 fi
6780         fi
6781
6782         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6783
6784         test "${NOHUP}"
6785
6786
6787
6788
6789         if test -z ""; then
6790                 rq=true
6791         else
6792                 rq=false
6793         fi
6794
6795         if $rq; then
6796                 ensc_dflt=
6797         else
6798                 ensc_dflt=""
6799         fi
6800
6801         for ac_prog in rmmod
6802 do
6803   # Extract the first word of "$ac_prog", so it can be a program name with args.
6804 set dummy $ac_prog; ac_word=$2
6805 echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6807 if test "${ac_cv_path_RMMOD+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   case $RMMOD in
6811   [\\/]* | ?:[\\/]*)
6812   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
6813   ;;
6814   *)
6815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $ensc_searchpath
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820   for ac_exec_ext in '' $ac_executable_extensions; do
6821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
6823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827 done
6828
6829   ;;
6830 esac
6831 fi
6832 RMMOD=$ac_cv_path_RMMOD
6833
6834 if test -n "$RMMOD"; then
6835   echo "$as_me:$LINENO: result: $RMMOD" >&5
6836 echo "${ECHO_T}$RMMOD" >&6
6837 else
6838   echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6
6840 fi
6841
6842   test -n "$RMMOD" && break
6843 done
6844 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6845
6846
6847         if test -z "${RMMOD}" && $rq; then
6848                 if test -z ""; then
6849                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6850 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6851    { (exit 1); exit 1; }; }
6852                 else
6853                         { { echo "$as_me:$LINENO: error:
6854 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6855 " >&5
6856 echo "$as_me: error:
6857 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6858 " >&2;}
6859    { (exit 1); exit 1; }; }
6860                 fi
6861         fi
6862
6863         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6864
6865         test "${RMMOD}"
6866
6867
6868
6869
6870         if test -z ""; then
6871                 rq=true
6872         else
6873                 rq=false
6874         fi
6875
6876         if $rq; then
6877                 ensc_dflt=
6878         else
6879                 ensc_dflt=""
6880         fi
6881
6882         for ac_prog in vconfig
6883 do
6884   # Extract the first word of "$ac_prog", so it can be a program name with args.
6885 set dummy $ac_prog; ac_word=$2
6886 echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6888 if test "${ac_cv_path_VCONFIG+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   case $VCONFIG in
6892   [\\/]* | ?:[\\/]*)
6893   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
6894   ;;
6895   *)
6896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $ensc_searchpath
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901   for ac_exec_ext in '' $ac_executable_extensions; do
6902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
6904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908 done
6909
6910   ;;
6911 esac
6912 fi
6913 VCONFIG=$ac_cv_path_VCONFIG
6914
6915 if test -n "$VCONFIG"; then
6916   echo "$as_me:$LINENO: result: $VCONFIG" >&5
6917 echo "${ECHO_T}$VCONFIG" >&6
6918 else
6919   echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6
6921 fi
6922
6923   test -n "$VCONFIG" && break
6924 done
6925 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
6926
6927
6928         if test -z "${VCONFIG}" && $rq; then
6929                 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
6930                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
6931 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6932    { (exit 1); exit 1; }; }
6933                 else
6934                         { { echo "$as_me:$LINENO: error:
6935 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6936 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
6937 echo "$as_me: error:
6938 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6939 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
6940    { (exit 1); exit 1; }; }
6941                 fi
6942         fi
6943
6944         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
6945
6946         test "${VCONFIG}"
6947
6948
6949
6950
6951         if test -z ""; then
6952                 rq=true
6953         else
6954                 rq=false
6955         fi
6956
6957         if $rq; then
6958                 ensc_dflt=
6959         else
6960                 ensc_dflt=""
6961         fi
6962
6963         for ac_prog in wget
6964 do
6965   # Extract the first word of "$ac_prog", so it can be a program name with args.
6966 set dummy $ac_prog; ac_word=$2
6967 echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6969 if test "${ac_cv_path_WGET+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   case $WGET in
6973   [\\/]* | ?:[\\/]*)
6974   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6975   ;;
6976   *)
6977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $ensc_searchpath
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982   for ac_exec_ext in '' $ac_executable_extensions; do
6983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989 done
6990
6991   ;;
6992 esac
6993 fi
6994 WGET=$ac_cv_path_WGET
6995
6996 if test -n "$WGET"; then
6997   echo "$as_me:$LINENO: result: $WGET" >&5
6998 echo "${ECHO_T}$WGET" >&6
6999 else
7000   echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7002 fi
7003
7004   test -n "$WGET" && break
7005 done
7006 test -n "$WGET" || WGET="$ensc_dflt"
7007
7008
7009         if test -z "${WGET}" && $rq; then
7010                 if test -z ""; then
7011                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
7012 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7013    { (exit 1); exit 1; }; }
7014                 else
7015                         { { echo "$as_me:$LINENO: error:
7016 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7017 " >&5
7018 echo "$as_me: error:
7019 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7020 " >&2;}
7021    { (exit 1); exit 1; }; }
7022                 fi
7023         fi
7024
7025         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7026
7027         test "${WGET}"
7028
7029
7030
7031
7032
7033         if test -z ":"; then
7034                 rq=true
7035         else
7036                 rq=false
7037         fi
7038
7039         if $rq; then
7040                 ensc_dflt=
7041         else
7042                 ensc_dflt=":"
7043         fi
7044
7045         for ac_prog in doxygen
7046 do
7047   # Extract the first word of "$ac_prog", so it can be a program name with args.
7048 set dummy $ac_prog; ac_word=$2
7049 echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7051 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   case $DOXYGEN in
7055   [\\/]* | ?:[\\/]*)
7056   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7057   ;;
7058   *)
7059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $ensc_searchpath
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064   for ac_exec_ext in '' $ac_executable_extensions; do
7065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071 done
7072
7073   ;;
7074 esac
7075 fi
7076 DOXYGEN=$ac_cv_path_DOXYGEN
7077
7078 if test -n "$DOXYGEN"; then
7079   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7080 echo "${ECHO_T}$DOXYGEN" >&6
7081 else
7082   echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6
7084 fi
7085
7086   test -n "$DOXYGEN" && break
7087 done
7088 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
7089
7090
7091         if test -z "${DOXYGEN}" && $rq; then
7092                 if test -z ""; then
7093                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
7094 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7095    { (exit 1); exit 1; }; }
7096                 else
7097                         { { echo "$as_me:$LINENO: error:
7098 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7099 " >&5
7100 echo "$as_me: error:
7101 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7102 " >&2;}
7103    { (exit 1); exit 1; }; }
7104                 fi
7105         fi
7106
7107         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
7108
7109         test "${DOXYGEN}"
7110
7111
7112
7113
7114         if test -z ":"; then
7115                 rq=true
7116         else
7117                 rq=false
7118         fi
7119
7120         if $rq; then
7121                 ensc_dflt=
7122         else
7123                 ensc_dflt=":"
7124         fi
7125
7126         for ac_prog in xsltp
7127 do
7128   # Extract the first word of "$ac_prog", so it can be a program name with args.
7129 set dummy $ac_prog; ac_word=$2
7130 echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132 if test "${ac_cv_path_XSLTP+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   case $XSLTP in
7136   [\\/]* | ?:[\\/]*)
7137   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
7138   ;;
7139   *)
7140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $ensc_searchpath
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145   for ac_exec_ext in '' $ac_executable_extensions; do
7146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
7148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149     break 2
7150   fi
7151 done
7152 done
7153
7154   ;;
7155 esac
7156 fi
7157 XSLTP=$ac_cv_path_XSLTP
7158
7159 if test -n "$XSLTP"; then
7160   echo "$as_me:$LINENO: result: $XSLTP" >&5
7161 echo "${ECHO_T}$XSLTP" >&6
7162 else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166
7167   test -n "$XSLTP" && break
7168 done
7169 test -n "$XSLTP" || XSLTP="$ensc_dflt"
7170
7171
7172         if test -z "${XSLTP}" && $rq; then
7173                 if test -z ""; then
7174                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
7175 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7176    { (exit 1); exit 1; }; }
7177                 else
7178                         { { echo "$as_me:$LINENO: error:
7179 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7180 " >&5
7181 echo "$as_me: error:
7182 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7183 " >&2;}
7184    { (exit 1); exit 1; }; }
7185                 fi
7186         fi
7187
7188         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7189
7190         test "${XSLTP}"
7191
7192
7193
7194
7195         if test -z ":"; then
7196                 rq=true
7197         else
7198                 rq=false
7199         fi
7200
7201         if $rq; then
7202                 ensc_dflt=
7203         else
7204                 ensc_dflt=":"
7205         fi
7206
7207         for ac_prog in xsltproc
7208 do
7209   # Extract the first word of "$ac_prog", so it can be a program name with args.
7210 set dummy $ac_prog; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_path_XSLTPROC+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   case $XSLTPROC in
7217   [\\/]* | ?:[\\/]*)
7218   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7219   ;;
7220   *)
7221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $ensc_searchpath
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226   for ac_exec_ext in '' $ac_executable_extensions; do
7227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233 done
7234
7235   ;;
7236 esac
7237 fi
7238 XSLTPROC=$ac_cv_path_XSLTPROC
7239
7240 if test -n "$XSLTPROC"; then
7241   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7242 echo "${ECHO_T}$XSLTPROC" >&6
7243 else
7244   echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6
7246 fi
7247
7248   test -n "$XSLTPROC" && break
7249 done
7250 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7251
7252
7253         if test -z "${XSLTPROC}" && $rq; then
7254                 if test -z ""; then
7255                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7256 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7257    { (exit 1); exit 1; }; }
7258                 else
7259                         { { echo "$as_me:$LINENO: error:
7260 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7261 " >&5
7262 echo "$as_me: error:
7263 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7264 " >&2;}
7265    { (exit 1); exit 1; }; }
7266                 fi
7267         fi
7268
7269         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7270
7271         test "${XSLTPROC}"
7272
7273
7274
7275
7276 if test "$XSLTP"    != ':'; then
7277   HAVE_XSLTP_TRUE=
7278   HAVE_XSLTP_FALSE='#'
7279 else
7280   HAVE_XSLTP_TRUE='#'
7281   HAVE_XSLTP_FALSE=
7282 fi
7283
7284
7285
7286 if test "$XSLTPROC" != ':'; then
7287   HAVE_XSLTPROC_TRUE=
7288   HAVE_XSLTPROC_FALSE='#'
7289 else
7290   HAVE_XSLTPROC_TRUE='#'
7291   HAVE_XSLTPROC_FALSE=
7292 fi
7293
7294
7295
7296
7297
7298         warn_flags="-Werror -W"
7299         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7300 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7301         ac_ext=c
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306
7307         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7308         CFLAGS="$warn_flags"
7309         cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h.  */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h.  */
7315 inline static void f(){}
7316 int
7317 main ()
7318 {
7319
7320   ;
7321   return 0;
7322 }
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326   (eval $ac_compile) 2>conftest.er1
7327   ac_status=$?
7328   grep -v '^ *+' conftest.er1 >conftest.err
7329   rm -f conftest.er1
7330   cat conftest.err >&5
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } &&
7333          { ac_try='test -z "$ac_c_werror_flag"
7334                          || test ! -s conftest.err'
7335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336   (eval $ac_try) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }; } &&
7340          { ac_try='test -s conftest.$ac_objext'
7341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342   (eval $ac_try) 2>&5
7343   ac_status=$?
7344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); }; }; then
7346   ensc_sys_compilerwarnflags_C=${warn_flags}
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ensc_sys_compilerwarnflags_C=
7352 fi
7353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354         ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7361
7362         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
7363                 echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6
7365         else
7366                 echo "$as_me:$LINENO: result: yes" >&5
7367 echo "${ECHO_T}yes" >&6
7368         fi
7369
7370
7371
7372
7373
7374 echo 'void f(){}' > conftest.c
7375   for i in -std=c99 -Wall -pedantic -W
7376   do
7377     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7378 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7379     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7380     then
7381       CFLAGS="${CFLAGS} $i"
7382       echo "$as_me:$LINENO: result: yes" >&5
7383 echo "${ECHO_T}yes" >&6
7384     else
7385       echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7387     fi
7388   done
7389   rm -f conftest.c conftest.o
7390
7391
7392
7393         warn_flags="-Werror -W"
7394         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
7395 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
7396         ac_ext=cc
7397 ac_cpp='$CXXCPP $CPPFLAGS'
7398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7401
7402         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
7403         CXXFLAGS="$warn_flags"
7404         cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h.  */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h.  */
7410 inline static void f(){}
7411 int
7412 main ()
7413 {
7414
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421   (eval $ac_compile) 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } &&
7428          { ac_try='test -z "$ac_cxx_werror_flag"
7429                          || test ! -s conftest.err'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; } &&
7435          { ac_try='test -s conftest.$ac_objext'
7436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437   (eval $ac_try) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   ensc_sys_compilerwarnflags_CXX=${warn_flags}
7442 else
7443   echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7445
7446 ensc_sys_compilerwarnflags_CXX=
7447 fi
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449         ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7456
7457         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
7458                 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7460         else
7461                 echo "$as_me:$LINENO: result: yes" >&5
7462 echo "${ECHO_T}yes" >&6
7463         fi
7464
7465
7466
7467
7468
7469   echo 'void f(){}' > conftest.cc
7470   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
7471   do
7472     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7473 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7474     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7475     then
7476       CXXFLAGS="${CXXFLAGS} $i"
7477       echo "$as_me:$LINENO: result: yes" >&5
7478 echo "${ECHO_T}yes" >&6
7479     else
7480       echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6
7482     fi
7483   done
7484   rm -f conftest.cc conftest.o
7485
7486
7487 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
7488 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
7489 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
7490 if test "${enable_extra_optimizations+set}" = set; then
7491   enableval="$enable_extra_optimizations"
7492   case "$enableval" in
7493                   (yes) use_extra_optimizations=1;;
7494                   (no)  use_extra_optimizations=;;
7495                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
7496 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
7497    { (exit 1); exit 1; }; };;
7498                esac
7499 else
7500   use_extra_optimizations=1
7501 fi;
7502
7503 if test x"$use_extra_optimizations" = x; then
7504         echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506 else
7507         echo "$as_me:$LINENO: result: yes" >&5
7508 echo "${ECHO_T}yes" >&6
7509
7510
7511
7512 echo 'void f(){}' > conftest.c
7513   for i in -funit-at-a-time
7514   do
7515     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7516 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7517     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7518     then
7519       CFLAGS="${CFLAGS} $i"
7520       echo "$as_me:$LINENO: result: yes" >&5
7521 echo "${ECHO_T}yes" >&6
7522     else
7523       echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6
7525     fi
7526   done
7527   rm -f conftest.c conftest.o
7528
7529
7530
7531
7532   echo 'void f(){}' > conftest.cc
7533   for i in -funit-at-a-time
7534   do
7535     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7536 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7537     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7538     then
7539       CXXFLAGS="${CXXFLAGS} $i"
7540       echo "$as_me:$LINENO: result: yes" >&5
7541 echo "${ECHO_T}yes" >&6
7542     else
7543       echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6
7545     fi
7546   done
7547   rm -f conftest.cc conftest.o
7548
7549 fi
7550
7551 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
7552 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
7553 # Check whether --enable-lib-debug or --disable-lib-debug was given.
7554 if test "${enable_lib_debug+set}" = set; then
7555   enableval="$enable_lib_debug"
7556   case "$enableval" in
7557                   (yes) use_lib_debug=1;;
7558                   (no)  use_lib_debug=;;
7559                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
7560 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
7561    { (exit 1); exit 1; }; };;
7562                esac
7563 else
7564    use_lib_debug=
7565 fi;
7566
7567 if test x"$use_lib_debug" = x; then
7568         LIB_DEBUG_CPPFLAGS=-DNDEBUG
7569
7570         echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6
7572 else
7573
7574         echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7576 fi
7577
7578 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
7579 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
7580 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
7581 if test "${enable_expensive_tests+set}" = set; then
7582   enableval="$enable_expensive_tests"
7583   case "$enableval" in
7584                  (yes|no)  use_expensive_tests=$enableval;;
7585                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-expensive-tests'" >&5
7586 echo "$as_me: error: '$enableval' is not a valid value for '--disable-expensive-tests'" >&2;}
7587    { (exit 1); exit 1; }; };;
7588                esac
7589 else
7590    use_expensive_tests=yes
7591 fi;
7592 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
7593 echo "${ECHO_T}$use_expensive_tests" >&6
7594
7595 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
7596
7597
7598
7599
7600         echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
7601 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
7602         echo "$as_me:$LINENO: result: " >&5
7603 echo "${ECHO_T}" >&6
7604
7605         ac_ext=c
7606 ac_cpp='$CPP $CPPFLAGS'
7607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610
7611         echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
7612 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
7613 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h.  */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h.  */
7622
7623 #include <linux/personality.h>
7624
7625
7626 int
7627 main ()
7628 {
7629 #ifndef MMAP_PAGE_ZERO
7630   char *p = (char *) MMAP_PAGE_ZERO;
7631 #endif
7632
7633   ;
7634   return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639   (eval $ac_compile) 2>conftest.er1
7640   ac_status=$?
7641   grep -v '^ *+' conftest.er1 >conftest.err
7642   rm -f conftest.er1
7643   cat conftest.err >&5
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } &&
7646          { ac_try='test -z "$ac_c_werror_flag"
7647                          || test ! -s conftest.err'
7648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649   (eval $ac_try) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }; } &&
7653          { ac_try='test -s conftest.$ac_objext'
7654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655   (eval $ac_try) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; }; then
7659   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
7660 else
7661   echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_cv_have_decl_MMAP_PAGE_ZERO=no
7665 fi
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
7669 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
7670 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
7671
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_DECL_MMAP_PAGE_ZERO 1
7674 _ACEOF
7675
7676
7677 else
7678   cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DECL_MMAP_PAGE_ZERO 0
7680 _ACEOF
7681
7682
7683 fi
7684 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
7685 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
7686 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h.  */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h.  */
7695
7696 #include <linux/personality.h>
7697
7698
7699 int
7700 main ()
7701 {
7702 #ifndef ADDR_LIMIT_32BIT
7703   char *p = (char *) ADDR_LIMIT_32BIT;
7704 #endif
7705
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712   (eval $ac_compile) 2>conftest.er1
7713   ac_status=$?
7714   grep -v '^ *+' conftest.er1 >conftest.err
7715   rm -f conftest.er1
7716   cat conftest.err >&5
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); } &&
7719          { ac_try='test -z "$ac_c_werror_flag"
7720                          || test ! -s conftest.err'
7721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722   (eval $ac_try) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); }; } &&
7726          { ac_try='test -s conftest.$ac_objext'
7727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728   (eval $ac_try) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; }; then
7732   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
7733 else
7734   echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
7738 fi
7739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
7742 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
7743 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
7744
7745 cat >>confdefs.h <<_ACEOF
7746 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
7747 _ACEOF
7748
7749
7750 else
7751   cat >>confdefs.h <<_ACEOF
7752 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
7753 _ACEOF
7754
7755
7756 fi
7757 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
7758 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
7759 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762   cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h.  */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h.  */
7768
7769 #include <linux/personality.h>
7770
7771
7772 int
7773 main ()
7774 {
7775 #ifndef SHORT_INODE
7776   char *p = (char *) SHORT_INODE;
7777 #endif
7778
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785   (eval $ac_compile) 2>conftest.er1
7786   ac_status=$?
7787   grep -v '^ *+' conftest.er1 >conftest.err
7788   rm -f conftest.er1
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } &&
7792          { ac_try='test -z "$ac_c_werror_flag"
7793                          || test ! -s conftest.err'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; } &&
7799          { ac_try='test -s conftest.$ac_objext'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; }; then
7805   ac_cv_have_decl_SHORT_INODE=yes
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 ac_cv_have_decl_SHORT_INODE=no
7811 fi
7812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
7815 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
7816 if test $ac_cv_have_decl_SHORT_INODE = yes; then
7817
7818 cat >>confdefs.h <<_ACEOF
7819 #define HAVE_DECL_SHORT_INODE 1
7820 _ACEOF
7821
7822
7823 else
7824   cat >>confdefs.h <<_ACEOF
7825 #define HAVE_DECL_SHORT_INODE 0
7826 _ACEOF
7827
7828
7829 fi
7830 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
7831 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
7832 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h.  */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h.  */
7841
7842 #include <linux/personality.h>
7843
7844
7845 int
7846 main ()
7847 {
7848 #ifndef WHOLE_SECONDS
7849   char *p = (char *) WHOLE_SECONDS;
7850 #endif
7851
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858   (eval $ac_compile) 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -z "$ac_c_werror_flag"
7866                          || test ! -s conftest.err'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; } &&
7872          { ac_try='test -s conftest.$ac_objext'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   ac_cv_have_decl_WHOLE_SECONDS=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 ac_cv_have_decl_WHOLE_SECONDS=no
7884 fi
7885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7886 fi
7887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
7888 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
7889 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
7890
7891 cat >>confdefs.h <<_ACEOF
7892 #define HAVE_DECL_WHOLE_SECONDS 1
7893 _ACEOF
7894
7895
7896 else
7897   cat >>confdefs.h <<_ACEOF
7898 #define HAVE_DECL_WHOLE_SECONDS 0
7899 _ACEOF
7900
7901
7902 fi
7903 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
7904 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
7905 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914
7915 #include <linux/personality.h>
7916
7917
7918 int
7919 main ()
7920 {
7921 #ifndef STICKY_TIMEOUTS
7922   char *p = (char *) STICKY_TIMEOUTS;
7923 #endif
7924
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7931   (eval $ac_compile) 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -z "$ac_c_werror_flag"
7939                          || test ! -s conftest.err'
7940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941   (eval $ac_try) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); }; } &&
7945          { ac_try='test -s conftest.$ac_objext'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   ac_cv_have_decl_STICKY_TIMEOUTS=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 ac_cv_have_decl_STICKY_TIMEOUTS=no
7957 fi
7958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7959 fi
7960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
7961 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
7962 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
7963
7964 cat >>confdefs.h <<_ACEOF
7965 #define HAVE_DECL_STICKY_TIMEOUTS 1
7966 _ACEOF
7967
7968
7969 else
7970   cat >>confdefs.h <<_ACEOF
7971 #define HAVE_DECL_STICKY_TIMEOUTS 0
7972 _ACEOF
7973
7974
7975 fi
7976 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
7977 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
7978 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987
7988 #include <linux/personality.h>
7989
7990
7991 int
7992 main ()
7993 {
7994 #ifndef ADDR_LIMIT_3GB
7995   char *p = (char *) ADDR_LIMIT_3GB;
7996 #endif
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004   (eval $ac_compile) 2>conftest.er1
8005   ac_status=$?
8006   grep -v '^ *+' conftest.er1 >conftest.err
8007   rm -f conftest.er1
8008   cat conftest.err >&5
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); } &&
8011          { ac_try='test -z "$ac_c_werror_flag"
8012                          || test ! -s conftest.err'
8013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; } &&
8018          { ac_try='test -s conftest.$ac_objext'
8019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020   (eval $ac_try) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; }; then
8024   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029 ac_cv_have_decl_ADDR_LIMIT_3GB=no
8030 fi
8031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8032 fi
8033 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
8034 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
8035 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
8036
8037 cat >>confdefs.h <<_ACEOF
8038 #define HAVE_DECL_ADDR_LIMIT_3GB 1
8039 _ACEOF
8040
8041
8042 else
8043   cat >>confdefs.h <<_ACEOF
8044 #define HAVE_DECL_ADDR_LIMIT_3GB 0
8045 _ACEOF
8046
8047
8048 fi
8049
8050
8051
8052         echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
8053 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
8054 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057   cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063
8064 #include <linux/personality.h>
8065
8066
8067 int
8068 main ()
8069 {
8070 #ifndef PER_LINUX
8071   char *p = (char *) PER_LINUX;
8072 #endif
8073
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080   (eval $ac_compile) 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } &&
8087          { ac_try='test -z "$ac_c_werror_flag"
8088                          || test ! -s conftest.err'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; } &&
8094          { ac_try='test -s conftest.$ac_objext'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; }; then
8100   ac_cv_have_decl_PER_LINUX=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ac_cv_have_decl_PER_LINUX=no
8106 fi
8107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
8110 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
8111 if test $ac_cv_have_decl_PER_LINUX = yes; then
8112
8113 cat >>confdefs.h <<_ACEOF
8114 #define HAVE_DECL_PER_LINUX 1
8115 _ACEOF
8116
8117
8118 else
8119   cat >>confdefs.h <<_ACEOF
8120 #define HAVE_DECL_PER_LINUX 0
8121 _ACEOF
8122
8123
8124 fi
8125 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
8126 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
8127 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136
8137 #include <linux/personality.h>
8138
8139
8140 int
8141 main ()
8142 {
8143 #ifndef PER_LINUX_32BIT
8144   char *p = (char *) PER_LINUX_32BIT;
8145 #endif
8146
8147   ;
8148   return 0;
8149 }
8150 _ACEOF
8151 rm -f conftest.$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153   (eval $ac_compile) 2>conftest.er1
8154   ac_status=$?
8155   grep -v '^ *+' conftest.er1 >conftest.err
8156   rm -f conftest.er1
8157   cat conftest.err >&5
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -z "$ac_c_werror_flag"
8161                          || test ! -s conftest.err'
8162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163   (eval $ac_try) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; } &&
8167          { ac_try='test -s conftest.$ac_objext'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   ac_cv_have_decl_PER_LINUX_32BIT=yes
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 ac_cv_have_decl_PER_LINUX_32BIT=no
8179 fi
8180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
8183 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
8184 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8185
8186 cat >>confdefs.h <<_ACEOF
8187 #define HAVE_DECL_PER_LINUX_32BIT 1
8188 _ACEOF
8189
8190
8191 else
8192   cat >>confdefs.h <<_ACEOF
8193 #define HAVE_DECL_PER_LINUX_32BIT 0
8194 _ACEOF
8195
8196
8197 fi
8198 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8199 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8200 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203   cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h.  */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h.  */
8209
8210 #include <linux/personality.h>
8211
8212
8213 int
8214 main ()
8215 {
8216 #ifndef PER_SVR4
8217   char *p = (char *) PER_SVR4;
8218 #endif
8219
8220   ;
8221   return 0;
8222 }
8223 _ACEOF
8224 rm -f conftest.$ac_objext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226   (eval $ac_compile) 2>conftest.er1
8227   ac_status=$?
8228   grep -v '^ *+' conftest.er1 >conftest.err
8229   rm -f conftest.er1
8230   cat conftest.err >&5
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); } &&
8233          { ac_try='test -z "$ac_c_werror_flag"
8234                          || test ! -s conftest.err'
8235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; } &&
8240          { ac_try='test -s conftest.$ac_objext'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; }; then
8246   ac_cv_have_decl_PER_SVR4=yes
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 ac_cv_have_decl_PER_SVR4=no
8252 fi
8253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8254 fi
8255 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8256 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8257 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8258
8259 cat >>confdefs.h <<_ACEOF
8260 #define HAVE_DECL_PER_SVR4 1
8261 _ACEOF
8262
8263
8264 else
8265   cat >>confdefs.h <<_ACEOF
8266 #define HAVE_DECL_PER_SVR4 0
8267 _ACEOF
8268
8269
8270 fi
8271 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8272 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8273 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8274   echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276   cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282
8283 #include <linux/personality.h>
8284
8285
8286 int
8287 main ()
8288 {
8289 #ifndef PER_SVR3
8290   char *p = (char *) PER_SVR3;
8291 #endif
8292
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299   (eval $ac_compile) 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } &&
8306          { ac_try='test -z "$ac_c_werror_flag"
8307                          || test ! -s conftest.err'
8308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309   (eval $ac_try) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; } &&
8313          { ac_try='test -s conftest.$ac_objext'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   ac_cv_have_decl_PER_SVR3=yes
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_cv_have_decl_PER_SVR3=no
8325 fi
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8329 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8330 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8331
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL_PER_SVR3 1
8334 _ACEOF
8335
8336
8337 else
8338   cat >>confdefs.h <<_ACEOF
8339 #define HAVE_DECL_PER_SVR3 0
8340 _ACEOF
8341
8342
8343 fi
8344 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
8345 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
8346 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 #include <linux/personality.h>
8357
8358
8359 int
8360 main ()
8361 {
8362 #ifndef PER_SCOSVR3
8363   char *p = (char *) PER_SCOSVR3;
8364 #endif
8365
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372   (eval $ac_compile) 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } &&
8379          { ac_try='test -z "$ac_c_werror_flag"
8380                          || test ! -s conftest.err'
8381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382   (eval $ac_try) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; } &&
8386          { ac_try='test -s conftest.$ac_objext'
8387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388   (eval $ac_try) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; }; then
8392   ac_cv_have_decl_PER_SCOSVR3=yes
8393 else
8394   echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 ac_cv_have_decl_PER_SCOSVR3=no
8398 fi
8399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
8402 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
8403 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
8404
8405 cat >>confdefs.h <<_ACEOF
8406 #define HAVE_DECL_PER_SCOSVR3 1
8407 _ACEOF
8408
8409
8410 else
8411   cat >>confdefs.h <<_ACEOF
8412 #define HAVE_DECL_PER_SCOSVR3 0
8413 _ACEOF
8414
8415
8416 fi
8417 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
8418 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
8419 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428
8429 #include <linux/personality.h>
8430
8431
8432 int
8433 main ()
8434 {
8435 #ifndef PER_OSR5
8436   char *p = (char *) PER_OSR5;
8437 #endif
8438
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445   (eval $ac_compile) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag"
8453                          || test ! -s conftest.err'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; } &&
8459          { ac_try='test -s conftest.$ac_objext'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   ac_cv_have_decl_PER_OSR5=yes
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 ac_cv_have_decl_PER_OSR5=no
8471 fi
8472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8473 fi
8474 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
8475 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
8476 if test $ac_cv_have_decl_PER_OSR5 = yes; then
8477
8478 cat >>confdefs.h <<_ACEOF
8479 #define HAVE_DECL_PER_OSR5 1
8480 _ACEOF
8481
8482
8483 else
8484   cat >>confdefs.h <<_ACEOF
8485 #define HAVE_DECL_PER_OSR5 0
8486 _ACEOF
8487
8488
8489 fi
8490 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
8491 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
8492 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 #include <linux/personality.h>
8503
8504
8505 int
8506 main ()
8507 {
8508 #ifndef PER_WYSEV386
8509   char *p = (char *) PER_WYSEV386;
8510 #endif
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518   (eval $ac_compile) 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag"
8526                          || test ! -s conftest.err'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; } &&
8532          { ac_try='test -s conftest.$ac_objext'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; }; then
8538   ac_cv_have_decl_PER_WYSEV386=yes
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543 ac_cv_have_decl_PER_WYSEV386=no
8544 fi
8545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
8548 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
8549 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
8550
8551 cat >>confdefs.h <<_ACEOF
8552 #define HAVE_DECL_PER_WYSEV386 1
8553 _ACEOF
8554
8555
8556 else
8557   cat >>confdefs.h <<_ACEOF
8558 #define HAVE_DECL_PER_WYSEV386 0
8559 _ACEOF
8560
8561
8562 fi
8563 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
8564 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
8565 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568   cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h.  */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h.  */
8574
8575 #include <linux/personality.h>
8576
8577
8578 int
8579 main ()
8580 {
8581 #ifndef PER_ISCR4
8582   char *p = (char *) PER_ISCR4;
8583 #endif
8584
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591   (eval $ac_compile) 2>conftest.er1
8592   ac_status=$?
8593   grep -v '^ *+' conftest.er1 >conftest.err
8594   rm -f conftest.er1
8595   cat conftest.err >&5
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } &&
8598          { ac_try='test -z "$ac_c_werror_flag"
8599                          || test ! -s conftest.err'
8600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601   (eval $ac_try) 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; } &&
8605          { ac_try='test -s conftest.$ac_objext'
8606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607   (eval $ac_try) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; }; then
8611   ac_cv_have_decl_PER_ISCR4=yes
8612 else
8613   echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8615
8616 ac_cv_have_decl_PER_ISCR4=no
8617 fi
8618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
8621 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
8622 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
8623
8624 cat >>confdefs.h <<_ACEOF
8625 #define HAVE_DECL_PER_ISCR4 1
8626 _ACEOF
8627
8628
8629 else
8630   cat >>confdefs.h <<_ACEOF
8631 #define HAVE_DECL_PER_ISCR4 0
8632 _ACEOF
8633
8634
8635 fi
8636 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
8637 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
8638 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647
8648 #include <linux/personality.h>
8649
8650
8651 int
8652 main ()
8653 {
8654 #ifndef PER_BSD
8655   char *p = (char *) PER_BSD;
8656 #endif
8657
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664   (eval $ac_compile) 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -z "$ac_c_werror_flag"
8672                          || test ! -s conftest.err'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; } &&
8678          { ac_try='test -s conftest.$ac_objext'
8679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680   (eval $ac_try) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; }; then
8684   ac_cv_have_decl_PER_BSD=yes
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 ac_cv_have_decl_PER_BSD=no
8690 fi
8691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8692 fi
8693 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
8694 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
8695 if test $ac_cv_have_decl_PER_BSD = yes; then
8696
8697 cat >>confdefs.h <<_ACEOF
8698 #define HAVE_DECL_PER_BSD 1
8699 _ACEOF
8700
8701
8702 else
8703   cat >>confdefs.h <<_ACEOF
8704 #define HAVE_DECL_PER_BSD 0
8705 _ACEOF
8706
8707
8708 fi
8709 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
8710 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
8711 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720
8721 #include <linux/personality.h>
8722
8723
8724 int
8725 main ()
8726 {
8727 #ifndef PER_SUNOS
8728   char *p = (char *) PER_SUNOS;
8729 #endif
8730
8731   ;
8732   return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8737   (eval $ac_compile) 2>conftest.er1
8738   ac_status=$?
8739   grep -v '^ *+' conftest.er1 >conftest.err
8740   rm -f conftest.er1
8741   cat conftest.err >&5
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); } &&
8744          { ac_try='test -z "$ac_c_werror_flag"
8745                          || test ! -s conftest.err'
8746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747   (eval $ac_try) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); }; } &&
8751          { ac_try='test -s conftest.$ac_objext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   ac_cv_have_decl_PER_SUNOS=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 ac_cv_have_decl_PER_SUNOS=no
8763 fi
8764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
8767 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
8768 if test $ac_cv_have_decl_PER_SUNOS = yes; then
8769
8770 cat >>confdefs.h <<_ACEOF
8771 #define HAVE_DECL_PER_SUNOS 1
8772 _ACEOF
8773
8774
8775 else
8776   cat >>confdefs.h <<_ACEOF
8777 #define HAVE_DECL_PER_SUNOS 0
8778 _ACEOF
8779
8780
8781 fi
8782 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
8783 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
8784 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h.  */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h.  */
8793
8794 #include <linux/personality.h>
8795
8796
8797 int
8798 main ()
8799 {
8800 #ifndef PER_XENIX
8801   char *p = (char *) PER_XENIX;
8802 #endif
8803
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810   (eval $ac_compile) 2>conftest.er1
8811   ac_status=$?
8812   grep -v '^ *+' conftest.er1 >conftest.err
8813   rm -f conftest.er1
8814   cat conftest.err >&5
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } &&
8817          { ac_try='test -z "$ac_c_werror_flag"
8818                          || test ! -s conftest.err'
8819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820   (eval $ac_try) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; } &&
8824          { ac_try='test -s conftest.$ac_objext'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_have_decl_PER_XENIX=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 ac_cv_have_decl_PER_XENIX=no
8836 fi
8837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8838 fi
8839 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
8840 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
8841 if test $ac_cv_have_decl_PER_XENIX = yes; then
8842
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_DECL_PER_XENIX 1
8845 _ACEOF
8846
8847
8848 else
8849   cat >>confdefs.h <<_ACEOF
8850 #define HAVE_DECL_PER_XENIX 0
8851 _ACEOF
8852
8853
8854 fi
8855 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
8856 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
8857 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
8858   echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860   cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866
8867 #include <linux/personality.h>
8868
8869
8870 int
8871 main ()
8872 {
8873 #ifndef PER_LINUX32
8874   char *p = (char *) PER_LINUX32;
8875 #endif
8876
8877   ;
8878   return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883   (eval $ac_compile) 2>conftest.er1
8884   ac_status=$?
8885   grep -v '^ *+' conftest.er1 >conftest.err
8886   rm -f conftest.er1
8887   cat conftest.err >&5
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } &&
8890          { ac_try='test -z "$ac_c_werror_flag"
8891                          || test ! -s conftest.err'
8892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893   (eval $ac_try) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; } &&
8897          { ac_try='test -s conftest.$ac_objext'
8898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899   (eval $ac_try) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   ac_cv_have_decl_PER_LINUX32=yes
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 ac_cv_have_decl_PER_LINUX32=no
8909 fi
8910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
8913 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
8914 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define HAVE_DECL_PER_LINUX32 1
8918 _ACEOF
8919
8920
8921 else
8922   cat >>confdefs.h <<_ACEOF
8923 #define HAVE_DECL_PER_LINUX32 0
8924 _ACEOF
8925
8926
8927 fi
8928 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
8929 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
8930 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939
8940 #include <linux/personality.h>
8941
8942
8943 int
8944 main ()
8945 {
8946 #ifndef PER_LINUX32_3GB
8947   char *p = (char *) PER_LINUX32_3GB;
8948 #endif
8949
8950   ;
8951   return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956   (eval $ac_compile) 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } &&
8963          { ac_try='test -z "$ac_c_werror_flag"
8964                          || test ! -s conftest.err'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; } &&
8970          { ac_try='test -s conftest.$ac_objext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_cv_have_decl_PER_LINUX32_3GB=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_have_decl_PER_LINUX32_3GB=no
8982 fi
8983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8984 fi
8985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
8986 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
8987 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
8988
8989 cat >>confdefs.h <<_ACEOF
8990 #define HAVE_DECL_PER_LINUX32_3GB 1
8991 _ACEOF
8992
8993
8994 else
8995   cat >>confdefs.h <<_ACEOF
8996 #define HAVE_DECL_PER_LINUX32_3GB 0
8997 _ACEOF
8998
8999
9000 fi
9001 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
9002 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
9003 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012
9013 #include <linux/personality.h>
9014
9015
9016 int
9017 main ()
9018 {
9019 #ifndef PER_IRIX32
9020   char *p = (char *) PER_IRIX32;
9021 #endif
9022
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029   (eval $ac_compile) 2>conftest.er1
9030   ac_status=$?
9031   grep -v '^ *+' conftest.er1 >conftest.err
9032   rm -f conftest.er1
9033   cat conftest.err >&5
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } &&
9036          { ac_try='test -z "$ac_c_werror_flag"
9037                          || test ! -s conftest.err'
9038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039   (eval $ac_try) 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; } &&
9043          { ac_try='test -s conftest.$ac_objext'
9044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045   (eval $ac_try) 2>&5
9046   ac_status=$?
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); }; }; then
9049   ac_cv_have_decl_PER_IRIX32=yes
9050 else
9051   echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_cv_have_decl_PER_IRIX32=no
9055 fi
9056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9057 fi
9058 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
9059 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
9060 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
9061
9062 cat >>confdefs.h <<_ACEOF
9063 #define HAVE_DECL_PER_IRIX32 1
9064 _ACEOF
9065
9066
9067 else
9068   cat >>confdefs.h <<_ACEOF
9069 #define HAVE_DECL_PER_IRIX32 0
9070 _ACEOF
9071
9072
9073 fi
9074 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
9075 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
9076 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079   cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085
9086 #include <linux/personality.h>
9087
9088
9089 int
9090 main ()
9091 {
9092 #ifndef PER_IRIXN32
9093   char *p = (char *) PER_IRIXN32;
9094 #endif
9095
9096   ;
9097   return 0;
9098 }
9099 _ACEOF
9100 rm -f conftest.$ac_objext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9102   (eval $ac_compile) 2>conftest.er1
9103   ac_status=$?
9104   grep -v '^ *+' conftest.er1 >conftest.err
9105   rm -f conftest.er1
9106   cat conftest.err >&5
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } &&
9109          { ac_try='test -z "$ac_c_werror_flag"
9110                          || test ! -s conftest.err'
9111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112   (eval $ac_try) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); }; } &&
9116          { ac_try='test -s conftest.$ac_objext'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_cv_have_decl_PER_IRIXN32=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_cv_have_decl_PER_IRIXN32=no
9128 fi
9129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
9132 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
9133 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define HAVE_DECL_PER_IRIXN32 1
9137 _ACEOF
9138
9139
9140 else
9141   cat >>confdefs.h <<_ACEOF
9142 #define HAVE_DECL_PER_IRIXN32 0
9143 _ACEOF
9144
9145
9146 fi
9147 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
9148 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
9149 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152   cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158
9159 #include <linux/personality.h>
9160
9161
9162 int
9163 main ()
9164 {
9165 #ifndef PER_IRIX64
9166   char *p = (char *) PER_IRIX64;
9167 #endif
9168
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9175   (eval $ac_compile) 2>conftest.er1
9176   ac_status=$?
9177   grep -v '^ *+' conftest.er1 >conftest.err
9178   rm -f conftest.er1
9179   cat conftest.err >&5
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); } &&
9182          { ac_try='test -z "$ac_c_werror_flag"
9183                          || test ! -s conftest.err'
9184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185   (eval $ac_try) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; } &&
9189          { ac_try='test -s conftest.$ac_objext'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; }; then
9195   ac_cv_have_decl_PER_IRIX64=yes
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200 ac_cv_have_decl_PER_IRIX64=no
9201 fi
9202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9203 fi
9204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9205 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9206 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9207
9208 cat >>confdefs.h <<_ACEOF
9209 #define HAVE_DECL_PER_IRIX64 1
9210 _ACEOF
9211
9212
9213 else
9214   cat >>confdefs.h <<_ACEOF
9215 #define HAVE_DECL_PER_IRIX64 0
9216 _ACEOF
9217
9218
9219 fi
9220 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9221 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9222 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231
9232 #include <linux/personality.h>
9233
9234
9235 int
9236 main ()
9237 {
9238 #ifndef PER_RISCOS
9239   char *p = (char *) PER_RISCOS;
9240 #endif
9241
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9248   (eval $ac_compile) 2>conftest.er1
9249   ac_status=$?
9250   grep -v '^ *+' conftest.er1 >conftest.err
9251   rm -f conftest.er1
9252   cat conftest.err >&5
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -z "$ac_c_werror_flag"
9256                          || test ! -s conftest.err'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; } &&
9262          { ac_try='test -s conftest.$ac_objext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   ac_cv_have_decl_PER_RISCOS=yes
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 ac_cv_have_decl_PER_RISCOS=no
9274 fi
9275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9278 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9279 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9280
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_DECL_PER_RISCOS 1
9283 _ACEOF
9284
9285
9286 else
9287   cat >>confdefs.h <<_ACEOF
9288 #define HAVE_DECL_PER_RISCOS 0
9289 _ACEOF
9290
9291
9292 fi
9293 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9294 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9295 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304
9305 #include <linux/personality.h>
9306
9307
9308 int
9309 main ()
9310 {
9311 #ifndef PER_SOLARIS
9312   char *p = (char *) PER_SOLARIS;
9313 #endif
9314
9315   ;
9316   return 0;
9317 }
9318 _ACEOF
9319 rm -f conftest.$ac_objext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9321   (eval $ac_compile) 2>conftest.er1
9322   ac_status=$?
9323   grep -v '^ *+' conftest.er1 >conftest.err
9324   rm -f conftest.er1
9325   cat conftest.err >&5
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); } &&
9328          { ac_try='test -z "$ac_c_werror_flag"
9329                          || test ! -s conftest.err'
9330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331   (eval $ac_try) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); }; } &&
9335          { ac_try='test -s conftest.$ac_objext'
9336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337   (eval $ac_try) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); }; }; then
9341   ac_cv_have_decl_PER_SOLARIS=yes
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 ac_cv_have_decl_PER_SOLARIS=no
9347 fi
9348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9349 fi
9350 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
9351 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
9352 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
9353
9354 cat >>confdefs.h <<_ACEOF
9355 #define HAVE_DECL_PER_SOLARIS 1
9356 _ACEOF
9357
9358
9359 else
9360   cat >>confdefs.h <<_ACEOF
9361 #define HAVE_DECL_PER_SOLARIS 0
9362 _ACEOF
9363
9364
9365 fi
9366 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
9367 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
9368 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h.  */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h.  */
9377
9378 #include <linux/personality.h>
9379
9380
9381 int
9382 main ()
9383 {
9384 #ifndef PER_UW7
9385   char *p = (char *) PER_UW7;
9386 #endif
9387
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -z "$ac_c_werror_flag"
9402                          || test ! -s conftest.err'
9403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404   (eval $ac_try) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; } &&
9408          { ac_try='test -s conftest.$ac_objext'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; }; then
9414   ac_cv_have_decl_PER_UW7=yes
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 ac_cv_have_decl_PER_UW7=no
9420 fi
9421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9422 fi
9423 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
9424 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
9425 if test $ac_cv_have_decl_PER_UW7 = yes; then
9426
9427 cat >>confdefs.h <<_ACEOF
9428 #define HAVE_DECL_PER_UW7 1
9429 _ACEOF
9430
9431
9432 else
9433   cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DECL_PER_UW7 0
9435 _ACEOF
9436
9437
9438 fi
9439 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
9440 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
9441 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450
9451 #include <linux/personality.h>
9452
9453
9454 int
9455 main ()
9456 {
9457 #ifndef PER_HPUX
9458   char *p = (char *) PER_HPUX;
9459 #endif
9460
9461   ;
9462   return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467   (eval $ac_compile) 2>conftest.er1
9468   ac_status=$?
9469   grep -v '^ *+' conftest.er1 >conftest.err
9470   rm -f conftest.er1
9471   cat conftest.err >&5
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); } &&
9474          { ac_try='test -z "$ac_c_werror_flag"
9475                          || test ! -s conftest.err'
9476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477   (eval $ac_try) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; } &&
9481          { ac_try='test -s conftest.$ac_objext'
9482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483   (eval $ac_try) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; }; then
9487   ac_cv_have_decl_PER_HPUX=yes
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 ac_cv_have_decl_PER_HPUX=no
9493 fi
9494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9495 fi
9496 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
9497 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
9498 if test $ac_cv_have_decl_PER_HPUX = yes; then
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define HAVE_DECL_PER_HPUX 1
9502 _ACEOF
9503
9504
9505 else
9506   cat >>confdefs.h <<_ACEOF
9507 #define HAVE_DECL_PER_HPUX 0
9508 _ACEOF
9509
9510
9511 fi
9512 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
9513 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
9514 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523
9524 #include <linux/personality.h>
9525
9526
9527 int
9528 main ()
9529 {
9530 #ifndef PER_OSF4
9531   char *p = (char *) PER_OSF4;
9532 #endif
9533
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9540   (eval $ac_compile) 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } &&
9547          { ac_try='test -z "$ac_c_werror_flag"
9548                          || test ! -s conftest.err'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; } &&
9554          { ac_try='test -s conftest.$ac_objext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_cv_have_decl_PER_OSF4=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_have_decl_PER_OSF4=no
9566 fi
9567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9568 fi
9569 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
9570 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
9571 if test $ac_cv_have_decl_PER_OSF4 = yes; then
9572
9573 cat >>confdefs.h <<_ACEOF
9574 #define HAVE_DECL_PER_OSF4 1
9575 _ACEOF
9576
9577
9578 else
9579   cat >>confdefs.h <<_ACEOF
9580 #define HAVE_DECL_PER_OSF4 0
9581 _ACEOF
9582
9583
9584 fi
9585
9586
9587         ac_ext=c
9588 ac_cpp='$CPP $CPPFLAGS'
9589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9592
9593
9594
9595
9596
9597
9598         echo "$as_me:$LINENO: checking for initrddir" >&5
9599 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
9600
9601 # Check whether --with-initrddir or --without-initrddir was given.
9602 if test "${with_initrddir+set}" = set; then
9603   withval="$with_initrddir"
9604   case "$withval" in
9605                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
9606 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
9607    { (exit 1); exit 1; }; };;
9608                         *)      ensc_initrddir=$withval;;
9609                      esac
9610 else
9611   ensc_initrddir='$(sysconfdir)/init.d'
9612 fi;
9613
9614         if test "initrddir"; then
9615                 initrddir=$ensc_initrddir
9616
9617         fi
9618
9619         echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
9620 echo "${ECHO_T}$ensc_initrddir" >&6
9621
9622
9623         echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
9624 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
9625         # Check whether --enable-release or --disable-release was given.
9626 if test "${enable_release+set}" = set; then
9627   enableval="$enable_release"
9628   case "$enableval" in
9629                           yes)  ensc_release_mode=yes;;
9630                           no)   ensc_release_mode=no;;
9631                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
9632 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
9633    { (exit 1); exit 1; }; };;
9634                        esac
9635 else
9636    ensc_release_mode=no
9637 fi;
9638
9639         if test x"$ensc_release_mode" = xno; then
9640                 RELEASE_CPPFLAGS=
9641         else
9642                 RELEASE_CPPFLAGS='-DNDEBUG'
9643         fi
9644
9645
9646         echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
9647 echo "${ECHO_T}$ensc_release_mode" >&6
9648
9649
9650
9651 case $host_cpu in
9652         (i*86|athlon)   min_diet_ver=0.25;;
9653         (ia64|hppa*)    min_diet_ver=0.29;;
9654         (*)             min_diet_ver=0.28;;
9655 esac
9656
9657
9658         echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
9659 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
9660
9661
9662
9663
9664         : ${DIET:=diet}
9665         : ${DIETFLAGS=-Os}
9666
9667         # Check whether --enable-dietlibc or --disable-dietlibc was given.
9668 if test "${enable_dietlibc+set}" = set; then
9669   enableval="$enable_dietlibc"
9670   case "$enableval" in
9671                           (yes) use_dietlibc=forced;;
9672                           (no)  use_dietlibc=forced_no;;
9673                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
9674 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
9675    { (exit 1); exit 1; }; };;
9676                        esac
9677 else
9678   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
9679 fi;
9680
9681         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
9682             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
9683             _dietlibc_ver=${_dietlibc_ver##*diet version }
9684             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
9685             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
9686             _dietlibc_ver_min=${_dietlibc_ver##*.}
9687             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
9688             _dietlibc_cmp="$min_diet_ver"
9689             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
9690             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
9691
9692             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
9693
9694             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
9695             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
9696
9697             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
9698         else
9699             ENSC_VERSION_DIETLIBC=
9700             _dietlibc_ver=-1
9701         fi
9702
9703         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
9704         ensc_have_dietlibc=no
9705
9706         case x"$use_dietlibc" in
9707             xdetected)
9708
9709
9710 if true; then
9711   USE_DIETLIBC_TRUE=
9712   USE_DIETLIBC_FALSE='#'
9713 else
9714   USE_DIETLIBC_TRUE='#'
9715   USE_DIETLIBC_FALSE=
9716 fi
9717
9718                 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
9719 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
9720                 ensc_have_dietlibc=yes
9721                 ;;
9722             xforced)
9723
9724
9725 if true; then
9726   USE_DIETLIBC_TRUE=
9727   USE_DIETLIBC_FALSE='#'
9728 else
9729   USE_DIETLIBC_TRUE='#'
9730   USE_DIETLIBC_FALSE=
9731 fi
9732
9733                 echo "$as_me:$LINENO: result: yes (forced)" >&5
9734 echo "${ECHO_T}yes (forced)" >&6
9735                 ensc_have_dietlibc=yes
9736                 ;;
9737             xdetected_no)
9738
9739
9740 if false; then
9741   USE_DIETLIBC_TRUE=
9742   USE_DIETLIBC_FALSE='#'
9743 else
9744   USE_DIETLIBC_TRUE='#'
9745   USE_DIETLIBC_FALSE=
9746 fi
9747
9748                 echo "$as_me:$LINENO: result: no (detected)" >&5
9749 echo "${ECHO_T}no (detected)" >&6
9750                 ;;
9751             xdetected_old)
9752
9753
9754 if false; then
9755   USE_DIETLIBC_TRUE=
9756   USE_DIETLIBC_FALSE='#'
9757 else
9758   USE_DIETLIBC_TRUE='#'
9759   USE_DIETLIBC_FALSE=
9760 fi
9761
9762                 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
9763 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
9764                 ;;
9765             xforced_no)
9766
9767
9768 if false; then
9769   USE_DIETLIBC_TRUE=
9770   USE_DIETLIBC_FALSE='#'
9771 else
9772   USE_DIETLIBC_TRUE='#'
9773   USE_DIETLIBC_FALSE=
9774 fi
9775
9776                 echo "$as_me:$LINENO: result: no (forced)" >&5
9777 echo "${ECHO_T}no (forced)" >&6
9778                 ;;
9779             *)
9780                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
9781 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
9782    { (exit 1); exit 1; }; }
9783                 ;;
9784         esac
9785
9786         if test x"$ensc_have_dietlibc" != xno; then
9787
9788
9789
9790
9791         echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
9792 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
9793 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796
9797                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
9798                 _ensc_dietlibc_c99_old_CC=$CC
9799
9800                 CFLAGS="-std=c99"
9801                 CC="${DIET:-diet} $CC"
9802
9803                 ac_ext=c
9804 ac_cpp='$CPP $CPPFLAGS'
9805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9808
9809                 cat >conftest.$ac_ext <<_ACEOF
9810 /* */
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814   (eval $ac_compile) 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag"
9822                          || test ! -s conftest.err'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest.$ac_objext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834
9835                         cat >conftest.$ac_ext <<_ACEOF
9836
9837                                 #include <stdint.h>
9838                                 #include <sys/cdefs.h>
9839                                 #if defined(inline)
9840                                 #  error 'inline' badly defined
9841                                 #endif
9842                                 volatile uint64_t       a;
9843
9844 _ACEOF
9845 rm -f conftest.$ac_objext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9847   (eval $ac_compile) 2>conftest.er1
9848   ac_status=$?
9849   grep -v '^ *+' conftest.er1 >conftest.err
9850   rm -f conftest.er1
9851   cat conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } &&
9854          { ac_try='test -z "$ac_c_werror_flag"
9855                          || test ! -s conftest.err'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; } &&
9861          { ac_try='test -s conftest.$ac_objext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   ensc_cv_c_dietlibc_c99=yes
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 ensc_cv_c_dietlibc_c99=no
9873 fi
9874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9875 else
9876   echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
9880 fi
9881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882                 ac_ext=c
9883 ac_cpp='$CPP $CPPFLAGS'
9884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9887
9888
9889                 CC=$_ensc_dietlibc_c99_old_CC
9890                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
9891
9892 fi
9893 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
9894 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
9895
9896         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
9897                 cat >>confdefs.h <<\_ACEOF
9898 #define ENSC_DIETLIBC_C99 1
9899 _ACEOF
9900
9901         fi
9902
9903         fi
9904
9905
9906 if test x"$ensc_have_dietlibc" = xno; then
9907         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
9908 echo "$as_me: WARNING: ***                                                         ***" >&2;}
9909         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
9910 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
9911         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
9912 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
9913         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
9914 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
9915         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
9916 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
9917         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
9918 echo "$as_me: WARNING: ***                                                         ***" >&2;}
9919
9920
9921 if false; then
9922   USE_DIETLIBC_COMPAT_TRUE=
9923   USE_DIETLIBC_COMPAT_FALSE='#'
9924 else
9925   USE_DIETLIBC_COMPAT_TRUE='#'
9926   USE_DIETLIBC_COMPAT_FALSE=
9927 fi
9928
9929 else
9930         # HACK: libtool does not have cmdline options to build only
9931         # dynamic libraries; this can be done with the
9932         # '--disable-static' ./configure option only.  As our static
9933         # libraries will be build with dietlibc, we have to do set
9934         # this option which is evaluated by 'AC_PROG_LIBTOOL'
9935         # below.  Therefore, this macro must not be called earlier.
9936         enable_static=no
9937
9938
9939
9940
9941
9942         if test "$host_cpu" = x86_64 -a $ENSC_VERSION_DIETLIBC_NUM -le 0027; then
9943                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
9944 echo "$as_me: WARNING: ***                                                             ***" >&2;}
9945                 { echo "$as_me:$LINENO: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&5
9946 echo "$as_me: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&2;}
9947                 { echo "$as_me:$LINENO: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&5
9948 echo "$as_me: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&2;}
9949                 { echo "$as_me:$LINENO: WARNING: *** and lib/__nice.c added                                      ***" >&5
9950 echo "$as_me: WARNING: *** and lib/__nice.c added                                      ***" >&2;}
9951                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
9952 echo "$as_me: WARNING: ***                                                             ***" >&2;}
9953         fi
9954
9955
9956         echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
9957 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
9958         # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
9959 if test "${enable_alternative_syscalls+set}" = set; then
9960   enableval="$enable_alternative_syscalls"
9961   case $enableval in
9962                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
9963                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
9964 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
9965    { (exit 1); exit 1; }; };;
9966                        esac
9967 else
9968   ensc_use_alternative_syscall_macros=yes
9969 fi;
9970
9971         case $ensc_use_alternative_syscall_macros in
9972                 (yes)
9973 cat >>confdefs.h <<\_ACEOF
9974 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
9975 _ACEOF
9976 ;;
9977         esac
9978
9979         echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
9980 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
9981
9982
9983
9984
9985         echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
9986 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
9987 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990
9991                 ac_ext=c
9992 ac_cpp='$CPP $CPPFLAGS'
9993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9996
9997                 ensc_dietlibc_need_compat_old_CC=$CC
9998                 CC="${DIET:-diet} $CC"
9999                 cat >conftest.$ac_ext <<_ACEOF
10000
10001                         /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006
10007 #include "$srcdir/lib/syscall-wrap.h"
10008 #include <errno.h>
10009
10010 #define __NR_foo0               42
10011 #define __NR_foo1               42
10012 #define __NR_foo2               42
10013 #define __NR_foo3               42
10014 #define __NR_foo4               42
10015 #define __NR_foo5               42
10016 inline static _syscall0(int, foo0)
10017 inline static _syscall1(int, foo1, int, a)
10018 inline static _syscall2(int, foo2, int, a, int, b)
10019 inline static _syscall3(int, foo3, int, a, int, b, int, c)
10020 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
10021 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
10022
10023 int
10024 main ()
10025 {
10026 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033   (eval $ac_link) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } &&
10040          { ac_try='test -z "$ac_c_werror_flag"
10041                          || test ! -s conftest.err'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; } &&
10047          { ac_try='test -s conftest$ac_exeext'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   ensc_cv_c_dietlibc_compat=no
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 ensc_cv_c_dietlibc_compat=yes
10059 fi
10060 rm -f conftest.err conftest.$ac_objext \
10061       conftest$ac_exeext conftest.$ac_ext
10062                 CC=$ensc_dietlibc_need_compat_old_CC
10063                 ac_ext=c
10064 ac_cpp='$CPP $CPPFLAGS'
10065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10068
10069
10070 fi
10071 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
10072 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
10073
10074         if test x"USE_DIETLIBC_COMPAT" != x; then
10075
10076
10077 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
10078   USE_DIETLIBC_COMPAT_TRUE=
10079   USE_DIETLIBC_COMPAT_FALSE='#'
10080 else
10081   USE_DIETLIBC_COMPAT_TRUE='#'
10082   USE_DIETLIBC_COMPAT_FALSE=
10083 fi
10084
10085         fi
10086
10087 fi
10088
10089
10090
10091 if test x"$ensc_have_dietlibc" = xyes; then
10092   ENSC_USE_DIETLIBC_TRUE=
10093   ENSC_USE_DIETLIBC_FALSE='#'
10094 else
10095   ENSC_USE_DIETLIBC_TRUE='#'
10096   ENSC_USE_DIETLIBC_FALSE=
10097 fi
10098
10099
10100
10101 if true; then
10102   ENSC_USE_GLIBC_TRUE=
10103   ENSC_USE_GLIBC_FALSE='#'
10104 else
10105   ENSC_USE_GLIBC_TRUE='#'
10106   ENSC_USE_GLIBC_FALSE=
10107 fi
10108
10109
10110 # HACK: see comments at 'enable_static' above
10111 # Check whether --enable-shared or --disable-shared was given.
10112 if test "${enable_shared+set}" = set; then
10113   enableval="$enable_shared"
10114   p=${PACKAGE-default}
10115     case $enableval in
10116     yes) enable_shared=yes ;;
10117     no) enable_shared=no ;;
10118     *)
10119       enable_shared=no
10120       # Look at the argument we got.  We use all the common list separators.
10121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10122       for pkg in $enableval; do
10123         IFS="$lt_save_ifs"
10124         if test "X$pkg" = "X$p"; then
10125           enable_shared=yes
10126         fi
10127       done
10128       IFS="$lt_save_ifs"
10129       ;;
10130     esac
10131 else
10132   enable_shared=yes
10133 fi;
10134
10135 # Check whether --enable-static or --disable-static was given.
10136 if test "${enable_static+set}" = set; then
10137   enableval="$enable_static"
10138   p=${PACKAGE-default}
10139     case $enableval in
10140     yes) enable_static=yes ;;
10141     no) enable_static=no ;;
10142     *)
10143      enable_static=no
10144       # Look at the argument we got.  We use all the common list separators.
10145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10146       for pkg in $enableval; do
10147         IFS="$lt_save_ifs"
10148         if test "X$pkg" = "X$p"; then
10149           enable_static=yes
10150         fi
10151       done
10152       IFS="$lt_save_ifs"
10153       ;;
10154     esac
10155 else
10156   enable_static=yes
10157 fi;
10158
10159 # Check whether --enable-fast-install or --disable-fast-install was given.
10160 if test "${enable_fast_install+set}" = set; then
10161   enableval="$enable_fast_install"
10162   p=${PACKAGE-default}
10163     case $enableval in
10164     yes) enable_fast_install=yes ;;
10165     no) enable_fast_install=no ;;
10166     *)
10167       enable_fast_install=no
10168       # Look at the argument we got.  We use all the common list separators.
10169       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10170       for pkg in $enableval; do
10171         IFS="$lt_save_ifs"
10172         if test "X$pkg" = "X$p"; then
10173           enable_fast_install=yes
10174         fi
10175       done
10176       IFS="$lt_save_ifs"
10177       ;;
10178     esac
10179 else
10180   enable_fast_install=yes
10181 fi;
10182
10183 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10184 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10185 if test "${lt_cv_path_SED+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   # Loop through the user's path and test for sed and gsed.
10189 # Then use that list of sed's as ones to test for truncation.
10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191 for as_dir in $PATH
10192 do
10193   IFS=$as_save_IFS
10194   test -z "$as_dir" && as_dir=.
10195   for lt_ac_prog in sed gsed; do
10196     for ac_exec_ext in '' $ac_executable_extensions; do
10197       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10198         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10199       fi
10200     done
10201   done
10202 done
10203 lt_ac_max=0
10204 lt_ac_count=0
10205 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10206 # along with /bin/sed that truncates output.
10207 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10208   test ! -f $lt_ac_sed && continue
10209   cat /dev/null > conftest.in
10210   lt_ac_count=0
10211   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10212   # Check for GNU sed and select it if it is found.
10213   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10214     lt_cv_path_SED=$lt_ac_sed
10215     break
10216   fi
10217   while true; do
10218     cat conftest.in conftest.in >conftest.tmp
10219     mv conftest.tmp conftest.in
10220     cp conftest.in conftest.nl
10221     echo >>conftest.nl
10222     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10223     cmp -s conftest.out conftest.nl || break
10224     # 10000 chars as input seems more than enough
10225     test $lt_ac_count -gt 10 && break
10226     lt_ac_count=`expr $lt_ac_count + 1`
10227     if test $lt_ac_count -gt $lt_ac_max; then
10228       lt_ac_max=$lt_ac_count
10229       lt_cv_path_SED=$lt_ac_sed
10230     fi
10231   done
10232 done
10233
10234 fi
10235
10236 SED=$lt_cv_path_SED
10237 echo "$as_me:$LINENO: result: $SED" >&5
10238 echo "${ECHO_T}$SED" >&6
10239
10240 echo "$as_me:$LINENO: checking for egrep" >&5
10241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10242 if test "${ac_cv_prog_egrep+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10246     then ac_cv_prog_egrep='grep -E'
10247     else ac_cv_prog_egrep='egrep'
10248     fi
10249 fi
10250 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10252  EGREP=$ac_cv_prog_egrep
10253
10254
10255
10256 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10257 if test "${with_gnu_ld+set}" = set; then
10258   withval="$with_gnu_ld"
10259   test "$withval" = no || with_gnu_ld=yes
10260 else
10261   with_gnu_ld=no
10262 fi;
10263 ac_prog=ld
10264 if test "$GCC" = yes; then
10265   # Check if gcc -print-prog-name=ld gives a path.
10266   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10267 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10268   case $host in
10269   *-*-mingw*)
10270     # gcc leaves a trailing carriage return which upsets mingw
10271     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10272   *)
10273     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10274   esac
10275   case $ac_prog in
10276     # Accept absolute paths.
10277     [\\/]* | ?:[\\/]*)
10278       re_direlt='/[^/][^/]*/\.\./'
10279       # Canonicalize the pathname of ld
10280       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10281       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10282         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10283       done
10284       test -z "$LD" && LD="$ac_prog"
10285       ;;
10286   "")
10287     # If it fails, then pretend we aren't using GCC.
10288     ac_prog=ld
10289     ;;
10290   *)
10291     # If it is relative, then search for the first ld in PATH.
10292     with_gnu_ld=unknown
10293     ;;
10294   esac
10295 elif test "$with_gnu_ld" = yes; then
10296   echo "$as_me:$LINENO: checking for GNU ld" >&5
10297 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10298 else
10299   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10300 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10301 fi
10302 if test "${lt_cv_path_LD+set}" = set; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   if test -z "$LD"; then
10306   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10307   for ac_dir in $PATH; do
10308     IFS="$lt_save_ifs"
10309     test -z "$ac_dir" && ac_dir=.
10310     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10311       lt_cv_path_LD="$ac_dir/$ac_prog"
10312       # Check to see if the program is GNU ld.  I'd rather use --version,
10313       # but apparently some GNU ld's only accept -v.
10314       # Break only if it was the GNU/non-GNU ld that we prefer.
10315       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10316       *GNU* | *'with BFD'*)
10317         test "$with_gnu_ld" != no && break
10318         ;;
10319       *)
10320         test "$with_gnu_ld" != yes && break
10321         ;;
10322       esac
10323     fi
10324   done
10325   IFS="$lt_save_ifs"
10326 else
10327   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10328 fi
10329 fi
10330
10331 LD="$lt_cv_path_LD"
10332 if test -n "$LD"; then
10333   echo "$as_me:$LINENO: result: $LD" >&5
10334 echo "${ECHO_T}$LD" >&6
10335 else
10336   echo "$as_me:$LINENO: result: no" >&5
10337 echo "${ECHO_T}no" >&6
10338 fi
10339 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10340 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10341    { (exit 1); exit 1; }; }
10342 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10343 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10344 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10348 case `$LD -v 2>&1 </dev/null` in
10349 *GNU* | *'with BFD'*)
10350   lt_cv_prog_gnu_ld=yes
10351   ;;
10352 *)
10353   lt_cv_prog_gnu_ld=no
10354   ;;
10355 esac
10356 fi
10357 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10358 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10359 with_gnu_ld=$lt_cv_prog_gnu_ld
10360
10361
10362 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10363 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10364 if test "${lt_cv_ld_reload_flag+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   lt_cv_ld_reload_flag='-r'
10368 fi
10369 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10370 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10371 reload_flag=$lt_cv_ld_reload_flag
10372 case $reload_flag in
10373 "" | " "*) ;;
10374 *) reload_flag=" $reload_flag" ;;
10375 esac
10376 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10377 case $host_os in
10378   darwin*)
10379     if test "$GCC" = yes; then
10380       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10381     else
10382       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10383     fi
10384     ;;
10385 esac
10386
10387 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10388 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10389 if test "${lt_cv_path_NM+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   if test -n "$NM"; then
10393   # Let the user override the test.
10394   lt_cv_path_NM="$NM"
10395 else
10396   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10397   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10398     IFS="$lt_save_ifs"
10399     test -z "$ac_dir" && ac_dir=.
10400     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10401     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10402       # Check to see if the nm accepts a BSD-compat flag.
10403       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10404       #   nm: unknown option "B" ignored
10405       # Tru64's nm complains that /dev/null is an invalid object file
10406       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10407       */dev/null* | *'Invalid file or object type'*)
10408         lt_cv_path_NM="$tmp_nm -B"
10409         break
10410         ;;
10411       *)
10412         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10413         */dev/null*)
10414           lt_cv_path_NM="$tmp_nm -p"
10415           break
10416           ;;
10417         *)
10418           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10419           continue # so that we can try to find one that supports BSD flags
10420           ;;
10421         esac
10422       esac
10423     fi
10424   done
10425   IFS="$lt_save_ifs"
10426   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10427 fi
10428 fi
10429 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10430 echo "${ECHO_T}$lt_cv_path_NM" >&6
10431 NM="$lt_cv_path_NM"
10432
10433 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10434 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10435 if test "${lt_cv_deplibs_check_method+set}" = set; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   lt_cv_file_magic_cmd='$MAGIC_CMD'
10439 lt_cv_file_magic_test_file=
10440 lt_cv_deplibs_check_method='unknown'
10441 # Need to set the preceding variable on all platforms that support
10442 # interlibrary dependencies.
10443 # 'none' -- dependencies not supported.
10444 # `unknown' -- same as none, but documents that we really don't know.
10445 # 'pass_all' -- all dependencies passed with no checks.
10446 # 'test_compile' -- check by making test program.
10447 # 'file_magic [[regex]]' -- check by looking for files in library path
10448 # which responds to the $file_magic_cmd with a given extended regex.
10449 # If you have `file' or equivalent on your system and you're not sure
10450 # whether `pass_all' will *always* work, you probably want this one.
10451
10452 case $host_os in
10453 aix4* | aix5*)
10454   lt_cv_deplibs_check_method=pass_all
10455   ;;
10456
10457 beos*)
10458   lt_cv_deplibs_check_method=pass_all
10459   ;;
10460
10461 bsdi[45]*)
10462   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10463   lt_cv_file_magic_cmd='/usr/bin/file -L'
10464   lt_cv_file_magic_test_file=/shlib/libc.so
10465   ;;
10466
10467 cygwin*)
10468   # func_win32_libid is a shell function defined in ltmain.sh
10469   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10470   lt_cv_file_magic_cmd='func_win32_libid'
10471   ;;
10472
10473 mingw* | pw32*)
10474   # Base MSYS/MinGW do not provide the 'file' command needed by
10475   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10476   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10477   lt_cv_file_magic_cmd='$OBJDUMP -f'
10478   ;;
10479
10480 darwin* | rhapsody*)
10481   lt_cv_deplibs_check_method=pass_all
10482   ;;
10483
10484 freebsd* | kfreebsd*-gnu | dragonfly*)
10485   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10486     case $host_cpu in
10487     i*86 )
10488       # Not sure whether the presence of OpenBSD here was a mistake.
10489       # Let's accept both of them until this is cleared up.
10490       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10491       lt_cv_file_magic_cmd=/usr/bin/file
10492       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10493       ;;
10494     esac
10495   else
10496     lt_cv_deplibs_check_method=pass_all
10497   fi
10498   ;;
10499
10500 gnu*)
10501   lt_cv_deplibs_check_method=pass_all
10502   ;;
10503
10504 hpux10.20* | hpux11*)
10505   lt_cv_file_magic_cmd=/usr/bin/file
10506   case "$host_cpu" in
10507   ia64*)
10508     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10509     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10510     ;;
10511   hppa*64*)
10512     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]'
10513     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10514     ;;
10515   *)
10516     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10517     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10518     ;;
10519   esac
10520   ;;
10521
10522 irix5* | irix6* | nonstopux*)
10523   case $LD in
10524   *-32|*"-32 ") libmagic=32-bit;;
10525   *-n32|*"-n32 ") libmagic=N32;;
10526   *-64|*"-64 ") libmagic=64-bit;;
10527   *) libmagic=never-match;;
10528   esac
10529   lt_cv_deplibs_check_method=pass_all
10530   ;;
10531
10532 # This must be Linux ELF.
10533 linux*)
10534   lt_cv_deplibs_check_method=pass_all
10535   ;;
10536
10537 netbsd*)
10538   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10539     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10540   else
10541     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10542   fi
10543   ;;
10544
10545 newos6*)
10546   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10547   lt_cv_file_magic_cmd=/usr/bin/file
10548   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10549   ;;
10550
10551 nto-qnx*)
10552   lt_cv_deplibs_check_method=unknown
10553   ;;
10554
10555 openbsd*)
10556   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10557     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10558   else
10559     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10560   fi
10561   ;;
10562
10563 osf3* | osf4* | osf5*)
10564   lt_cv_deplibs_check_method=pass_all
10565   ;;
10566
10567 sco3.2v5*)
10568   lt_cv_deplibs_check_method=pass_all
10569   ;;
10570
10571 solaris*)
10572   lt_cv_deplibs_check_method=pass_all
10573   ;;
10574
10575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10576   case $host_vendor in
10577   motorola)
10578     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]'
10579     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10580     ;;
10581   ncr)
10582     lt_cv_deplibs_check_method=pass_all
10583     ;;
10584   sequent)
10585     lt_cv_file_magic_cmd='/bin/file'
10586     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10587     ;;
10588   sni)
10589     lt_cv_file_magic_cmd='/bin/file'
10590     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10591     lt_cv_file_magic_test_file=/lib/libc.so
10592     ;;
10593   siemens)
10594     lt_cv_deplibs_check_method=pass_all
10595     ;;
10596   esac
10597   ;;
10598
10599 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10600   lt_cv_deplibs_check_method=pass_all
10601   ;;
10602 esac
10603
10604 fi
10605 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10606 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10607 file_magic_cmd=$lt_cv_file_magic_cmd
10608 deplibs_check_method=$lt_cv_deplibs_check_method
10609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10610
10611
10612
10613
10614 # If no C compiler was specified, use CC.
10615 LTCC=${LTCC-"$CC"}
10616
10617 # Allow CC to be a program name with arguments.
10618 compiler=$CC
10619
10620 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10621 if test "${enable_libtool_lock+set}" = set; then
10622   enableval="$enable_libtool_lock"
10623
10624 fi;
10625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10626
10627 # Some flags need to be propagated to the compiler or linker for good
10628 # libtool support.
10629 case $host in
10630 ia64-*-hpux*)
10631   # Find out which ABI we are using.
10632   echo 'int i;' > conftest.$ac_ext
10633   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634   (eval $ac_compile) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; then
10638     case `/usr/bin/file conftest.$ac_objext` in
10639     *ELF-32*)
10640       HPUX_IA64_MODE="32"
10641       ;;
10642     *ELF-64*)
10643       HPUX_IA64_MODE="64"
10644       ;;
10645     esac
10646   fi
10647   rm -rf conftest*
10648   ;;
10649 *-*-irix6*)
10650   # Find out which ABI we are using.
10651   echo '#line 10651 "configure"' > conftest.$ac_ext
10652   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10653   (eval $ac_compile) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; then
10657    if test "$lt_cv_prog_gnu_ld" = yes; then
10658     case `/usr/bin/file conftest.$ac_objext` in
10659     *32-bit*)
10660       LD="${LD-ld} -melf32bsmip"
10661       ;;
10662     *N32*)
10663       LD="${LD-ld} -melf32bmipn32"
10664       ;;
10665     *64-bit*)
10666       LD="${LD-ld} -melf64bmip"
10667       ;;
10668     esac
10669    else
10670     case `/usr/bin/file conftest.$ac_objext` in
10671     *32-bit*)
10672       LD="${LD-ld} -32"
10673       ;;
10674     *N32*)
10675       LD="${LD-ld} -n32"
10676       ;;
10677     *64-bit*)
10678       LD="${LD-ld} -64"
10679       ;;
10680     esac
10681    fi
10682   fi
10683   rm -rf conftest*
10684   ;;
10685
10686 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10687   # Find out which ABI we are using.
10688   echo 'int i;' > conftest.$ac_ext
10689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690   (eval $ac_compile) 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); }; then
10694     case "`/usr/bin/file conftest.o`" in
10695     *32-bit*)
10696       case $host in
10697         x86_64-*linux*)
10698           LD="${LD-ld} -m elf_i386"
10699           ;;
10700         ppc64-*linux*|powerpc64-*linux*)
10701           LD="${LD-ld} -m elf32ppclinux"
10702           ;;
10703         s390x-*linux*)
10704           LD="${LD-ld} -m elf_s390"
10705           ;;
10706         sparc64-*linux*)
10707           LD="${LD-ld} -m elf32_sparc"
10708           ;;
10709       esac
10710       ;;
10711     *64-bit*)
10712       case $host in
10713         x86_64-*linux*)
10714           LD="${LD-ld} -m elf_x86_64"
10715           ;;
10716         ppc*-*linux*|powerpc*-*linux*)
10717           LD="${LD-ld} -m elf64ppc"
10718           ;;
10719         s390*-*linux*)
10720           LD="${LD-ld} -m elf64_s390"
10721           ;;
10722         sparc*-*linux*)
10723           LD="${LD-ld} -m elf64_sparc"
10724           ;;
10725       esac
10726       ;;
10727     esac
10728   fi
10729   rm -rf conftest*
10730   ;;
10731
10732 *-*-sco3.2v5*)
10733   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10734   SAVE_CFLAGS="$CFLAGS"
10735   CFLAGS="$CFLAGS -belf"
10736   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10737 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10738 if test "${lt_cv_cc_needs_belf+set}" = set; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   ac_ext=c
10742 ac_cpp='$CPP $CPPFLAGS'
10743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10746
10747      cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753
10754 int
10755 main ()
10756 {
10757
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764   (eval $ac_link) 2>conftest.er1
10765   ac_status=$?
10766   grep -v '^ *+' conftest.er1 >conftest.err
10767   rm -f conftest.er1
10768   cat conftest.err >&5
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); } &&
10771          { ac_try='test -z "$ac_c_werror_flag"
10772                          || test ! -s conftest.err'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; } &&
10778          { ac_try='test -s conftest$ac_exeext'
10779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780   (eval $ac_try) 2>&5
10781   ac_status=$?
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); }; }; then
10784   lt_cv_cc_needs_belf=yes
10785 else
10786   echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 lt_cv_cc_needs_belf=no
10790 fi
10791 rm -f conftest.err conftest.$ac_objext \
10792       conftest$ac_exeext conftest.$ac_ext
10793      ac_ext=c
10794 ac_cpp='$CPP $CPPFLAGS'
10795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10798
10799 fi
10800 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10801 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10802   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10803     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10804     CFLAGS="$SAVE_CFLAGS"
10805   fi
10806   ;;
10807
10808 esac
10809
10810 need_locks="$enable_libtool_lock"
10811
10812
10813 ac_ext=c
10814 ac_cpp='$CPP $CPPFLAGS'
10815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10818 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10819 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10820 # On Suns, sometimes $CPP names a directory.
10821 if test -n "$CPP" && test -d "$CPP"; then
10822   CPP=
10823 fi
10824 if test -z "$CPP"; then
10825   if test "${ac_cv_prog_CPP+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828       # Double quotes because CPP needs to be expanded
10829     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10830     do
10831       ac_preproc_ok=false
10832 for ac_c_preproc_warn_flag in '' yes
10833 do
10834   # Use a header file that comes with gcc, so configuring glibc
10835   # with a fresh cross-compiler works.
10836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10837   # <limits.h> exists even on freestanding compilers.
10838   # On the NeXT, cc -E runs the code through the compiler's parser,
10839   # not just through cpp. "Syntax error" is here to catch this case.
10840   cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846 #ifdef __STDC__
10847 # include <limits.h>
10848 #else
10849 # include <assert.h>
10850 #endif
10851                      Syntax error
10852 _ACEOF
10853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10855   ac_status=$?
10856   grep -v '^ *+' conftest.er1 >conftest.err
10857   rm -f conftest.er1
10858   cat conftest.err >&5
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } >/dev/null; then
10861   if test -s conftest.err; then
10862     ac_cpp_err=$ac_c_preproc_warn_flag
10863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10864   else
10865     ac_cpp_err=
10866   fi
10867 else
10868   ac_cpp_err=yes
10869 fi
10870 if test -z "$ac_cpp_err"; then
10871   :
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876   # Broken: fails on valid input.
10877 continue
10878 fi
10879 rm -f conftest.err conftest.$ac_ext
10880
10881   # OK, works on sane cases.  Now check whether non-existent headers
10882   # can be detected and how.
10883   cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889 #include <ac_nonexistent.h>
10890 _ACEOF
10891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10893   ac_status=$?
10894   grep -v '^ *+' conftest.er1 >conftest.err
10895   rm -f conftest.er1
10896   cat conftest.err >&5
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } >/dev/null; then
10899   if test -s conftest.err; then
10900     ac_cpp_err=$ac_c_preproc_warn_flag
10901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10902   else
10903     ac_cpp_err=
10904   fi
10905 else
10906   ac_cpp_err=yes
10907 fi
10908 if test -z "$ac_cpp_err"; then
10909   # Broken: success on invalid input.
10910 continue
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915   # Passes both tests.
10916 ac_preproc_ok=:
10917 break
10918 fi
10919 rm -f conftest.err conftest.$ac_ext
10920
10921 done
10922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10923 rm -f conftest.err conftest.$ac_ext
10924 if $ac_preproc_ok; then
10925   break
10926 fi
10927
10928     done
10929     ac_cv_prog_CPP=$CPP
10930
10931 fi
10932   CPP=$ac_cv_prog_CPP
10933 else
10934   ac_cv_prog_CPP=$CPP
10935 fi
10936 echo "$as_me:$LINENO: result: $CPP" >&5
10937 echo "${ECHO_T}$CPP" >&6
10938 ac_preproc_ok=false
10939 for ac_c_preproc_warn_flag in '' yes
10940 do
10941   # Use a header file that comes with gcc, so configuring glibc
10942   # with a fresh cross-compiler works.
10943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10944   # <limits.h> exists even on freestanding compilers.
10945   # On the NeXT, cc -E runs the code through the compiler's parser,
10946   # not just through cpp. "Syntax error" is here to catch this case.
10947   cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953 #ifdef __STDC__
10954 # include <limits.h>
10955 #else
10956 # include <assert.h>
10957 #endif
10958                      Syntax error
10959 _ACEOF
10960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10962   ac_status=$?
10963   grep -v '^ *+' conftest.er1 >conftest.err
10964   rm -f conftest.er1
10965   cat conftest.err >&5
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); } >/dev/null; then
10968   if test -s conftest.err; then
10969     ac_cpp_err=$ac_c_preproc_warn_flag
10970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10971   else
10972     ac_cpp_err=
10973   fi
10974 else
10975   ac_cpp_err=yes
10976 fi
10977 if test -z "$ac_cpp_err"; then
10978   :
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983   # Broken: fails on valid input.
10984 continue
10985 fi
10986 rm -f conftest.err conftest.$ac_ext
10987
10988   # OK, works on sane cases.  Now check whether non-existent headers
10989   # can be detected and how.
10990   cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996 #include <ac_nonexistent.h>
10997 _ACEOF
10998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } >/dev/null; then
11006   if test -s conftest.err; then
11007     ac_cpp_err=$ac_c_preproc_warn_flag
11008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11009   else
11010     ac_cpp_err=
11011   fi
11012 else
11013   ac_cpp_err=yes
11014 fi
11015 if test -z "$ac_cpp_err"; then
11016   # Broken: success on invalid input.
11017 continue
11018 else
11019   echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022   # Passes both tests.
11023 ac_preproc_ok=:
11024 break
11025 fi
11026 rm -f conftest.err conftest.$ac_ext
11027
11028 done
11029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11030 rm -f conftest.err conftest.$ac_ext
11031 if $ac_preproc_ok; then
11032   :
11033 else
11034   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11035 See \`config.log' for more details." >&5
11036 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11037 See \`config.log' for more details." >&2;}
11038    { (exit 1); exit 1; }; }
11039 fi
11040
11041 ac_ext=c
11042 ac_cpp='$CPP $CPPFLAGS'
11043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11046
11047
11048 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11049 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11050 if test "${ac_cv_header_stdc+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059 #include <stdlib.h>
11060 #include <stdarg.h>
11061 #include <string.h>
11062 #include <float.h>
11063
11064 int
11065 main ()
11066 {
11067
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074   (eval $ac_compile) 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } &&
11081          { ac_try='test -z "$ac_c_werror_flag"
11082                          || test ! -s conftest.err'
11083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084   (eval $ac_try) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); }; } &&
11088          { ac_try='test -s conftest.$ac_objext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   ac_cv_header_stdc=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_cv_header_stdc=no
11100 fi
11101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11102
11103 if test $ac_cv_header_stdc = yes; then
11104   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11105   cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111 #include <string.h>
11112
11113 _ACEOF
11114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11115   $EGREP "memchr" >/dev/null 2>&1; then
11116   :
11117 else
11118   ac_cv_header_stdc=no
11119 fi
11120 rm -f conftest*
11121
11122 fi
11123
11124 if test $ac_cv_header_stdc = yes; then
11125   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11126   cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 #include <stdlib.h>
11133
11134 _ACEOF
11135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11136   $EGREP "free" >/dev/null 2>&1; then
11137   :
11138 else
11139   ac_cv_header_stdc=no
11140 fi
11141 rm -f conftest*
11142
11143 fi
11144
11145 if test $ac_cv_header_stdc = yes; then
11146   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11147   if test "$cross_compiling" = yes; then
11148   :
11149 else
11150   cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h.  */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h.  */
11156 #include <ctype.h>
11157 #if ((' ' & 0x0FF) == 0x020)
11158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11160 #else
11161 # define ISLOWER(c) \
11162                    (('a' <= (c) && (c) <= 'i') \
11163                      || ('j' <= (c) && (c) <= 'r') \
11164                      || ('s' <= (c) && (c) <= 'z'))
11165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11166 #endif
11167
11168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11169 int
11170 main ()
11171 {
11172   int i;
11173   for (i = 0; i < 256; i++)
11174     if (XOR (islower (i), ISLOWER (i))
11175         || toupper (i) != TOUPPER (i))
11176       exit(2);
11177   exit (0);
11178 }
11179 _ACEOF
11180 rm -f conftest$ac_exeext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182   (eval $ac_link) 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187   (eval $ac_try) 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; }; then
11191   :
11192 else
11193   echo "$as_me: program exited with status $ac_status" >&5
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 ( exit $ac_status )
11198 ac_cv_header_stdc=no
11199 fi
11200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11201 fi
11202 fi
11203 fi
11204 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11205 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11206 if test $ac_cv_header_stdc = yes; then
11207
11208 cat >>confdefs.h <<\_ACEOF
11209 #define STDC_HEADERS 1
11210 _ACEOF
11211
11212 fi
11213
11214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11225                   inttypes.h stdint.h unistd.h
11226 do
11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 $ac_includes_default
11240
11241 #include <$ac_header>
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245   (eval $ac_compile) 2>conftest.er1
11246   ac_status=$?
11247   grep -v '^ *+' conftest.er1 >conftest.err
11248   rm -f conftest.er1
11249   cat conftest.err >&5
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); } &&
11252          { ac_try='test -z "$ac_c_werror_flag"
11253                          || test ! -s conftest.err'
11254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255   (eval $ac_try) 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); }; } &&
11259          { ac_try='test -s conftest.$ac_objext'
11260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261   (eval $ac_try) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; }; then
11265   eval "$as_ac_Header=yes"
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270 eval "$as_ac_Header=no"
11271 fi
11272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11273 fi
11274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11277   cat >>confdefs.h <<_ACEOF
11278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 _ACEOF
11280
11281 fi
11282
11283 done
11284
11285
11286
11287 for ac_header in dlfcn.h
11288 do
11289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291   echo "$as_me:$LINENO: checking for $ac_header" >&5
11292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294   echo $ECHO_N "(cached) $ECHO_C" >&6
11295 fi
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11298 else
11299   # Is the header compilable?
11300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308 $ac_includes_default
11309 #include <$ac_header>
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313   (eval $ac_compile) 2>conftest.er1
11314   ac_status=$?
11315   grep -v '^ *+' conftest.er1 >conftest.err
11316   rm -f conftest.er1
11317   cat conftest.err >&5
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); } &&
11320          { ac_try='test -z "$ac_c_werror_flag"
11321                          || test ! -s conftest.err'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; } &&
11327          { ac_try='test -s conftest.$ac_objext'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; }; then
11333   ac_header_compiler=yes
11334 else
11335   echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 ac_header_compiler=no
11339 fi
11340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342 echo "${ECHO_T}$ac_header_compiler" >&6
11343
11344 # Is the header present?
11345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h.  */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h.  */
11353 #include <$ac_header>
11354 _ACEOF
11355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11357   ac_status=$?
11358   grep -v '^ *+' conftest.er1 >conftest.err
11359   rm -f conftest.er1
11360   cat conftest.err >&5
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); } >/dev/null; then
11363   if test -s conftest.err; then
11364     ac_cpp_err=$ac_c_preproc_warn_flag
11365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366   else
11367     ac_cpp_err=
11368   fi
11369 else
11370   ac_cpp_err=yes
11371 fi
11372 if test -z "$ac_cpp_err"; then
11373   ac_header_preproc=yes
11374 else
11375   echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378   ac_header_preproc=no
11379 fi
11380 rm -f conftest.err conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11382 echo "${ECHO_T}$ac_header_preproc" >&6
11383
11384 # So?  What about this header?
11385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386   yes:no: )
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11391     ac_header_preproc=yes
11392     ;;
11393   no:yes:* )
11394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11406     (
11407       cat <<\_ASBOX
11408 ## ------------------------------------------------------ ##
11409 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
11410 ## ------------------------------------------------------ ##
11411 _ASBOX
11412     ) |
11413       sed "s/^/$as_me: WARNING:     /" >&2
11414     ;;
11415 esac
11416 echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11419   echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421   eval "$as_ac_Header=\$ac_header_preproc"
11422 fi
11423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11425
11426 fi
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428   cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 _ACEOF
11431
11432 fi
11433
11434 done
11435
11436
11437
11438 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11439     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11440     (test "X$CXX" != "Xg++"))) ; then
11441   ac_ext=cc
11442 ac_cpp='$CXXCPP $CPPFLAGS'
11443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11446 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11447 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11448 if test -z "$CXXCPP"; then
11449   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452       # Double quotes because CXXCPP needs to be expanded
11453     for CXXCPP in "$CXX -E" "/lib/cpp"
11454     do
11455       ac_preproc_ok=false
11456 for ac_cxx_preproc_warn_flag in '' yes
11457 do
11458   # Use a header file that comes with gcc, so configuring glibc
11459   # with a fresh cross-compiler works.
11460   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11461   # <limits.h> exists even on freestanding compilers.
11462   # On the NeXT, cc -E runs the code through the compiler's parser,
11463   # not just through cpp. "Syntax error" is here to catch this case.
11464   cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h.  */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h.  */
11470 #ifdef __STDC__
11471 # include <limits.h>
11472 #else
11473 # include <assert.h>
11474 #endif
11475                      Syntax error
11476 _ACEOF
11477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } >/dev/null; then
11485   if test -s conftest.err; then
11486     ac_cpp_err=$ac_cxx_preproc_warn_flag
11487     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11488   else
11489     ac_cpp_err=
11490   fi
11491 else
11492   ac_cpp_err=yes
11493 fi
11494 if test -z "$ac_cpp_err"; then
11495   :
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500   # Broken: fails on valid input.
11501 continue
11502 fi
11503 rm -f conftest.err conftest.$ac_ext
11504
11505   # OK, works on sane cases.  Now check whether non-existent headers
11506   # can be detected and how.
11507   cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 #include <ac_nonexistent.h>
11514 _ACEOF
11515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11516   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11517   ac_status=$?
11518   grep -v '^ *+' conftest.er1 >conftest.err
11519   rm -f conftest.er1
11520   cat conftest.err >&5
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); } >/dev/null; then
11523   if test -s conftest.err; then
11524     ac_cpp_err=$ac_cxx_preproc_warn_flag
11525     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11526   else
11527     ac_cpp_err=
11528   fi
11529 else
11530   ac_cpp_err=yes
11531 fi
11532 if test -z "$ac_cpp_err"; then
11533   # Broken: success on invalid input.
11534 continue
11535 else
11536   echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539   # Passes both tests.
11540 ac_preproc_ok=:
11541 break
11542 fi
11543 rm -f conftest.err conftest.$ac_ext
11544
11545 done
11546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11547 rm -f conftest.err conftest.$ac_ext
11548 if $ac_preproc_ok; then
11549   break
11550 fi
11551
11552     done
11553     ac_cv_prog_CXXCPP=$CXXCPP
11554
11555 fi
11556   CXXCPP=$ac_cv_prog_CXXCPP
11557 else
11558   ac_cv_prog_CXXCPP=$CXXCPP
11559 fi
11560 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11561 echo "${ECHO_T}$CXXCPP" >&6
11562 ac_preproc_ok=false
11563 for ac_cxx_preproc_warn_flag in '' yes
11564 do
11565   # Use a header file that comes with gcc, so configuring glibc
11566   # with a fresh cross-compiler works.
11567   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11568   # <limits.h> exists even on freestanding compilers.
11569   # On the NeXT, cc -E runs the code through the compiler's parser,
11570   # not just through cpp. "Syntax error" is here to catch this case.
11571   cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h.  */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h.  */
11577 #ifdef __STDC__
11578 # include <limits.h>
11579 #else
11580 # include <assert.h>
11581 #endif
11582                      Syntax error
11583 _ACEOF
11584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11586   ac_status=$?
11587   grep -v '^ *+' conftest.er1 >conftest.err
11588   rm -f conftest.er1
11589   cat conftest.err >&5
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } >/dev/null; then
11592   if test -s conftest.err; then
11593     ac_cpp_err=$ac_cxx_preproc_warn_flag
11594     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11595   else
11596     ac_cpp_err=
11597   fi
11598 else
11599   ac_cpp_err=yes
11600 fi
11601 if test -z "$ac_cpp_err"; then
11602   :
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607   # Broken: fails on valid input.
11608 continue
11609 fi
11610 rm -f conftest.err conftest.$ac_ext
11611
11612   # OK, works on sane cases.  Now check whether non-existent headers
11613   # can be detected and how.
11614   cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620 #include <ac_nonexistent.h>
11621 _ACEOF
11622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } >/dev/null; then
11630   if test -s conftest.err; then
11631     ac_cpp_err=$ac_cxx_preproc_warn_flag
11632     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11633   else
11634     ac_cpp_err=
11635   fi
11636 else
11637   ac_cpp_err=yes
11638 fi
11639 if test -z "$ac_cpp_err"; then
11640   # Broken: success on invalid input.
11641 continue
11642 else
11643   echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11645
11646   # Passes both tests.
11647 ac_preproc_ok=:
11648 break
11649 fi
11650 rm -f conftest.err conftest.$ac_ext
11651
11652 done
11653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11654 rm -f conftest.err conftest.$ac_ext
11655 if $ac_preproc_ok; then
11656   :
11657 else
11658   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11659 See \`config.log' for more details." >&5
11660 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11661 See \`config.log' for more details." >&2;}
11662    { (exit 1); exit 1; }; }
11663 fi
11664
11665 ac_ext=cc
11666 ac_cpp='$CXXCPP $CPPFLAGS'
11667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11670
11671 fi
11672
11673 ac_ext=f
11674 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11675 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11676 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11677 if test -n "$ac_tool_prefix"; then
11678   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11679   do
11680     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11682 echo "$as_me:$LINENO: checking for $ac_word" >&5
11683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11684 if test "${ac_cv_prog_F77+set}" = set; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   if test -n "$F77"; then
11688   ac_cv_prog_F77="$F77" # Let the user override the test.
11689 else
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11692 do
11693   IFS=$as_save_IFS
11694   test -z "$as_dir" && as_dir=.
11695   for ac_exec_ext in '' $ac_executable_extensions; do
11696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699     break 2
11700   fi
11701 done
11702 done
11703
11704 fi
11705 fi
11706 F77=$ac_cv_prog_F77
11707 if test -n "$F77"; then
11708   echo "$as_me:$LINENO: result: $F77" >&5
11709 echo "${ECHO_T}$F77" >&6
11710 else
11711   echo "$as_me:$LINENO: result: no" >&5
11712 echo "${ECHO_T}no" >&6
11713 fi
11714
11715     test -n "$F77" && break
11716   done
11717 fi
11718 if test -z "$F77"; then
11719   ac_ct_F77=$F77
11720   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11721 do
11722   # Extract the first word of "$ac_prog", so it can be a program name with args.
11723 set dummy $ac_prog; ac_word=$2
11724 echo "$as_me:$LINENO: checking for $ac_word" >&5
11725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11726 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   if test -n "$ac_ct_F77"; then
11730   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11731 else
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11734 do
11735   IFS=$as_save_IFS
11736   test -z "$as_dir" && as_dir=.
11737   for ac_exec_ext in '' $ac_executable_extensions; do
11738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739     ac_cv_prog_ac_ct_F77="$ac_prog"
11740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11741     break 2
11742   fi
11743 done
11744 done
11745
11746 fi
11747 fi
11748 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11749 if test -n "$ac_ct_F77"; then
11750   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11751 echo "${ECHO_T}$ac_ct_F77" >&6
11752 else
11753   echo "$as_me:$LINENO: result: no" >&5
11754 echo "${ECHO_T}no" >&6
11755 fi
11756
11757   test -n "$ac_ct_F77" && break
11758 done
11759
11760   F77=$ac_ct_F77
11761 fi
11762
11763
11764 # Provide some information about the compiler.
11765 echo "$as_me:11765:" \
11766      "checking for Fortran 77 compiler version" >&5
11767 ac_compiler=`set X $ac_compile; echo $2`
11768 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11769   (eval $ac_compiler --version </dev/null >&5) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }
11773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11774   (eval $ac_compiler -v </dev/null >&5) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }
11778 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11779   (eval $ac_compiler -V </dev/null >&5) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }
11783 rm -f a.out
11784
11785 # If we don't use `.F' as extension, the preprocessor is not run on the
11786 # input file.  (Note that this only needs to work for GNU compilers.)
11787 ac_save_ext=$ac_ext
11788 ac_ext=F
11789 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11790 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11791 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11792   echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794   cat >conftest.$ac_ext <<_ACEOF
11795       program main
11796 #ifndef __GNUC__
11797        choke me
11798 #endif
11799
11800       end
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804   (eval $ac_compile) 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_f77_werror_flag"
11812                          || test ! -s conftest.err'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; } &&
11818          { ac_try='test -s conftest.$ac_objext'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   ac_compiler_gnu=yes
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_compiler_gnu=no
11830 fi
11831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11832 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11833
11834 fi
11835 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11836 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11837 ac_ext=$ac_save_ext
11838 ac_test_FFLAGS=${FFLAGS+set}
11839 ac_save_FFLAGS=$FFLAGS
11840 FFLAGS=
11841 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11842 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11843 if test "${ac_cv_prog_f77_g+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   FFLAGS=-g
11847 cat >conftest.$ac_ext <<_ACEOF
11848       program main
11849
11850       end
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854   (eval $ac_compile) 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } &&
11861          { ac_try='test -z "$ac_f77_werror_flag"
11862                          || test ! -s conftest.err'
11863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864   (eval $ac_try) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); }; } &&
11868          { ac_try='test -s conftest.$ac_objext'
11869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870   (eval $ac_try) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); }; }; then
11874   ac_cv_prog_f77_g=yes
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879 ac_cv_prog_f77_g=no
11880 fi
11881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882
11883 fi
11884 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11885 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11886 if test "$ac_test_FFLAGS" = set; then
11887   FFLAGS=$ac_save_FFLAGS
11888 elif test $ac_cv_prog_f77_g = yes; then
11889   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11890     FFLAGS="-g -O2"
11891   else
11892     FFLAGS="-g"
11893   fi
11894 else
11895   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11896     FFLAGS="-O2"
11897   else
11898     FFLAGS=
11899   fi
11900 fi
11901
11902 G77=`test $ac_compiler_gnu = yes && echo yes`
11903 ac_ext=c
11904 ac_cpp='$CPP $CPPFLAGS'
11905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11908
11909
11910
11911 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11912
11913 # find the maximum length of command line arguments
11914 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11915 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11916 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919     i=0
11920   teststring="ABCD"
11921
11922   case $build_os in
11923   msdosdjgpp*)
11924     # On DJGPP, this test can blow up pretty badly due to problems in libc
11925     # (any single argument exceeding 2000 bytes causes a buffer overrun
11926     # during glob expansion).  Even if it were fixed, the result of this
11927     # check would be larger than it should be.
11928     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11929     ;;
11930
11931   gnu*)
11932     # Under GNU Hurd, this test is not required because there is
11933     # no limit to the length of command line arguments.
11934     # Libtool will interpret -1 as no limit whatsoever
11935     lt_cv_sys_max_cmd_len=-1;
11936     ;;
11937
11938   cygwin* | mingw*)
11939     # On Win9x/ME, this test blows up -- it succeeds, but takes
11940     # about 5 minutes as the teststring grows exponentially.
11941     # Worse, since 9x/ME are not pre-emptively multitasking,
11942     # you end up with a "frozen" computer, even though with patience
11943     # the test eventually succeeds (with a max line length of 256k).
11944     # Instead, let's just punt: use the minimum linelength reported by
11945     # all of the supported platforms: 8192 (on NT/2K/XP).
11946     lt_cv_sys_max_cmd_len=8192;
11947     ;;
11948
11949   amigaos*)
11950     # On AmigaOS with pdksh, this test takes hours, literally.
11951     # So we just punt and use a minimum line length of 8192.
11952     lt_cv_sys_max_cmd_len=8192;
11953     ;;
11954
11955   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11956     # This has been around since 386BSD, at least.  Likely further.
11957     if test -x /sbin/sysctl; then
11958       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11959     elif test -x /usr/sbin/sysctl; then
11960       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11961     else
11962       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11963     fi
11964     # And add a safety zone
11965     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11966     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11967     ;;
11968   osf*)
11969     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11970     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11971     # nice to cause kernel panics so lets avoid the loop below.
11972     # First set a reasonable default.
11973     lt_cv_sys_max_cmd_len=16384
11974     #
11975     if test -x /sbin/sysconfig; then
11976       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11977         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11978       esac
11979     fi
11980     ;;
11981   *)
11982     # If test is not a shell built-in, we'll probably end up computing a
11983     # maximum length that is only half of the actual maximum length, but
11984     # we can't tell.
11985     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11986     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11987                = "XX$teststring") >/dev/null 2>&1 &&
11988             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11989             lt_cv_sys_max_cmd_len=$new_result &&
11990             test $i != 17 # 1/2 MB should be enough
11991     do
11992       i=`expr $i + 1`
11993       teststring=$teststring$teststring
11994     done
11995     teststring=
11996     # Add a significant safety factor because C++ compilers can tack on massive
11997     # amounts of additional arguments before passing them to the linker.
11998     # It appears as though 1/2 is a usable value.
11999     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12000     ;;
12001   esac
12002
12003 fi
12004
12005 if test -n $lt_cv_sys_max_cmd_len ; then
12006   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12007 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12008 else
12009   echo "$as_me:$LINENO: result: none" >&5
12010 echo "${ECHO_T}none" >&6
12011 fi
12012
12013
12014
12015
12016 # Check for command to grab the raw symbol name followed by C symbol from nm.
12017 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022
12023 # These are sane defaults that work on at least a few old systems.
12024 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12025
12026 # Character class describing NM global symbol codes.
12027 symcode='[BCDEGRST]'
12028
12029 # Regexp to match symbols that can be accessed directly from C.
12030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12031
12032 # Transform an extracted symbol line into a proper C declaration
12033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12034
12035 # Transform an extracted symbol line into symbol name and symbol address
12036 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'"
12037
12038 # Define system-specific variables.
12039 case $host_os in
12040 aix*)
12041   symcode='[BCDT]'
12042   ;;
12043 cygwin* | mingw* | pw32*)
12044   symcode='[ABCDGISTW]'
12045   ;;
12046 hpux*) # Its linker distinguishes data from code symbols
12047   if test "$host_cpu" = ia64; then
12048     symcode='[ABCDEGRST]'
12049   fi
12050   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12051   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'"
12052   ;;
12053 linux*)
12054   if test "$host_cpu" = ia64; then
12055     symcode='[ABCDGIRSTW]'
12056     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12057     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'"
12058   fi
12059   ;;
12060 irix* | nonstopux*)
12061   symcode='[BCDEGRST]'
12062   ;;
12063 osf*)
12064   symcode='[BCDEGQRST]'
12065   ;;
12066 solaris* | sysv5*)
12067   symcode='[BDRT]'
12068   ;;
12069 sysv4)
12070   symcode='[DFNSTU]'
12071   ;;
12072 esac
12073
12074 # Handle CRLF in mingw tool chain
12075 opt_cr=
12076 case $build_os in
12077 mingw*)
12078   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12079   ;;
12080 esac
12081
12082 # If we're using GNU nm, then use its standard symbol codes.
12083 case `$NM -V 2>&1` in
12084 *GNU* | *'with BFD'*)
12085   symcode='[ABCDGIRSTW]' ;;
12086 esac
12087
12088 # Try without a prefix undercore, then with it.
12089 for ac_symprfx in "" "_"; do
12090
12091   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12092   symxfrm="\\1 $ac_symprfx\\2 \\2"
12093
12094   # Write the raw and C identifiers.
12095   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12096
12097   # Check to see that the pipe works correctly.
12098   pipe_works=no
12099
12100   rm -f conftest*
12101   cat > conftest.$ac_ext <<EOF
12102 #ifdef __cplusplus
12103 extern "C" {
12104 #endif
12105 char nm_test_var;
12106 void nm_test_func(){}
12107 #ifdef __cplusplus
12108 }
12109 #endif
12110 int main(){nm_test_var='a';nm_test_func();return(0);}
12111 EOF
12112
12113   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114   (eval $ac_compile) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; then
12118     # Now try to grab the symbols.
12119     nlist=conftest.nm
12120     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12121   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } && test -s "$nlist"; then
12125       # Try sorting and uniquifying the output.
12126       if sort "$nlist" | uniq > "$nlist"T; then
12127         mv -f "$nlist"T "$nlist"
12128       else
12129         rm -f "$nlist"T
12130       fi
12131
12132       # Make sure that we snagged all the symbols we need.
12133       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12134         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12135           cat <<EOF > conftest.$ac_ext
12136 #ifdef __cplusplus
12137 extern "C" {
12138 #endif
12139
12140 EOF
12141           # Now generate the symbol file.
12142           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12143
12144           cat <<EOF >> conftest.$ac_ext
12145 #if defined (__STDC__) && __STDC__
12146 # define lt_ptr_t void *
12147 #else
12148 # define lt_ptr_t char *
12149 # define const
12150 #endif
12151
12152 /* The mapping between symbol names and symbols. */
12153 const struct {
12154   const char *name;
12155   lt_ptr_t address;
12156 }
12157 lt_preloaded_symbols[] =
12158 {
12159 EOF
12160           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12161           cat <<\EOF >> conftest.$ac_ext
12162   {0, (lt_ptr_t) 0}
12163 };
12164
12165 #ifdef __cplusplus
12166 }
12167 #endif
12168 EOF
12169           # Now try linking the two files.
12170           mv conftest.$ac_objext conftstm.$ac_objext
12171           lt_save_LIBS="$LIBS"
12172           lt_save_CFLAGS="$CFLAGS"
12173           LIBS="conftstm.$ac_objext"
12174           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12175           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176   (eval $ac_link) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12180             pipe_works=yes
12181           fi
12182           LIBS="$lt_save_LIBS"
12183           CFLAGS="$lt_save_CFLAGS"
12184         else
12185           echo "cannot find nm_test_func in $nlist" >&5
12186         fi
12187       else
12188         echo "cannot find nm_test_var in $nlist" >&5
12189       fi
12190     else
12191       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12192     fi
12193   else
12194     echo "$progname: failed program was:" >&5
12195     cat conftest.$ac_ext >&5
12196   fi
12197   rm -f conftest* conftst*
12198
12199   # Do not use the global_symbol_pipe unless it works.
12200   if test "$pipe_works" = yes; then
12201     break
12202   else
12203     lt_cv_sys_global_symbol_pipe=
12204   fi
12205 done
12206
12207 fi
12208
12209 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12210   lt_cv_sys_global_symbol_to_cdecl=
12211 fi
12212 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12213   echo "$as_me:$LINENO: result: failed" >&5
12214 echo "${ECHO_T}failed" >&6
12215 else
12216   echo "$as_me:$LINENO: result: ok" >&5
12217 echo "${ECHO_T}ok" >&6
12218 fi
12219
12220 echo "$as_me:$LINENO: checking for objdir" >&5
12221 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12222 if test "${lt_cv_objdir+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   rm -f .libs 2>/dev/null
12226 mkdir .libs 2>/dev/null
12227 if test -d .libs; then
12228   lt_cv_objdir=.libs
12229 else
12230   # MS-DOS does not allow filenames that begin with a dot.
12231   lt_cv_objdir=_libs
12232 fi
12233 rmdir .libs 2>/dev/null
12234 fi
12235 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12236 echo "${ECHO_T}$lt_cv_objdir" >&6
12237 objdir=$lt_cv_objdir
12238
12239
12240
12241
12242
12243 case $host_os in
12244 aix3*)
12245   # AIX sometimes has problems with the GCC collect2 program.  For some
12246   # reason, if we set the COLLECT_NAMES environment variable, the problems
12247   # vanish in a puff of smoke.
12248   if test "X${COLLECT_NAMES+set}" != Xset; then
12249     COLLECT_NAMES=
12250     export COLLECT_NAMES
12251   fi
12252   ;;
12253 esac
12254
12255 # Sed substitution that helps us do robust quoting.  It backslashifies
12256 # metacharacters that are still active within double-quoted strings.
12257 Xsed='sed -e 1s/^X//'
12258 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12259
12260 # Same as above, but do not quote variable references.
12261 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12262
12263 # Sed substitution to delay expansion of an escaped shell variable in a
12264 # double_quote_subst'ed string.
12265 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12266
12267 # Sed substitution to avoid accidental globbing in evaled expressions
12268 no_glob_subst='s/\*/\\\*/g'
12269
12270 # Constants:
12271 rm="rm -f"
12272
12273 # Global variables:
12274 default_ofile=libtool
12275 can_build_shared=yes
12276
12277 # All known linkers require a `.a' archive for static linking (except M$VC,
12278 # which needs '.lib').
12279 libext=a
12280 ltmain="$ac_aux_dir/ltmain.sh"
12281 ofile="$default_ofile"
12282 with_gnu_ld="$lt_cv_prog_gnu_ld"
12283
12284 if test -n "$ac_tool_prefix"; then
12285   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12286 set dummy ${ac_tool_prefix}ar; ac_word=$2
12287 echo "$as_me:$LINENO: checking for $ac_word" >&5
12288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12289 if test "${ac_cv_prog_AR+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   if test -n "$AR"; then
12293   ac_cv_prog_AR="$AR" # Let the user override the test.
12294 else
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298   IFS=$as_save_IFS
12299   test -z "$as_dir" && as_dir=.
12300   for ac_exec_ext in '' $ac_executable_extensions; do
12301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302     ac_cv_prog_AR="${ac_tool_prefix}ar"
12303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12304     break 2
12305   fi
12306 done
12307 done
12308
12309 fi
12310 fi
12311 AR=$ac_cv_prog_AR
12312 if test -n "$AR"; then
12313   echo "$as_me:$LINENO: result: $AR" >&5
12314 echo "${ECHO_T}$AR" >&6
12315 else
12316   echo "$as_me:$LINENO: result: no" >&5
12317 echo "${ECHO_T}no" >&6
12318 fi
12319
12320 fi
12321 if test -z "$ac_cv_prog_AR"; then
12322   ac_ct_AR=$AR
12323   # Extract the first word of "ar", so it can be a program name with args.
12324 set dummy ar; ac_word=$2
12325 echo "$as_me:$LINENO: checking for $ac_word" >&5
12326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12327 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12328   echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330   if test -n "$ac_ct_AR"; then
12331   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12332 else
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12335 do
12336   IFS=$as_save_IFS
12337   test -z "$as_dir" && as_dir=.
12338   for ac_exec_ext in '' $ac_executable_extensions; do
12339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12340     ac_cv_prog_ac_ct_AR="ar"
12341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12342     break 2
12343   fi
12344 done
12345 done
12346
12347   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12348 fi
12349 fi
12350 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12351 if test -n "$ac_ct_AR"; then
12352   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12353 echo "${ECHO_T}$ac_ct_AR" >&6
12354 else
12355   echo "$as_me:$LINENO: result: no" >&5
12356 echo "${ECHO_T}no" >&6
12357 fi
12358
12359   AR=$ac_ct_AR
12360 else
12361   AR="$ac_cv_prog_AR"
12362 fi
12363
12364 if test -n "$ac_tool_prefix"; then
12365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12367 echo "$as_me:$LINENO: checking for $ac_word" >&5
12368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12369 if test "${ac_cv_prog_RANLIB+set}" = set; then
12370   echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372   if test -n "$RANLIB"; then
12373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12374 else
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378   IFS=$as_save_IFS
12379   test -z "$as_dir" && as_dir=.
12380   for ac_exec_ext in '' $ac_executable_extensions; do
12381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12382     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12384     break 2
12385   fi
12386 done
12387 done
12388
12389 fi
12390 fi
12391 RANLIB=$ac_cv_prog_RANLIB
12392 if test -n "$RANLIB"; then
12393   echo "$as_me:$LINENO: result: $RANLIB" >&5
12394 echo "${ECHO_T}$RANLIB" >&6
12395 else
12396   echo "$as_me:$LINENO: result: no" >&5
12397 echo "${ECHO_T}no" >&6
12398 fi
12399
12400 fi
12401 if test -z "$ac_cv_prog_RANLIB"; then
12402   ac_ct_RANLIB=$RANLIB
12403   # Extract the first word of "ranlib", so it can be a program name with args.
12404 set dummy ranlib; ac_word=$2
12405 echo "$as_me:$LINENO: checking for $ac_word" >&5
12406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12408   echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410   if test -n "$ac_ct_RANLIB"; then
12411   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416   IFS=$as_save_IFS
12417   test -z "$as_dir" && as_dir=.
12418   for ac_exec_ext in '' $ac_executable_extensions; do
12419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420     ac_cv_prog_ac_ct_RANLIB="ranlib"
12421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12422     break 2
12423   fi
12424 done
12425 done
12426
12427   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12428 fi
12429 fi
12430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12431 if test -n "$ac_ct_RANLIB"; then
12432   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12433 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12434 else
12435   echo "$as_me:$LINENO: result: no" >&5
12436 echo "${ECHO_T}no" >&6
12437 fi
12438
12439   RANLIB=$ac_ct_RANLIB
12440 else
12441   RANLIB="$ac_cv_prog_RANLIB"
12442 fi
12443
12444 if test -n "$ac_tool_prefix"; then
12445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12446 set dummy ${ac_tool_prefix}strip; ac_word=$2
12447 echo "$as_me:$LINENO: checking for $ac_word" >&5
12448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12449 if test "${ac_cv_prog_STRIP+set}" = set; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   if test -n "$STRIP"; then
12453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458   IFS=$as_save_IFS
12459   test -z "$as_dir" && as_dir=.
12460   for ac_exec_ext in '' $ac_executable_extensions; do
12461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12464     break 2
12465   fi
12466 done
12467 done
12468
12469 fi
12470 fi
12471 STRIP=$ac_cv_prog_STRIP
12472 if test -n "$STRIP"; then
12473   echo "$as_me:$LINENO: result: $STRIP" >&5
12474 echo "${ECHO_T}$STRIP" >&6
12475 else
12476   echo "$as_me:$LINENO: result: no" >&5
12477 echo "${ECHO_T}no" >&6
12478 fi
12479
12480 fi
12481 if test -z "$ac_cv_prog_STRIP"; then
12482   ac_ct_STRIP=$STRIP
12483   # Extract the first word of "strip", so it can be a program name with args.
12484 set dummy strip; ac_word=$2
12485 echo "$as_me:$LINENO: checking for $ac_word" >&5
12486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12487 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12488   echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490   if test -n "$ac_ct_STRIP"; then
12491   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12492 else
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496   IFS=$as_save_IFS
12497   test -z "$as_dir" && as_dir=.
12498   for ac_exec_ext in '' $ac_executable_extensions; do
12499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12500     ac_cv_prog_ac_ct_STRIP="strip"
12501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12502     break 2
12503   fi
12504 done
12505 done
12506
12507   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12508 fi
12509 fi
12510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12511 if test -n "$ac_ct_STRIP"; then
12512   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12513 echo "${ECHO_T}$ac_ct_STRIP" >&6
12514 else
12515   echo "$as_me:$LINENO: result: no" >&5
12516 echo "${ECHO_T}no" >&6
12517 fi
12518
12519   STRIP=$ac_ct_STRIP
12520 else
12521   STRIP="$ac_cv_prog_STRIP"
12522 fi
12523
12524
12525 old_CC="$CC"
12526 old_CFLAGS="$CFLAGS"
12527
12528 # Set sane defaults for various variables
12529 test -z "$AR" && AR=ar
12530 test -z "$AR_FLAGS" && AR_FLAGS=cru
12531 test -z "$AS" && AS=as
12532 test -z "$CC" && CC=cc
12533 test -z "$LTCC" && LTCC=$CC
12534 test -z "$DLLTOOL" && DLLTOOL=dlltool
12535 test -z "$LD" && LD=ld
12536 test -z "$LN_S" && LN_S="ln -s"
12537 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12538 test -z "$NM" && NM=nm
12539 test -z "$SED" && SED=sed
12540 test -z "$OBJDUMP" && OBJDUMP=objdump
12541 test -z "$RANLIB" && RANLIB=:
12542 test -z "$STRIP" && STRIP=:
12543 test -z "$ac_objext" && ac_objext=o
12544
12545 # Determine commands to create old-style static archives.
12546 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12547 old_postinstall_cmds='chmod 644 $oldlib'
12548 old_postuninstall_cmds=
12549
12550 if test -n "$RANLIB"; then
12551   case $host_os in
12552   openbsd*)
12553     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12554     ;;
12555   *)
12556     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12557     ;;
12558   esac
12559   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12560 fi
12561
12562 for cc_temp in $compiler""; do
12563   case $cc_temp in
12564     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12565     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12566     \-*) ;;
12567     *) break;;
12568   esac
12569 done
12570 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12571
12572
12573 # Only perform the check for file, if the check method requires it
12574 case $deplibs_check_method in
12575 file_magic*)
12576   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12577     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12578 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12579 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   case $MAGIC_CMD in
12583 [\\/*] |  ?:[\\/]*)
12584   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12585   ;;
12586 *)
12587   lt_save_MAGIC_CMD="$MAGIC_CMD"
12588   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12589   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12590   for ac_dir in $ac_dummy; do
12591     IFS="$lt_save_ifs"
12592     test -z "$ac_dir" && ac_dir=.
12593     if test -f $ac_dir/${ac_tool_prefix}file; then
12594       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12595       if test -n "$file_magic_test_file"; then
12596         case $deplibs_check_method in
12597         "file_magic "*)
12598           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12599           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12600           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12601             $EGREP "$file_magic_regex" > /dev/null; then
12602             :
12603           else
12604             cat <<EOF 1>&2
12605
12606 *** Warning: the command libtool uses to detect shared libraries,
12607 *** $file_magic_cmd, produces output that libtool cannot recognize.
12608 *** The result is that libtool may fail to recognize shared libraries
12609 *** as such.  This will affect the creation of libtool libraries that
12610 *** depend on shared libraries, but programs linked with such libtool
12611 *** libraries will work regardless of this problem.  Nevertheless, you
12612 *** may want to report the problem to your system manager and/or to
12613 *** bug-libtool@gnu.org
12614
12615 EOF
12616           fi ;;
12617         esac
12618       fi
12619       break
12620     fi
12621   done
12622   IFS="$lt_save_ifs"
12623   MAGIC_CMD="$lt_save_MAGIC_CMD"
12624   ;;
12625 esac
12626 fi
12627
12628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12629 if test -n "$MAGIC_CMD"; then
12630   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12631 echo "${ECHO_T}$MAGIC_CMD" >&6
12632 else
12633   echo "$as_me:$LINENO: result: no" >&5
12634 echo "${ECHO_T}no" >&6
12635 fi
12636
12637 if test -z "$lt_cv_path_MAGIC_CMD"; then
12638   if test -n "$ac_tool_prefix"; then
12639     echo "$as_me:$LINENO: checking for file" >&5
12640 echo $ECHO_N "checking for file... $ECHO_C" >&6
12641 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12642   echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644   case $MAGIC_CMD in
12645 [\\/*] |  ?:[\\/]*)
12646   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12647   ;;
12648 *)
12649   lt_save_MAGIC_CMD="$MAGIC_CMD"
12650   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12651   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12652   for ac_dir in $ac_dummy; do
12653     IFS="$lt_save_ifs"
12654     test -z "$ac_dir" && ac_dir=.
12655     if test -f $ac_dir/file; then
12656       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12657       if test -n "$file_magic_test_file"; then
12658         case $deplibs_check_method in
12659         "file_magic "*)
12660           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12661           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12662           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12663             $EGREP "$file_magic_regex" > /dev/null; then
12664             :
12665           else
12666             cat <<EOF 1>&2
12667
12668 *** Warning: the command libtool uses to detect shared libraries,
12669 *** $file_magic_cmd, produces output that libtool cannot recognize.
12670 *** The result is that libtool may fail to recognize shared libraries
12671 *** as such.  This will affect the creation of libtool libraries that
12672 *** depend on shared libraries, but programs linked with such libtool
12673 *** libraries will work regardless of this problem.  Nevertheless, you
12674 *** may want to report the problem to your system manager and/or to
12675 *** bug-libtool@gnu.org
12676
12677 EOF
12678           fi ;;
12679         esac
12680       fi
12681       break
12682     fi
12683   done
12684   IFS="$lt_save_ifs"
12685   MAGIC_CMD="$lt_save_MAGIC_CMD"
12686   ;;
12687 esac
12688 fi
12689
12690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12691 if test -n "$MAGIC_CMD"; then
12692   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12693 echo "${ECHO_T}$MAGIC_CMD" >&6
12694 else
12695   echo "$as_me:$LINENO: result: no" >&5
12696 echo "${ECHO_T}no" >&6
12697 fi
12698
12699   else
12700     MAGIC_CMD=:
12701   fi
12702 fi
12703
12704   fi
12705   ;;
12706 esac
12707
12708 enable_dlopen=no
12709 enable_win32_dll=no
12710
12711 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12712 if test "${enable_libtool_lock+set}" = set; then
12713   enableval="$enable_libtool_lock"
12714
12715 fi;
12716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12717
12718
12719 # Check whether --with-pic or --without-pic was given.
12720 if test "${with_pic+set}" = set; then
12721   withval="$with_pic"
12722   pic_mode="$withval"
12723 else
12724   pic_mode=default
12725 fi;
12726 test -z "$pic_mode" && pic_mode=default
12727
12728 # Use C for the default configuration in the libtool script
12729 tagname=
12730 lt_save_CC="$CC"
12731 ac_ext=c
12732 ac_cpp='$CPP $CPPFLAGS'
12733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12736
12737
12738 # Source file extension for C test sources.
12739 ac_ext=c
12740
12741 # Object file extension for compiled C test sources.
12742 objext=o
12743 objext=$objext
12744
12745 # Code to be used in simple compile tests
12746 lt_simple_compile_test_code="int some_variable = 0;\n"
12747
12748 # Code to be used in simple link tests
12749 lt_simple_link_test_code='int main(){return(0);}\n'
12750
12751
12752 # If no C compiler was specified, use CC.
12753 LTCC=${LTCC-"$CC"}
12754
12755 # Allow CC to be a program name with arguments.
12756 compiler=$CC
12757
12758
12759 # save warnings/boilerplate of simple test code
12760 ac_outfile=conftest.$ac_objext
12761 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12762 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12763 _lt_compiler_boilerplate=`cat conftest.err`
12764 $rm conftest*
12765
12766 ac_outfile=conftest.$ac_objext
12767 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12768 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12769 _lt_linker_boilerplate=`cat conftest.err`
12770 $rm conftest*
12771
12772
12773 #
12774 # Check for any special shared library compilation flags.
12775 #
12776 lt_prog_cc_shlib=
12777 if test "$GCC" = no; then
12778   case $host_os in
12779   sco3.2v5*)
12780     lt_prog_cc_shlib='-belf'
12781     ;;
12782   esac
12783 fi
12784 if test -n "$lt_prog_cc_shlib"; then
12785   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12786 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12787   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12788   else
12789     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12790 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12791     lt_cv_prog_cc_can_build_shared=no
12792   fi
12793 fi
12794
12795
12796 #
12797 # Check to make sure the static flag actually works.
12798 #
12799 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12800 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12801 if test "${lt_prog_compiler_static_works+set}" = set; then
12802   echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804   lt_prog_compiler_static_works=no
12805    save_LDFLAGS="$LDFLAGS"
12806    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12807    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12808    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12809      # The compiler can only warn and ignore the option if not recognized
12810      # So say no if there are warnings
12811      if test -s conftest.err; then
12812        # Append any errors to the config.log.
12813        cat conftest.err 1>&5
12814        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
12815        $SED '/^$/d' conftest.err >conftest.er2
12816        if diff conftest.exp conftest.er2 >/dev/null; then
12817          lt_prog_compiler_static_works=yes
12818        fi
12819      else
12820        lt_prog_compiler_static_works=yes
12821      fi
12822    fi
12823    $rm conftest*
12824    LDFLAGS="$save_LDFLAGS"
12825
12826 fi
12827 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12828 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12829
12830 if test x"$lt_prog_compiler_static_works" = xyes; then
12831     :
12832 else
12833     lt_prog_compiler_static=
12834 fi
12835
12836
12837
12838
12839 lt_prog_compiler_no_builtin_flag=
12840
12841 if test "$GCC" = yes; then
12842   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12843
12844
12845 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12846 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12847 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   lt_cv_prog_compiler_rtti_exceptions=no
12851   ac_outfile=conftest.$ac_objext
12852    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12853    lt_compiler_flag="-fno-rtti -fno-exceptions"
12854    # Insert the option either (1) after the last *FLAGS variable, or
12855    # (2) before a word containing "conftest.", or (3) at the end.
12856    # Note that $ac_compile itself does not contain backslashes and begins
12857    # with a dollar sign (not a hyphen), so the echo should work correctly.
12858    # The option is referenced via a variable to avoid confusing sed.
12859    lt_compile=`echo "$ac_compile" | $SED \
12860    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12862    -e 's:$: $lt_compiler_flag:'`
12863    (eval echo "\"\$as_me:12863: $lt_compile\"" >&5)
12864    (eval "$lt_compile" 2>conftest.err)
12865    ac_status=$?
12866    cat conftest.err >&5
12867    echo "$as_me:12867: \$? = $ac_status" >&5
12868    if (exit $ac_status) && test -s "$ac_outfile"; then
12869      # The compiler can only warn and ignore the option if not recognized
12870      # So say no if there are warnings other than the usual output.
12871      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12872      $SED '/^$/d' conftest.err >conftest.er2
12873      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12874        lt_cv_prog_compiler_rtti_exceptions=yes
12875      fi
12876    fi
12877    $rm conftest*
12878
12879 fi
12880 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12881 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12882
12883 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12884     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12885 else
12886     :
12887 fi
12888
12889 fi
12890
12891 lt_prog_compiler_wl=
12892 lt_prog_compiler_pic=
12893 lt_prog_compiler_static=
12894
12895 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12897
12898   if test "$GCC" = yes; then
12899     lt_prog_compiler_wl='-Wl,'
12900     lt_prog_compiler_static='-static'
12901
12902     case $host_os in
12903       aix*)
12904       # All AIX code is PIC.
12905       if test "$host_cpu" = ia64; then
12906         # AIX 5 now supports IA64 processor
12907         lt_prog_compiler_static='-Bstatic'
12908       fi
12909       ;;
12910
12911     amigaos*)
12912       # FIXME: we need at least 68020 code to build shared libraries, but
12913       # adding the `-m68020' flag to GCC prevents building anything better,
12914       # like `-m68040'.
12915       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12916       ;;
12917
12918     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12919       # PIC is the default for these OSes.
12920       ;;
12921
12922     mingw* | pw32* | os2*)
12923       # This hack is so that the source file can tell whether it is being
12924       # built for inclusion in a dll (and should export symbols for example).
12925       lt_prog_compiler_pic='-DDLL_EXPORT'
12926       ;;
12927
12928     darwin* | rhapsody*)
12929       # PIC is the default on this platform
12930       # Common symbols not allowed in MH_DYLIB files
12931       lt_prog_compiler_pic='-fno-common'
12932       ;;
12933
12934     msdosdjgpp*)
12935       # Just because we use GCC doesn't mean we suddenly get shared libraries
12936       # on systems that don't support them.
12937       lt_prog_compiler_can_build_shared=no
12938       enable_shared=no
12939       ;;
12940
12941     sysv4*MP*)
12942       if test -d /usr/nec; then
12943         lt_prog_compiler_pic=-Kconform_pic
12944       fi
12945       ;;
12946
12947     hpux*)
12948       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12949       # not for PA HP-UX.
12950       case "$host_cpu" in
12951       hppa*64*|ia64*)
12952         # +Z the default
12953         ;;
12954       *)
12955         lt_prog_compiler_pic='-fPIC'
12956         ;;
12957       esac
12958       ;;
12959
12960     *)
12961       lt_prog_compiler_pic='-fPIC'
12962       ;;
12963     esac
12964   else
12965     # PORTME Check for flag to pass linker flags through the system compiler.
12966     case $host_os in
12967     aix*)
12968       lt_prog_compiler_wl='-Wl,'
12969       if test "$host_cpu" = ia64; then
12970         # AIX 5 now supports IA64 processor
12971         lt_prog_compiler_static='-Bstatic'
12972       else
12973         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12974       fi
12975       ;;
12976       darwin*)
12977         # PIC is the default on this platform
12978         # Common symbols not allowed in MH_DYLIB files
12979        case $cc_basename in
12980          xlc*)
12981          lt_prog_compiler_pic='-qnocommon'
12982          lt_prog_compiler_wl='-Wl,'
12983          ;;
12984        esac
12985        ;;
12986
12987     mingw* | pw32* | os2*)
12988       # This hack is so that the source file can tell whether it is being
12989       # built for inclusion in a dll (and should export symbols for example).
12990       lt_prog_compiler_pic='-DDLL_EXPORT'
12991       ;;
12992
12993     hpux9* | hpux10* | hpux11*)
12994       lt_prog_compiler_wl='-Wl,'
12995       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12996       # not for PA HP-UX.
12997       case "$host_cpu" in
12998       hppa*64*|ia64*)
12999         # +Z the default
13000         ;;
13001       *)
13002         lt_prog_compiler_pic='+Z'
13003         ;;
13004       esac
13005       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13006       lt_prog_compiler_static='${wl}-a ${wl}archive'
13007       ;;
13008
13009     irix5* | irix6* | nonstopux*)
13010       lt_prog_compiler_wl='-Wl,'
13011       # PIC (with -KPIC) is the default.
13012       lt_prog_compiler_static='-non_shared'
13013       ;;
13014
13015     newsos6)
13016       lt_prog_compiler_pic='-KPIC'
13017       lt_prog_compiler_static='-Bstatic'
13018       ;;
13019
13020     linux*)
13021       case $cc_basename in
13022       icc* | ecc*)
13023         lt_prog_compiler_wl='-Wl,'
13024         lt_prog_compiler_pic='-KPIC'
13025         lt_prog_compiler_static='-static'
13026         ;;
13027       pgcc* | pgf77* | pgf90*)
13028         # Portland Group compilers (*not* the Pentium gcc compiler,
13029         # which looks to be a dead project)
13030         lt_prog_compiler_wl='-Wl,'
13031         lt_prog_compiler_pic='-fpic'
13032         lt_prog_compiler_static='-static'
13033         ;;
13034       ccc*)
13035         lt_prog_compiler_wl='-Wl,'
13036         # All Alpha code is PIC.
13037         lt_prog_compiler_static='-non_shared'
13038         ;;
13039       esac
13040       ;;
13041
13042     osf3* | osf4* | osf5*)
13043       lt_prog_compiler_wl='-Wl,'
13044       # All OSF/1 code is PIC.
13045       lt_prog_compiler_static='-non_shared'
13046       ;;
13047
13048     sco3.2v5*)
13049       lt_prog_compiler_pic='-Kpic'
13050       lt_prog_compiler_static='-dn'
13051       ;;
13052
13053     solaris*)
13054       lt_prog_compiler_pic='-KPIC'
13055       lt_prog_compiler_static='-Bstatic'
13056       case $cc_basename in
13057       f77* | f90* | f95*)
13058         lt_prog_compiler_wl='-Qoption ld ';;
13059       *)
13060         lt_prog_compiler_wl='-Wl,';;
13061       esac
13062       ;;
13063
13064     sunos4*)
13065       lt_prog_compiler_wl='-Qoption ld '
13066       lt_prog_compiler_pic='-PIC'
13067       lt_prog_compiler_static='-Bstatic'
13068       ;;
13069
13070     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13071       lt_prog_compiler_wl='-Wl,'
13072       lt_prog_compiler_pic='-KPIC'
13073       lt_prog_compiler_static='-Bstatic'
13074       ;;
13075
13076     sysv4*MP*)
13077       if test -d /usr/nec ;then
13078         lt_prog_compiler_pic='-Kconform_pic'
13079         lt_prog_compiler_static='-Bstatic'
13080       fi
13081       ;;
13082
13083     unicos*)
13084       lt_prog_compiler_wl='-Wl,'
13085       lt_prog_compiler_can_build_shared=no
13086       ;;
13087
13088     uts4*)
13089       lt_prog_compiler_pic='-pic'
13090       lt_prog_compiler_static='-Bstatic'
13091       ;;
13092
13093     *)
13094       lt_prog_compiler_can_build_shared=no
13095       ;;
13096     esac
13097   fi
13098
13099 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13100 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13101
13102 #
13103 # Check to make sure the PIC flag actually works.
13104 #
13105 if test -n "$lt_prog_compiler_pic"; then
13106
13107 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13109 if test "${lt_prog_compiler_pic_works+set}" = set; then
13110   echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112   lt_prog_compiler_pic_works=no
13113   ac_outfile=conftest.$ac_objext
13114    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13115    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13116    # Insert the option either (1) after the last *FLAGS variable, or
13117    # (2) before a word containing "conftest.", or (3) at the end.
13118    # Note that $ac_compile itself does not contain backslashes and begins
13119    # with a dollar sign (not a hyphen), so the echo should work correctly.
13120    # The option is referenced via a variable to avoid confusing sed.
13121    lt_compile=`echo "$ac_compile" | $SED \
13122    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13123    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13124    -e 's:$: $lt_compiler_flag:'`
13125    (eval echo "\"\$as_me:13125: $lt_compile\"" >&5)
13126    (eval "$lt_compile" 2>conftest.err)
13127    ac_status=$?
13128    cat conftest.err >&5
13129    echo "$as_me:13129: \$? = $ac_status" >&5
13130    if (exit $ac_status) && test -s "$ac_outfile"; then
13131      # The compiler can only warn and ignore the option if not recognized
13132      # So say no if there are warnings other than the usual output.
13133      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13134      $SED '/^$/d' conftest.err >conftest.er2
13135      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13136        lt_prog_compiler_pic_works=yes
13137      fi
13138    fi
13139    $rm conftest*
13140
13141 fi
13142 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13143 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13144
13145 if test x"$lt_prog_compiler_pic_works" = xyes; then
13146     case $lt_prog_compiler_pic in
13147      "" | " "*) ;;
13148      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13149      esac
13150 else
13151     lt_prog_compiler_pic=
13152      lt_prog_compiler_can_build_shared=no
13153 fi
13154
13155 fi
13156 case "$host_os" in
13157   # For platforms which do not support PIC, -DPIC is meaningless:
13158   *djgpp*)
13159     lt_prog_compiler_pic=
13160     ;;
13161   *)
13162     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13163     ;;
13164 esac
13165
13166 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13168 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   lt_cv_prog_compiler_c_o=no
13172    $rm -r conftest 2>/dev/null
13173    mkdir conftest
13174    cd conftest
13175    mkdir out
13176    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13177
13178    lt_compiler_flag="-o out/conftest2.$ac_objext"
13179    # Insert the option either (1) after the last *FLAGS variable, or
13180    # (2) before a word containing "conftest.", or (3) at the end.
13181    # Note that $ac_compile itself does not contain backslashes and begins
13182    # with a dollar sign (not a hyphen), so the echo should work correctly.
13183    lt_compile=`echo "$ac_compile" | $SED \
13184    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13186    -e 's:$: $lt_compiler_flag:'`
13187    (eval echo "\"\$as_me:13187: $lt_compile\"" >&5)
13188    (eval "$lt_compile" 2>out/conftest.err)
13189    ac_status=$?
13190    cat out/conftest.err >&5
13191    echo "$as_me:13191: \$? = $ac_status" >&5
13192    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13193    then
13194      # The compiler can only warn and ignore the option if not recognized
13195      # So say no if there are warnings
13196      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13197      $SED '/^$/d' out/conftest.err >out/conftest.er2
13198      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13199        lt_cv_prog_compiler_c_o=yes
13200      fi
13201    fi
13202    chmod u+w .
13203    $rm conftest*
13204    # SGI C++ compiler will create directory out/ii_files/ for
13205    # template instantiation
13206    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13207    $rm out/* && rmdir out
13208    cd ..
13209    rmdir conftest
13210    $rm conftest*
13211
13212 fi
13213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13215
13216
13217 hard_links="nottested"
13218 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13219   # do not overwrite the value of need_locks provided by the user
13220   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13222   hard_links=yes
13223   $rm conftest*
13224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13225   touch conftest.a
13226   ln conftest.a conftest.b 2>&5 || hard_links=no
13227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13228   echo "$as_me:$LINENO: result: $hard_links" >&5
13229 echo "${ECHO_T}$hard_links" >&6
13230   if test "$hard_links" = no; then
13231     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13233     need_locks=warn
13234   fi
13235 else
13236   need_locks=no
13237 fi
13238
13239 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13241
13242   runpath_var=
13243   allow_undefined_flag=
13244   enable_shared_with_static_runtimes=no
13245   archive_cmds=
13246   archive_expsym_cmds=
13247   old_archive_From_new_cmds=
13248   old_archive_from_expsyms_cmds=
13249   export_dynamic_flag_spec=
13250   whole_archive_flag_spec=
13251   thread_safe_flag_spec=
13252   hardcode_libdir_flag_spec=
13253   hardcode_libdir_flag_spec_ld=
13254   hardcode_libdir_separator=
13255   hardcode_direct=no
13256   hardcode_minus_L=no
13257   hardcode_shlibpath_var=unsupported
13258   link_all_deplibs=unknown
13259   hardcode_automatic=no
13260   module_cmds=
13261   module_expsym_cmds=
13262   always_export_symbols=no
13263   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13264   # include_expsyms should be a list of space-separated symbols to be *always*
13265   # included in the symbol list
13266   include_expsyms=
13267   # exclude_expsyms can be an extended regexp of symbols to exclude
13268   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13269   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13270   # as well as any symbol that contains `d'.
13271   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13272   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13273   # platforms (ab)use it in PIC code, but their linkers get confused if
13274   # the symbol is explicitly referenced.  Since portable code cannot
13275   # rely on this symbol name, it's probably fine to never include it in
13276   # preloaded symbol tables.
13277   extract_expsyms_cmds=
13278   # Just being paranoid about ensuring that cc_basename is set.
13279   for cc_temp in $compiler""; do
13280   case $cc_temp in
13281     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13282     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13283     \-*) ;;
13284     *) break;;
13285   esac
13286 done
13287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13288
13289   case $host_os in
13290   cygwin* | mingw* | pw32*)
13291     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13292     # When not using gcc, we currently assume that we are using
13293     # Microsoft Visual C++.
13294     if test "$GCC" != yes; then
13295       with_gnu_ld=no
13296     fi
13297     ;;
13298   openbsd*)
13299     with_gnu_ld=no
13300     ;;
13301   esac
13302
13303   ld_shlibs=yes
13304   if test "$with_gnu_ld" = yes; then
13305     # If archive_cmds runs LD, not CC, wlarc should be empty
13306     wlarc='${wl}'
13307
13308     # Set some defaults for GNU ld with shared library support. These
13309     # are reset later if shared libraries are not supported. Putting them
13310     # here allows them to be overridden if necessary.
13311     runpath_var=LD_RUN_PATH
13312     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13313     export_dynamic_flag_spec='${wl}--export-dynamic'
13314     # ancient GNU ld didn't support --whole-archive et. al.
13315     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13316         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13317       else
13318         whole_archive_flag_spec=
13319     fi
13320     supports_anon_versioning=no
13321     case `$LD -v 2>/dev/null` in
13322       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13323       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13324       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13325       *\ 2.11.*) ;; # other 2.11 versions
13326       *) supports_anon_versioning=yes ;;
13327     esac
13328
13329     # See if GNU ld supports shared libraries.
13330     case $host_os in
13331     aix3* | aix4* | aix5*)
13332       # On AIX/PPC, the GNU linker is very broken
13333       if test "$host_cpu" != ia64; then
13334         ld_shlibs=no
13335         cat <<EOF 1>&2
13336
13337 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13338 *** to be unable to reliably create shared libraries on AIX.
13339 *** Therefore, libtool is disabling shared libraries support.  If you
13340 *** really care for shared libraries, you may want to modify your PATH
13341 *** so that a non-GNU linker is found, and then restart.
13342
13343 EOF
13344       fi
13345       ;;
13346
13347     amigaos*)
13348       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)'
13349       hardcode_libdir_flag_spec='-L$libdir'
13350       hardcode_minus_L=yes
13351
13352       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13353       # that the semantics of dynamic libraries on AmigaOS, at least up
13354       # to version 4, is to share data among multiple programs linked
13355       # with the same dynamic library.  Since this doesn't match the
13356       # behavior of shared libraries on other platforms, we can't use
13357       # them.
13358       ld_shlibs=no
13359       ;;
13360
13361     beos*)
13362       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13363         allow_undefined_flag=unsupported
13364         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13365         # support --undefined.  This deserves some investigation.  FIXME
13366         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367       else
13368         ld_shlibs=no
13369       fi
13370       ;;
13371
13372     cygwin* | mingw* | pw32*)
13373       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13374       # as there is no search path for DLLs.
13375       hardcode_libdir_flag_spec='-L$libdir'
13376       allow_undefined_flag=unsupported
13377       always_export_symbols=no
13378       enable_shared_with_static_runtimes=yes
13379       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13380
13381       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13383         # If the export-symbols file already is a .def file (1st line
13384         # is EXPORTS), use it as is; otherwise, prepend...
13385         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13386           cp $export_symbols $output_objdir/$soname.def;
13387         else
13388           echo EXPORTS > $output_objdir/$soname.def;
13389           cat $export_symbols >> $output_objdir/$soname.def;
13390         fi~
13391         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13392       else
13393         ld_shlibs=no
13394       fi
13395       ;;
13396
13397     linux*)
13398       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13399         tmp_addflag=
13400         case $cc_basename,$host_cpu in
13401         pgcc*)                          # Portland Group C compiler
13402           whole_archive_flag_spec=
13403           ;;
13404         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
13405           whole_archive_flag_spec=
13406           tmp_addflag=' -fpic -Mnomain' ;;
13407         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13408           tmp_addflag=' -i_dynamic' ;;
13409         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13410           tmp_addflag=' -i_dynamic -nofor_main' ;;
13411         ifc* | ifort*)                  # Intel Fortran compiler
13412           tmp_addflag=' -nofor_main' ;;
13413         esac
13414         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13415
13416         if test $supports_anon_versioning = yes; then
13417           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13418   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13419   $echo "local: *; };" >> $output_objdir/$libname.ver~
13420           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13421         fi
13422       else
13423         ld_shlibs=no
13424       fi
13425       ;;
13426
13427     netbsd*)
13428       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13429         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13430         wlarc=
13431       else
13432         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13434       fi
13435       ;;
13436
13437     solaris* | sysv5*)
13438       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13439         ld_shlibs=no
13440         cat <<EOF 1>&2
13441
13442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13443 *** create shared libraries on Solaris systems.  Therefore, libtool
13444 *** is disabling shared libraries support.  We urge you to upgrade GNU
13445 *** binutils to release 2.9.1 or newer.  Another option is to modify
13446 *** your PATH or compiler configuration so that the native linker is
13447 *** used, and then restart.
13448
13449 EOF
13450       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13451         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13453       else
13454         ld_shlibs=no
13455       fi
13456       ;;
13457
13458     sunos4*)
13459       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13460       wlarc=
13461       hardcode_direct=yes
13462       hardcode_shlibpath_var=no
13463       ;;
13464
13465     *)
13466       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13467         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13469       else
13470         ld_shlibs=no
13471       fi
13472       ;;
13473     esac
13474
13475     if test "$ld_shlibs" = no; then
13476       runpath_var=
13477       hardcode_libdir_flag_spec=
13478       export_dynamic_flag_spec=
13479       whole_archive_flag_spec=
13480     fi
13481   else
13482     # PORTME fill in a description of your system's linker (not GNU ld)
13483     case $host_os in
13484     aix3*)
13485       allow_undefined_flag=unsupported
13486       always_export_symbols=yes
13487       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'
13488       # Note: this linker hardcodes the directories in LIBPATH if there
13489       # are no directories specified by -L.
13490       hardcode_minus_L=yes
13491       if test "$GCC" = yes && test -z "$link_static_flag"; then
13492         # Neither direct hardcoding nor static linking is supported with a
13493         # broken collect2.
13494         hardcode_direct=unsupported
13495       fi
13496       ;;
13497
13498     aix4* | aix5*)
13499       if test "$host_cpu" = ia64; then
13500         # On IA64, the linker does run time linking by default, so we don't
13501         # have to do anything special.
13502         aix_use_runtimelinking=no
13503         exp_sym_flag='-Bexport'
13504         no_entry_flag=""
13505       else
13506         # If we're using GNU nm, then we don't want the "-C" option.
13507         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13508         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13509           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'
13510         else
13511           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'
13512         fi
13513         aix_use_runtimelinking=no
13514
13515         # Test if we are trying to use run time linking or normal
13516         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13517         # need to do runtime linking.
13518         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13519           for ld_flag in $LDFLAGS; do
13520           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13521             aix_use_runtimelinking=yes
13522             break
13523           fi
13524           done
13525         esac
13526
13527         exp_sym_flag='-bexport'
13528         no_entry_flag='-bnoentry'
13529       fi
13530
13531       # When large executables or shared objects are built, AIX ld can
13532       # have problems creating the table of contents.  If linking a library
13533       # or program results in "error TOC overflow" add -mminimal-toc to
13534       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13535       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13536
13537       archive_cmds=''
13538       hardcode_direct=yes
13539       hardcode_libdir_separator=':'
13540       link_all_deplibs=yes
13541
13542       if test "$GCC" = yes; then
13543         case $host_os in aix4.[012]|aix4.[012].*)
13544         # We only want to do this on AIX 4.2 and lower, the check
13545         # below for broken collect2 doesn't work under 4.3+
13546           collect2name=`${CC} -print-prog-name=collect2`
13547           if test -f "$collect2name" && \
13548            strings "$collect2name" | grep resolve_lib_name >/dev/null
13549           then
13550           # We have reworked collect2
13551           hardcode_direct=yes
13552           else
13553           # We have old collect2
13554           hardcode_direct=unsupported
13555           # It fails to find uninstalled libraries when the uninstalled
13556           # path is not listed in the libpath.  Setting hardcode_minus_L
13557           # to unsupported forces relinking
13558           hardcode_minus_L=yes
13559           hardcode_libdir_flag_spec='-L$libdir'
13560           hardcode_libdir_separator=
13561           fi
13562         esac
13563         shared_flag='-shared'
13564         if test "$aix_use_runtimelinking" = yes; then
13565           shared_flag="$shared_flag "'${wl}-G'
13566         fi
13567       else
13568         # not using gcc
13569         if test "$host_cpu" = ia64; then
13570         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13571         # chokes on -Wl,-G. The following line is correct:
13572           shared_flag='-G'
13573         else
13574         if test "$aix_use_runtimelinking" = yes; then
13575             shared_flag='${wl}-G'
13576           else
13577             shared_flag='${wl}-bM:SRE'
13578         fi
13579         fi
13580       fi
13581
13582       # It seems that -bexpall does not export symbols beginning with
13583       # underscore (_), so it is better to generate a list of symbols to export.
13584       always_export_symbols=yes
13585       if test "$aix_use_runtimelinking" = yes; then
13586         # Warning - without using the other runtime loading flags (-brtl),
13587         # -berok will link without error, but may produce a broken library.
13588         allow_undefined_flag='-berok'
13589        # Determine the default libpath from the value encoded in an empty executable.
13590        cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596
13597 int
13598 main ()
13599 {
13600
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13607   (eval $ac_link) 2>conftest.er1
13608   ac_status=$?
13609   grep -v '^ *+' conftest.er1 >conftest.err
13610   rm -f conftest.er1
13611   cat conftest.err >&5
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } &&
13614          { ac_try='test -z "$ac_c_werror_flag"
13615                          || test ! -s conftest.err'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; } &&
13621          { ac_try='test -s conftest$ac_exeext'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; }; then
13627
13628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13629 }'`
13630 # Check for a 64-bit object if we didn't find anything.
13631 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; }
13632 }'`; fi
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 fi
13638 rm -f conftest.err conftest.$ac_objext \
13639       conftest$ac_exeext conftest.$ac_ext
13640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13641
13642        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13643         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"
13644        else
13645         if test "$host_cpu" = ia64; then
13646           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13647           allow_undefined_flag="-z nodefs"
13648           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"
13649         else
13650          # Determine the default libpath from the value encoded in an empty executable.
13651          cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657
13658 int
13659 main ()
13660 {
13661
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668   (eval $ac_link) 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -z "$ac_c_werror_flag"
13676                          || test ! -s conftest.err'
13677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678   (eval $ac_try) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; } &&
13682          { ac_try='test -s conftest$ac_exeext'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688
13689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13690 }'`
13691 # Check for a 64-bit object if we didn't find anything.
13692 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; }
13693 }'`; fi
13694 else
13695   echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698 fi
13699 rm -f conftest.err conftest.$ac_objext \
13700       conftest$ac_exeext conftest.$ac_ext
13701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13702
13703          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13704           # Warning - without using the other run time loading flags,
13705           # -berok will link without error, but may produce a broken library.
13706           no_undefined_flag=' ${wl}-bernotok'
13707           allow_undefined_flag=' ${wl}-berok'
13708           # -bexpall does not export symbols beginning with underscore (_)
13709           always_export_symbols=yes
13710           # Exported symbols can be pulled into shared objects from archives
13711           whole_archive_flag_spec=' '
13712           archive_cmds_need_lc=yes
13713           # This is similar to how AIX traditionally builds it's shared libraries.
13714           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'
13715         fi
13716       fi
13717       ;;
13718
13719     amigaos*)
13720       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)'
13721       hardcode_libdir_flag_spec='-L$libdir'
13722       hardcode_minus_L=yes
13723       # see comment about different semantics on the GNU ld section
13724       ld_shlibs=no
13725       ;;
13726
13727     bsdi[45]*)
13728       export_dynamic_flag_spec=-rdynamic
13729       ;;
13730
13731     cygwin* | mingw* | pw32*)
13732       # When not using gcc, we currently assume that we are using
13733       # Microsoft Visual C++.
13734       # hardcode_libdir_flag_spec is actually meaningless, as there is
13735       # no search path for DLLs.
13736       hardcode_libdir_flag_spec=' '
13737       allow_undefined_flag=unsupported
13738       # Tell ltmain to make .lib files, not .a files.
13739       libext=lib
13740       # Tell ltmain to make .dll files, not .so files.
13741       shrext_cmds=".dll"
13742       # FIXME: Setting linknames here is a bad hack.
13743       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13744       # The linker will automatically build a .lib file if we build a DLL.
13745       old_archive_From_new_cmds='true'
13746       # FIXME: Should let the user specify the lib program.
13747       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13748       fix_srcfile_path='`cygpath -w "$srcfile"`'
13749       enable_shared_with_static_runtimes=yes
13750       ;;
13751
13752     darwin* | rhapsody*)
13753       case "$host_os" in
13754         rhapsody* | darwin1.[012])
13755          allow_undefined_flag='${wl}-undefined ${wl}suppress'
13756          ;;
13757        *) # Darwin 1.3 on
13758          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13759            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13760          else
13761            case ${MACOSX_DEPLOYMENT_TARGET} in
13762              10.[012])
13763                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13764                ;;
13765              10.*)
13766                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13767                ;;
13768            esac
13769          fi
13770          ;;
13771       esac
13772       archive_cmds_need_lc=no
13773       hardcode_direct=no
13774       hardcode_automatic=yes
13775       hardcode_shlibpath_var=unsupported
13776       whole_archive_flag_spec=''
13777       link_all_deplibs=yes
13778     if test "$GCC" = yes ; then
13779         output_verbose_link_cmd='echo'
13780         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13781       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13782       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13783       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}'
13784       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}'
13785     else
13786       case $cc_basename in
13787         xlc*)
13788          output_verbose_link_cmd='echo'
13789          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13790          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13791           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13792          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13793           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}'
13794           ;;
13795        *)
13796          ld_shlibs=no
13797           ;;
13798       esac
13799     fi
13800       ;;
13801
13802     dgux*)
13803       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804       hardcode_libdir_flag_spec='-L$libdir'
13805       hardcode_shlibpath_var=no
13806       ;;
13807
13808     freebsd1*)
13809       ld_shlibs=no
13810       ;;
13811
13812     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13813     # support.  Future versions do this automatically, but an explicit c++rt0.o
13814     # does not break anything, and helps significantly (at the cost of a little
13815     # extra space).
13816     freebsd2.2*)
13817       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13818       hardcode_libdir_flag_spec='-R$libdir'
13819       hardcode_direct=yes
13820       hardcode_shlibpath_var=no
13821       ;;
13822
13823     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13824     freebsd2*)
13825       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13826       hardcode_direct=yes
13827       hardcode_minus_L=yes
13828       hardcode_shlibpath_var=no
13829       ;;
13830
13831     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13832     freebsd* | kfreebsd*-gnu | dragonfly*)
13833       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13834       hardcode_libdir_flag_spec='-R$libdir'
13835       hardcode_direct=yes
13836       hardcode_shlibpath_var=no
13837       ;;
13838
13839     hpux9*)
13840       if test "$GCC" = yes; then
13841         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'
13842       else
13843         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'
13844       fi
13845       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13846       hardcode_libdir_separator=:
13847       hardcode_direct=yes
13848
13849       # hardcode_minus_L: Not really in the search PATH,
13850       # but as the default location of the library.
13851       hardcode_minus_L=yes
13852       export_dynamic_flag_spec='${wl}-E'
13853       ;;
13854
13855     hpux10* | hpux11*)
13856       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13857         case "$host_cpu" in
13858         hppa*64*|ia64*)
13859           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13860           ;;
13861         *)
13862           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13863           ;;
13864         esac
13865       else
13866         case "$host_cpu" in
13867         hppa*64*|ia64*)
13868           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13869           ;;
13870         *)
13871           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13872           ;;
13873         esac
13874       fi
13875       if test "$with_gnu_ld" = no; then
13876         case "$host_cpu" in
13877         hppa*64*)
13878           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13879           hardcode_libdir_flag_spec_ld='+b $libdir'
13880           hardcode_libdir_separator=:
13881           hardcode_direct=no
13882           hardcode_shlibpath_var=no
13883           ;;
13884         ia64*)
13885           hardcode_libdir_flag_spec='-L$libdir'
13886           hardcode_direct=no
13887           hardcode_shlibpath_var=no
13888
13889           # hardcode_minus_L: Not really in the search PATH,
13890           # but as the default location of the library.
13891           hardcode_minus_L=yes
13892           ;;
13893         *)
13894           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13895           hardcode_libdir_separator=:
13896           hardcode_direct=yes
13897           export_dynamic_flag_spec='${wl}-E'
13898
13899           # hardcode_minus_L: Not really in the search PATH,
13900           # but as the default location of the library.
13901           hardcode_minus_L=yes
13902           ;;
13903         esac
13904       fi
13905       ;;
13906
13907     irix5* | irix6* | nonstopux*)
13908       if test "$GCC" = yes; then
13909         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'
13910       else
13911         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'
13912         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13913       fi
13914       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13915       hardcode_libdir_separator=:
13916       link_all_deplibs=yes
13917       ;;
13918
13919     netbsd*)
13920       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13921         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13922       else
13923         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13924       fi
13925       hardcode_libdir_flag_spec='-R$libdir'
13926       hardcode_direct=yes
13927       hardcode_shlibpath_var=no
13928       ;;
13929
13930     newsos6)
13931       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932       hardcode_direct=yes
13933       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13934       hardcode_libdir_separator=:
13935       hardcode_shlibpath_var=no
13936       ;;
13937
13938     openbsd*)
13939       hardcode_direct=yes
13940       hardcode_shlibpath_var=no
13941       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13942         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13943         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13944         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13945         export_dynamic_flag_spec='${wl}-E'
13946       else
13947        case $host_os in
13948          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13949            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13950            hardcode_libdir_flag_spec='-R$libdir'
13951            ;;
13952          *)
13953            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13954            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13955            ;;
13956        esac
13957       fi
13958       ;;
13959
13960     os2*)
13961       hardcode_libdir_flag_spec='-L$libdir'
13962       hardcode_minus_L=yes
13963       allow_undefined_flag=unsupported
13964       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'
13965       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13966       ;;
13967
13968     osf3*)
13969       if test "$GCC" = yes; then
13970         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13971         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'
13972       else
13973         allow_undefined_flag=' -expect_unresolved \*'
13974         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'
13975       fi
13976       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13977       hardcode_libdir_separator=:
13978       ;;
13979
13980     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13981       if test "$GCC" = yes; then
13982         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13983         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'
13984         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13985       else
13986         allow_undefined_flag=' -expect_unresolved \*'
13987         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'
13988         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13989         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13990
13991         # Both c and cxx compiler support -rpath directly
13992         hardcode_libdir_flag_spec='-rpath $libdir'
13993       fi
13994       hardcode_libdir_separator=:
13995       ;;
13996
13997     sco3.2v5*)
13998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13999       hardcode_shlibpath_var=no
14000       export_dynamic_flag_spec='${wl}-Bexport'
14001       runpath_var=LD_RUN_PATH
14002       hardcode_runpath_var=yes
14003       ;;
14004
14005     solaris*)
14006       no_undefined_flag=' -z text'
14007       if test "$GCC" = yes; then
14008         wlarc='${wl}'
14009         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14010         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14011           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14012       else
14013         wlarc=''
14014         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14016         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14017       fi
14018       hardcode_libdir_flag_spec='-R$libdir'
14019       hardcode_shlibpath_var=no
14020       case $host_os in
14021       solaris2.[0-5] | solaris2.[0-5].*) ;;
14022       *)
14023         # The compiler driver will combine linker options so we
14024         # cannot just pass the convience library names through
14025         # without $wl, iff we do not link with $LD.
14026         # Luckily, gcc supports the same syntax we need for Sun Studio.
14027         # Supported since Solaris 2.6 (maybe 2.5.1?)
14028         case $wlarc in
14029         '')
14030           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14031         *)
14032           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14033         esac ;;
14034       esac
14035       link_all_deplibs=yes
14036       ;;
14037
14038     sunos4*)
14039       if test "x$host_vendor" = xsequent; then
14040         # Use $CC to link under sequent, because it throws in some extra .o
14041         # files that make .init and .fini sections work.
14042         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14043       else
14044         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14045       fi
14046       hardcode_libdir_flag_spec='-L$libdir'
14047       hardcode_direct=yes
14048       hardcode_minus_L=yes
14049       hardcode_shlibpath_var=no
14050       ;;
14051
14052     sysv4)
14053       case $host_vendor in
14054         sni)
14055           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14056           hardcode_direct=yes # is this really true???
14057         ;;
14058         siemens)
14059           ## LD is ld it makes a PLAMLIB
14060           ## CC just makes a GrossModule.
14061           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14062           reload_cmds='$CC -r -o $output$reload_objs'
14063           hardcode_direct=no
14064         ;;
14065         motorola)
14066           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14067           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14068         ;;
14069       esac
14070       runpath_var='LD_RUN_PATH'
14071       hardcode_shlibpath_var=no
14072       ;;
14073
14074     sysv4.3*)
14075       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14076       hardcode_shlibpath_var=no
14077       export_dynamic_flag_spec='-Bexport'
14078       ;;
14079
14080     sysv4*MP*)
14081       if test -d /usr/nec; then
14082         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14083         hardcode_shlibpath_var=no
14084         runpath_var=LD_RUN_PATH
14085         hardcode_runpath_var=yes
14086         ld_shlibs=yes
14087       fi
14088       ;;
14089
14090     sysv4.2uw2*)
14091       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14092       hardcode_direct=yes
14093       hardcode_minus_L=no
14094       hardcode_shlibpath_var=no
14095       hardcode_runpath_var=yes
14096       runpath_var=LD_RUN_PATH
14097       ;;
14098
14099    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14100       no_undefined_flag='${wl}-z ${wl}text'
14101       if test "$GCC" = yes; then
14102         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14103       else
14104         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14105       fi
14106       runpath_var='LD_RUN_PATH'
14107       hardcode_shlibpath_var=no
14108       ;;
14109
14110     sysv5*)
14111       no_undefined_flag=' -z text'
14112       # $CC -shared without GNU ld will not create a library from C++
14113       # object files and a static libstdc++, better avoid it by now
14114       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14115       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14116                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14117       hardcode_libdir_flag_spec=
14118       hardcode_shlibpath_var=no
14119       runpath_var='LD_RUN_PATH'
14120       ;;
14121
14122     uts4*)
14123       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14124       hardcode_libdir_flag_spec='-L$libdir'
14125       hardcode_shlibpath_var=no
14126       ;;
14127
14128     *)
14129       ld_shlibs=no
14130       ;;
14131     esac
14132   fi
14133
14134 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14135 echo "${ECHO_T}$ld_shlibs" >&6
14136 test "$ld_shlibs" = no && can_build_shared=no
14137
14138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14139 if test "$GCC" = yes; then
14140   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14141 fi
14142
14143 #
14144 # Do we need to explicitly link libc?
14145 #
14146 case "x$archive_cmds_need_lc" in
14147 x|xyes)
14148   # Assume -lc should be added
14149   archive_cmds_need_lc=yes
14150
14151   if test "$enable_shared" = yes && test "$GCC" = yes; then
14152     case $archive_cmds in
14153     *'~'*)
14154       # FIXME: we may have to deal with multi-command sequences.
14155       ;;
14156     '$CC '*)
14157       # Test whether the compiler implicitly links with -lc since on some
14158       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14159       # to ld, don't add -lc before -lgcc.
14160       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14161 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14162       $rm conftest*
14163       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14164
14165       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14166   (eval $ac_compile) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } 2>conftest.err; then
14170         soname=conftest
14171         lib=conftest
14172         libobjs=conftest.$ac_objext
14173         deplibs=
14174         wl=$lt_prog_compiler_wl
14175         compiler_flags=-v
14176         linker_flags=-v
14177         verstring=
14178         output_objdir=.
14179         libname=conftest
14180         lt_save_allow_undefined_flag=$allow_undefined_flag
14181         allow_undefined_flag=
14182         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14183   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }
14187         then
14188           archive_cmds_need_lc=no
14189         else
14190           archive_cmds_need_lc=yes
14191         fi
14192         allow_undefined_flag=$lt_save_allow_undefined_flag
14193       else
14194         cat conftest.err 1>&5
14195       fi
14196       $rm conftest*
14197       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14198 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14199       ;;
14200     esac
14201   fi
14202   ;;
14203 esac
14204
14205 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14206 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14207 library_names_spec=
14208 libname_spec='lib$name'
14209 soname_spec=
14210 shrext_cmds=".so"
14211 postinstall_cmds=
14212 postuninstall_cmds=
14213 finish_cmds=
14214 finish_eval=
14215 shlibpath_var=
14216 shlibpath_overrides_runpath=unknown
14217 version_type=none
14218 dynamic_linker="$host_os ld.so"
14219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14220 if test "$GCC" = yes; then
14221   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14222   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14223     # if the path contains ";" then we assume it to be the separator
14224     # otherwise default to the standard path separator (i.e. ":") - it is
14225     # assumed that no part of a normal pathname contains ";" but that should
14226     # okay in the real world where ";" in dirpaths is itself problematic.
14227     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14228   else
14229     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14230   fi
14231 else
14232   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14233 fi
14234 need_lib_prefix=unknown
14235 hardcode_into_libs=no
14236
14237 # when you set need_version to no, make sure it does not cause -set_version
14238 # flags to be left without arguments
14239 need_version=unknown
14240
14241 case $host_os in
14242 aix3*)
14243   version_type=linux
14244   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14245   shlibpath_var=LIBPATH
14246
14247   # AIX 3 has no versioning support, so we append a major version to the name.
14248   soname_spec='${libname}${release}${shared_ext}$major'
14249   ;;
14250
14251 aix4* | aix5*)
14252   version_type=linux
14253   need_lib_prefix=no
14254   need_version=no
14255   hardcode_into_libs=yes
14256   if test "$host_cpu" = ia64; then
14257     # AIX 5 supports IA64
14258     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14259     shlibpath_var=LD_LIBRARY_PATH
14260   else
14261     # With GCC up to 2.95.x, collect2 would create an import file
14262     # for dependence libraries.  The import file would start with
14263     # the line `#! .'.  This would cause the generated library to
14264     # depend on `.', always an invalid library.  This was fixed in
14265     # development snapshots of GCC prior to 3.0.
14266     case $host_os in
14267       aix4 | aix4.[01] | aix4.[01].*)
14268       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14269            echo ' yes '
14270            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14271         :
14272       else
14273         can_build_shared=no
14274       fi
14275       ;;
14276     esac
14277     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14278     # soname into executable. Probably we can add versioning support to
14279     # collect2, so additional links can be useful in future.
14280     if test "$aix_use_runtimelinking" = yes; then
14281       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14282       # instead of lib<name>.a to let people know that these are not
14283       # typical AIX shared libraries.
14284       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285     else
14286       # We preserve .a as extension for shared libraries through AIX4.2
14287       # and later when we are not doing run time linking.
14288       library_names_spec='${libname}${release}.a $libname.a'
14289       soname_spec='${libname}${release}${shared_ext}$major'
14290     fi
14291     shlibpath_var=LIBPATH
14292   fi
14293   ;;
14294
14295 amigaos*)
14296   library_names_spec='$libname.ixlibrary $libname.a'
14297   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14298   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'
14299   ;;
14300
14301 beos*)
14302   library_names_spec='${libname}${shared_ext}'
14303   dynamic_linker="$host_os ld.so"
14304   shlibpath_var=LIBRARY_PATH
14305   ;;
14306
14307 bsdi[45]*)
14308   version_type=linux
14309   need_version=no
14310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311   soname_spec='${libname}${release}${shared_ext}$major'
14312   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14313   shlibpath_var=LD_LIBRARY_PATH
14314   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14315   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14316   # the default ld.so.conf also contains /usr/contrib/lib and
14317   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14318   # libtool to hard-code these into programs
14319   ;;
14320
14321 cygwin* | mingw* | pw32*)
14322   version_type=windows
14323   shrext_cmds=".dll"
14324   need_version=no
14325   need_lib_prefix=no
14326
14327   case $GCC,$host_os in
14328   yes,cygwin* | yes,mingw* | yes,pw32*)
14329     library_names_spec='$libname.dll.a'
14330     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14331     postinstall_cmds='base_file=`basename \${file}`~
14332       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14333       dldir=$destdir/`dirname \$dlpath`~
14334       test -d \$dldir || mkdir -p \$dldir~
14335       $install_prog $dir/$dlname \$dldir/$dlname'
14336     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14337       dlpath=$dir/\$dldll~
14338        $rm \$dlpath'
14339     shlibpath_overrides_runpath=yes
14340
14341     case $host_os in
14342     cygwin*)
14343       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14344       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14345       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14346       ;;
14347     mingw*)
14348       # MinGW DLLs use traditional 'lib' prefix
14349       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14350       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14351       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14352         # It is most probably a Windows format PATH printed by
14353         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14354         # path with ; separators, and with drive letters. We can handle the
14355         # drive letters (cygwin fileutils understands them), so leave them,
14356         # especially as we might pass files found there to a mingw objdump,
14357         # which wouldn't understand a cygwinified path. Ahh.
14358         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14359       else
14360         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14361       fi
14362       ;;
14363     pw32*)
14364       # pw32 DLLs use 'pw' prefix rather than 'lib'
14365       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14366       ;;
14367     esac
14368     ;;
14369
14370   *)
14371     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14372     ;;
14373   esac
14374   dynamic_linker='Win32 ld.exe'
14375   # FIXME: first we should search . and the directory the executable is in
14376   shlibpath_var=PATH
14377   ;;
14378
14379 darwin* | rhapsody*)
14380   dynamic_linker="$host_os dyld"
14381   version_type=darwin
14382   need_lib_prefix=no
14383   need_version=no
14384   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14385   soname_spec='${libname}${release}${major}$shared_ext'
14386   shlibpath_overrides_runpath=yes
14387   shlibpath_var=DYLD_LIBRARY_PATH
14388   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14389   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14390   if test "$GCC" = yes; then
14391     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"`
14392   else
14393     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14394   fi
14395   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14396   ;;
14397
14398 dgux*)
14399   version_type=linux
14400   need_lib_prefix=no
14401   need_version=no
14402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14403   soname_spec='${libname}${release}${shared_ext}$major'
14404   shlibpath_var=LD_LIBRARY_PATH
14405   ;;
14406
14407 freebsd1*)
14408   dynamic_linker=no
14409   ;;
14410
14411 kfreebsd*-gnu)
14412   version_type=linux
14413   need_lib_prefix=no
14414   need_version=no
14415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14416   soname_spec='${libname}${release}${shared_ext}$major'
14417   shlibpath_var=LD_LIBRARY_PATH
14418   shlibpath_overrides_runpath=no
14419   hardcode_into_libs=yes
14420   dynamic_linker='GNU ld.so'
14421   ;;
14422
14423 freebsd* | dragonfly*)
14424   # DragonFly does not have aout.  When/if they implement a new
14425   # versioning mechanism, adjust this.
14426   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14427   version_type=freebsd-$objformat
14428   case $version_type in
14429     freebsd-elf*)
14430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14431       need_version=no
14432       need_lib_prefix=no
14433       ;;
14434     freebsd-*)
14435       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14436       need_version=yes
14437       ;;
14438   esac
14439   shlibpath_var=LD_LIBRARY_PATH
14440   case $host_os in
14441   freebsd2*)
14442     shlibpath_overrides_runpath=yes
14443     ;;
14444   freebsd3.[01]* | freebsdelf3.[01]*)
14445     shlibpath_overrides_runpath=yes
14446     hardcode_into_libs=yes
14447     ;;
14448   *) # from 3.2 on
14449     shlibpath_overrides_runpath=no
14450     hardcode_into_libs=yes
14451     ;;
14452   esac
14453   ;;
14454
14455 gnu*)
14456   version_type=linux
14457   need_lib_prefix=no
14458   need_version=no
14459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14460   soname_spec='${libname}${release}${shared_ext}$major'
14461   shlibpath_var=LD_LIBRARY_PATH
14462   hardcode_into_libs=yes
14463   ;;
14464
14465 hpux9* | hpux10* | hpux11*)
14466   # Give a soname corresponding to the major version so that dld.sl refuses to
14467   # link against other versions.
14468   version_type=sunos
14469   need_lib_prefix=no
14470   need_version=no
14471   case "$host_cpu" in
14472   ia64*)
14473     shrext_cmds='.so'
14474     hardcode_into_libs=yes
14475     dynamic_linker="$host_os dld.so"
14476     shlibpath_var=LD_LIBRARY_PATH
14477     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479     soname_spec='${libname}${release}${shared_ext}$major'
14480     if test "X$HPUX_IA64_MODE" = X32; then
14481       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14482     else
14483       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14484     fi
14485     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14486     ;;
14487    hppa*64*)
14488      shrext_cmds='.sl'
14489      hardcode_into_libs=yes
14490      dynamic_linker="$host_os dld.sl"
14491      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14492      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14493      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494      soname_spec='${libname}${release}${shared_ext}$major'
14495      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14496      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14497      ;;
14498    *)
14499     shrext_cmds='.sl'
14500     dynamic_linker="$host_os dld.sl"
14501     shlibpath_var=SHLIB_PATH
14502     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504     soname_spec='${libname}${release}${shared_ext}$major'
14505     ;;
14506   esac
14507   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14508   postinstall_cmds='chmod 555 $lib'
14509   ;;
14510
14511 irix5* | irix6* | nonstopux*)
14512   case $host_os in
14513     nonstopux*) version_type=nonstopux ;;
14514     *)
14515         if test "$lt_cv_prog_gnu_ld" = yes; then
14516                 version_type=linux
14517         else
14518                 version_type=irix
14519         fi ;;
14520   esac
14521   need_lib_prefix=no
14522   need_version=no
14523   soname_spec='${libname}${release}${shared_ext}$major'
14524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14525   case $host_os in
14526   irix5* | nonstopux*)
14527     libsuff= shlibsuff=
14528     ;;
14529   *)
14530     case $LD in # libtool.m4 will add one of these switches to LD
14531     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14532       libsuff= shlibsuff= libmagic=32-bit;;
14533     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14534       libsuff=32 shlibsuff=N32 libmagic=N32;;
14535     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14536       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14537     *) libsuff= shlibsuff= libmagic=never-match;;
14538     esac
14539     ;;
14540   esac
14541   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14542   shlibpath_overrides_runpath=no
14543   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14544   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14545   hardcode_into_libs=yes
14546   ;;
14547
14548 # No shared lib support for Linux oldld, aout, or coff.
14549 linux*oldld* | linux*aout* | linux*coff*)
14550   dynamic_linker=no
14551   ;;
14552
14553 # This must be Linux ELF.
14554 linux*)
14555   version_type=linux
14556   need_lib_prefix=no
14557   need_version=no
14558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559   soname_spec='${libname}${release}${shared_ext}$major'
14560   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14561   shlibpath_var=LD_LIBRARY_PATH
14562   shlibpath_overrides_runpath=no
14563   # This implies no fast_install, which is unacceptable.
14564   # Some rework will be needed to allow for fast_install
14565   # before this can be enabled.
14566   hardcode_into_libs=yes
14567
14568   # find out which ABI we are using
14569   libsuff=
14570   case "$host_cpu" in
14571   x86_64*|s390x*|powerpc64*)
14572     echo '#line 14572 "configure"' > conftest.$ac_ext
14573     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574   (eval $ac_compile) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; then
14578       case `/usr/bin/file conftest.$ac_objext` in
14579       *64-bit*)
14580         libsuff=64
14581         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14582         ;;
14583       esac
14584     fi
14585     rm -rf conftest*
14586     ;;
14587   esac
14588
14589   # Append ld.so.conf contents to the search path
14590   if test -f /etc/ld.so.conf; then
14591     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14592     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14593   fi
14594
14595   # We used to test for /lib/ld.so.1 and disable shared libraries on
14596   # powerpc, because MkLinux only supported shared libraries with the
14597   # GNU dynamic linker.  Since this was broken with cross compilers,
14598   # most powerpc-linux boxes support dynamic linking these days and
14599   # people can always --disable-shared, the test was removed, and we
14600   # assume the GNU/Linux dynamic linker is in use.
14601   dynamic_linker='GNU/Linux ld.so'
14602   ;;
14603
14604 knetbsd*-gnu)
14605   version_type=linux
14606   need_lib_prefix=no
14607   need_version=no
14608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14609   soname_spec='${libname}${release}${shared_ext}$major'
14610   shlibpath_var=LD_LIBRARY_PATH
14611   shlibpath_overrides_runpath=no
14612   hardcode_into_libs=yes
14613   dynamic_linker='GNU ld.so'
14614   ;;
14615
14616 netbsd*)
14617   version_type=sunos
14618   need_lib_prefix=no
14619   need_version=no
14620   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14622     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14623     dynamic_linker='NetBSD (a.out) ld.so'
14624   else
14625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14626     soname_spec='${libname}${release}${shared_ext}$major'
14627     dynamic_linker='NetBSD ld.elf_so'
14628   fi
14629   shlibpath_var=LD_LIBRARY_PATH
14630   shlibpath_overrides_runpath=yes
14631   hardcode_into_libs=yes
14632   ;;
14633
14634 newsos6)
14635   version_type=linux
14636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637   shlibpath_var=LD_LIBRARY_PATH
14638   shlibpath_overrides_runpath=yes
14639   ;;
14640
14641 nto-qnx*)
14642   version_type=linux
14643   need_lib_prefix=no
14644   need_version=no
14645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14646   soname_spec='${libname}${release}${shared_ext}$major'
14647   shlibpath_var=LD_LIBRARY_PATH
14648   shlibpath_overrides_runpath=yes
14649   ;;
14650
14651 openbsd*)
14652   version_type=sunos
14653   need_lib_prefix=no
14654   need_version=no
14655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657   shlibpath_var=LD_LIBRARY_PATH
14658   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14659     case $host_os in
14660       openbsd2.[89] | openbsd2.[89].*)
14661         shlibpath_overrides_runpath=no
14662         ;;
14663       *)
14664         shlibpath_overrides_runpath=yes
14665         ;;
14666       esac
14667   else
14668     shlibpath_overrides_runpath=yes
14669   fi
14670   ;;
14671
14672 os2*)
14673   libname_spec='$name'
14674   shrext_cmds=".dll"
14675   need_lib_prefix=no
14676   library_names_spec='$libname${shared_ext} $libname.a'
14677   dynamic_linker='OS/2 ld.exe'
14678   shlibpath_var=LIBPATH
14679   ;;
14680
14681 osf3* | osf4* | osf5*)
14682   version_type=osf
14683   need_lib_prefix=no
14684   need_version=no
14685   soname_spec='${libname}${release}${shared_ext}$major'
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687   shlibpath_var=LD_LIBRARY_PATH
14688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14690   ;;
14691
14692 sco3.2v5*)
14693   version_type=osf
14694   soname_spec='${libname}${release}${shared_ext}$major'
14695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   ;;
14698
14699 solaris*)
14700   version_type=linux
14701   need_lib_prefix=no
14702   need_version=no
14703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704   soname_spec='${libname}${release}${shared_ext}$major'
14705   shlibpath_var=LD_LIBRARY_PATH
14706   shlibpath_overrides_runpath=yes
14707   hardcode_into_libs=yes
14708   # ldd complains unless libraries are executable
14709   postinstall_cmds='chmod +x $lib'
14710   ;;
14711
14712 sunos4*)
14713   version_type=sunos
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14715   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14716   shlibpath_var=LD_LIBRARY_PATH
14717   shlibpath_overrides_runpath=yes
14718   if test "$with_gnu_ld" = yes; then
14719     need_lib_prefix=no
14720   fi
14721   need_version=yes
14722   ;;
14723
14724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14725   version_type=linux
14726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727   soname_spec='${libname}${release}${shared_ext}$major'
14728   shlibpath_var=LD_LIBRARY_PATH
14729   case $host_vendor in
14730     sni)
14731       shlibpath_overrides_runpath=no
14732       need_lib_prefix=no
14733       export_dynamic_flag_spec='${wl}-Blargedynsym'
14734       runpath_var=LD_RUN_PATH
14735       ;;
14736     siemens)
14737       need_lib_prefix=no
14738       ;;
14739     motorola)
14740       need_lib_prefix=no
14741       need_version=no
14742       shlibpath_overrides_runpath=no
14743       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14744       ;;
14745   esac
14746   ;;
14747
14748 sysv4*MP*)
14749   if test -d /usr/nec ;then
14750     version_type=linux
14751     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14752     soname_spec='$libname${shared_ext}.$major'
14753     shlibpath_var=LD_LIBRARY_PATH
14754   fi
14755   ;;
14756
14757 uts4*)
14758   version_type=linux
14759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760   soname_spec='${libname}${release}${shared_ext}$major'
14761   shlibpath_var=LD_LIBRARY_PATH
14762   ;;
14763
14764 *)
14765   dynamic_linker=no
14766   ;;
14767 esac
14768 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14769 echo "${ECHO_T}$dynamic_linker" >&6
14770 test "$dynamic_linker" = no && can_build_shared=no
14771
14772 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14774 hardcode_action=
14775 if test -n "$hardcode_libdir_flag_spec" || \
14776    test -n "$runpath_var" || \
14777    test "X$hardcode_automatic" = "Xyes" ; then
14778
14779   # We can hardcode non-existant directories.
14780   if test "$hardcode_direct" != no &&
14781      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14782      # have to relink, otherwise we might link with an installed library
14783      # when we should be linking with a yet-to-be-installed one
14784      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14785      test "$hardcode_minus_L" != no; then
14786     # Linking always hardcodes the temporary library directory.
14787     hardcode_action=relink
14788   else
14789     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14790     hardcode_action=immediate
14791   fi
14792 else
14793   # We cannot hardcode anything, or else we can only hardcode existing
14794   # directories.
14795   hardcode_action=unsupported
14796 fi
14797 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14798 echo "${ECHO_T}$hardcode_action" >&6
14799
14800 if test "$hardcode_action" = relink; then
14801   # Fast installation is not supported
14802   enable_fast_install=no
14803 elif test "$shlibpath_overrides_runpath" = yes ||
14804      test "$enable_shared" = no; then
14805   # Fast installation is not necessary
14806   enable_fast_install=needless
14807 fi
14808
14809 striplib=
14810 old_striplib=
14811 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14812 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14813 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14814   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14815   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14816   echo "$as_me:$LINENO: result: yes" >&5
14817 echo "${ECHO_T}yes" >&6
14818 else
14819 # FIXME - insert some real tests, host_os isn't really good enough
14820   case $host_os in
14821    darwin*)
14822        if test -n "$STRIP" ; then
14823          striplib="$STRIP -x"
14824          echo "$as_me:$LINENO: result: yes" >&5
14825 echo "${ECHO_T}yes" >&6
14826        else
14827   echo "$as_me:$LINENO: result: no" >&5
14828 echo "${ECHO_T}no" >&6
14829 fi
14830        ;;
14831    *)
14832   echo "$as_me:$LINENO: result: no" >&5
14833 echo "${ECHO_T}no" >&6
14834     ;;
14835   esac
14836 fi
14837
14838 if test "x$enable_dlopen" != xyes; then
14839   enable_dlopen=unknown
14840   enable_dlopen_self=unknown
14841   enable_dlopen_self_static=unknown
14842 else
14843   lt_cv_dlopen=no
14844   lt_cv_dlopen_libs=
14845
14846   case $host_os in
14847   beos*)
14848     lt_cv_dlopen="load_add_on"
14849     lt_cv_dlopen_libs=
14850     lt_cv_dlopen_self=yes
14851     ;;
14852
14853   mingw* | pw32*)
14854     lt_cv_dlopen="LoadLibrary"
14855     lt_cv_dlopen_libs=
14856    ;;
14857
14858   cygwin*)
14859     lt_cv_dlopen="dlopen"
14860     lt_cv_dlopen_libs=
14861    ;;
14862
14863   darwin*)
14864   # if libdl is installed we need to link against it
14865     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14868   echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870   ac_check_lib_save_LIBS=$LIBS
14871 LIBS="-ldl  $LIBS"
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878
14879 /* Override any gcc2 internal prototype to avoid an error.  */
14880 #ifdef __cplusplus
14881 extern "C"
14882 #endif
14883 /* We use char because int might match the return type of a gcc2
14884    builtin and then its argument prototype would still apply.  */
14885 char dlopen ();
14886 int
14887 main ()
14888 {
14889 dlopen ();
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14896   (eval $ac_link) 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -z "$ac_c_werror_flag"
14904                          || test ! -s conftest.err'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; } &&
14910          { ac_try='test -s conftest$ac_exeext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_cv_lib_dl_dlopen=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_cv_lib_dl_dlopen=no
14922 fi
14923 rm -f conftest.err conftest.$ac_objext \
14924       conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14926 fi
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14929 if test $ac_cv_lib_dl_dlopen = yes; then
14930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14931 else
14932
14933     lt_cv_dlopen="dyld"
14934     lt_cv_dlopen_libs=
14935     lt_cv_dlopen_self=yes
14936
14937 fi
14938
14939    ;;
14940
14941   *)
14942     echo "$as_me:$LINENO: checking for shl_load" >&5
14943 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14944 if test "${ac_cv_func_shl_load+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14955 #define shl_load innocuous_shl_load
14956
14957 /* System header to define __stub macros and hopefully few prototypes,
14958     which can conflict with char shl_load (); below.
14959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14960     <limits.h> exists even on freestanding compilers.  */
14961
14962 #ifdef __STDC__
14963 # include <limits.h>
14964 #else
14965 # include <assert.h>
14966 #endif
14967
14968 #undef shl_load
14969
14970 /* Override any gcc2 internal prototype to avoid an error.  */
14971 #ifdef __cplusplus
14972 extern "C"
14973 {
14974 #endif
14975 /* We use char because int might match the return type of a gcc2
14976    builtin and then its argument prototype would still apply.  */
14977 char shl_load ();
14978 /* The GNU C library defines this for functions which it implements
14979     to always fail with ENOSYS.  Some functions are actually named
14980     something starting with __ and the normal name is an alias.  */
14981 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14982 choke me
14983 #else
14984 char (*f) () = shl_load;
14985 #endif
14986 #ifdef __cplusplus
14987 }
14988 #endif
14989
14990 int
14991 main ()
14992 {
14993 return f != shl_load;
14994   ;
14995   return 0;
14996 }
14997 _ACEOF
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15000   (eval $ac_link) 2>conftest.er1
15001   ac_status=$?
15002   grep -v '^ *+' conftest.er1 >conftest.err
15003   rm -f conftest.er1
15004   cat conftest.err >&5
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } &&
15007          { ac_try='test -z "$ac_c_werror_flag"
15008                          || test ! -s conftest.err'
15009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010   (eval $ac_try) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); }; } &&
15014          { ac_try='test -s conftest$ac_exeext'
15015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016   (eval $ac_try) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; }; then
15020   ac_cv_func_shl_load=yes
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_cv_func_shl_load=no
15026 fi
15027 rm -f conftest.err conftest.$ac_objext \
15028       conftest$ac_exeext conftest.$ac_ext
15029 fi
15030 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15031 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15032 if test $ac_cv_func_shl_load = yes; then
15033   lt_cv_dlopen="shl_load"
15034 else
15035   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15036 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15037 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   ac_check_lib_save_LIBS=$LIBS
15041 LIBS="-ldld  $LIBS"
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048
15049 /* Override any gcc2 internal prototype to avoid an error.  */
15050 #ifdef __cplusplus
15051 extern "C"
15052 #endif
15053 /* We use char because int might match the return type of a gcc2
15054    builtin and then its argument prototype would still apply.  */
15055 char shl_load ();
15056 int
15057 main ()
15058 {
15059 shl_load ();
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15066   (eval $ac_link) 2>conftest.er1
15067   ac_status=$?
15068   grep -v '^ *+' conftest.er1 >conftest.err
15069   rm -f conftest.er1
15070   cat conftest.err >&5
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } &&
15073          { ac_try='test -z "$ac_c_werror_flag"
15074                          || test ! -s conftest.err'
15075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076   (eval $ac_try) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); }; } &&
15080          { ac_try='test -s conftest$ac_exeext'
15081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082   (eval $ac_try) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; }; then
15086   ac_cv_lib_dld_shl_load=yes
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091 ac_cv_lib_dld_shl_load=no
15092 fi
15093 rm -f conftest.err conftest.$ac_objext \
15094       conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15096 fi
15097 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15098 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15099 if test $ac_cv_lib_dld_shl_load = yes; then
15100   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15101 else
15102   echo "$as_me:$LINENO: checking for dlopen" >&5
15103 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15104 if test "${ac_cv_func_dlopen+set}" = set; then
15105   echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107   cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15115 #define dlopen innocuous_dlopen
15116
15117 /* System header to define __stub macros and hopefully few prototypes,
15118     which can conflict with char dlopen (); below.
15119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15120     <limits.h> exists even on freestanding compilers.  */
15121
15122 #ifdef __STDC__
15123 # include <limits.h>
15124 #else
15125 # include <assert.h>
15126 #endif
15127
15128 #undef dlopen
15129
15130 /* Override any gcc2 internal prototype to avoid an error.  */
15131 #ifdef __cplusplus
15132 extern "C"
15133 {
15134 #endif
15135 /* We use char because int might match the return type of a gcc2
15136    builtin and then its argument prototype would still apply.  */
15137 char dlopen ();
15138 /* The GNU C library defines this for functions which it implements
15139     to always fail with ENOSYS.  Some functions are actually named
15140     something starting with __ and the normal name is an alias.  */
15141 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15142 choke me
15143 #else
15144 char (*f) () = dlopen;
15145 #endif
15146 #ifdef __cplusplus
15147 }
15148 #endif
15149
15150 int
15151 main ()
15152 {
15153 return f != dlopen;
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest.$ac_objext conftest$ac_exeext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15160   (eval $ac_link) 2>conftest.er1
15161   ac_status=$?
15162   grep -v '^ *+' conftest.er1 >conftest.err
15163   rm -f conftest.er1
15164   cat conftest.err >&5
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); } &&
15167          { ac_try='test -z "$ac_c_werror_flag"
15168                          || test ! -s conftest.err'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; } &&
15174          { ac_try='test -s conftest$ac_exeext'
15175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176   (eval $ac_try) 2>&5
15177   ac_status=$?
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); }; }; then
15180   ac_cv_func_dlopen=yes
15181 else
15182   echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15184
15185 ac_cv_func_dlopen=no
15186 fi
15187 rm -f conftest.err conftest.$ac_objext \
15188       conftest$ac_exeext conftest.$ac_ext
15189 fi
15190 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15191 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15192 if test $ac_cv_func_dlopen = yes; then
15193   lt_cv_dlopen="dlopen"
15194 else
15195   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-ldl  $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208
15209 /* Override any gcc2 internal prototype to avoid an error.  */
15210 #ifdef __cplusplus
15211 extern "C"
15212 #endif
15213 /* We use char because int might match the return type of a gcc2
15214    builtin and then its argument prototype would still apply.  */
15215 char dlopen ();
15216 int
15217 main ()
15218 {
15219 dlopen ();
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15226   (eval $ac_link) 2>conftest.er1
15227   ac_status=$?
15228   grep -v '^ *+' conftest.er1 >conftest.err
15229   rm -f conftest.er1
15230   cat conftest.err >&5
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); } &&
15233          { ac_try='test -z "$ac_c_werror_flag"
15234                          || test ! -s conftest.err'
15235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236   (eval $ac_try) 2>&5
15237   ac_status=$?
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); }; } &&
15240          { ac_try='test -s conftest$ac_exeext'
15241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242   (eval $ac_try) 2>&5
15243   ac_status=$?
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); }; }; then
15246   ac_cv_lib_dl_dlopen=yes
15247 else
15248   echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251 ac_cv_lib_dl_dlopen=no
15252 fi
15253 rm -f conftest.err conftest.$ac_objext \
15254       conftest$ac_exeext conftest.$ac_ext
15255 LIBS=$ac_check_lib_save_LIBS
15256 fi
15257 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15258 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15259 if test $ac_cv_lib_dl_dlopen = yes; then
15260   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15261 else
15262   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15263 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15264 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15265   echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267   ac_check_lib_save_LIBS=$LIBS
15268 LIBS="-lsvld  $LIBS"
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h.  */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h.  */
15275
15276 /* Override any gcc2 internal prototype to avoid an error.  */
15277 #ifdef __cplusplus
15278 extern "C"
15279 #endif
15280 /* We use char because int might match the return type of a gcc2
15281    builtin and then its argument prototype would still apply.  */
15282 char dlopen ();
15283 int
15284 main ()
15285 {
15286 dlopen ();
15287   ;
15288   return 0;
15289 }
15290 _ACEOF
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293   (eval $ac_link) 2>conftest.er1
15294   ac_status=$?
15295   grep -v '^ *+' conftest.er1 >conftest.err
15296   rm -f conftest.er1
15297   cat conftest.err >&5
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); } &&
15300          { ac_try='test -z "$ac_c_werror_flag"
15301                          || test ! -s conftest.err'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; } &&
15307          { ac_try='test -s conftest$ac_exeext'
15308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309   (eval $ac_try) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }; then
15313   ac_cv_lib_svld_dlopen=yes
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_cv_lib_svld_dlopen=no
15319 fi
15320 rm -f conftest.err conftest.$ac_objext \
15321       conftest$ac_exeext conftest.$ac_ext
15322 LIBS=$ac_check_lib_save_LIBS
15323 fi
15324 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15325 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15326 if test $ac_cv_lib_svld_dlopen = yes; then
15327   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15328 else
15329   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15330 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15331 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   ac_check_lib_save_LIBS=$LIBS
15335 LIBS="-ldld  $LIBS"
15336 cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342
15343 /* Override any gcc2 internal prototype to avoid an error.  */
15344 #ifdef __cplusplus
15345 extern "C"
15346 #endif
15347 /* We use char because int might match the return type of a gcc2
15348    builtin and then its argument prototype would still apply.  */
15349 char dld_link ();
15350 int
15351 main ()
15352 {
15353 dld_link ();
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15360   (eval $ac_link) 2>conftest.er1
15361   ac_status=$?
15362   grep -v '^ *+' conftest.er1 >conftest.err
15363   rm -f conftest.er1
15364   cat conftest.err >&5
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); } &&
15367          { ac_try='test -z "$ac_c_werror_flag"
15368                          || test ! -s conftest.err'
15369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370   (eval $ac_try) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; } &&
15374          { ac_try='test -s conftest$ac_exeext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   ac_cv_lib_dld_dld_link=yes
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385 ac_cv_lib_dld_dld_link=no
15386 fi
15387 rm -f conftest.err conftest.$ac_objext \
15388       conftest$ac_exeext conftest.$ac_ext
15389 LIBS=$ac_check_lib_save_LIBS
15390 fi
15391 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15392 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15393 if test $ac_cv_lib_dld_dld_link = yes; then
15394   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15395 fi
15396
15397
15398 fi
15399
15400
15401 fi
15402
15403
15404 fi
15405
15406
15407 fi
15408
15409
15410 fi
15411
15412     ;;
15413   esac
15414
15415   if test "x$lt_cv_dlopen" != xno; then
15416     enable_dlopen=yes
15417   else
15418     enable_dlopen=no
15419   fi
15420
15421   case $lt_cv_dlopen in
15422   dlopen)
15423     save_CPPFLAGS="$CPPFLAGS"
15424     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15425
15426     save_LDFLAGS="$LDFLAGS"
15427     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15428
15429     save_LIBS="$LIBS"
15430     LIBS="$lt_cv_dlopen_libs $LIBS"
15431
15432     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15433 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15434 if test "${lt_cv_dlopen_self+set}" = set; then
15435   echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437           if test "$cross_compiling" = yes; then :
15438   lt_cv_dlopen_self=cross
15439 else
15440   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15441   lt_status=$lt_dlunknown
15442   cat > conftest.$ac_ext <<EOF
15443 #line 15443 "configure"
15444 #include "confdefs.h"
15445
15446 #if HAVE_DLFCN_H
15447 #include <dlfcn.h>
15448 #endif
15449
15450 #include <stdio.h>
15451
15452 #ifdef RTLD_GLOBAL
15453 #  define LT_DLGLOBAL           RTLD_GLOBAL
15454 #else
15455 #  ifdef DL_GLOBAL
15456 #    define LT_DLGLOBAL         DL_GLOBAL
15457 #  else
15458 #    define LT_DLGLOBAL         0
15459 #  endif
15460 #endif
15461
15462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15463    find out it does not work in some platform. */
15464 #ifndef LT_DLLAZY_OR_NOW
15465 #  ifdef RTLD_LAZY
15466 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15467 #  else
15468 #    ifdef DL_LAZY
15469 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15470 #    else
15471 #      ifdef RTLD_NOW
15472 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15473 #      else
15474 #        ifdef DL_NOW
15475 #          define LT_DLLAZY_OR_NOW      DL_NOW
15476 #        else
15477 #          define LT_DLLAZY_OR_NOW      0
15478 #        endif
15479 #      endif
15480 #    endif
15481 #  endif
15482 #endif
15483
15484 #ifdef __cplusplus
15485 extern "C" void exit (int);
15486 #endif
15487
15488 void fnord() { int i=42;}
15489 int main ()
15490 {
15491   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15492   int status = $lt_dlunknown;
15493
15494   if (self)
15495     {
15496       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15497       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15498       /* dlclose (self); */
15499     }
15500
15501     exit (status);
15502 }
15503 EOF
15504   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15505   (eval $ac_link) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15509     (./conftest; exit; ) 2>/dev/null
15510     lt_status=$?
15511     case x$lt_status in
15512       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15513       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15514       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15515     esac
15516   else :
15517     # compilation failed
15518     lt_cv_dlopen_self=no
15519   fi
15520 fi
15521 rm -fr conftest*
15522
15523
15524 fi
15525 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15526 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15527
15528     if test "x$lt_cv_dlopen_self" = xyes; then
15529       LDFLAGS="$LDFLAGS $link_static_flag"
15530       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15531 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15532 if test "${lt_cv_dlopen_self_static+set}" = set; then
15533   echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535           if test "$cross_compiling" = yes; then :
15536   lt_cv_dlopen_self_static=cross
15537 else
15538   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15539   lt_status=$lt_dlunknown
15540   cat > conftest.$ac_ext <<EOF
15541 #line 15541 "configure"
15542 #include "confdefs.h"
15543
15544 #if HAVE_DLFCN_H
15545 #include <dlfcn.h>
15546 #endif
15547
15548 #include <stdio.h>
15549
15550 #ifdef RTLD_GLOBAL
15551 #  define LT_DLGLOBAL           RTLD_GLOBAL
15552 #else
15553 #  ifdef DL_GLOBAL
15554 #    define LT_DLGLOBAL         DL_GLOBAL
15555 #  else
15556 #    define LT_DLGLOBAL         0
15557 #  endif
15558 #endif
15559
15560 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15561    find out it does not work in some platform. */
15562 #ifndef LT_DLLAZY_OR_NOW
15563 #  ifdef RTLD_LAZY
15564 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15565 #  else
15566 #    ifdef DL_LAZY
15567 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15568 #    else
15569 #      ifdef RTLD_NOW
15570 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15571 #      else
15572 #        ifdef DL_NOW
15573 #          define LT_DLLAZY_OR_NOW      DL_NOW
15574 #        else
15575 #          define LT_DLLAZY_OR_NOW      0
15576 #        endif
15577 #      endif
15578 #    endif
15579 #  endif
15580 #endif
15581
15582 #ifdef __cplusplus
15583 extern "C" void exit (int);
15584 #endif
15585
15586 void fnord() { int i=42;}
15587 int main ()
15588 {
15589   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15590   int status = $lt_dlunknown;
15591
15592   if (self)
15593     {
15594       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15595       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15596       /* dlclose (self); */
15597     }
15598
15599     exit (status);
15600 }
15601 EOF
15602   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603   (eval $ac_link) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15607     (./conftest; exit; ) 2>/dev/null
15608     lt_status=$?
15609     case x$lt_status in
15610       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15611       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15612       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15613     esac
15614   else :
15615     # compilation failed
15616     lt_cv_dlopen_self_static=no
15617   fi
15618 fi
15619 rm -fr conftest*
15620
15621
15622 fi
15623 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15624 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15625     fi
15626
15627     CPPFLAGS="$save_CPPFLAGS"
15628     LDFLAGS="$save_LDFLAGS"
15629     LIBS="$save_LIBS"
15630     ;;
15631   esac
15632
15633   case $lt_cv_dlopen_self in
15634   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15635   *) enable_dlopen_self=unknown ;;
15636   esac
15637
15638   case $lt_cv_dlopen_self_static in
15639   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15640   *) enable_dlopen_self_static=unknown ;;
15641   esac
15642 fi
15643
15644
15645 # Report which librarie types wil actually be built
15646 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15647 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15648 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15649 echo "${ECHO_T}$can_build_shared" >&6
15650
15651 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15652 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15653 test "$can_build_shared" = "no" && enable_shared=no
15654
15655 # On AIX, shared libraries and static libraries use the same namespace, and
15656 # are all built from PIC.
15657 case "$host_os" in
15658 aix3*)
15659   test "$enable_shared" = yes && enable_static=no
15660   if test -n "$RANLIB"; then
15661     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15662     postinstall_cmds='$RANLIB $lib'
15663   fi
15664   ;;
15665
15666 aix4* | aix5*)
15667   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15668     test "$enable_shared" = yes && enable_static=no
15669   fi
15670     ;;
15671 esac
15672 echo "$as_me:$LINENO: result: $enable_shared" >&5
15673 echo "${ECHO_T}$enable_shared" >&6
15674
15675 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15676 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15677 # Make sure either enable_shared or enable_static is yes.
15678 test "$enable_shared" = yes || enable_static=yes
15679 echo "$as_me:$LINENO: result: $enable_static" >&5
15680 echo "${ECHO_T}$enable_static" >&6
15681
15682 # The else clause should only fire when bootstrapping the
15683 # libtool distribution, otherwise you forgot to ship ltmain.sh
15684 # with your package, and you will get complaints that there are
15685 # no rules to generate ltmain.sh.
15686 if test -f "$ltmain"; then
15687   # See if we are running on zsh, and set the options which allow our commands through
15688   # without removal of \ escapes.
15689   if test -n "${ZSH_VERSION+set}" ; then
15690     setopt NO_GLOB_SUBST
15691   fi
15692   # Now quote all the things that may contain metacharacters while being
15693   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15694   # variables and quote the copies for generation of the libtool script.
15695   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15696     SED SHELL STRIP \
15697     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15698     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15699     deplibs_check_method reload_flag reload_cmds need_locks \
15700     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15701     lt_cv_sys_global_symbol_to_c_name_address \
15702     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15703     old_postinstall_cmds old_postuninstall_cmds \
15704     compiler \
15705     CC \
15706     LD \
15707     lt_prog_compiler_wl \
15708     lt_prog_compiler_pic \
15709     lt_prog_compiler_static \
15710     lt_prog_compiler_no_builtin_flag \
15711     export_dynamic_flag_spec \
15712     thread_safe_flag_spec \
15713     whole_archive_flag_spec \
15714     enable_shared_with_static_runtimes \
15715     old_archive_cmds \
15716     old_archive_from_new_cmds \
15717     predep_objects \
15718     postdep_objects \
15719     predeps \
15720     postdeps \
15721     compiler_lib_search_path \
15722     archive_cmds \
15723     archive_expsym_cmds \
15724     postinstall_cmds \
15725     postuninstall_cmds \
15726     old_archive_from_expsyms_cmds \
15727     allow_undefined_flag \
15728     no_undefined_flag \
15729     export_symbols_cmds \
15730     hardcode_libdir_flag_spec \
15731     hardcode_libdir_flag_spec_ld \
15732     hardcode_libdir_separator \
15733     hardcode_automatic \
15734     module_cmds \
15735     module_expsym_cmds \
15736     lt_cv_prog_compiler_c_o \
15737     exclude_expsyms \
15738     include_expsyms; do
15739
15740     case $var in
15741     old_archive_cmds | \
15742     old_archive_from_new_cmds | \
15743     archive_cmds | \
15744     archive_expsym_cmds | \
15745     module_cmds | \
15746     module_expsym_cmds | \
15747     old_archive_from_expsyms_cmds | \
15748     export_symbols_cmds | \
15749     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15750     postinstall_cmds | postuninstall_cmds | \
15751     old_postinstall_cmds | old_postuninstall_cmds | \
15752     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15753       # Double-quote double-evaled strings.
15754       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15755       ;;
15756     *)
15757       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15758       ;;
15759     esac
15760   done
15761
15762   case $lt_echo in
15763   *'\$0 --fallback-echo"')
15764     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15765     ;;
15766   esac
15767
15768 cfgfile="${ofile}T"
15769   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15770   $rm -f "$cfgfile"
15771   { echo "$as_me:$LINENO: creating $ofile" >&5
15772 echo "$as_me: creating $ofile" >&6;}
15773
15774   cat <<__EOF__ >> "$cfgfile"
15775 #! $SHELL
15776
15777 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15778 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15779 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15780 #
15781 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15782 # Free Software Foundation, Inc.
15783 #
15784 # This file is part of GNU Libtool:
15785 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15786 #
15787 # This program is free software; you can redistribute it and/or modify
15788 # it under the terms of the GNU General Public License as published by
15789 # the Free Software Foundation; either version 2 of the License, or
15790 # (at your option) any later version.
15791 #
15792 # This program is distributed in the hope that it will be useful, but
15793 # WITHOUT ANY WARRANTY; without even the implied warranty of
15794 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15795 # General Public License for more details.
15796 #
15797 # You should have received a copy of the GNU General Public License
15798 # along with this program; if not, write to the Free Software
15799 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15800 #
15801 # As a special exception to the GNU General Public License, if you
15802 # distribute this file as part of a program that contains a
15803 # configuration script generated by Autoconf, you may include it under
15804 # the same distribution terms that you use for the rest of that program.
15805
15806 # A sed program that does not truncate output.
15807 SED=$lt_SED
15808
15809 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15810 Xsed="$SED -e 1s/^X//"
15811
15812 # The HP-UX ksh and POSIX shell print the target directory to stdout
15813 # if CDPATH is set.
15814 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15815
15816 # The names of the tagged configurations supported by this script.
15817 available_tags=
15818
15819 # ### BEGIN LIBTOOL CONFIG
15820
15821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15822
15823 # Shell to use when invoking shell scripts.
15824 SHELL=$lt_SHELL
15825
15826 # Whether or not to build shared libraries.
15827 build_libtool_libs=$enable_shared
15828
15829 # Whether or not to build static libraries.
15830 build_old_libs=$enable_static
15831
15832 # Whether or not to add -lc for building shared libraries.
15833 build_libtool_need_lc=$archive_cmds_need_lc
15834
15835 # Whether or not to disallow shared libs when runtime libs are static
15836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15837
15838 # Whether or not to optimize for fast installation.
15839 fast_install=$enable_fast_install
15840
15841 # The host system.
15842 host_alias=$host_alias
15843 host=$host
15844 host_os=$host_os
15845
15846 # The build system.
15847 build_alias=$build_alias
15848 build=$build
15849 build_os=$build_os
15850
15851 # An echo program that does not interpret backslashes.
15852 echo=$lt_echo
15853
15854 # The archiver.
15855 AR=$lt_AR
15856 AR_FLAGS=$lt_AR_FLAGS
15857
15858 # A C compiler.
15859 LTCC=$lt_LTCC
15860
15861 # A language-specific compiler.
15862 CC=$lt_compiler
15863
15864 # Is the compiler the GNU C compiler?
15865 with_gcc=$GCC
15866
15867 # An ERE matcher.
15868 EGREP=$lt_EGREP
15869
15870 # The linker used to build libraries.
15871 LD=$lt_LD
15872
15873 # Whether we need hard or soft links.
15874 LN_S=$lt_LN_S
15875
15876 # A BSD-compatible nm program.
15877 NM=$lt_NM
15878
15879 # A symbol stripping program
15880 STRIP=$lt_STRIP
15881
15882 # Used to examine libraries when file_magic_cmd begins "file"
15883 MAGIC_CMD=$MAGIC_CMD
15884
15885 # Used on cygwin: DLL creation program.
15886 DLLTOOL="$DLLTOOL"
15887
15888 # Used on cygwin: object dumper.
15889 OBJDUMP="$OBJDUMP"
15890
15891 # Used on cygwin: assembler.
15892 AS="$AS"
15893
15894 # The name of the directory that contains temporary libtool files.
15895 objdir=$objdir
15896
15897 # How to create reloadable object files.
15898 reload_flag=$lt_reload_flag
15899 reload_cmds=$lt_reload_cmds
15900
15901 # How to pass a linker flag through the compiler.
15902 wl=$lt_lt_prog_compiler_wl
15903
15904 # Object file suffix (normally "o").
15905 objext="$ac_objext"
15906
15907 # Old archive suffix (normally "a").
15908 libext="$libext"
15909
15910 # Shared library suffix (normally ".so").
15911 shrext_cmds='$shrext_cmds'
15912
15913 # Executable file suffix (normally "").
15914 exeext="$exeext"
15915
15916 # Additional compiler flags for building library objects.
15917 pic_flag=$lt_lt_prog_compiler_pic
15918 pic_mode=$pic_mode
15919
15920 # What is the maximum length of a command?
15921 max_cmd_len=$lt_cv_sys_max_cmd_len
15922
15923 # Does compiler simultaneously support -c and -o options?
15924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15925
15926 # Must we lock files when doing compilation?
15927 need_locks=$lt_need_locks
15928
15929 # Do we need the lib prefix for modules?
15930 need_lib_prefix=$need_lib_prefix
15931
15932 # Do we need a version for libraries?
15933 need_version=$need_version
15934
15935 # Whether dlopen is supported.
15936 dlopen_support=$enable_dlopen
15937
15938 # Whether dlopen of programs is supported.
15939 dlopen_self=$enable_dlopen_self
15940
15941 # Whether dlopen of statically linked programs is supported.
15942 dlopen_self_static=$enable_dlopen_self_static
15943
15944 # Compiler flag to prevent dynamic linking.
15945 link_static_flag=$lt_lt_prog_compiler_static
15946
15947 # Compiler flag to turn off builtin functions.
15948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15949
15950 # Compiler flag to allow reflexive dlopens.
15951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15952
15953 # Compiler flag to generate shared objects directly from archives.
15954 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15955
15956 # Compiler flag to generate thread-safe objects.
15957 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15958
15959 # Library versioning type.
15960 version_type=$version_type
15961
15962 # Format of library name prefix.
15963 libname_spec=$lt_libname_spec
15964
15965 # List of archive names.  First name is the real one, the rest are links.
15966 # The last name is the one that the linker finds with -lNAME.
15967 library_names_spec=$lt_library_names_spec
15968
15969 # The coded name of the library, if different from the real name.
15970 soname_spec=$lt_soname_spec
15971
15972 # Commands used to build and install an old-style archive.
15973 RANLIB=$lt_RANLIB
15974 old_archive_cmds=$lt_old_archive_cmds
15975 old_postinstall_cmds=$lt_old_postinstall_cmds
15976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15977
15978 # Create an old-style archive from a shared archive.
15979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15980
15981 # Create a temporary old-style archive to link instead of a shared archive.
15982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15983
15984 # Commands used to build and install a shared archive.
15985 archive_cmds=$lt_archive_cmds
15986 archive_expsym_cmds=$lt_archive_expsym_cmds
15987 postinstall_cmds=$lt_postinstall_cmds
15988 postuninstall_cmds=$lt_postuninstall_cmds
15989
15990 # Commands used to build a loadable module (assumed same as above if empty)
15991 module_cmds=$lt_module_cmds
15992 module_expsym_cmds=$lt_module_expsym_cmds
15993
15994 # Commands to strip libraries.
15995 old_striplib=$lt_old_striplib
15996 striplib=$lt_striplib
15997
15998 # Dependencies to place before the objects being linked to create a
15999 # shared library.
16000 predep_objects=$lt_predep_objects
16001
16002 # Dependencies to place after the objects being linked to create a
16003 # shared library.
16004 postdep_objects=$lt_postdep_objects
16005
16006 # Dependencies to place before the objects being linked to create a
16007 # shared library.
16008 predeps=$lt_predeps
16009
16010 # Dependencies to place after the objects being linked to create a
16011 # shared library.
16012 postdeps=$lt_postdeps
16013
16014 # The library search path used internally by the compiler when linking
16015 # a shared library.
16016 compiler_lib_search_path=$lt_compiler_lib_search_path
16017
16018 # Method to check whether dependent libraries are shared objects.
16019 deplibs_check_method=$lt_deplibs_check_method
16020
16021 # Command to use when deplibs_check_method == file_magic.
16022 file_magic_cmd=$lt_file_magic_cmd
16023
16024 # Flag that allows shared libraries with undefined symbols to be built.
16025 allow_undefined_flag=$lt_allow_undefined_flag
16026
16027 # Flag that forces no undefined symbols.
16028 no_undefined_flag=$lt_no_undefined_flag
16029
16030 # Commands used to finish a libtool library installation in a directory.
16031 finish_cmds=$lt_finish_cmds
16032
16033 # Same as above, but a single script fragment to be evaled but not shown.
16034 finish_eval=$lt_finish_eval
16035
16036 # Take the output of nm and produce a listing of raw symbols and C names.
16037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16038
16039 # Transform the output of nm in a proper C declaration
16040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16041
16042 # Transform the output of nm in a C name address pair
16043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16044
16045 # This is the shared library runtime path variable.
16046 runpath_var=$runpath_var
16047
16048 # This is the shared library path variable.
16049 shlibpath_var=$shlibpath_var
16050
16051 # Is shlibpath searched before the hard-coded library search path?
16052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16053
16054 # How to hardcode a shared library path into an executable.
16055 hardcode_action=$hardcode_action
16056
16057 # Whether we should hardcode library paths into libraries.
16058 hardcode_into_libs=$hardcode_into_libs
16059
16060 # Flag to hardcode \$libdir into a binary during linking.
16061 # This must work even if \$libdir does not exist.
16062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16063
16064 # If ld is used when linking, flag to hardcode \$libdir into
16065 # a binary during linking. This must work even if \$libdir does
16066 # not exist.
16067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16068
16069 # Whether we need a single -rpath flag with a separated argument.
16070 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16071
16072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16073 # resulting binary.
16074 hardcode_direct=$hardcode_direct
16075
16076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16077 # resulting binary.
16078 hardcode_minus_L=$hardcode_minus_L
16079
16080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16081 # the resulting binary.
16082 hardcode_shlibpath_var=$hardcode_shlibpath_var
16083
16084 # Set to yes if building a shared library automatically hardcodes DIR into the library
16085 # and all subsequent libraries and executables linked against it.
16086 hardcode_automatic=$hardcode_automatic
16087
16088 # Variables whose values should be saved in libtool wrapper scripts and
16089 # restored at relink time.
16090 variables_saved_for_relink="$variables_saved_for_relink"
16091
16092 # Whether libtool must link a program against all its dependency libraries.
16093 link_all_deplibs=$link_all_deplibs
16094
16095 # Compile-time system search path for libraries
16096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16097
16098 # Run-time system search path for libraries
16099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16100
16101 # Fix the shell variable \$srcfile for the compiler.
16102 fix_srcfile_path="$fix_srcfile_path"
16103
16104 # Set to yes if exported symbols are required.
16105 always_export_symbols=$always_export_symbols
16106
16107 # The commands to list exported symbols.
16108 export_symbols_cmds=$lt_export_symbols_cmds
16109
16110 # The commands to extract the exported symbol list from a shared archive.
16111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16112
16113 # Symbols that should not be listed in the preloaded symbols.
16114 exclude_expsyms=$lt_exclude_expsyms
16115
16116 # Symbols that must always be exported.
16117 include_expsyms=$lt_include_expsyms
16118
16119 # ### END LIBTOOL CONFIG
16120
16121 __EOF__
16122
16123
16124   case $host_os in
16125   aix3*)
16126     cat <<\EOF >> "$cfgfile"
16127
16128 # AIX sometimes has problems with the GCC collect2 program.  For some
16129 # reason, if we set the COLLECT_NAMES environment variable, the problems
16130 # vanish in a puff of smoke.
16131 if test "X${COLLECT_NAMES+set}" != Xset; then
16132   COLLECT_NAMES=
16133   export COLLECT_NAMES
16134 fi
16135 EOF
16136     ;;
16137   esac
16138
16139   # We use sed instead of cat because bash on DJGPP gets confused if
16140   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16141   # text mode, it properly converts lines to CR/LF.  This bash problem
16142   # is reportedly fixed, but why not run on old versions too?
16143   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16144
16145   mv -f "$cfgfile" "$ofile" || \
16146     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16147   chmod +x "$ofile"
16148
16149 else
16150   # If there is no Makefile yet, we rely on a make rule to execute
16151   # `config.status --recheck' to rerun these tests and create the
16152   # libtool script then.
16153   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16154   if test -f "$ltmain_in"; then
16155     test -f Makefile && make "$ltmain"
16156   fi
16157 fi
16158
16159
16160 ac_ext=c
16161 ac_cpp='$CPP $CPPFLAGS'
16162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16165
16166 CC="$lt_save_CC"
16167
16168
16169 # Check whether --with-tags or --without-tags was given.
16170 if test "${with_tags+set}" = set; then
16171   withval="$with_tags"
16172   tagnames="$withval"
16173 fi;
16174
16175 if test -f "$ltmain" && test -n "$tagnames"; then
16176   if test ! -f "${ofile}"; then
16177     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16178 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16179   fi
16180
16181   if test -z "$LTCC"; then
16182     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16183     if test -z "$LTCC"; then
16184       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16185 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16186     else
16187       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16188 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16189     fi
16190   fi
16191
16192   # Extract list of available tagged configurations in $ofile.
16193   # Note that this assumes the entire list is on one line.
16194   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16195
16196   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16197   for tagname in $tagnames; do
16198     IFS="$lt_save_ifs"
16199     # Check whether tagname contains only valid characters
16200     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16201     "") ;;
16202     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16203 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16204    { (exit 1); exit 1; }; }
16205         ;;
16206     esac
16207
16208     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16209     then
16210       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16211 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16212    { (exit 1); exit 1; }; }
16213     fi
16214
16215     # Update the list of available tags.
16216     if test -n "$tagname"; then
16217       echo appending configuration tag \"$tagname\" to $ofile
16218
16219       case $tagname in
16220       CXX)
16221         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16222             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16223             (test "X$CXX" != "Xg++"))) ; then
16224           ac_ext=cc
16225 ac_cpp='$CXXCPP $CPPFLAGS'
16226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16229
16230
16231
16232
16233 archive_cmds_need_lc_CXX=no
16234 allow_undefined_flag_CXX=
16235 always_export_symbols_CXX=no
16236 archive_expsym_cmds_CXX=
16237 export_dynamic_flag_spec_CXX=
16238 hardcode_direct_CXX=no
16239 hardcode_libdir_flag_spec_CXX=
16240 hardcode_libdir_flag_spec_ld_CXX=
16241 hardcode_libdir_separator_CXX=
16242 hardcode_minus_L_CXX=no
16243 hardcode_automatic_CXX=no
16244 module_cmds_CXX=
16245 module_expsym_cmds_CXX=
16246 link_all_deplibs_CXX=unknown
16247 old_archive_cmds_CXX=$old_archive_cmds
16248 no_undefined_flag_CXX=
16249 whole_archive_flag_spec_CXX=
16250 enable_shared_with_static_runtimes_CXX=no
16251
16252 # Dependencies to place before and after the object being linked:
16253 predep_objects_CXX=
16254 postdep_objects_CXX=
16255 predeps_CXX=
16256 postdeps_CXX=
16257 compiler_lib_search_path_CXX=
16258
16259 # Source file extension for C++ test sources.
16260 ac_ext=cc
16261
16262 # Object file extension for compiled C++ test sources.
16263 objext=o
16264 objext_CXX=$objext
16265
16266 # Code to be used in simple compile tests
16267 lt_simple_compile_test_code="int some_variable = 0;\n"
16268
16269 # Code to be used in simple link tests
16270 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16271
16272 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16273
16274 # If no C compiler was specified, use CC.
16275 LTCC=${LTCC-"$CC"}
16276
16277 # Allow CC to be a program name with arguments.
16278 compiler=$CC
16279
16280
16281 # save warnings/boilerplate of simple test code
16282 ac_outfile=conftest.$ac_objext
16283 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16284 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16285 _lt_compiler_boilerplate=`cat conftest.err`
16286 $rm conftest*
16287
16288 ac_outfile=conftest.$ac_objext
16289 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16290 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16291 _lt_linker_boilerplate=`cat conftest.err`
16292 $rm conftest*
16293
16294
16295 # Allow CC to be a program name with arguments.
16296 lt_save_CC=$CC
16297 lt_save_LD=$LD
16298 lt_save_GCC=$GCC
16299 GCC=$GXX
16300 lt_save_with_gnu_ld=$with_gnu_ld
16301 lt_save_path_LD=$lt_cv_path_LD
16302 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16303   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16304 else
16305   unset lt_cv_prog_gnu_ld
16306 fi
16307 if test -n "${lt_cv_path_LDCXX+set}"; then
16308   lt_cv_path_LD=$lt_cv_path_LDCXX
16309 else
16310   unset lt_cv_path_LD
16311 fi
16312 test -z "${LDCXX+set}" || LD=$LDCXX
16313 CC=${CXX-"c++"}
16314 compiler=$CC
16315 compiler_CXX=$CC
16316 for cc_temp in $compiler""; do
16317   case $cc_temp in
16318     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16319     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16320     \-*) ;;
16321     *) break;;
16322   esac
16323 done
16324 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16325
16326
16327 # We don't want -fno-exception wen compiling C++ code, so set the
16328 # no_builtin_flag separately
16329 if test "$GXX" = yes; then
16330   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16331 else
16332   lt_prog_compiler_no_builtin_flag_CXX=
16333 fi
16334
16335 if test "$GXX" = yes; then
16336   # Set up default GNU C++ configuration
16337
16338
16339 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16340 if test "${with_gnu_ld+set}" = set; then
16341   withval="$with_gnu_ld"
16342   test "$withval" = no || with_gnu_ld=yes
16343 else
16344   with_gnu_ld=no
16345 fi;
16346 ac_prog=ld
16347 if test "$GCC" = yes; then
16348   # Check if gcc -print-prog-name=ld gives a path.
16349   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16350 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16351   case $host in
16352   *-*-mingw*)
16353     # gcc leaves a trailing carriage return which upsets mingw
16354     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16355   *)
16356     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16357   esac
16358   case $ac_prog in
16359     # Accept absolute paths.
16360     [\\/]* | ?:[\\/]*)
16361       re_direlt='/[^/][^/]*/\.\./'
16362       # Canonicalize the pathname of ld
16363       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16364       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16365         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16366       done
16367       test -z "$LD" && LD="$ac_prog"
16368       ;;
16369   "")
16370     # If it fails, then pretend we aren't using GCC.
16371     ac_prog=ld
16372     ;;
16373   *)
16374     # If it is relative, then search for the first ld in PATH.
16375     with_gnu_ld=unknown
16376     ;;
16377   esac
16378 elif test "$with_gnu_ld" = yes; then
16379   echo "$as_me:$LINENO: checking for GNU ld" >&5
16380 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16381 else
16382   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16383 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16384 fi
16385 if test "${lt_cv_path_LD+set}" = set; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388   if test -z "$LD"; then
16389   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16390   for ac_dir in $PATH; do
16391     IFS="$lt_save_ifs"
16392     test -z "$ac_dir" && ac_dir=.
16393     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16394       lt_cv_path_LD="$ac_dir/$ac_prog"
16395       # Check to see if the program is GNU ld.  I'd rather use --version,
16396       # but apparently some GNU ld's only accept -v.
16397       # Break only if it was the GNU/non-GNU ld that we prefer.
16398       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16399       *GNU* | *'with BFD'*)
16400         test "$with_gnu_ld" != no && break
16401         ;;
16402       *)
16403         test "$with_gnu_ld" != yes && break
16404         ;;
16405       esac
16406     fi
16407   done
16408   IFS="$lt_save_ifs"
16409 else
16410   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16411 fi
16412 fi
16413
16414 LD="$lt_cv_path_LD"
16415 if test -n "$LD"; then
16416   echo "$as_me:$LINENO: result: $LD" >&5
16417 echo "${ECHO_T}$LD" >&6
16418 else
16419   echo "$as_me:$LINENO: result: no" >&5
16420 echo "${ECHO_T}no" >&6
16421 fi
16422 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16423 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16424    { (exit 1); exit 1; }; }
16425 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16426 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16427 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16431 case `$LD -v 2>&1 </dev/null` in
16432 *GNU* | *'with BFD'*)
16433   lt_cv_prog_gnu_ld=yes
16434   ;;
16435 *)
16436   lt_cv_prog_gnu_ld=no
16437   ;;
16438 esac
16439 fi
16440 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16441 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16442 with_gnu_ld=$lt_cv_prog_gnu_ld
16443
16444
16445
16446   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16447   # archiving commands below assume that GNU ld is being used.
16448   if test "$with_gnu_ld" = yes; then
16449     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16450     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'
16451
16452     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16453     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16454
16455     # If archive_cmds runs LD, not CC, wlarc should be empty
16456     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16457     #     investigate it a little bit more. (MM)
16458     wlarc='${wl}'
16459
16460     # ancient GNU ld didn't support --whole-archive et. al.
16461     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16462         grep 'no-whole-archive' > /dev/null; then
16463       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16464     else
16465       whole_archive_flag_spec_CXX=
16466     fi
16467   else
16468     with_gnu_ld=no
16469     wlarc=
16470
16471     # A generic and very simple default shared library creation
16472     # command for GNU C++ for the case where it uses the native
16473     # linker, instead of GNU ld.  If possible, this setting should
16474     # overridden to take advantage of the native linker features on
16475     # the platform it is being used on.
16476     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16477   fi
16478
16479   # Commands to make compiler produce verbose output that lists
16480   # what "hidden" libraries, object files and flags are used when
16481   # linking a shared library.
16482   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16483
16484 else
16485   GXX=no
16486   with_gnu_ld=no
16487   wlarc=
16488 fi
16489
16490 # PORTME: fill in a description of your system's C++ link characteristics
16491 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16492 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16493 ld_shlibs_CXX=yes
16494 case $host_os in
16495   aix3*)
16496     # FIXME: insert proper C++ library support
16497     ld_shlibs_CXX=no
16498     ;;
16499   aix4* | aix5*)
16500     if test "$host_cpu" = ia64; then
16501       # On IA64, the linker does run time linking by default, so we don't
16502       # have to do anything special.
16503       aix_use_runtimelinking=no
16504       exp_sym_flag='-Bexport'
16505       no_entry_flag=""
16506     else
16507       aix_use_runtimelinking=no
16508
16509       # Test if we are trying to use run time linking or normal
16510       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16511       # need to do runtime linking.
16512       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16513         for ld_flag in $LDFLAGS; do
16514           case $ld_flag in
16515           *-brtl*)
16516             aix_use_runtimelinking=yes
16517             break
16518             ;;
16519           esac
16520         done
16521       esac
16522
16523       exp_sym_flag='-bexport'
16524       no_entry_flag='-bnoentry'
16525     fi
16526
16527     # When large executables or shared objects are built, AIX ld can
16528     # have problems creating the table of contents.  If linking a library
16529     # or program results in "error TOC overflow" add -mminimal-toc to
16530     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16531     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16532
16533     archive_cmds_CXX=''
16534     hardcode_direct_CXX=yes
16535     hardcode_libdir_separator_CXX=':'
16536     link_all_deplibs_CXX=yes
16537
16538     if test "$GXX" = yes; then
16539       case $host_os in aix4.[012]|aix4.[012].*)
16540       # We only want to do this on AIX 4.2 and lower, the check
16541       # below for broken collect2 doesn't work under 4.3+
16542         collect2name=`${CC} -print-prog-name=collect2`
16543         if test -f "$collect2name" && \
16544            strings "$collect2name" | grep resolve_lib_name >/dev/null
16545         then
16546           # We have reworked collect2
16547           hardcode_direct_CXX=yes
16548         else
16549           # We have old collect2
16550           hardcode_direct_CXX=unsupported
16551           # It fails to find uninstalled libraries when the uninstalled
16552           # path is not listed in the libpath.  Setting hardcode_minus_L
16553           # to unsupported forces relinking
16554           hardcode_minus_L_CXX=yes
16555           hardcode_libdir_flag_spec_CXX='-L$libdir'
16556           hardcode_libdir_separator_CXX=
16557         fi
16558       esac
16559       shared_flag='-shared'
16560       if test "$aix_use_runtimelinking" = yes; then
16561         shared_flag="$shared_flag "'${wl}-G'
16562       fi
16563     else
16564       # not using gcc
16565       if test "$host_cpu" = ia64; then
16566         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16567         # chokes on -Wl,-G. The following line is correct:
16568         shared_flag='-G'
16569       else
16570         if test "$aix_use_runtimelinking" = yes; then
16571           shared_flag='${wl}-G'
16572         else
16573           shared_flag='${wl}-bM:SRE'
16574         fi
16575       fi
16576     fi
16577
16578     # It seems that -bexpall does not export symbols beginning with
16579     # underscore (_), so it is better to generate a list of symbols to export.
16580     always_export_symbols_CXX=yes
16581     if test "$aix_use_runtimelinking" = yes; then
16582       # Warning - without using the other runtime loading flags (-brtl),
16583       # -berok will link without error, but may produce a broken library.
16584       allow_undefined_flag_CXX='-berok'
16585       # Determine the default libpath from the value encoded in an empty executable.
16586       cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592
16593 int
16594 main ()
16595 {
16596
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603   (eval $ac_link) 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -z "$ac_cxx_werror_flag"
16611                          || test ! -s conftest.err'
16612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613   (eval $ac_try) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; } &&
16617          { ac_try='test -s conftest$ac_exeext'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623
16624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16625 }'`
16626 # Check for a 64-bit object if we didn't find anything.
16627 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; }
16628 }'`; fi
16629 else
16630   echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 fi
16634 rm -f conftest.err conftest.$ac_objext \
16635       conftest$ac_exeext conftest.$ac_ext
16636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16637
16638       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16639
16640       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"
16641      else
16642       if test "$host_cpu" = ia64; then
16643         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16644         allow_undefined_flag_CXX="-z nodefs"
16645         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"
16646       else
16647         # Determine the default libpath from the value encoded in an empty executable.
16648         cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 int
16656 main ()
16657 {
16658
16659   ;
16660   return 0;
16661 }
16662 _ACEOF
16663 rm -f conftest.$ac_objext conftest$ac_exeext
16664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16665   (eval $ac_link) 2>conftest.er1
16666   ac_status=$?
16667   grep -v '^ *+' conftest.er1 >conftest.err
16668   rm -f conftest.er1
16669   cat conftest.err >&5
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } &&
16672          { ac_try='test -z "$ac_cxx_werror_flag"
16673                          || test ! -s conftest.err'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; } &&
16679          { ac_try='test -s conftest$ac_exeext'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685
16686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16687 }'`
16688 # Check for a 64-bit object if we didn't find anything.
16689 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; }
16690 }'`; fi
16691 else
16692   echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 fi
16696 rm -f conftest.err conftest.$ac_objext \
16697       conftest$ac_exeext conftest.$ac_ext
16698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16699
16700         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16701         # Warning - without using the other run time loading flags,
16702         # -berok will link without error, but may produce a broken library.
16703         no_undefined_flag_CXX=' ${wl}-bernotok'
16704         allow_undefined_flag_CXX=' ${wl}-berok'
16705         # -bexpall does not export symbols beginning with underscore (_)
16706         always_export_symbols_CXX=yes
16707         # Exported symbols can be pulled into shared objects from archives
16708         whole_archive_flag_spec_CXX=' '
16709         archive_cmds_need_lc_CXX=yes
16710         # This is similar to how AIX traditionally builds it's shared libraries.
16711         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'
16712       fi
16713     fi
16714     ;;
16715   chorus*)
16716     case $cc_basename in
16717       *)
16718         # FIXME: insert proper C++ library support
16719         ld_shlibs_CXX=no
16720         ;;
16721     esac
16722     ;;
16723
16724
16725   cygwin* | mingw* | pw32*)
16726     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16727     # as there is no search path for DLLs.
16728     hardcode_libdir_flag_spec_CXX='-L$libdir'
16729     allow_undefined_flag_CXX=unsupported
16730     always_export_symbols_CXX=no
16731     enable_shared_with_static_runtimes_CXX=yes
16732
16733     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16734       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'
16735       # If the export-symbols file already is a .def file (1st line
16736       # is EXPORTS), use it as is; otherwise, prepend...
16737       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16738         cp $export_symbols $output_objdir/$soname.def;
16739       else
16740         echo EXPORTS > $output_objdir/$soname.def;
16741         cat $export_symbols >> $output_objdir/$soname.def;
16742       fi~
16743       $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'
16744     else
16745       ld_shlibs_CXX=no
16746     fi
16747   ;;
16748       darwin* | rhapsody*)
16749         case "$host_os" in
16750         rhapsody* | darwin1.[012])
16751          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16752          ;;
16753        *) # Darwin 1.3 on
16754          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16755            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16756          else
16757            case ${MACOSX_DEPLOYMENT_TARGET} in
16758              10.[012])
16759                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16760                ;;
16761              10.*)
16762                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16763                ;;
16764            esac
16765          fi
16766          ;;
16767         esac
16768       archive_cmds_need_lc_CXX=no
16769       hardcode_direct_CXX=no
16770       hardcode_automatic_CXX=yes
16771       hardcode_shlibpath_var_CXX=unsupported
16772       whole_archive_flag_spec_CXX=''
16773       link_all_deplibs_CXX=yes
16774
16775     if test "$GXX" = yes ; then
16776       lt_int_apple_cc_single_mod=no
16777       output_verbose_link_cmd='echo'
16778       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16779        lt_int_apple_cc_single_mod=yes
16780       fi
16781       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16782        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16783       else
16784           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16785         fi
16786         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16787         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16788           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16789             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}'
16790           else
16791             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16792           fi
16793             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}'
16794       else
16795       case $cc_basename in
16796         xlc*)
16797          output_verbose_link_cmd='echo'
16798           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16799           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16800           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16801           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16802           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}'
16803           ;;
16804        *)
16805          ld_shlibs_CXX=no
16806           ;;
16807       esac
16808       fi
16809         ;;
16810
16811   dgux*)
16812     case $cc_basename in
16813       ec++*)
16814         # FIXME: insert proper C++ library support
16815         ld_shlibs_CXX=no
16816         ;;
16817       ghcx*)
16818         # Green Hills C++ Compiler
16819         # FIXME: insert proper C++ library support
16820         ld_shlibs_CXX=no
16821         ;;
16822       *)
16823         # FIXME: insert proper C++ library support
16824         ld_shlibs_CXX=no
16825         ;;
16826     esac
16827     ;;
16828   freebsd[12]*)
16829     # C++ shared libraries reported to be fairly broken before switch to ELF
16830     ld_shlibs_CXX=no
16831     ;;
16832   freebsd-elf*)
16833     archive_cmds_need_lc_CXX=no
16834     ;;
16835   freebsd* | kfreebsd*-gnu | dragonfly*)
16836     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16837     # conventions
16838     ld_shlibs_CXX=yes
16839     ;;
16840   gnu*)
16841     ;;
16842   hpux9*)
16843     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16844     hardcode_libdir_separator_CXX=:
16845     export_dynamic_flag_spec_CXX='${wl}-E'
16846     hardcode_direct_CXX=yes
16847     hardcode_minus_L_CXX=yes # Not in the search PATH,
16848                                 # but as the default
16849                                 # location of the library.
16850
16851     case $cc_basename in
16852     CC*)
16853       # FIXME: insert proper C++ library support
16854       ld_shlibs_CXX=no
16855       ;;
16856     aCC*)
16857       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'
16858       # Commands to make compiler produce verbose output that lists
16859       # what "hidden" libraries, object files and flags are used when
16860       # linking a shared library.
16861       #
16862       # There doesn't appear to be a way to prevent this compiler from
16863       # explicitly linking system object files so we need to strip them
16864       # from the output so that they don't get included in the library
16865       # dependencies.
16866       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'
16867       ;;
16868     *)
16869       if test "$GXX" = yes; then
16870         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'
16871       else
16872         # FIXME: insert proper C++ library support
16873         ld_shlibs_CXX=no
16874       fi
16875       ;;
16876     esac
16877     ;;
16878   hpux10*|hpux11*)
16879     if test $with_gnu_ld = no; then
16880       case "$host_cpu" in
16881       hppa*64*)
16882         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16883         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16884         hardcode_libdir_separator_CXX=:
16885         ;;
16886       ia64*)
16887         hardcode_libdir_flag_spec_CXX='-L$libdir'
16888         ;;
16889       *)
16890         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16891         hardcode_libdir_separator_CXX=:
16892         export_dynamic_flag_spec_CXX='${wl}-E'
16893         ;;
16894       esac
16895     fi
16896     case "$host_cpu" in
16897     hppa*64*)
16898       hardcode_direct_CXX=no
16899       hardcode_shlibpath_var_CXX=no
16900       ;;
16901     ia64*)
16902       hardcode_direct_CXX=no
16903       hardcode_shlibpath_var_CXX=no
16904       hardcode_minus_L_CXX=yes # Not in the search PATH,
16905                                               # but as the default
16906                                               # location of the library.
16907       ;;
16908     *)
16909       hardcode_direct_CXX=yes
16910       hardcode_minus_L_CXX=yes # Not in the search PATH,
16911                                               # but as the default
16912                                               # location of the library.
16913       ;;
16914     esac
16915
16916     case $cc_basename in
16917       CC*)
16918         # FIXME: insert proper C++ library support
16919         ld_shlibs_CXX=no
16920         ;;
16921       aCC*)
16922         case "$host_cpu" in
16923         hppa*64*|ia64*)
16924           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16925           ;;
16926         *)
16927           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16928           ;;
16929         esac
16930         # Commands to make compiler produce verbose output that lists
16931         # what "hidden" libraries, object files and flags are used when
16932         # linking a shared library.
16933         #
16934         # There doesn't appear to be a way to prevent this compiler from
16935         # explicitly linking system object files so we need to strip them
16936         # from the output so that they don't get included in the library
16937         # dependencies.
16938         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'
16939         ;;
16940       *)
16941         if test "$GXX" = yes; then
16942           if test $with_gnu_ld = no; then
16943             case "$host_cpu" in
16944             ia64*|hppa*64*)
16945               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16946               ;;
16947             *)
16948               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'
16949               ;;
16950             esac
16951           fi
16952         else
16953           # FIXME: insert proper C++ library support
16954           ld_shlibs_CXX=no
16955         fi
16956         ;;
16957     esac
16958     ;;
16959   irix5* | irix6*)
16960     case $cc_basename in
16961       CC*)
16962         # SGI C++
16963         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16964
16965         # Archives containing C++ object files must be created using
16966         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16967         # necessary to make sure instantiated templates are included
16968         # in the archive.
16969         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16970         ;;
16971       *)
16972         if test "$GXX" = yes; then
16973           if test "$with_gnu_ld" = no; then
16974             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16975           else
16976             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'
16977           fi
16978         fi
16979         link_all_deplibs_CXX=yes
16980         ;;
16981     esac
16982     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16983     hardcode_libdir_separator_CXX=:
16984     ;;
16985   linux*)
16986     case $cc_basename in
16987       KCC*)
16988         # Kuck and Associates, Inc. (KAI) C++ Compiler
16989
16990         # KCC will only create a shared library if the output file
16991         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16992         # to its proper name (with version) after linking.
16993         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'
16994         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'
16995         # Commands to make compiler produce verbose output that lists
16996         # what "hidden" libraries, object files and flags are used when
16997         # linking a shared library.
16998         #
16999         # There doesn't appear to be a way to prevent this compiler from
17000         # explicitly linking system object files so we need to strip them
17001         # from the output so that they don't get included in the library
17002         # dependencies.
17003         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'
17004
17005         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17006         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17007
17008         # Archives containing C++ object files must be created using
17009         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17010         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17011         ;;
17012       icpc*)
17013         # Intel C++
17014         with_gnu_ld=yes
17015         # version 8.0 and above of icpc choke on multiply defined symbols
17016         # if we add $predep_objects and $postdep_objects, however 7.1 and
17017         # earlier do not add the objects themselves.
17018         case `$CC -V 2>&1` in
17019         *"Version 7."*)
17020           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17021           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'
17022           ;;
17023         *)  # Version 8.0 or newer
17024           tmp_idyn=
17025           case $host_cpu in
17026             ia64*) tmp_idyn=' -i_dynamic';;
17027           esac
17028           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17029           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17030           ;;
17031         esac
17032         archive_cmds_need_lc_CXX=no
17033         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17034         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17035         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17036         ;;
17037       pgCC*)
17038         # Portland Group C++ compiler
17039         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17040         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'
17041
17042         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17043         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17044         whole_archive_flag_spec_CXX=''
17045         ;;
17046       cxx*)
17047         # Compaq C++
17048         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049         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'
17050
17051         runpath_var=LD_RUN_PATH
17052         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17053         hardcode_libdir_separator_CXX=:
17054
17055         # Commands to make compiler produce verbose output that lists
17056         # what "hidden" libraries, object files and flags are used when
17057         # linking a shared library.
17058         #
17059         # There doesn't appear to be a way to prevent this compiler from
17060         # explicitly linking system object files so we need to strip them
17061         # from the output so that they don't get included in the library
17062         # dependencies.
17063         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'
17064         ;;
17065     esac
17066     ;;
17067   lynxos*)
17068     # FIXME: insert proper C++ library support
17069     ld_shlibs_CXX=no
17070     ;;
17071   m88k*)
17072     # FIXME: insert proper C++ library support
17073     ld_shlibs_CXX=no
17074     ;;
17075   mvs*)
17076     case $cc_basename in
17077       cxx*)
17078         # FIXME: insert proper C++ library support
17079         ld_shlibs_CXX=no
17080         ;;
17081       *)
17082         # FIXME: insert proper C++ library support
17083         ld_shlibs_CXX=no
17084         ;;
17085     esac
17086     ;;
17087   netbsd*)
17088     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17089       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17090       wlarc=
17091       hardcode_libdir_flag_spec_CXX='-R$libdir'
17092       hardcode_direct_CXX=yes
17093       hardcode_shlibpath_var_CXX=no
17094     fi
17095     # Workaround some broken pre-1.5 toolchains
17096     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17097     ;;
17098   openbsd2*)
17099     # C++ shared libraries are fairly broken
17100     ld_shlibs_CXX=no
17101     ;;
17102   openbsd*)
17103     hardcode_direct_CXX=yes
17104     hardcode_shlibpath_var_CXX=no
17105     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17106     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17107     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17108       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17109       export_dynamic_flag_spec_CXX='${wl}-E'
17110       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17111     fi
17112     output_verbose_link_cmd='echo'
17113     ;;
17114   osf3*)
17115     case $cc_basename in
17116       KCC*)
17117         # Kuck and Associates, Inc. (KAI) C++ Compiler
17118
17119         # KCC will only create a shared library if the output file
17120         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17121         # to its proper name (with version) after linking.
17122         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'
17123
17124         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17125         hardcode_libdir_separator_CXX=:
17126
17127         # Archives containing C++ object files must be created using
17128         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17129         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17130
17131         ;;
17132       RCC*)
17133         # Rational C++ 2.4.1
17134         # FIXME: insert proper C++ library support
17135         ld_shlibs_CXX=no
17136         ;;
17137       cxx*)
17138         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17139         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17140
17141         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17142         hardcode_libdir_separator_CXX=:
17143
17144         # Commands to make compiler produce verbose output that lists
17145         # what "hidden" libraries, object files and flags are used when
17146         # linking a shared library.
17147         #
17148         # There doesn't appear to be a way to prevent this compiler from
17149         # explicitly linking system object files so we need to strip them
17150         # from the output so that they don't get included in the library
17151         # dependencies.
17152         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'
17153         ;;
17154       *)
17155         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17156           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17157           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17158
17159           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17160           hardcode_libdir_separator_CXX=:
17161
17162           # Commands to make compiler produce verbose output that lists
17163           # what "hidden" libraries, object files and flags are used when
17164           # linking a shared library.
17165           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17166
17167         else
17168           # FIXME: insert proper C++ library support
17169           ld_shlibs_CXX=no
17170         fi
17171         ;;
17172     esac
17173     ;;
17174   osf4* | osf5*)
17175     case $cc_basename in
17176       KCC*)
17177         # Kuck and Associates, Inc. (KAI) C++ Compiler
17178
17179         # KCC will only create a shared library if the output file
17180         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17181         # to its proper name (with version) after linking.
17182         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'
17183
17184         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17185         hardcode_libdir_separator_CXX=:
17186
17187         # Archives containing C++ object files must be created using
17188         # the KAI C++ compiler.
17189         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17190         ;;
17191       RCC*)
17192         # Rational C++ 2.4.1
17193         # FIXME: insert proper C++ library support
17194         ld_shlibs_CXX=no
17195         ;;
17196       cxx*)
17197         allow_undefined_flag_CXX=' -expect_unresolved \*'
17198         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17199         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17200           echo "-hidden">> $lib.exp~
17201           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
17202           $rm $lib.exp'
17203
17204         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17205         hardcode_libdir_separator_CXX=:
17206
17207         # Commands to make compiler produce verbose output that lists
17208         # what "hidden" libraries, object files and flags are used when
17209         # linking a shared library.
17210         #
17211         # There doesn't appear to be a way to prevent this compiler from
17212         # explicitly linking system object files so we need to strip them
17213         # from the output so that they don't get included in the library
17214         # dependencies.
17215         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'
17216         ;;
17217       *)
17218         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17219           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17220          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17221
17222           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17223           hardcode_libdir_separator_CXX=:
17224
17225           # Commands to make compiler produce verbose output that lists
17226           # what "hidden" libraries, object files and flags are used when
17227           # linking a shared library.
17228           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17229
17230         else
17231           # FIXME: insert proper C++ library support
17232           ld_shlibs_CXX=no
17233         fi
17234         ;;
17235     esac
17236     ;;
17237   psos*)
17238     # FIXME: insert proper C++ library support
17239     ld_shlibs_CXX=no
17240     ;;
17241   sco*)
17242     archive_cmds_need_lc_CXX=no
17243     case $cc_basename in
17244       CC*)
17245         # FIXME: insert proper C++ library support
17246         ld_shlibs_CXX=no
17247         ;;
17248       *)
17249         # FIXME: insert proper C++ library support
17250         ld_shlibs_CXX=no
17251         ;;
17252     esac
17253     ;;
17254   sunos4*)
17255     case $cc_basename in
17256       CC*)
17257         # Sun C++ 4.x
17258         # FIXME: insert proper C++ library support
17259         ld_shlibs_CXX=no
17260         ;;
17261       lcc*)
17262         # Lucid
17263         # FIXME: insert proper C++ library support
17264         ld_shlibs_CXX=no
17265         ;;
17266       *)
17267         # FIXME: insert proper C++ library support
17268         ld_shlibs_CXX=no
17269         ;;
17270     esac
17271     ;;
17272   solaris*)
17273     case $cc_basename in
17274       CC*)
17275         # Sun C++ 4.2, 5.x and Centerline C++
17276         no_undefined_flag_CXX=' -zdefs'
17277         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17278         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17279         $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'
17280
17281         hardcode_libdir_flag_spec_CXX='-R$libdir'
17282         hardcode_shlibpath_var_CXX=no
17283         case $host_os in
17284           solaris2.[0-5] | solaris2.[0-5].*) ;;
17285           *)
17286             # The C++ compiler is used as linker so we must use $wl
17287             # flag to pass the commands to the underlying system
17288             # linker. We must also pass each convience library through
17289             # to the system linker between allextract/defaultextract.
17290             # The C++ compiler will combine linker options so we
17291             # cannot just pass the convience library names through
17292             # without $wl.
17293             # Supported since Solaris 2.6 (maybe 2.5.1?)
17294             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
17295             ;;
17296         esac
17297         link_all_deplibs_CXX=yes
17298
17299         # Commands to make compiler produce verbose output that lists
17300         # what "hidden" libraries, object files and flags are used when
17301         # linking a shared library.
17302         #
17303         # There doesn't appear to be a way to prevent this compiler from
17304         # explicitly linking system object files so we need to strip them
17305         # from the output so that they don't get included in the library
17306         # dependencies.
17307         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'
17308
17309         # Archives containing C++ object files must be created using
17310         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17311         # necessary to make sure instantiated templates are included
17312         # in the archive.
17313         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17314         ;;
17315       gcx*)
17316         # Green Hills C++ Compiler
17317         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17318
17319         # The C++ compiler must be used to create the archive.
17320         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17321         ;;
17322       *)
17323         # GNU C++ compiler with Solaris linker
17324         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17325           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17326           if $CC --version | grep -v '^2\.7' > /dev/null; then
17327             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17328             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17329                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17330
17331             # Commands to make compiler produce verbose output that lists
17332             # what "hidden" libraries, object files and flags are used when
17333             # linking a shared library.
17334             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17335           else
17336             # g++ 2.7 appears to require `-G' NOT `-shared' on this
17337             # platform.
17338             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17339             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17340                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17341
17342             # Commands to make compiler produce verbose output that lists
17343             # what "hidden" libraries, object files and flags are used when
17344             # linking a shared library.
17345             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17346           fi
17347
17348           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17349         fi
17350         ;;
17351     esac
17352     ;;
17353   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17354     archive_cmds_need_lc_CXX=no
17355     ;;
17356   tandem*)
17357     case $cc_basename in
17358       NCC*)
17359         # NonStop-UX NCC 3.20
17360         # FIXME: insert proper C++ library support
17361         ld_shlibs_CXX=no
17362         ;;
17363       *)
17364         # FIXME: insert proper C++ library support
17365         ld_shlibs_CXX=no
17366         ;;
17367     esac
17368     ;;
17369   vxworks*)
17370     # FIXME: insert proper C++ library support
17371     ld_shlibs_CXX=no
17372     ;;
17373   *)
17374     # FIXME: insert proper C++ library support
17375     ld_shlibs_CXX=no
17376     ;;
17377 esac
17378 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17379 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17380 test "$ld_shlibs_CXX" = no && can_build_shared=no
17381
17382 GCC_CXX="$GXX"
17383 LD_CXX="$LD"
17384
17385
17386 cat > conftest.$ac_ext <<EOF
17387 class Foo
17388 {
17389 public:
17390   Foo (void) { a = 0; }
17391 private:
17392   int a;
17393 };
17394 EOF
17395
17396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17397   (eval $ac_compile) 2>&5
17398   ac_status=$?
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); }; then
17401   # Parse the compiler output and extract the necessary
17402   # objects, libraries and library flags.
17403
17404   # Sentinel used to keep track of whether or not we are before
17405   # the conftest object file.
17406   pre_test_object_deps_done=no
17407
17408   # The `*' in the case matches for architectures that use `case' in
17409   # $output_verbose_cmd can trigger glob expansion during the loop
17410   # eval without this substitution.
17411   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17412
17413   for p in `eval $output_verbose_link_cmd`; do
17414     case $p in
17415
17416     -L* | -R* | -l*)
17417        # Some compilers place space between "-{L,R}" and the path.
17418        # Remove the space.
17419        if test $p = "-L" \
17420           || test $p = "-R"; then
17421          prev=$p
17422          continue
17423        else
17424          prev=
17425        fi
17426
17427        if test "$pre_test_object_deps_done" = no; then
17428          case $p in
17429          -L* | -R*)
17430            # Internal compiler library paths should come after those
17431            # provided the user.  The postdeps already come after the
17432            # user supplied libs so there is no need to process them.
17433            if test -z "$compiler_lib_search_path_CXX"; then
17434              compiler_lib_search_path_CXX="${prev}${p}"
17435            else
17436              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17437            fi
17438            ;;
17439          # The "-l" case would never come before the object being
17440          # linked, so don't bother handling this case.
17441          esac
17442        else
17443          if test -z "$postdeps_CXX"; then
17444            postdeps_CXX="${prev}${p}"
17445          else
17446            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17447          fi
17448        fi
17449        ;;
17450
17451     *.$objext)
17452        # This assumes that the test object file only shows up
17453        # once in the compiler output.
17454        if test "$p" = "conftest.$objext"; then
17455          pre_test_object_deps_done=yes
17456          continue
17457        fi
17458
17459        if test "$pre_test_object_deps_done" = no; then
17460          if test -z "$predep_objects_CXX"; then
17461            predep_objects_CXX="$p"
17462          else
17463            predep_objects_CXX="$predep_objects_CXX $p"
17464          fi
17465        else
17466          if test -z "$postdep_objects_CXX"; then
17467            postdep_objects_CXX="$p"
17468          else
17469            postdep_objects_CXX="$postdep_objects_CXX $p"
17470          fi
17471        fi
17472        ;;
17473
17474     *) ;; # Ignore the rest.
17475
17476     esac
17477   done
17478
17479   # Clean up.
17480   rm -f a.out a.exe
17481 else
17482   echo "libtool.m4: error: problem compiling CXX test program"
17483 fi
17484
17485 $rm -f confest.$objext
17486
17487 case " $postdeps_CXX " in
17488 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17489 esac
17490
17491 lt_prog_compiler_wl_CXX=
17492 lt_prog_compiler_pic_CXX=
17493 lt_prog_compiler_static_CXX=
17494
17495 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17497
17498   # C++ specific cases for pic, static, wl, etc.
17499   if test "$GXX" = yes; then
17500     lt_prog_compiler_wl_CXX='-Wl,'
17501     lt_prog_compiler_static_CXX='-static'
17502
17503     case $host_os in
17504     aix*)
17505       # All AIX code is PIC.
17506       if test "$host_cpu" = ia64; then
17507         # AIX 5 now supports IA64 processor
17508         lt_prog_compiler_static_CXX='-Bstatic'
17509       fi
17510       ;;
17511     amigaos*)
17512       # FIXME: we need at least 68020 code to build shared libraries, but
17513       # adding the `-m68020' flag to GCC prevents building anything better,
17514       # like `-m68040'.
17515       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17516       ;;
17517     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17518       # PIC is the default for these OSes.
17519       ;;
17520     mingw* | os2* | pw32*)
17521       # This hack is so that the source file can tell whether it is being
17522       # built for inclusion in a dll (and should export symbols for example).
17523       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17524       ;;
17525     darwin* | rhapsody*)
17526       # PIC is the default on this platform
17527       # Common symbols not allowed in MH_DYLIB files
17528       lt_prog_compiler_pic_CXX='-fno-common'
17529       ;;
17530     *djgpp*)
17531       # DJGPP does not support shared libraries at all
17532       lt_prog_compiler_pic_CXX=
17533       ;;
17534     sysv4*MP*)
17535       if test -d /usr/nec; then
17536         lt_prog_compiler_pic_CXX=-Kconform_pic
17537       fi
17538       ;;
17539     hpux*)
17540       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17541       # not for PA HP-UX.
17542       case "$host_cpu" in
17543       hppa*64*|ia64*)
17544         ;;
17545       *)
17546         lt_prog_compiler_pic_CXX='-fPIC'
17547         ;;
17548       esac
17549       ;;
17550     *)
17551       lt_prog_compiler_pic_CXX='-fPIC'
17552       ;;
17553     esac
17554   else
17555     case $host_os in
17556       aix4* | aix5*)
17557         # All AIX code is PIC.
17558         if test "$host_cpu" = ia64; then
17559           # AIX 5 now supports IA64 processor
17560           lt_prog_compiler_static_CXX='-Bstatic'
17561         else
17562           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17563         fi
17564         ;;
17565       chorus*)
17566         case $cc_basename in
17567         cxch68*)
17568           # Green Hills C++ Compiler
17569           # _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"
17570           ;;
17571         esac
17572         ;;
17573        darwin*)
17574          # PIC is the default on this platform
17575          # Common symbols not allowed in MH_DYLIB files
17576          case $cc_basename in
17577            xlc*)
17578            lt_prog_compiler_pic_CXX='-qnocommon'
17579            lt_prog_compiler_wl_CXX='-Wl,'
17580            ;;
17581          esac
17582        ;;
17583       dgux*)
17584         case $cc_basename in
17585           ec++*)
17586             lt_prog_compiler_pic_CXX='-KPIC'
17587             ;;
17588           ghcx*)
17589             # Green Hills C++ Compiler
17590             lt_prog_compiler_pic_CXX='-pic'
17591             ;;
17592           *)
17593             ;;
17594         esac
17595         ;;
17596       freebsd* | kfreebsd*-gnu | dragonfly*)
17597         # FreeBSD uses GNU C++
17598         ;;
17599       hpux9* | hpux10* | hpux11*)
17600         case $cc_basename in
17601           CC*)
17602             lt_prog_compiler_wl_CXX='-Wl,'
17603             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17604             if test "$host_cpu" != ia64; then
17605               lt_prog_compiler_pic_CXX='+Z'
17606             fi
17607             ;;
17608           aCC*)
17609             lt_prog_compiler_wl_CXX='-Wl,'
17610             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17611             case "$host_cpu" in
17612             hppa*64*|ia64*)
17613               # +Z the default
17614               ;;
17615             *)
17616               lt_prog_compiler_pic_CXX='+Z'
17617               ;;
17618             esac
17619             ;;
17620           *)
17621             ;;
17622         esac
17623         ;;
17624       irix5* | irix6* | nonstopux*)
17625         case $cc_basename in
17626           CC*)
17627             lt_prog_compiler_wl_CXX='-Wl,'
17628             lt_prog_compiler_static_CXX='-non_shared'
17629             # CC pic flag -KPIC is the default.
17630             ;;
17631           *)
17632             ;;
17633         esac
17634         ;;
17635       linux*)
17636         case $cc_basename in
17637           KCC*)
17638             # KAI C++ Compiler
17639             lt_prog_compiler_wl_CXX='--backend -Wl,'
17640             lt_prog_compiler_pic_CXX='-fPIC'
17641             ;;
17642           icpc* | ecpc*)
17643             # Intel C++
17644             lt_prog_compiler_wl_CXX='-Wl,'
17645             lt_prog_compiler_pic_CXX='-KPIC'
17646             lt_prog_compiler_static_CXX='-static'
17647             ;;
17648           pgCC*)
17649             # Portland Group C++ compiler.
17650             lt_prog_compiler_wl_CXX='-Wl,'
17651             lt_prog_compiler_pic_CXX='-fpic'
17652             lt_prog_compiler_static_CXX='-static'
17653             ;;
17654           cxx*)
17655             # Compaq C++
17656             # Make sure the PIC flag is empty.  It appears that all Alpha
17657             # Linux and Compaq Tru64 Unix objects are PIC.
17658             lt_prog_compiler_pic_CXX=
17659             lt_prog_compiler_static_CXX='-non_shared'
17660             ;;
17661           *)
17662             ;;
17663         esac
17664         ;;
17665       lynxos*)
17666         ;;
17667       m88k*)
17668         ;;
17669       mvs*)
17670         case $cc_basename in
17671           cxx*)
17672             lt_prog_compiler_pic_CXX='-W c,exportall'
17673             ;;
17674           *)
17675             ;;
17676         esac
17677         ;;
17678       netbsd*)
17679         ;;
17680       osf3* | osf4* | osf5*)
17681         case $cc_basename in
17682           KCC*)
17683             lt_prog_compiler_wl_CXX='--backend -Wl,'
17684             ;;
17685           RCC*)
17686             # Rational C++ 2.4.1
17687             lt_prog_compiler_pic_CXX='-pic'
17688             ;;
17689           cxx*)
17690             # Digital/Compaq C++
17691             lt_prog_compiler_wl_CXX='-Wl,'
17692             # Make sure the PIC flag is empty.  It appears that all Alpha
17693             # Linux and Compaq Tru64 Unix objects are PIC.
17694             lt_prog_compiler_pic_CXX=
17695             lt_prog_compiler_static_CXX='-non_shared'
17696             ;;
17697           *)
17698             ;;
17699         esac
17700         ;;
17701       psos*)
17702         ;;
17703       sco*)
17704         case $cc_basename in
17705           CC*)
17706             lt_prog_compiler_pic_CXX='-fPIC'
17707             ;;
17708           *)
17709             ;;
17710         esac
17711         ;;
17712       solaris*)
17713         case $cc_basename in
17714           CC*)
17715             # Sun C++ 4.2, 5.x and Centerline C++
17716             lt_prog_compiler_pic_CXX='-KPIC'
17717             lt_prog_compiler_static_CXX='-Bstatic'
17718             lt_prog_compiler_wl_CXX='-Qoption ld '
17719             ;;
17720           gcx*)
17721             # Green Hills C++ Compiler
17722             lt_prog_compiler_pic_CXX='-PIC'
17723             ;;
17724           *)
17725             ;;
17726         esac
17727         ;;
17728       sunos4*)
17729         case $cc_basename in
17730           CC*)
17731             # Sun C++ 4.x
17732             lt_prog_compiler_pic_CXX='-pic'
17733             lt_prog_compiler_static_CXX='-Bstatic'
17734             ;;
17735           lcc*)
17736             # Lucid
17737             lt_prog_compiler_pic_CXX='-pic'
17738             ;;
17739           *)
17740             ;;
17741         esac
17742         ;;
17743       tandem*)
17744         case $cc_basename in
17745           NCC*)
17746             # NonStop-UX NCC 3.20
17747             lt_prog_compiler_pic_CXX='-KPIC'
17748             ;;
17749           *)
17750             ;;
17751         esac
17752         ;;
17753       unixware*)
17754         ;;
17755       vxworks*)
17756         ;;
17757       *)
17758         lt_prog_compiler_can_build_shared_CXX=no
17759         ;;
17760     esac
17761   fi
17762
17763 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17764 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17765
17766 #
17767 # Check to make sure the PIC flag actually works.
17768 #
17769 if test -n "$lt_prog_compiler_pic_CXX"; then
17770
17771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17773 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17774   echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776   lt_prog_compiler_pic_works_CXX=no
17777   ac_outfile=conftest.$ac_objext
17778    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17779    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17780    # Insert the option either (1) after the last *FLAGS variable, or
17781    # (2) before a word containing "conftest.", or (3) at the end.
17782    # Note that $ac_compile itself does not contain backslashes and begins
17783    # with a dollar sign (not a hyphen), so the echo should work correctly.
17784    # The option is referenced via a variable to avoid confusing sed.
17785    lt_compile=`echo "$ac_compile" | $SED \
17786    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17788    -e 's:$: $lt_compiler_flag:'`
17789    (eval echo "\"\$as_me:17789: $lt_compile\"" >&5)
17790    (eval "$lt_compile" 2>conftest.err)
17791    ac_status=$?
17792    cat conftest.err >&5
17793    echo "$as_me:17793: \$? = $ac_status" >&5
17794    if (exit $ac_status) && test -s "$ac_outfile"; then
17795      # The compiler can only warn and ignore the option if not recognized
17796      # So say no if there are warnings other than the usual output.
17797      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17798      $SED '/^$/d' conftest.err >conftest.er2
17799      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17800        lt_prog_compiler_pic_works_CXX=yes
17801      fi
17802    fi
17803    $rm conftest*
17804
17805 fi
17806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17807 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17808
17809 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17810     case $lt_prog_compiler_pic_CXX in
17811      "" | " "*) ;;
17812      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17813      esac
17814 else
17815     lt_prog_compiler_pic_CXX=
17816      lt_prog_compiler_can_build_shared_CXX=no
17817 fi
17818
17819 fi
17820 case "$host_os" in
17821   # For platforms which do not support PIC, -DPIC is meaningless:
17822   *djgpp*)
17823     lt_prog_compiler_pic_CXX=
17824     ;;
17825   *)
17826     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17827     ;;
17828 esac
17829
17830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17832 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17833   echo $ECHO_N "(cached) $ECHO_C" >&6
17834 else
17835   lt_cv_prog_compiler_c_o_CXX=no
17836    $rm -r conftest 2>/dev/null
17837    mkdir conftest
17838    cd conftest
17839    mkdir out
17840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17841
17842    lt_compiler_flag="-o out/conftest2.$ac_objext"
17843    # Insert the option either (1) after the last *FLAGS variable, or
17844    # (2) before a word containing "conftest.", or (3) at the end.
17845    # Note that $ac_compile itself does not contain backslashes and begins
17846    # with a dollar sign (not a hyphen), so the echo should work correctly.
17847    lt_compile=`echo "$ac_compile" | $SED \
17848    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17850    -e 's:$: $lt_compiler_flag:'`
17851    (eval echo "\"\$as_me:17851: $lt_compile\"" >&5)
17852    (eval "$lt_compile" 2>out/conftest.err)
17853    ac_status=$?
17854    cat out/conftest.err >&5
17855    echo "$as_me:17855: \$? = $ac_status" >&5
17856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17857    then
17858      # The compiler can only warn and ignore the option if not recognized
17859      # So say no if there are warnings
17860      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17861      $SED '/^$/d' out/conftest.err >out/conftest.er2
17862      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17863        lt_cv_prog_compiler_c_o_CXX=yes
17864      fi
17865    fi
17866    chmod u+w .
17867    $rm conftest*
17868    # SGI C++ compiler will create directory out/ii_files/ for
17869    # template instantiation
17870    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17871    $rm out/* && rmdir out
17872    cd ..
17873    rmdir conftest
17874    $rm conftest*
17875
17876 fi
17877 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17879
17880
17881 hard_links="nottested"
17882 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17883   # do not overwrite the value of need_locks provided by the user
17884   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17886   hard_links=yes
17887   $rm conftest*
17888   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17889   touch conftest.a
17890   ln conftest.a conftest.b 2>&5 || hard_links=no
17891   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17892   echo "$as_me:$LINENO: result: $hard_links" >&5
17893 echo "${ECHO_T}$hard_links" >&6
17894   if test "$hard_links" = no; then
17895     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17897     need_locks=warn
17898   fi
17899 else
17900   need_locks=no
17901 fi
17902
17903 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17905
17906   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17907   case $host_os in
17908   aix4* | aix5*)
17909     # If we're using GNU nm, then we don't want the "-C" option.
17910     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17911     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17912       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'
17913     else
17914       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'
17915     fi
17916     ;;
17917   pw32*)
17918     export_symbols_cmds_CXX="$ltdll_cmds"
17919   ;;
17920   cygwin* | mingw*)
17921     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17922   ;;
17923   *)
17924     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17925   ;;
17926   esac
17927
17928 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17929 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17930 test "$ld_shlibs_CXX" = no && can_build_shared=no
17931
17932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17933 if test "$GCC" = yes; then
17934   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17935 fi
17936
17937 #
17938 # Do we need to explicitly link libc?
17939 #
17940 case "x$archive_cmds_need_lc_CXX" in
17941 x|xyes)
17942   # Assume -lc should be added
17943   archive_cmds_need_lc_CXX=yes
17944
17945   if test "$enable_shared" = yes && test "$GCC" = yes; then
17946     case $archive_cmds_CXX in
17947     *'~'*)
17948       # FIXME: we may have to deal with multi-command sequences.
17949       ;;
17950     '$CC '*)
17951       # Test whether the compiler implicitly links with -lc since on some
17952       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17953       # to ld, don't add -lc before -lgcc.
17954       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17955 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17956       $rm conftest*
17957       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17958
17959       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17960   (eval $ac_compile) 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } 2>conftest.err; then
17964         soname=conftest
17965         lib=conftest
17966         libobjs=conftest.$ac_objext
17967         deplibs=
17968         wl=$lt_prog_compiler_wl_CXX
17969         compiler_flags=-v
17970         linker_flags=-v
17971         verstring=
17972         output_objdir=.
17973         libname=conftest
17974         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17975         allow_undefined_flag_CXX=
17976         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17977   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17978   ac_status=$?
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); }
17981         then
17982           archive_cmds_need_lc_CXX=no
17983         else
17984           archive_cmds_need_lc_CXX=yes
17985         fi
17986         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17987       else
17988         cat conftest.err 1>&5
17989       fi
17990       $rm conftest*
17991       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17992 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17993       ;;
17994     esac
17995   fi
17996   ;;
17997 esac
17998
17999 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18000 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18001 library_names_spec=
18002 libname_spec='lib$name'
18003 soname_spec=
18004 shrext_cmds=".so"
18005 postinstall_cmds=
18006 postuninstall_cmds=
18007 finish_cmds=
18008 finish_eval=
18009 shlibpath_var=
18010 shlibpath_overrides_runpath=unknown
18011 version_type=none
18012 dynamic_linker="$host_os ld.so"
18013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18014 if test "$GCC" = yes; then
18015   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18016   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18017     # if the path contains ";" then we assume it to be the separator
18018     # otherwise default to the standard path separator (i.e. ":") - it is
18019     # assumed that no part of a normal pathname contains ";" but that should
18020     # okay in the real world where ";" in dirpaths is itself problematic.
18021     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18022   else
18023     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18024   fi
18025 else
18026   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18027 fi
18028 need_lib_prefix=unknown
18029 hardcode_into_libs=no
18030
18031 # when you set need_version to no, make sure it does not cause -set_version
18032 # flags to be left without arguments
18033 need_version=unknown
18034
18035 case $host_os in
18036 aix3*)
18037   version_type=linux
18038   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18039   shlibpath_var=LIBPATH
18040
18041   # AIX 3 has no versioning support, so we append a major version to the name.
18042   soname_spec='${libname}${release}${shared_ext}$major'
18043   ;;
18044
18045 aix4* | aix5*)
18046   version_type=linux
18047   need_lib_prefix=no
18048   need_version=no
18049   hardcode_into_libs=yes
18050   if test "$host_cpu" = ia64; then
18051     # AIX 5 supports IA64
18052     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18053     shlibpath_var=LD_LIBRARY_PATH
18054   else
18055     # With GCC up to 2.95.x, collect2 would create an import file
18056     # for dependence libraries.  The import file would start with
18057     # the line `#! .'.  This would cause the generated library to
18058     # depend on `.', always an invalid library.  This was fixed in
18059     # development snapshots of GCC prior to 3.0.
18060     case $host_os in
18061       aix4 | aix4.[01] | aix4.[01].*)
18062       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18063            echo ' yes '
18064            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18065         :
18066       else
18067         can_build_shared=no
18068       fi
18069       ;;
18070     esac
18071     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18072     # soname into executable. Probably we can add versioning support to
18073     # collect2, so additional links can be useful in future.
18074     if test "$aix_use_runtimelinking" = yes; then
18075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18076       # instead of lib<name>.a to let people know that these are not
18077       # typical AIX shared libraries.
18078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079     else
18080       # We preserve .a as extension for shared libraries through AIX4.2
18081       # and later when we are not doing run time linking.
18082       library_names_spec='${libname}${release}.a $libname.a'
18083       soname_spec='${libname}${release}${shared_ext}$major'
18084     fi
18085     shlibpath_var=LIBPATH
18086   fi
18087   ;;
18088
18089 amigaos*)
18090   library_names_spec='$libname.ixlibrary $libname.a'
18091   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18092   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'
18093   ;;
18094
18095 beos*)
18096   library_names_spec='${libname}${shared_ext}'
18097   dynamic_linker="$host_os ld.so"
18098   shlibpath_var=LIBRARY_PATH
18099   ;;
18100
18101 bsdi[45]*)
18102   version_type=linux
18103   need_version=no
18104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105   soname_spec='${libname}${release}${shared_ext}$major'
18106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18107   shlibpath_var=LD_LIBRARY_PATH
18108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18110   # the default ld.so.conf also contains /usr/contrib/lib and
18111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18112   # libtool to hard-code these into programs
18113   ;;
18114
18115 cygwin* | mingw* | pw32*)
18116   version_type=windows
18117   shrext_cmds=".dll"
18118   need_version=no
18119   need_lib_prefix=no
18120
18121   case $GCC,$host_os in
18122   yes,cygwin* | yes,mingw* | yes,pw32*)
18123     library_names_spec='$libname.dll.a'
18124     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18125     postinstall_cmds='base_file=`basename \${file}`~
18126       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18127       dldir=$destdir/`dirname \$dlpath`~
18128       test -d \$dldir || mkdir -p \$dldir~
18129       $install_prog $dir/$dlname \$dldir/$dlname'
18130     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18131       dlpath=$dir/\$dldll~
18132        $rm \$dlpath'
18133     shlibpath_overrides_runpath=yes
18134
18135     case $host_os in
18136     cygwin*)
18137       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18138       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18139       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18140       ;;
18141     mingw*)
18142       # MinGW DLLs use traditional 'lib' prefix
18143       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18144       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18145       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18146         # It is most probably a Windows format PATH printed by
18147         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18148         # path with ; separators, and with drive letters. We can handle the
18149         # drive letters (cygwin fileutils understands them), so leave them,
18150         # especially as we might pass files found there to a mingw objdump,
18151         # which wouldn't understand a cygwinified path. Ahh.
18152         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18153       else
18154         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18155       fi
18156       ;;
18157     pw32*)
18158       # pw32 DLLs use 'pw' prefix rather than 'lib'
18159       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18160       ;;
18161     esac
18162     ;;
18163
18164   *)
18165     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18166     ;;
18167   esac
18168   dynamic_linker='Win32 ld.exe'
18169   # FIXME: first we should search . and the directory the executable is in
18170   shlibpath_var=PATH
18171   ;;
18172
18173 darwin* | rhapsody*)
18174   dynamic_linker="$host_os dyld"
18175   version_type=darwin
18176   need_lib_prefix=no
18177   need_version=no
18178   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18179   soname_spec='${libname}${release}${major}$shared_ext'
18180   shlibpath_overrides_runpath=yes
18181   shlibpath_var=DYLD_LIBRARY_PATH
18182   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18183   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18184   if test "$GCC" = yes; then
18185     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"`
18186   else
18187     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18188   fi
18189   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18190   ;;
18191
18192 dgux*)
18193   version_type=linux
18194   need_lib_prefix=no
18195   need_version=no
18196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18197   soname_spec='${libname}${release}${shared_ext}$major'
18198   shlibpath_var=LD_LIBRARY_PATH
18199   ;;
18200
18201 freebsd1*)
18202   dynamic_linker=no
18203   ;;
18204
18205 kfreebsd*-gnu)
18206   version_type=linux
18207   need_lib_prefix=no
18208   need_version=no
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18210   soname_spec='${libname}${release}${shared_ext}$major'
18211   shlibpath_var=LD_LIBRARY_PATH
18212   shlibpath_overrides_runpath=no
18213   hardcode_into_libs=yes
18214   dynamic_linker='GNU ld.so'
18215   ;;
18216
18217 freebsd* | dragonfly*)
18218   # DragonFly does not have aout.  When/if they implement a new
18219   # versioning mechanism, adjust this.
18220   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18221   version_type=freebsd-$objformat
18222   case $version_type in
18223     freebsd-elf*)
18224       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18225       need_version=no
18226       need_lib_prefix=no
18227       ;;
18228     freebsd-*)
18229       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18230       need_version=yes
18231       ;;
18232   esac
18233   shlibpath_var=LD_LIBRARY_PATH
18234   case $host_os in
18235   freebsd2*)
18236     shlibpath_overrides_runpath=yes
18237     ;;
18238   freebsd3.[01]* | freebsdelf3.[01]*)
18239     shlibpath_overrides_runpath=yes
18240     hardcode_into_libs=yes
18241     ;;
18242   *) # from 3.2 on
18243     shlibpath_overrides_runpath=no
18244     hardcode_into_libs=yes
18245     ;;
18246   esac
18247   ;;
18248
18249 gnu*)
18250   version_type=linux
18251   need_lib_prefix=no
18252   need_version=no
18253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18254   soname_spec='${libname}${release}${shared_ext}$major'
18255   shlibpath_var=LD_LIBRARY_PATH
18256   hardcode_into_libs=yes
18257   ;;
18258
18259 hpux9* | hpux10* | hpux11*)
18260   # Give a soname corresponding to the major version so that dld.sl refuses to
18261   # link against other versions.
18262   version_type=sunos
18263   need_lib_prefix=no
18264   need_version=no
18265   case "$host_cpu" in
18266   ia64*)
18267     shrext_cmds='.so'
18268     hardcode_into_libs=yes
18269     dynamic_linker="$host_os dld.so"
18270     shlibpath_var=LD_LIBRARY_PATH
18271     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18273     soname_spec='${libname}${release}${shared_ext}$major'
18274     if test "X$HPUX_IA64_MODE" = X32; then
18275       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18276     else
18277       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18278     fi
18279     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18280     ;;
18281    hppa*64*)
18282      shrext_cmds='.sl'
18283      hardcode_into_libs=yes
18284      dynamic_linker="$host_os dld.sl"
18285      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18286      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18287      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288      soname_spec='${libname}${release}${shared_ext}$major'
18289      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18290      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18291      ;;
18292    *)
18293     shrext_cmds='.sl'
18294     dynamic_linker="$host_os dld.sl"
18295     shlibpath_var=SHLIB_PATH
18296     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298     soname_spec='${libname}${release}${shared_ext}$major'
18299     ;;
18300   esac
18301   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18302   postinstall_cmds='chmod 555 $lib'
18303   ;;
18304
18305 irix5* | irix6* | nonstopux*)
18306   case $host_os in
18307     nonstopux*) version_type=nonstopux ;;
18308     *)
18309         if test "$lt_cv_prog_gnu_ld" = yes; then
18310                 version_type=linux
18311         else
18312                 version_type=irix
18313         fi ;;
18314   esac
18315   need_lib_prefix=no
18316   need_version=no
18317   soname_spec='${libname}${release}${shared_ext}$major'
18318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18319   case $host_os in
18320   irix5* | nonstopux*)
18321     libsuff= shlibsuff=
18322     ;;
18323   *)
18324     case $LD in # libtool.m4 will add one of these switches to LD
18325     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18326       libsuff= shlibsuff= libmagic=32-bit;;
18327     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18328       libsuff=32 shlibsuff=N32 libmagic=N32;;
18329     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18330       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18331     *) libsuff= shlibsuff= libmagic=never-match;;
18332     esac
18333     ;;
18334   esac
18335   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18336   shlibpath_overrides_runpath=no
18337   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18338   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18339   hardcode_into_libs=yes
18340   ;;
18341
18342 # No shared lib support for Linux oldld, aout, or coff.
18343 linux*oldld* | linux*aout* | linux*coff*)
18344   dynamic_linker=no
18345   ;;
18346
18347 # This must be Linux ELF.
18348 linux*)
18349   version_type=linux
18350   need_lib_prefix=no
18351   need_version=no
18352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353   soname_spec='${libname}${release}${shared_ext}$major'
18354   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18355   shlibpath_var=LD_LIBRARY_PATH
18356   shlibpath_overrides_runpath=no
18357   # This implies no fast_install, which is unacceptable.
18358   # Some rework will be needed to allow for fast_install
18359   # before this can be enabled.
18360   hardcode_into_libs=yes
18361
18362   # find out which ABI we are using
18363   libsuff=
18364   case "$host_cpu" in
18365   x86_64*|s390x*|powerpc64*)
18366     echo '#line 18366 "configure"' > conftest.$ac_ext
18367     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18368   (eval $ac_compile) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; then
18372       case `/usr/bin/file conftest.$ac_objext` in
18373       *64-bit*)
18374         libsuff=64
18375         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18376         ;;
18377       esac
18378     fi
18379     rm -rf conftest*
18380     ;;
18381   esac
18382
18383   # Append ld.so.conf contents to the search path
18384   if test -f /etc/ld.so.conf; then
18385     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18386     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18387   fi
18388
18389   # We used to test for /lib/ld.so.1 and disable shared libraries on
18390   # powerpc, because MkLinux only supported shared libraries with the
18391   # GNU dynamic linker.  Since this was broken with cross compilers,
18392   # most powerpc-linux boxes support dynamic linking these days and
18393   # people can always --disable-shared, the test was removed, and we
18394   # assume the GNU/Linux dynamic linker is in use.
18395   dynamic_linker='GNU/Linux ld.so'
18396   ;;
18397
18398 knetbsd*-gnu)
18399   version_type=linux
18400   need_lib_prefix=no
18401   need_version=no
18402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18403   soname_spec='${libname}${release}${shared_ext}$major'
18404   shlibpath_var=LD_LIBRARY_PATH
18405   shlibpath_overrides_runpath=no
18406   hardcode_into_libs=yes
18407   dynamic_linker='GNU ld.so'
18408   ;;
18409
18410 netbsd*)
18411   version_type=sunos
18412   need_lib_prefix=no
18413   need_version=no
18414   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18416     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18417     dynamic_linker='NetBSD (a.out) ld.so'
18418   else
18419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18420     soname_spec='${libname}${release}${shared_ext}$major'
18421     dynamic_linker='NetBSD ld.elf_so'
18422   fi
18423   shlibpath_var=LD_LIBRARY_PATH
18424   shlibpath_overrides_runpath=yes
18425   hardcode_into_libs=yes
18426   ;;
18427
18428 newsos6)
18429   version_type=linux
18430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431   shlibpath_var=LD_LIBRARY_PATH
18432   shlibpath_overrides_runpath=yes
18433   ;;
18434
18435 nto-qnx*)
18436   version_type=linux
18437   need_lib_prefix=no
18438   need_version=no
18439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18440   soname_spec='${libname}${release}${shared_ext}$major'
18441   shlibpath_var=LD_LIBRARY_PATH
18442   shlibpath_overrides_runpath=yes
18443   ;;
18444
18445 openbsd*)
18446   version_type=sunos
18447   need_lib_prefix=no
18448   need_version=no
18449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18451   shlibpath_var=LD_LIBRARY_PATH
18452   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18453     case $host_os in
18454       openbsd2.[89] | openbsd2.[89].*)
18455         shlibpath_overrides_runpath=no
18456         ;;
18457       *)
18458         shlibpath_overrides_runpath=yes
18459         ;;
18460       esac
18461   else
18462     shlibpath_overrides_runpath=yes
18463   fi
18464   ;;
18465
18466 os2*)
18467   libname_spec='$name'
18468   shrext_cmds=".dll"
18469   need_lib_prefix=no
18470   library_names_spec='$libname${shared_ext} $libname.a'
18471   dynamic_linker='OS/2 ld.exe'
18472   shlibpath_var=LIBPATH
18473   ;;
18474
18475 osf3* | osf4* | osf5*)
18476   version_type=osf
18477   need_lib_prefix=no
18478   need_version=no
18479   soname_spec='${libname}${release}${shared_ext}$major'
18480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481   shlibpath_var=LD_LIBRARY_PATH
18482   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18483   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18484   ;;
18485
18486 sco3.2v5*)
18487   version_type=osf
18488   soname_spec='${libname}${release}${shared_ext}$major'
18489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18490   shlibpath_var=LD_LIBRARY_PATH
18491   ;;
18492
18493 solaris*)
18494   version_type=linux
18495   need_lib_prefix=no
18496   need_version=no
18497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18498   soname_spec='${libname}${release}${shared_ext}$major'
18499   shlibpath_var=LD_LIBRARY_PATH
18500   shlibpath_overrides_runpath=yes
18501   hardcode_into_libs=yes
18502   # ldd complains unless libraries are executable
18503   postinstall_cmds='chmod +x $lib'
18504   ;;
18505
18506 sunos4*)
18507   version_type=sunos
18508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18509   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18510   shlibpath_var=LD_LIBRARY_PATH
18511   shlibpath_overrides_runpath=yes
18512   if test "$with_gnu_ld" = yes; then
18513     need_lib_prefix=no
18514   fi
18515   need_version=yes
18516   ;;
18517
18518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18519   version_type=linux
18520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18521   soname_spec='${libname}${release}${shared_ext}$major'
18522   shlibpath_var=LD_LIBRARY_PATH
18523   case $host_vendor in
18524     sni)
18525       shlibpath_overrides_runpath=no
18526       need_lib_prefix=no
18527       export_dynamic_flag_spec='${wl}-Blargedynsym'
18528       runpath_var=LD_RUN_PATH
18529       ;;
18530     siemens)
18531       need_lib_prefix=no
18532       ;;
18533     motorola)
18534       need_lib_prefix=no
18535       need_version=no
18536       shlibpath_overrides_runpath=no
18537       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18538       ;;
18539   esac
18540   ;;
18541
18542 sysv4*MP*)
18543   if test -d /usr/nec ;then
18544     version_type=linux
18545     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18546     soname_spec='$libname${shared_ext}.$major'
18547     shlibpath_var=LD_LIBRARY_PATH
18548   fi
18549   ;;
18550
18551 uts4*)
18552   version_type=linux
18553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554   soname_spec='${libname}${release}${shared_ext}$major'
18555   shlibpath_var=LD_LIBRARY_PATH
18556   ;;
18557
18558 *)
18559   dynamic_linker=no
18560   ;;
18561 esac
18562 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18563 echo "${ECHO_T}$dynamic_linker" >&6
18564 test "$dynamic_linker" = no && can_build_shared=no
18565
18566 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18567 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18568 hardcode_action_CXX=
18569 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18570    test -n "$runpath_var_CXX" || \
18571    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18572
18573   # We can hardcode non-existant directories.
18574   if test "$hardcode_direct_CXX" != no &&
18575      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18576      # have to relink, otherwise we might link with an installed library
18577      # when we should be linking with a yet-to-be-installed one
18578      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18579      test "$hardcode_minus_L_CXX" != no; then
18580     # Linking always hardcodes the temporary library directory.
18581     hardcode_action_CXX=relink
18582   else
18583     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18584     hardcode_action_CXX=immediate
18585   fi
18586 else
18587   # We cannot hardcode anything, or else we can only hardcode existing
18588   # directories.
18589   hardcode_action_CXX=unsupported
18590 fi
18591 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18592 echo "${ECHO_T}$hardcode_action_CXX" >&6
18593
18594 if test "$hardcode_action_CXX" = relink; then
18595   # Fast installation is not supported
18596   enable_fast_install=no
18597 elif test "$shlibpath_overrides_runpath" = yes ||
18598      test "$enable_shared" = no; then
18599   # Fast installation is not necessary
18600   enable_fast_install=needless
18601 fi
18602
18603 striplib=
18604 old_striplib=
18605 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18606 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18607 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18608   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18609   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18610   echo "$as_me:$LINENO: result: yes" >&5
18611 echo "${ECHO_T}yes" >&6
18612 else
18613 # FIXME - insert some real tests, host_os isn't really good enough
18614   case $host_os in
18615    darwin*)
18616        if test -n "$STRIP" ; then
18617          striplib="$STRIP -x"
18618          echo "$as_me:$LINENO: result: yes" >&5
18619 echo "${ECHO_T}yes" >&6
18620        else
18621   echo "$as_me:$LINENO: result: no" >&5
18622 echo "${ECHO_T}no" >&6
18623 fi
18624        ;;
18625    *)
18626   echo "$as_me:$LINENO: result: no" >&5
18627 echo "${ECHO_T}no" >&6
18628     ;;
18629   esac
18630 fi
18631
18632 if test "x$enable_dlopen" != xyes; then
18633   enable_dlopen=unknown
18634   enable_dlopen_self=unknown
18635   enable_dlopen_self_static=unknown
18636 else
18637   lt_cv_dlopen=no
18638   lt_cv_dlopen_libs=
18639
18640   case $host_os in
18641   beos*)
18642     lt_cv_dlopen="load_add_on"
18643     lt_cv_dlopen_libs=
18644     lt_cv_dlopen_self=yes
18645     ;;
18646
18647   mingw* | pw32*)
18648     lt_cv_dlopen="LoadLibrary"
18649     lt_cv_dlopen_libs=
18650    ;;
18651
18652   cygwin*)
18653     lt_cv_dlopen="dlopen"
18654     lt_cv_dlopen_libs=
18655    ;;
18656
18657   darwin*)
18658   # if libdl is installed we need to link against it
18659     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18660 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-ldl  $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672
18673 /* Override any gcc2 internal prototype to avoid an error.  */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 /* We use char because int might match the return type of a gcc2
18678    builtin and then its argument prototype would still apply.  */
18679 char dlopen ();
18680 int
18681 main ()
18682 {
18683 dlopen ();
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690   (eval $ac_link) 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_cxx_werror_flag"
18698                          || test ! -s conftest.err'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; } &&
18704          { ac_try='test -s conftest$ac_exeext'
18705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706   (eval $ac_try) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   ac_cv_lib_dl_dlopen=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 ac_cv_lib_dl_dlopen=no
18716 fi
18717 rm -f conftest.err conftest.$ac_objext \
18718       conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18720 fi
18721 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18723 if test $ac_cv_lib_dl_dlopen = yes; then
18724   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18725 else
18726
18727     lt_cv_dlopen="dyld"
18728     lt_cv_dlopen_libs=
18729     lt_cv_dlopen_self=yes
18730
18731 fi
18732
18733    ;;
18734
18735   *)
18736     echo "$as_me:$LINENO: checking for shl_load" >&5
18737 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18738 if test "${ac_cv_func_shl_load+set}" = set; then
18739   echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741   cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18749 #define shl_load innocuous_shl_load
18750
18751 /* System header to define __stub macros and hopefully few prototypes,
18752     which can conflict with char shl_load (); below.
18753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754     <limits.h> exists even on freestanding compilers.  */
18755
18756 #ifdef __STDC__
18757 # include <limits.h>
18758 #else
18759 # include <assert.h>
18760 #endif
18761
18762 #undef shl_load
18763
18764 /* Override any gcc2 internal prototype to avoid an error.  */
18765 #ifdef __cplusplus
18766 extern "C"
18767 {
18768 #endif
18769 /* We use char because int might match the return type of a gcc2
18770    builtin and then its argument prototype would still apply.  */
18771 char shl_load ();
18772 /* The GNU C library defines this for functions which it implements
18773     to always fail with ENOSYS.  Some functions are actually named
18774     something starting with __ and the normal name is an alias.  */
18775 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18776 choke me
18777 #else
18778 char (*f) () = shl_load;
18779 #endif
18780 #ifdef __cplusplus
18781 }
18782 #endif
18783
18784 int
18785 main ()
18786 {
18787 return f != shl_load;
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18794   (eval $ac_link) 2>conftest.er1
18795   ac_status=$?
18796   grep -v '^ *+' conftest.er1 >conftest.err
18797   rm -f conftest.er1
18798   cat conftest.err >&5
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); } &&
18801          { ac_try='test -z "$ac_cxx_werror_flag"
18802                          || test ! -s conftest.err'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; } &&
18808          { ac_try='test -s conftest$ac_exeext'
18809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810   (eval $ac_try) 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); }; }; then
18814   ac_cv_func_shl_load=yes
18815 else
18816   echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 ac_cv_func_shl_load=no
18820 fi
18821 rm -f conftest.err conftest.$ac_objext \
18822       conftest$ac_exeext conftest.$ac_ext
18823 fi
18824 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18825 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18826 if test $ac_cv_func_shl_load = yes; then
18827   lt_cv_dlopen="shl_load"
18828 else
18829   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18830 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18831 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-ldld  $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842
18843 /* Override any gcc2 internal prototype to avoid an error.  */
18844 #ifdef __cplusplus
18845 extern "C"
18846 #endif
18847 /* We use char because int might match the return type of a gcc2
18848    builtin and then its argument prototype would still apply.  */
18849 char shl_load ();
18850 int
18851 main ()
18852 {
18853 shl_load ();
18854   ;
18855   return 0;
18856 }
18857 _ACEOF
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18860   (eval $ac_link) 2>conftest.er1
18861   ac_status=$?
18862   grep -v '^ *+' conftest.er1 >conftest.err
18863   rm -f conftest.er1
18864   cat conftest.err >&5
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); } &&
18867          { ac_try='test -z "$ac_cxx_werror_flag"
18868                          || test ! -s conftest.err'
18869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870   (eval $ac_try) 2>&5
18871   ac_status=$?
18872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873   (exit $ac_status); }; } &&
18874          { ac_try='test -s conftest$ac_exeext'
18875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876   (eval $ac_try) 2>&5
18877   ac_status=$?
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); }; }; then
18880   ac_cv_lib_dld_shl_load=yes
18881 else
18882   echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18884
18885 ac_cv_lib_dld_shl_load=no
18886 fi
18887 rm -f conftest.err conftest.$ac_objext \
18888       conftest$ac_exeext conftest.$ac_ext
18889 LIBS=$ac_check_lib_save_LIBS
18890 fi
18891 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18892 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18893 if test $ac_cv_lib_dld_shl_load = yes; then
18894   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18895 else
18896   echo "$as_me:$LINENO: checking for dlopen" >&5
18897 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18898 if test "${ac_cv_func_dlopen+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18909 #define dlopen innocuous_dlopen
18910
18911 /* System header to define __stub macros and hopefully few prototypes,
18912     which can conflict with char dlopen (); below.
18913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18914     <limits.h> exists even on freestanding compilers.  */
18915
18916 #ifdef __STDC__
18917 # include <limits.h>
18918 #else
18919 # include <assert.h>
18920 #endif
18921
18922 #undef dlopen
18923
18924 /* Override any gcc2 internal prototype to avoid an error.  */
18925 #ifdef __cplusplus
18926 extern "C"
18927 {
18928 #endif
18929 /* We use char because int might match the return type of a gcc2
18930    builtin and then its argument prototype would still apply.  */
18931 char dlopen ();
18932 /* The GNU C library defines this for functions which it implements
18933     to always fail with ENOSYS.  Some functions are actually named
18934     something starting with __ and the normal name is an alias.  */
18935 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18936 choke me
18937 #else
18938 char (*f) () = dlopen;
18939 #endif
18940 #ifdef __cplusplus
18941 }
18942 #endif
18943
18944 int
18945 main ()
18946 {
18947 return f != dlopen;
18948   ;
18949   return 0;
18950 }
18951 _ACEOF
18952 rm -f conftest.$ac_objext conftest$ac_exeext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18954   (eval $ac_link) 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } &&
18961          { ac_try='test -z "$ac_cxx_werror_flag"
18962                          || test ! -s conftest.err'
18963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964   (eval $ac_try) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; } &&
18968          { ac_try='test -s conftest$ac_exeext'
18969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970   (eval $ac_try) 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; }; then
18974   ac_cv_func_dlopen=yes
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ac_cv_func_dlopen=no
18980 fi
18981 rm -f conftest.err conftest.$ac_objext \
18982       conftest$ac_exeext conftest.$ac_ext
18983 fi
18984 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18985 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18986 if test $ac_cv_func_dlopen = yes; then
18987   lt_cv_dlopen="dlopen"
18988 else
18989   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18990 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18991 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   ac_check_lib_save_LIBS=$LIBS
18995 LIBS="-ldl  $LIBS"
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h.  */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h.  */
19002
19003 /* Override any gcc2 internal prototype to avoid an error.  */
19004 #ifdef __cplusplus
19005 extern "C"
19006 #endif
19007 /* We use char because int might match the return type of a gcc2
19008    builtin and then its argument prototype would still apply.  */
19009 char dlopen ();
19010 int
19011 main ()
19012 {
19013 dlopen ();
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020   (eval $ac_link) 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } &&
19027          { ac_try='test -z "$ac_cxx_werror_flag"
19028                          || test ! -s conftest.err'
19029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030   (eval $ac_try) 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); }; } &&
19034          { ac_try='test -s conftest$ac_exeext'
19035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036   (eval $ac_try) 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; }; then
19040   ac_cv_lib_dl_dlopen=yes
19041 else
19042   echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_cv_lib_dl_dlopen=no
19046 fi
19047 rm -f conftest.err conftest.$ac_objext \
19048       conftest$ac_exeext conftest.$ac_ext
19049 LIBS=$ac_check_lib_save_LIBS
19050 fi
19051 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19052 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19053 if test $ac_cv_lib_dl_dlopen = yes; then
19054   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19055 else
19056   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19057 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19058 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lsvld  $LIBS"
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19069
19070 /* Override any gcc2 internal prototype to avoid an error.  */
19071 #ifdef __cplusplus
19072 extern "C"
19073 #endif
19074 /* We use char because int might match the return type of a gcc2
19075    builtin and then its argument prototype would still apply.  */
19076 char dlopen ();
19077 int
19078 main ()
19079 {
19080 dlopen ();
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19087   (eval $ac_link) 2>conftest.er1
19088   ac_status=$?
19089   grep -v '^ *+' conftest.er1 >conftest.err
19090   rm -f conftest.er1
19091   cat conftest.err >&5
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } &&
19094          { ac_try='test -z "$ac_cxx_werror_flag"
19095                          || test ! -s conftest.err'
19096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097   (eval $ac_try) 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; } &&
19101          { ac_try='test -s conftest$ac_exeext'
19102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103   (eval $ac_try) 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); }; }; then
19107   ac_cv_lib_svld_dlopen=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_cv_lib_svld_dlopen=no
19113 fi
19114 rm -f conftest.err conftest.$ac_objext \
19115       conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19117 fi
19118 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19119 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19120 if test $ac_cv_lib_svld_dlopen = yes; then
19121   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19122 else
19123   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19124 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19125 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19126   echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128   ac_check_lib_save_LIBS=$LIBS
19129 LIBS="-ldld  $LIBS"
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136
19137 /* Override any gcc2 internal prototype to avoid an error.  */
19138 #ifdef __cplusplus
19139 extern "C"
19140 #endif
19141 /* We use char because int might match the return type of a gcc2
19142    builtin and then its argument prototype would still apply.  */
19143 char dld_link ();
19144 int
19145 main ()
19146 {
19147 dld_link ();
19148   ;
19149   return 0;
19150 }
19151 _ACEOF
19152 rm -f conftest.$ac_objext conftest$ac_exeext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154   (eval $ac_link) 2>conftest.er1
19155   ac_status=$?
19156   grep -v '^ *+' conftest.er1 >conftest.err
19157   rm -f conftest.er1
19158   cat conftest.err >&5
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); } &&
19161          { ac_try='test -z "$ac_cxx_werror_flag"
19162                          || test ! -s conftest.err'
19163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164   (eval $ac_try) 2>&5
19165   ac_status=$?
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); }; } &&
19168          { ac_try='test -s conftest$ac_exeext'
19169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170   (eval $ac_try) 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); }; }; then
19174   ac_cv_lib_dld_dld_link=yes
19175 else
19176   echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 ac_cv_lib_dld_dld_link=no
19180 fi
19181 rm -f conftest.err conftest.$ac_objext \
19182       conftest$ac_exeext conftest.$ac_ext
19183 LIBS=$ac_check_lib_save_LIBS
19184 fi
19185 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19186 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19187 if test $ac_cv_lib_dld_dld_link = yes; then
19188   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19189 fi
19190
19191
19192 fi
19193
19194
19195 fi
19196
19197
19198 fi
19199
19200
19201 fi
19202
19203
19204 fi
19205
19206     ;;
19207   esac
19208
19209   if test "x$lt_cv_dlopen" != xno; then
19210     enable_dlopen=yes
19211   else
19212     enable_dlopen=no
19213   fi
19214
19215   case $lt_cv_dlopen in
19216   dlopen)
19217     save_CPPFLAGS="$CPPFLAGS"
19218     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19219
19220     save_LDFLAGS="$LDFLAGS"
19221     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19222
19223     save_LIBS="$LIBS"
19224     LIBS="$lt_cv_dlopen_libs $LIBS"
19225
19226     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19227 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19228 if test "${lt_cv_dlopen_self+set}" = set; then
19229   echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231           if test "$cross_compiling" = yes; then :
19232   lt_cv_dlopen_self=cross
19233 else
19234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19235   lt_status=$lt_dlunknown
19236   cat > conftest.$ac_ext <<EOF
19237 #line 19237 "configure"
19238 #include "confdefs.h"
19239
19240 #if HAVE_DLFCN_H
19241 #include <dlfcn.h>
19242 #endif
19243
19244 #include <stdio.h>
19245
19246 #ifdef RTLD_GLOBAL
19247 #  define LT_DLGLOBAL           RTLD_GLOBAL
19248 #else
19249 #  ifdef DL_GLOBAL
19250 #    define LT_DLGLOBAL         DL_GLOBAL
19251 #  else
19252 #    define LT_DLGLOBAL         0
19253 #  endif
19254 #endif
19255
19256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19257    find out it does not work in some platform. */
19258 #ifndef LT_DLLAZY_OR_NOW
19259 #  ifdef RTLD_LAZY
19260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19261 #  else
19262 #    ifdef DL_LAZY
19263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19264 #    else
19265 #      ifdef RTLD_NOW
19266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19267 #      else
19268 #        ifdef DL_NOW
19269 #          define LT_DLLAZY_OR_NOW      DL_NOW
19270 #        else
19271 #          define LT_DLLAZY_OR_NOW      0
19272 #        endif
19273 #      endif
19274 #    endif
19275 #  endif
19276 #endif
19277
19278 #ifdef __cplusplus
19279 extern "C" void exit (int);
19280 #endif
19281
19282 void fnord() { int i=42;}
19283 int main ()
19284 {
19285   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19286   int status = $lt_dlunknown;
19287
19288   if (self)
19289     {
19290       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19291       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19292       /* dlclose (self); */
19293     }
19294
19295     exit (status);
19296 }
19297 EOF
19298   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19299   (eval $ac_link) 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19303     (./conftest; exit; ) 2>/dev/null
19304     lt_status=$?
19305     case x$lt_status in
19306       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19307       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19308       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19309     esac
19310   else :
19311     # compilation failed
19312     lt_cv_dlopen_self=no
19313   fi
19314 fi
19315 rm -fr conftest*
19316
19317
19318 fi
19319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19320 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19321
19322     if test "x$lt_cv_dlopen_self" = xyes; then
19323       LDFLAGS="$LDFLAGS $link_static_flag"
19324       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19325 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19326 if test "${lt_cv_dlopen_self_static+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329           if test "$cross_compiling" = yes; then :
19330   lt_cv_dlopen_self_static=cross
19331 else
19332   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19333   lt_status=$lt_dlunknown
19334   cat > conftest.$ac_ext <<EOF
19335 #line 19335 "configure"
19336 #include "confdefs.h"
19337
19338 #if HAVE_DLFCN_H
19339 #include <dlfcn.h>
19340 #endif
19341
19342 #include <stdio.h>
19343
19344 #ifdef RTLD_GLOBAL
19345 #  define LT_DLGLOBAL           RTLD_GLOBAL
19346 #else
19347 #  ifdef DL_GLOBAL
19348 #    define LT_DLGLOBAL         DL_GLOBAL
19349 #  else
19350 #    define LT_DLGLOBAL         0
19351 #  endif
19352 #endif
19353
19354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19355    find out it does not work in some platform. */
19356 #ifndef LT_DLLAZY_OR_NOW
19357 #  ifdef RTLD_LAZY
19358 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19359 #  else
19360 #    ifdef DL_LAZY
19361 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19362 #    else
19363 #      ifdef RTLD_NOW
19364 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19365 #      else
19366 #        ifdef DL_NOW
19367 #          define LT_DLLAZY_OR_NOW      DL_NOW
19368 #        else
19369 #          define LT_DLLAZY_OR_NOW      0
19370 #        endif
19371 #      endif
19372 #    endif
19373 #  endif
19374 #endif
19375
19376 #ifdef __cplusplus
19377 extern "C" void exit (int);
19378 #endif
19379
19380 void fnord() { int i=42;}
19381 int main ()
19382 {
19383   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19384   int status = $lt_dlunknown;
19385
19386   if (self)
19387     {
19388       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19389       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19390       /* dlclose (self); */
19391     }
19392
19393     exit (status);
19394 }
19395 EOF
19396   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397   (eval $ac_link) 2>&5
19398   ac_status=$?
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19401     (./conftest; exit; ) 2>/dev/null
19402     lt_status=$?
19403     case x$lt_status in
19404       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19405       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19406       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19407     esac
19408   else :
19409     # compilation failed
19410     lt_cv_dlopen_self_static=no
19411   fi
19412 fi
19413 rm -fr conftest*
19414
19415
19416 fi
19417 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19418 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19419     fi
19420
19421     CPPFLAGS="$save_CPPFLAGS"
19422     LDFLAGS="$save_LDFLAGS"
19423     LIBS="$save_LIBS"
19424     ;;
19425   esac
19426
19427   case $lt_cv_dlopen_self in
19428   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19429   *) enable_dlopen_self=unknown ;;
19430   esac
19431
19432   case $lt_cv_dlopen_self_static in
19433   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19434   *) enable_dlopen_self_static=unknown ;;
19435   esac
19436 fi
19437
19438
19439 # The else clause should only fire when bootstrapping the
19440 # libtool distribution, otherwise you forgot to ship ltmain.sh
19441 # with your package, and you will get complaints that there are
19442 # no rules to generate ltmain.sh.
19443 if test -f "$ltmain"; then
19444   # See if we are running on zsh, and set the options which allow our commands through
19445   # without removal of \ escapes.
19446   if test -n "${ZSH_VERSION+set}" ; then
19447     setopt NO_GLOB_SUBST
19448   fi
19449   # Now quote all the things that may contain metacharacters while being
19450   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19451   # variables and quote the copies for generation of the libtool script.
19452   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19453     SED SHELL STRIP \
19454     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19455     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19456     deplibs_check_method reload_flag reload_cmds need_locks \
19457     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19458     lt_cv_sys_global_symbol_to_c_name_address \
19459     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19460     old_postinstall_cmds old_postuninstall_cmds \
19461     compiler_CXX \
19462     CC_CXX \
19463     LD_CXX \
19464     lt_prog_compiler_wl_CXX \
19465     lt_prog_compiler_pic_CXX \
19466     lt_prog_compiler_static_CXX \
19467     lt_prog_compiler_no_builtin_flag_CXX \
19468     export_dynamic_flag_spec_CXX \
19469     thread_safe_flag_spec_CXX \
19470     whole_archive_flag_spec_CXX \
19471     enable_shared_with_static_runtimes_CXX \
19472     old_archive_cmds_CXX \
19473     old_archive_from_new_cmds_CXX \
19474     predep_objects_CXX \
19475     postdep_objects_CXX \
19476     predeps_CXX \
19477     postdeps_CXX \
19478     compiler_lib_search_path_CXX \
19479     archive_cmds_CXX \
19480     archive_expsym_cmds_CXX \
19481     postinstall_cmds_CXX \
19482     postuninstall_cmds_CXX \
19483     old_archive_from_expsyms_cmds_CXX \
19484     allow_undefined_flag_CXX \
19485     no_undefined_flag_CXX \
19486     export_symbols_cmds_CXX \
19487     hardcode_libdir_flag_spec_CXX \
19488     hardcode_libdir_flag_spec_ld_CXX \
19489     hardcode_libdir_separator_CXX \
19490     hardcode_automatic_CXX \
19491     module_cmds_CXX \
19492     module_expsym_cmds_CXX \
19493     lt_cv_prog_compiler_c_o_CXX \
19494     exclude_expsyms_CXX \
19495     include_expsyms_CXX; do
19496
19497     case $var in
19498     old_archive_cmds_CXX | \
19499     old_archive_from_new_cmds_CXX | \
19500     archive_cmds_CXX | \
19501     archive_expsym_cmds_CXX | \
19502     module_cmds_CXX | \
19503     module_expsym_cmds_CXX | \
19504     old_archive_from_expsyms_cmds_CXX | \
19505     export_symbols_cmds_CXX | \
19506     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19507     postinstall_cmds | postuninstall_cmds | \
19508     old_postinstall_cmds | old_postuninstall_cmds | \
19509     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19510       # Double-quote double-evaled strings.
19511       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19512       ;;
19513     *)
19514       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19515       ;;
19516     esac
19517   done
19518
19519   case $lt_echo in
19520   *'\$0 --fallback-echo"')
19521     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19522     ;;
19523   esac
19524
19525 cfgfile="$ofile"
19526
19527   cat <<__EOF__ >> "$cfgfile"
19528 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19529
19530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19531
19532 # Shell to use when invoking shell scripts.
19533 SHELL=$lt_SHELL
19534
19535 # Whether or not to build shared libraries.
19536 build_libtool_libs=$enable_shared
19537
19538 # Whether or not to build static libraries.
19539 build_old_libs=$enable_static
19540
19541 # Whether or not to add -lc for building shared libraries.
19542 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19543
19544 # Whether or not to disallow shared libs when runtime libs are static
19545 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19546
19547 # Whether or not to optimize for fast installation.
19548 fast_install=$enable_fast_install
19549
19550 # The host system.
19551 host_alias=$host_alias
19552 host=$host
19553 host_os=$host_os
19554
19555 # The build system.
19556 build_alias=$build_alias
19557 build=$build
19558 build_os=$build_os
19559
19560 # An echo program that does not interpret backslashes.
19561 echo=$lt_echo
19562
19563 # The archiver.
19564 AR=$lt_AR
19565 AR_FLAGS=$lt_AR_FLAGS
19566
19567 # A C compiler.
19568 LTCC=$lt_LTCC
19569
19570 # A language-specific compiler.
19571 CC=$lt_compiler_CXX
19572
19573 # Is the compiler the GNU C compiler?
19574 with_gcc=$GCC_CXX
19575
19576 # An ERE matcher.
19577 EGREP=$lt_EGREP
19578
19579 # The linker used to build libraries.
19580 LD=$lt_LD_CXX
19581
19582 # Whether we need hard or soft links.
19583 LN_S=$lt_LN_S
19584
19585 # A BSD-compatible nm program.
19586 NM=$lt_NM
19587
19588 # A symbol stripping program
19589 STRIP=$lt_STRIP
19590
19591 # Used to examine libraries when file_magic_cmd begins "file"
19592 MAGIC_CMD=$MAGIC_CMD
19593
19594 # Used on cygwin: DLL creation program.
19595 DLLTOOL="$DLLTOOL"
19596
19597 # Used on cygwin: object dumper.
19598 OBJDUMP="$OBJDUMP"
19599
19600 # Used on cygwin: assembler.
19601 AS="$AS"
19602
19603 # The name of the directory that contains temporary libtool files.
19604 objdir=$objdir
19605
19606 # How to create reloadable object files.
19607 reload_flag=$lt_reload_flag
19608 reload_cmds=$lt_reload_cmds
19609
19610 # How to pass a linker flag through the compiler.
19611 wl=$lt_lt_prog_compiler_wl_CXX
19612
19613 # Object file suffix (normally "o").
19614 objext="$ac_objext"
19615
19616 # Old archive suffix (normally "a").
19617 libext="$libext"
19618
19619 # Shared library suffix (normally ".so").
19620 shrext_cmds='$shrext_cmds'
19621
19622 # Executable file suffix (normally "").
19623 exeext="$exeext"
19624
19625 # Additional compiler flags for building library objects.
19626 pic_flag=$lt_lt_prog_compiler_pic_CXX
19627 pic_mode=$pic_mode
19628
19629 # What is the maximum length of a command?
19630 max_cmd_len=$lt_cv_sys_max_cmd_len
19631
19632 # Does compiler simultaneously support -c and -o options?
19633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19634
19635 # Must we lock files when doing compilation?
19636 need_locks=$lt_need_locks
19637
19638 # Do we need the lib prefix for modules?
19639 need_lib_prefix=$need_lib_prefix
19640
19641 # Do we need a version for libraries?
19642 need_version=$need_version
19643
19644 # Whether dlopen is supported.
19645 dlopen_support=$enable_dlopen
19646
19647 # Whether dlopen of programs is supported.
19648 dlopen_self=$enable_dlopen_self
19649
19650 # Whether dlopen of statically linked programs is supported.
19651 dlopen_self_static=$enable_dlopen_self_static
19652
19653 # Compiler flag to prevent dynamic linking.
19654 link_static_flag=$lt_lt_prog_compiler_static_CXX
19655
19656 # Compiler flag to turn off builtin functions.
19657 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19658
19659 # Compiler flag to allow reflexive dlopens.
19660 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19661
19662 # Compiler flag to generate shared objects directly from archives.
19663 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19664
19665 # Compiler flag to generate thread-safe objects.
19666 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19667
19668 # Library versioning type.
19669 version_type=$version_type
19670
19671 # Format of library name prefix.
19672 libname_spec=$lt_libname_spec
19673
19674 # List of archive names.  First name is the real one, the rest are links.
19675 # The last name is the one that the linker finds with -lNAME.
19676 library_names_spec=$lt_library_names_spec
19677
19678 # The coded name of the library, if different from the real name.
19679 soname_spec=$lt_soname_spec
19680
19681 # Commands used to build and install an old-style archive.
19682 RANLIB=$lt_RANLIB
19683 old_archive_cmds=$lt_old_archive_cmds_CXX
19684 old_postinstall_cmds=$lt_old_postinstall_cmds
19685 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19686
19687 # Create an old-style archive from a shared archive.
19688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19689
19690 # Create a temporary old-style archive to link instead of a shared archive.
19691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19692
19693 # Commands used to build and install a shared archive.
19694 archive_cmds=$lt_archive_cmds_CXX
19695 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19696 postinstall_cmds=$lt_postinstall_cmds
19697 postuninstall_cmds=$lt_postuninstall_cmds
19698
19699 # Commands used to build a loadable module (assumed same as above if empty)
19700 module_cmds=$lt_module_cmds_CXX
19701 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19702
19703 # Commands to strip libraries.
19704 old_striplib=$lt_old_striplib
19705 striplib=$lt_striplib
19706
19707 # Dependencies to place before the objects being linked to create a
19708 # shared library.
19709 predep_objects=$lt_predep_objects_CXX
19710
19711 # Dependencies to place after the objects being linked to create a
19712 # shared library.
19713 postdep_objects=$lt_postdep_objects_CXX
19714
19715 # Dependencies to place before the objects being linked to create a
19716 # shared library.
19717 predeps=$lt_predeps_CXX
19718
19719 # Dependencies to place after the objects being linked to create a
19720 # shared library.
19721 postdeps=$lt_postdeps_CXX
19722
19723 # The library search path used internally by the compiler when linking
19724 # a shared library.
19725 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19726
19727 # Method to check whether dependent libraries are shared objects.
19728 deplibs_check_method=$lt_deplibs_check_method
19729
19730 # Command to use when deplibs_check_method == file_magic.
19731 file_magic_cmd=$lt_file_magic_cmd
19732
19733 # Flag that allows shared libraries with undefined symbols to be built.
19734 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19735
19736 # Flag that forces no undefined symbols.
19737 no_undefined_flag=$lt_no_undefined_flag_CXX
19738
19739 # Commands used to finish a libtool library installation in a directory.
19740 finish_cmds=$lt_finish_cmds
19741
19742 # Same as above, but a single script fragment to be evaled but not shown.
19743 finish_eval=$lt_finish_eval
19744
19745 # Take the output of nm and produce a listing of raw symbols and C names.
19746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19747
19748 # Transform the output of nm in a proper C declaration
19749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19750
19751 # Transform the output of nm in a C name address pair
19752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19753
19754 # This is the shared library runtime path variable.
19755 runpath_var=$runpath_var
19756
19757 # This is the shared library path variable.
19758 shlibpath_var=$shlibpath_var
19759
19760 # Is shlibpath searched before the hard-coded library search path?
19761 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19762
19763 # How to hardcode a shared library path into an executable.
19764 hardcode_action=$hardcode_action_CXX
19765
19766 # Whether we should hardcode library paths into libraries.
19767 hardcode_into_libs=$hardcode_into_libs
19768
19769 # Flag to hardcode \$libdir into a binary during linking.
19770 # This must work even if \$libdir does not exist.
19771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19772
19773 # If ld is used when linking, flag to hardcode \$libdir into
19774 # a binary during linking. This must work even if \$libdir does
19775 # not exist.
19776 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19777
19778 # Whether we need a single -rpath flag with a separated argument.
19779 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19780
19781 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19782 # resulting binary.
19783 hardcode_direct=$hardcode_direct_CXX
19784
19785 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19786 # resulting binary.
19787 hardcode_minus_L=$hardcode_minus_L_CXX
19788
19789 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19790 # the resulting binary.
19791 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19792
19793 # Set to yes if building a shared library automatically hardcodes DIR into the library
19794 # and all subsequent libraries and executables linked against it.
19795 hardcode_automatic=$hardcode_automatic_CXX
19796
19797 # Variables whose values should be saved in libtool wrapper scripts and
19798 # restored at relink time.
19799 variables_saved_for_relink="$variables_saved_for_relink"
19800
19801 # Whether libtool must link a program against all its dependency libraries.
19802 link_all_deplibs=$link_all_deplibs_CXX
19803
19804 # Compile-time system search path for libraries
19805 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19806
19807 # Run-time system search path for libraries
19808 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19809
19810 # Fix the shell variable \$srcfile for the compiler.
19811 fix_srcfile_path="$fix_srcfile_path_CXX"
19812
19813 # Set to yes if exported symbols are required.
19814 always_export_symbols=$always_export_symbols_CXX
19815
19816 # The commands to list exported symbols.
19817 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19818
19819 # The commands to extract the exported symbol list from a shared archive.
19820 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19821
19822 # Symbols that should not be listed in the preloaded symbols.
19823 exclude_expsyms=$lt_exclude_expsyms_CXX
19824
19825 # Symbols that must always be exported.
19826 include_expsyms=$lt_include_expsyms_CXX
19827
19828 # ### END LIBTOOL TAG CONFIG: $tagname
19829
19830 __EOF__
19831
19832
19833 else
19834   # If there is no Makefile yet, we rely on a make rule to execute
19835   # `config.status --recheck' to rerun these tests and create the
19836   # libtool script then.
19837   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19838   if test -f "$ltmain_in"; then
19839     test -f Makefile && make "$ltmain"
19840   fi
19841 fi
19842
19843
19844 ac_ext=c
19845 ac_cpp='$CPP $CPPFLAGS'
19846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849
19850 CC=$lt_save_CC
19851 LDCXX=$LD
19852 LD=$lt_save_LD
19853 GCC=$lt_save_GCC
19854 with_gnu_ldcxx=$with_gnu_ld
19855 with_gnu_ld=$lt_save_with_gnu_ld
19856 lt_cv_path_LDCXX=$lt_cv_path_LD
19857 lt_cv_path_LD=$lt_save_path_LD
19858 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19859 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19860
19861         else
19862           tagname=""
19863         fi
19864         ;;
19865
19866       F77)
19867         if test -n "$F77" && test "X$F77" != "Xno"; then
19868
19869 ac_ext=f
19870 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19871 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19873
19874
19875 archive_cmds_need_lc_F77=no
19876 allow_undefined_flag_F77=
19877 always_export_symbols_F77=no
19878 archive_expsym_cmds_F77=
19879 export_dynamic_flag_spec_F77=
19880 hardcode_direct_F77=no
19881 hardcode_libdir_flag_spec_F77=
19882 hardcode_libdir_flag_spec_ld_F77=
19883 hardcode_libdir_separator_F77=
19884 hardcode_minus_L_F77=no
19885 hardcode_automatic_F77=no
19886 module_cmds_F77=
19887 module_expsym_cmds_F77=
19888 link_all_deplibs_F77=unknown
19889 old_archive_cmds_F77=$old_archive_cmds
19890 no_undefined_flag_F77=
19891 whole_archive_flag_spec_F77=
19892 enable_shared_with_static_runtimes_F77=no
19893
19894 # Source file extension for f77 test sources.
19895 ac_ext=f
19896
19897 # Object file extension for compiled f77 test sources.
19898 objext=o
19899 objext_F77=$objext
19900
19901 # Code to be used in simple compile tests
19902 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19903
19904 # Code to be used in simple link tests
19905 lt_simple_link_test_code="      program t\n      end\n"
19906
19907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19908
19909 # If no C compiler was specified, use CC.
19910 LTCC=${LTCC-"$CC"}
19911
19912 # Allow CC to be a program name with arguments.
19913 compiler=$CC
19914
19915
19916 # save warnings/boilerplate of simple test code
19917 ac_outfile=conftest.$ac_objext
19918 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19920 _lt_compiler_boilerplate=`cat conftest.err`
19921 $rm conftest*
19922
19923 ac_outfile=conftest.$ac_objext
19924 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19926 _lt_linker_boilerplate=`cat conftest.err`
19927 $rm conftest*
19928
19929
19930 # Allow CC to be a program name with arguments.
19931 lt_save_CC="$CC"
19932 CC=${F77-"f77"}
19933 compiler=$CC
19934 compiler_F77=$CC
19935 for cc_temp in $compiler""; do
19936   case $cc_temp in
19937     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19938     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19939     \-*) ;;
19940     *) break;;
19941   esac
19942 done
19943 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19944
19945
19946 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19947 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19948 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19949 echo "${ECHO_T}$can_build_shared" >&6
19950
19951 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19952 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19953 test "$can_build_shared" = "no" && enable_shared=no
19954
19955 # On AIX, shared libraries and static libraries use the same namespace, and
19956 # are all built from PIC.
19957 case "$host_os" in
19958 aix3*)
19959   test "$enable_shared" = yes && enable_static=no
19960   if test -n "$RANLIB"; then
19961     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19962     postinstall_cmds='$RANLIB $lib'
19963   fi
19964   ;;
19965 aix4* | aix5*)
19966   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19967     test "$enable_shared" = yes && enable_static=no
19968   fi
19969   ;;
19970 esac
19971 echo "$as_me:$LINENO: result: $enable_shared" >&5
19972 echo "${ECHO_T}$enable_shared" >&6
19973
19974 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19975 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19976 # Make sure either enable_shared or enable_static is yes.
19977 test "$enable_shared" = yes || enable_static=yes
19978 echo "$as_me:$LINENO: result: $enable_static" >&5
19979 echo "${ECHO_T}$enable_static" >&6
19980
19981 test "$ld_shlibs_F77" = no && can_build_shared=no
19982
19983 GCC_F77="$G77"
19984 LD_F77="$LD"
19985
19986 lt_prog_compiler_wl_F77=
19987 lt_prog_compiler_pic_F77=
19988 lt_prog_compiler_static_F77=
19989
19990 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19991 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19992
19993   if test "$GCC" = yes; then
19994     lt_prog_compiler_wl_F77='-Wl,'
19995     lt_prog_compiler_static_F77='-static'
19996
19997     case $host_os in
19998       aix*)
19999       # All AIX code is PIC.
20000       if test "$host_cpu" = ia64; then
20001         # AIX 5 now supports IA64 processor
20002         lt_prog_compiler_static_F77='-Bstatic'
20003       fi
20004       ;;
20005
20006     amigaos*)
20007       # FIXME: we need at least 68020 code to build shared libraries, but
20008       # adding the `-m68020' flag to GCC prevents building anything better,
20009       # like `-m68040'.
20010       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20011       ;;
20012
20013     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20014       # PIC is the default for these OSes.
20015       ;;
20016
20017     mingw* | pw32* | os2*)
20018       # This hack is so that the source file can tell whether it is being
20019       # built for inclusion in a dll (and should export symbols for example).
20020       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20021       ;;
20022
20023     darwin* | rhapsody*)
20024       # PIC is the default on this platform
20025       # Common symbols not allowed in MH_DYLIB files
20026       lt_prog_compiler_pic_F77='-fno-common'
20027       ;;
20028
20029     msdosdjgpp*)
20030       # Just because we use GCC doesn't mean we suddenly get shared libraries
20031       # on systems that don't support them.
20032       lt_prog_compiler_can_build_shared_F77=no
20033       enable_shared=no
20034       ;;
20035
20036     sysv4*MP*)
20037       if test -d /usr/nec; then
20038         lt_prog_compiler_pic_F77=-Kconform_pic
20039       fi
20040       ;;
20041
20042     hpux*)
20043       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20044       # not for PA HP-UX.
20045       case "$host_cpu" in
20046       hppa*64*|ia64*)
20047         # +Z the default
20048         ;;
20049       *)
20050         lt_prog_compiler_pic_F77='-fPIC'
20051         ;;
20052       esac
20053       ;;
20054
20055     *)
20056       lt_prog_compiler_pic_F77='-fPIC'
20057       ;;
20058     esac
20059   else
20060     # PORTME Check for flag to pass linker flags through the system compiler.
20061     case $host_os in
20062     aix*)
20063       lt_prog_compiler_wl_F77='-Wl,'
20064       if test "$host_cpu" = ia64; then
20065         # AIX 5 now supports IA64 processor
20066         lt_prog_compiler_static_F77='-Bstatic'
20067       else
20068         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20069       fi
20070       ;;
20071       darwin*)
20072         # PIC is the default on this platform
20073         # Common symbols not allowed in MH_DYLIB files
20074        case $cc_basename in
20075          xlc*)
20076          lt_prog_compiler_pic_F77='-qnocommon'
20077          lt_prog_compiler_wl_F77='-Wl,'
20078          ;;
20079        esac
20080        ;;
20081
20082     mingw* | pw32* | os2*)
20083       # This hack is so that the source file can tell whether it is being
20084       # built for inclusion in a dll (and should export symbols for example).
20085       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20086       ;;
20087
20088     hpux9* | hpux10* | hpux11*)
20089       lt_prog_compiler_wl_F77='-Wl,'
20090       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20091       # not for PA HP-UX.
20092       case "$host_cpu" in
20093       hppa*64*|ia64*)
20094         # +Z the default
20095         ;;
20096       *)
20097         lt_prog_compiler_pic_F77='+Z'
20098         ;;
20099       esac
20100       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20101       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20102       ;;
20103
20104     irix5* | irix6* | nonstopux*)
20105       lt_prog_compiler_wl_F77='-Wl,'
20106       # PIC (with -KPIC) is the default.
20107       lt_prog_compiler_static_F77='-non_shared'
20108       ;;
20109
20110     newsos6)
20111       lt_prog_compiler_pic_F77='-KPIC'
20112       lt_prog_compiler_static_F77='-Bstatic'
20113       ;;
20114
20115     linux*)
20116       case $cc_basename in
20117       icc* | ecc*)
20118         lt_prog_compiler_wl_F77='-Wl,'
20119         lt_prog_compiler_pic_F77='-KPIC'
20120         lt_prog_compiler_static_F77='-static'
20121         ;;
20122       pgcc* | pgf77* | pgf90*)
20123         # Portland Group compilers (*not* the Pentium gcc compiler,
20124         # which looks to be a dead project)
20125         lt_prog_compiler_wl_F77='-Wl,'
20126         lt_prog_compiler_pic_F77='-fpic'
20127         lt_prog_compiler_static_F77='-static'
20128         ;;
20129       ccc*)
20130         lt_prog_compiler_wl_F77='-Wl,'
20131         # All Alpha code is PIC.
20132         lt_prog_compiler_static_F77='-non_shared'
20133         ;;
20134       esac
20135       ;;
20136
20137     osf3* | osf4* | osf5*)
20138       lt_prog_compiler_wl_F77='-Wl,'
20139       # All OSF/1 code is PIC.
20140       lt_prog_compiler_static_F77='-non_shared'
20141       ;;
20142
20143     sco3.2v5*)
20144       lt_prog_compiler_pic_F77='-Kpic'
20145       lt_prog_compiler_static_F77='-dn'
20146       ;;
20147
20148     solaris*)
20149       lt_prog_compiler_pic_F77='-KPIC'
20150       lt_prog_compiler_static_F77='-Bstatic'
20151       case $cc_basename in
20152       f77* | f90* | f95*)
20153         lt_prog_compiler_wl_F77='-Qoption ld ';;
20154       *)
20155         lt_prog_compiler_wl_F77='-Wl,';;
20156       esac
20157       ;;
20158
20159     sunos4*)
20160       lt_prog_compiler_wl_F77='-Qoption ld '
20161       lt_prog_compiler_pic_F77='-PIC'
20162       lt_prog_compiler_static_F77='-Bstatic'
20163       ;;
20164
20165     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20166       lt_prog_compiler_wl_F77='-Wl,'
20167       lt_prog_compiler_pic_F77='-KPIC'
20168       lt_prog_compiler_static_F77='-Bstatic'
20169       ;;
20170
20171     sysv4*MP*)
20172       if test -d /usr/nec ;then
20173         lt_prog_compiler_pic_F77='-Kconform_pic'
20174         lt_prog_compiler_static_F77='-Bstatic'
20175       fi
20176       ;;
20177
20178     unicos*)
20179       lt_prog_compiler_wl_F77='-Wl,'
20180       lt_prog_compiler_can_build_shared_F77=no
20181       ;;
20182
20183     uts4*)
20184       lt_prog_compiler_pic_F77='-pic'
20185       lt_prog_compiler_static_F77='-Bstatic'
20186       ;;
20187
20188     *)
20189       lt_prog_compiler_can_build_shared_F77=no
20190       ;;
20191     esac
20192   fi
20193
20194 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20195 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20196
20197 #
20198 # Check to make sure the PIC flag actually works.
20199 #
20200 if test -n "$lt_prog_compiler_pic_F77"; then
20201
20202 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20203 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20204 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20205   echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207   lt_prog_compiler_pic_works_F77=no
20208   ac_outfile=conftest.$ac_objext
20209    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20210    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20211    # Insert the option either (1) after the last *FLAGS variable, or
20212    # (2) before a word containing "conftest.", or (3) at the end.
20213    # Note that $ac_compile itself does not contain backslashes and begins
20214    # with a dollar sign (not a hyphen), so the echo should work correctly.
20215    # The option is referenced via a variable to avoid confusing sed.
20216    lt_compile=`echo "$ac_compile" | $SED \
20217    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20218    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20219    -e 's:$: $lt_compiler_flag:'`
20220    (eval echo "\"\$as_me:20220: $lt_compile\"" >&5)
20221    (eval "$lt_compile" 2>conftest.err)
20222    ac_status=$?
20223    cat conftest.err >&5
20224    echo "$as_me:20224: \$? = $ac_status" >&5
20225    if (exit $ac_status) && test -s "$ac_outfile"; then
20226      # The compiler can only warn and ignore the option if not recognized
20227      # So say no if there are warnings other than the usual output.
20228      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20229      $SED '/^$/d' conftest.err >conftest.er2
20230      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20231        lt_prog_compiler_pic_works_F77=yes
20232      fi
20233    fi
20234    $rm conftest*
20235
20236 fi
20237 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20238 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20239
20240 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20241     case $lt_prog_compiler_pic_F77 in
20242      "" | " "*) ;;
20243      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20244      esac
20245 else
20246     lt_prog_compiler_pic_F77=
20247      lt_prog_compiler_can_build_shared_F77=no
20248 fi
20249
20250 fi
20251 case "$host_os" in
20252   # For platforms which do not support PIC, -DPIC is meaningless:
20253   *djgpp*)
20254     lt_prog_compiler_pic_F77=
20255     ;;
20256   *)
20257     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20258     ;;
20259 esac
20260
20261 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20262 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20263 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20264   echo $ECHO_N "(cached) $ECHO_C" >&6
20265 else
20266   lt_cv_prog_compiler_c_o_F77=no
20267    $rm -r conftest 2>/dev/null
20268    mkdir conftest
20269    cd conftest
20270    mkdir out
20271    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20272
20273    lt_compiler_flag="-o out/conftest2.$ac_objext"
20274    # Insert the option either (1) after the last *FLAGS variable, or
20275    # (2) before a word containing "conftest.", or (3) at the end.
20276    # Note that $ac_compile itself does not contain backslashes and begins
20277    # with a dollar sign (not a hyphen), so the echo should work correctly.
20278    lt_compile=`echo "$ac_compile" | $SED \
20279    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20280    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20281    -e 's:$: $lt_compiler_flag:'`
20282    (eval echo "\"\$as_me:20282: $lt_compile\"" >&5)
20283    (eval "$lt_compile" 2>out/conftest.err)
20284    ac_status=$?
20285    cat out/conftest.err >&5
20286    echo "$as_me:20286: \$? = $ac_status" >&5
20287    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20288    then
20289      # The compiler can only warn and ignore the option if not recognized
20290      # So say no if there are warnings
20291      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
20292      $SED '/^$/d' out/conftest.err >out/conftest.er2
20293      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20294        lt_cv_prog_compiler_c_o_F77=yes
20295      fi
20296    fi
20297    chmod u+w .
20298    $rm conftest*
20299    # SGI C++ compiler will create directory out/ii_files/ for
20300    # template instantiation
20301    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20302    $rm out/* && rmdir out
20303    cd ..
20304    rmdir conftest
20305    $rm conftest*
20306
20307 fi
20308 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20309 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20310
20311
20312 hard_links="nottested"
20313 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20314   # do not overwrite the value of need_locks provided by the user
20315   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20316 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20317   hard_links=yes
20318   $rm conftest*
20319   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20320   touch conftest.a
20321   ln conftest.a conftest.b 2>&5 || hard_links=no
20322   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20323   echo "$as_me:$LINENO: result: $hard_links" >&5
20324 echo "${ECHO_T}$hard_links" >&6
20325   if test "$hard_links" = no; then
20326     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20327 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20328     need_locks=warn
20329   fi
20330 else
20331   need_locks=no
20332 fi
20333
20334 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20335 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20336
20337   runpath_var=
20338   allow_undefined_flag_F77=
20339   enable_shared_with_static_runtimes_F77=no
20340   archive_cmds_F77=
20341   archive_expsym_cmds_F77=
20342   old_archive_From_new_cmds_F77=
20343   old_archive_from_expsyms_cmds_F77=
20344   export_dynamic_flag_spec_F77=
20345   whole_archive_flag_spec_F77=
20346   thread_safe_flag_spec_F77=
20347   hardcode_libdir_flag_spec_F77=
20348   hardcode_libdir_flag_spec_ld_F77=
20349   hardcode_libdir_separator_F77=
20350   hardcode_direct_F77=no
20351   hardcode_minus_L_F77=no
20352   hardcode_shlibpath_var_F77=unsupported
20353   link_all_deplibs_F77=unknown
20354   hardcode_automatic_F77=no
20355   module_cmds_F77=
20356   module_expsym_cmds_F77=
20357   always_export_symbols_F77=no
20358   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20359   # include_expsyms should be a list of space-separated symbols to be *always*
20360   # included in the symbol list
20361   include_expsyms_F77=
20362   # exclude_expsyms can be an extended regexp of symbols to exclude
20363   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20364   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20365   # as well as any symbol that contains `d'.
20366   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20367   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20368   # platforms (ab)use it in PIC code, but their linkers get confused if
20369   # the symbol is explicitly referenced.  Since portable code cannot
20370   # rely on this symbol name, it's probably fine to never include it in
20371   # preloaded symbol tables.
20372   extract_expsyms_cmds=
20373   # Just being paranoid about ensuring that cc_basename is set.
20374   for cc_temp in $compiler""; do
20375   case $cc_temp in
20376     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20377     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20378     \-*) ;;
20379     *) break;;
20380   esac
20381 done
20382 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20383
20384   case $host_os in
20385   cygwin* | mingw* | pw32*)
20386     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20387     # When not using gcc, we currently assume that we are using
20388     # Microsoft Visual C++.
20389     if test "$GCC" != yes; then
20390       with_gnu_ld=no
20391     fi
20392     ;;
20393   openbsd*)
20394     with_gnu_ld=no
20395     ;;
20396   esac
20397
20398   ld_shlibs_F77=yes
20399   if test "$with_gnu_ld" = yes; then
20400     # If archive_cmds runs LD, not CC, wlarc should be empty
20401     wlarc='${wl}'
20402
20403     # Set some defaults for GNU ld with shared library support. These
20404     # are reset later if shared libraries are not supported. Putting them
20405     # here allows them to be overridden if necessary.
20406     runpath_var=LD_RUN_PATH
20407     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20408     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20409     # ancient GNU ld didn't support --whole-archive et. al.
20410     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20411         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20412       else
20413         whole_archive_flag_spec_F77=
20414     fi
20415     supports_anon_versioning=no
20416     case `$LD -v 2>/dev/null` in
20417       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20418       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20419       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20420       *\ 2.11.*) ;; # other 2.11 versions
20421       *) supports_anon_versioning=yes ;;
20422     esac
20423
20424     # See if GNU ld supports shared libraries.
20425     case $host_os in
20426     aix3* | aix4* | aix5*)
20427       # On AIX/PPC, the GNU linker is very broken
20428       if test "$host_cpu" != ia64; then
20429         ld_shlibs_F77=no
20430         cat <<EOF 1>&2
20431
20432 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20433 *** to be unable to reliably create shared libraries on AIX.
20434 *** Therefore, libtool is disabling shared libraries support.  If you
20435 *** really care for shared libraries, you may want to modify your PATH
20436 *** so that a non-GNU linker is found, and then restart.
20437
20438 EOF
20439       fi
20440       ;;
20441
20442     amigaos*)
20443       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)'
20444       hardcode_libdir_flag_spec_F77='-L$libdir'
20445       hardcode_minus_L_F77=yes
20446
20447       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20448       # that the semantics of dynamic libraries on AmigaOS, at least up
20449       # to version 4, is to share data among multiple programs linked
20450       # with the same dynamic library.  Since this doesn't match the
20451       # behavior of shared libraries on other platforms, we can't use
20452       # them.
20453       ld_shlibs_F77=no
20454       ;;
20455
20456     beos*)
20457       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20458         allow_undefined_flag_F77=unsupported
20459         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20460         # support --undefined.  This deserves some investigation.  FIXME
20461         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20462       else
20463         ld_shlibs_F77=no
20464       fi
20465       ;;
20466
20467     cygwin* | mingw* | pw32*)
20468       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20469       # as there is no search path for DLLs.
20470       hardcode_libdir_flag_spec_F77='-L$libdir'
20471       allow_undefined_flag_F77=unsupported
20472       always_export_symbols_F77=no
20473       enable_shared_with_static_runtimes_F77=yes
20474       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20475
20476       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20477         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20478         # If the export-symbols file already is a .def file (1st line
20479         # is EXPORTS), use it as is; otherwise, prepend...
20480         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20481           cp $export_symbols $output_objdir/$soname.def;
20482         else
20483           echo EXPORTS > $output_objdir/$soname.def;
20484           cat $export_symbols >> $output_objdir/$soname.def;
20485         fi~
20486         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
20487       else
20488         ld_shlibs_F77=no
20489       fi
20490       ;;
20491
20492     linux*)
20493       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20494         tmp_addflag=
20495         case $cc_basename,$host_cpu in
20496         pgcc*)                          # Portland Group C compiler
20497           whole_archive_flag_spec_F77=
20498           ;;
20499         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
20500           whole_archive_flag_spec_F77=
20501           tmp_addflag=' -fpic -Mnomain' ;;
20502         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20503           tmp_addflag=' -i_dynamic' ;;
20504         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20505           tmp_addflag=' -i_dynamic -nofor_main' ;;
20506         ifc* | ifort*)                  # Intel Fortran compiler
20507           tmp_addflag=' -nofor_main' ;;
20508         esac
20509         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20510
20511         if test $supports_anon_versioning = yes; then
20512           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20513   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20514   $echo "local: *; };" >> $output_objdir/$libname.ver~
20515           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20516         fi
20517       else
20518         ld_shlibs_F77=no
20519       fi
20520       ;;
20521
20522     netbsd*)
20523       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20524         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20525         wlarc=
20526       else
20527         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20528         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20529       fi
20530       ;;
20531
20532     solaris* | sysv5*)
20533       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20534         ld_shlibs_F77=no
20535         cat <<EOF 1>&2
20536
20537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20538 *** create shared libraries on Solaris systems.  Therefore, libtool
20539 *** is disabling shared libraries support.  We urge you to upgrade GNU
20540 *** binutils to release 2.9.1 or newer.  Another option is to modify
20541 *** your PATH or compiler configuration so that the native linker is
20542 *** used, and then restart.
20543
20544 EOF
20545       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20546         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20547         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20548       else
20549         ld_shlibs_F77=no
20550       fi
20551       ;;
20552
20553     sunos4*)
20554       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20555       wlarc=
20556       hardcode_direct_F77=yes
20557       hardcode_shlibpath_var_F77=no
20558       ;;
20559
20560     *)
20561       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20562         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20563         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20564       else
20565         ld_shlibs_F77=no
20566       fi
20567       ;;
20568     esac
20569
20570     if test "$ld_shlibs_F77" = no; then
20571       runpath_var=
20572       hardcode_libdir_flag_spec_F77=
20573       export_dynamic_flag_spec_F77=
20574       whole_archive_flag_spec_F77=
20575     fi
20576   else
20577     # PORTME fill in a description of your system's linker (not GNU ld)
20578     case $host_os in
20579     aix3*)
20580       allow_undefined_flag_F77=unsupported
20581       always_export_symbols_F77=yes
20582       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'
20583       # Note: this linker hardcodes the directories in LIBPATH if there
20584       # are no directories specified by -L.
20585       hardcode_minus_L_F77=yes
20586       if test "$GCC" = yes && test -z "$link_static_flag"; then
20587         # Neither direct hardcoding nor static linking is supported with a
20588         # broken collect2.
20589         hardcode_direct_F77=unsupported
20590       fi
20591       ;;
20592
20593     aix4* | aix5*)
20594       if test "$host_cpu" = ia64; then
20595         # On IA64, the linker does run time linking by default, so we don't
20596         # have to do anything special.
20597         aix_use_runtimelinking=no
20598         exp_sym_flag='-Bexport'
20599         no_entry_flag=""
20600       else
20601         # If we're using GNU nm, then we don't want the "-C" option.
20602         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20603         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20604           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'
20605         else
20606           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'
20607         fi
20608         aix_use_runtimelinking=no
20609
20610         # Test if we are trying to use run time linking or normal
20611         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20612         # need to do runtime linking.
20613         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20614           for ld_flag in $LDFLAGS; do
20615           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20616             aix_use_runtimelinking=yes
20617             break
20618           fi
20619           done
20620         esac
20621
20622         exp_sym_flag='-bexport'
20623         no_entry_flag='-bnoentry'
20624       fi
20625
20626       # When large executables or shared objects are built, AIX ld can
20627       # have problems creating the table of contents.  If linking a library
20628       # or program results in "error TOC overflow" add -mminimal-toc to
20629       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20630       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20631
20632       archive_cmds_F77=''
20633       hardcode_direct_F77=yes
20634       hardcode_libdir_separator_F77=':'
20635       link_all_deplibs_F77=yes
20636
20637       if test "$GCC" = yes; then
20638         case $host_os in aix4.[012]|aix4.[012].*)
20639         # We only want to do this on AIX 4.2 and lower, the check
20640         # below for broken collect2 doesn't work under 4.3+
20641           collect2name=`${CC} -print-prog-name=collect2`
20642           if test -f "$collect2name" && \
20643            strings "$collect2name" | grep resolve_lib_name >/dev/null
20644           then
20645           # We have reworked collect2
20646           hardcode_direct_F77=yes
20647           else
20648           # We have old collect2
20649           hardcode_direct_F77=unsupported
20650           # It fails to find uninstalled libraries when the uninstalled
20651           # path is not listed in the libpath.  Setting hardcode_minus_L
20652           # to unsupported forces relinking
20653           hardcode_minus_L_F77=yes
20654           hardcode_libdir_flag_spec_F77='-L$libdir'
20655           hardcode_libdir_separator_F77=
20656           fi
20657         esac
20658         shared_flag='-shared'
20659         if test "$aix_use_runtimelinking" = yes; then
20660           shared_flag="$shared_flag "'${wl}-G'
20661         fi
20662       else
20663         # not using gcc
20664         if test "$host_cpu" = ia64; then
20665         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20666         # chokes on -Wl,-G. The following line is correct:
20667           shared_flag='-G'
20668         else
20669         if test "$aix_use_runtimelinking" = yes; then
20670             shared_flag='${wl}-G'
20671           else
20672             shared_flag='${wl}-bM:SRE'
20673         fi
20674         fi
20675       fi
20676
20677       # It seems that -bexpall does not export symbols beginning with
20678       # underscore (_), so it is better to generate a list of symbols to export.
20679       always_export_symbols_F77=yes
20680       if test "$aix_use_runtimelinking" = yes; then
20681         # Warning - without using the other runtime loading flags (-brtl),
20682         # -berok will link without error, but may produce a broken library.
20683         allow_undefined_flag_F77='-berok'
20684        # Determine the default libpath from the value encoded in an empty executable.
20685        cat >conftest.$ac_ext <<_ACEOF
20686       program main
20687
20688       end
20689 _ACEOF
20690 rm -f conftest.$ac_objext conftest$ac_exeext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20692   (eval $ac_link) 2>conftest.er1
20693   ac_status=$?
20694   grep -v '^ *+' conftest.er1 >conftest.err
20695   rm -f conftest.er1
20696   cat conftest.err >&5
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } &&
20699          { ac_try='test -z "$ac_f77_werror_flag"
20700                          || test ! -s conftest.err'
20701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702   (eval $ac_try) 2>&5
20703   ac_status=$?
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); }; } &&
20706          { ac_try='test -s conftest$ac_exeext'
20707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708   (eval $ac_try) 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712
20713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20714 }'`
20715 # Check for a 64-bit object if we didn't find anything.
20716 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; }
20717 }'`; fi
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 fi
20723 rm -f conftest.err conftest.$ac_objext \
20724       conftest$ac_exeext conftest.$ac_ext
20725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20726
20727        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20728         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"
20729        else
20730         if test "$host_cpu" = ia64; then
20731           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20732           allow_undefined_flag_F77="-z nodefs"
20733           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"
20734         else
20735          # Determine the default libpath from the value encoded in an empty executable.
20736          cat >conftest.$ac_ext <<_ACEOF
20737       program main
20738
20739       end
20740 _ACEOF
20741 rm -f conftest.$ac_objext conftest$ac_exeext
20742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20743   (eval $ac_link) 2>conftest.er1
20744   ac_status=$?
20745   grep -v '^ *+' conftest.er1 >conftest.err
20746   rm -f conftest.er1
20747   cat conftest.err >&5
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } &&
20750          { ac_try='test -z "$ac_f77_werror_flag"
20751                          || test ! -s conftest.err'
20752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753   (eval $ac_try) 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; } &&
20757          { ac_try='test -s conftest$ac_exeext'
20758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759   (eval $ac_try) 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); }; }; then
20763
20764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20765 }'`
20766 # Check for a 64-bit object if we didn't find anything.
20767 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; }
20768 }'`; fi
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 fi
20774 rm -f conftest.err conftest.$ac_objext \
20775       conftest$ac_exeext conftest.$ac_ext
20776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20777
20778          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20779           # Warning - without using the other run time loading flags,
20780           # -berok will link without error, but may produce a broken library.
20781           no_undefined_flag_F77=' ${wl}-bernotok'
20782           allow_undefined_flag_F77=' ${wl}-berok'
20783           # -bexpall does not export symbols beginning with underscore (_)
20784           always_export_symbols_F77=yes
20785           # Exported symbols can be pulled into shared objects from archives
20786           whole_archive_flag_spec_F77=' '
20787           archive_cmds_need_lc_F77=yes
20788           # This is similar to how AIX traditionally builds it's shared libraries.
20789           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'
20790         fi
20791       fi
20792       ;;
20793
20794     amigaos*)
20795       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)'
20796       hardcode_libdir_flag_spec_F77='-L$libdir'
20797       hardcode_minus_L_F77=yes
20798       # see comment about different semantics on the GNU ld section
20799       ld_shlibs_F77=no
20800       ;;
20801
20802     bsdi[45]*)
20803       export_dynamic_flag_spec_F77=-rdynamic
20804       ;;
20805
20806     cygwin* | mingw* | pw32*)
20807       # When not using gcc, we currently assume that we are using
20808       # Microsoft Visual C++.
20809       # hardcode_libdir_flag_spec is actually meaningless, as there is
20810       # no search path for DLLs.
20811       hardcode_libdir_flag_spec_F77=' '
20812       allow_undefined_flag_F77=unsupported
20813       # Tell ltmain to make .lib files, not .a files.
20814       libext=lib
20815       # Tell ltmain to make .dll files, not .so files.
20816       shrext_cmds=".dll"
20817       # FIXME: Setting linknames here is a bad hack.
20818       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20819       # The linker will automatically build a .lib file if we build a DLL.
20820       old_archive_From_new_cmds_F77='true'
20821       # FIXME: Should let the user specify the lib program.
20822       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20823       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20824       enable_shared_with_static_runtimes_F77=yes
20825       ;;
20826
20827     darwin* | rhapsody*)
20828       case "$host_os" in
20829         rhapsody* | darwin1.[012])
20830          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20831          ;;
20832        *) # Darwin 1.3 on
20833          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20834            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20835          else
20836            case ${MACOSX_DEPLOYMENT_TARGET} in
20837              10.[012])
20838                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20839                ;;
20840              10.*)
20841                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20842                ;;
20843            esac
20844          fi
20845          ;;
20846       esac
20847       archive_cmds_need_lc_F77=no
20848       hardcode_direct_F77=no
20849       hardcode_automatic_F77=yes
20850       hardcode_shlibpath_var_F77=unsupported
20851       whole_archive_flag_spec_F77=''
20852       link_all_deplibs_F77=yes
20853     if test "$GCC" = yes ; then
20854         output_verbose_link_cmd='echo'
20855         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20856       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20857       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20858       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20859       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}'
20860     else
20861       case $cc_basename in
20862         xlc*)
20863          output_verbose_link_cmd='echo'
20864          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20865          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20866           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20867          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20868           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}'
20869           ;;
20870        *)
20871          ld_shlibs_F77=no
20872           ;;
20873       esac
20874     fi
20875       ;;
20876
20877     dgux*)
20878       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20879       hardcode_libdir_flag_spec_F77='-L$libdir'
20880       hardcode_shlibpath_var_F77=no
20881       ;;
20882
20883     freebsd1*)
20884       ld_shlibs_F77=no
20885       ;;
20886
20887     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20888     # support.  Future versions do this automatically, but an explicit c++rt0.o
20889     # does not break anything, and helps significantly (at the cost of a little
20890     # extra space).
20891     freebsd2.2*)
20892       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20893       hardcode_libdir_flag_spec_F77='-R$libdir'
20894       hardcode_direct_F77=yes
20895       hardcode_shlibpath_var_F77=no
20896       ;;
20897
20898     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20899     freebsd2*)
20900       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20901       hardcode_direct_F77=yes
20902       hardcode_minus_L_F77=yes
20903       hardcode_shlibpath_var_F77=no
20904       ;;
20905
20906     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20907     freebsd* | kfreebsd*-gnu | dragonfly*)
20908       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20909       hardcode_libdir_flag_spec_F77='-R$libdir'
20910       hardcode_direct_F77=yes
20911       hardcode_shlibpath_var_F77=no
20912       ;;
20913
20914     hpux9*)
20915       if test "$GCC" = yes; then
20916         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'
20917       else
20918         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'
20919       fi
20920       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20921       hardcode_libdir_separator_F77=:
20922       hardcode_direct_F77=yes
20923
20924       # hardcode_minus_L: Not really in the search PATH,
20925       # but as the default location of the library.
20926       hardcode_minus_L_F77=yes
20927       export_dynamic_flag_spec_F77='${wl}-E'
20928       ;;
20929
20930     hpux10* | hpux11*)
20931       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20932         case "$host_cpu" in
20933         hppa*64*|ia64*)
20934           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20935           ;;
20936         *)
20937           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20938           ;;
20939         esac
20940       else
20941         case "$host_cpu" in
20942         hppa*64*|ia64*)
20943           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20944           ;;
20945         *)
20946           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20947           ;;
20948         esac
20949       fi
20950       if test "$with_gnu_ld" = no; then
20951         case "$host_cpu" in
20952         hppa*64*)
20953           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20954           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20955           hardcode_libdir_separator_F77=:
20956           hardcode_direct_F77=no
20957           hardcode_shlibpath_var_F77=no
20958           ;;
20959         ia64*)
20960           hardcode_libdir_flag_spec_F77='-L$libdir'
20961           hardcode_direct_F77=no
20962           hardcode_shlibpath_var_F77=no
20963
20964           # hardcode_minus_L: Not really in the search PATH,
20965           # but as the default location of the library.
20966           hardcode_minus_L_F77=yes
20967           ;;
20968         *)
20969           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20970           hardcode_libdir_separator_F77=:
20971           hardcode_direct_F77=yes
20972           export_dynamic_flag_spec_F77='${wl}-E'
20973
20974           # hardcode_minus_L: Not really in the search PATH,
20975           # but as the default location of the library.
20976           hardcode_minus_L_F77=yes
20977           ;;
20978         esac
20979       fi
20980       ;;
20981
20982     irix5* | irix6* | nonstopux*)
20983       if test "$GCC" = yes; then
20984         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'
20985       else
20986         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'
20987         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20988       fi
20989       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20990       hardcode_libdir_separator_F77=:
20991       link_all_deplibs_F77=yes
20992       ;;
20993
20994     netbsd*)
20995       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20996         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20997       else
20998         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20999       fi
21000       hardcode_libdir_flag_spec_F77='-R$libdir'
21001       hardcode_direct_F77=yes
21002       hardcode_shlibpath_var_F77=no
21003       ;;
21004
21005     newsos6)
21006       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21007       hardcode_direct_F77=yes
21008       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21009       hardcode_libdir_separator_F77=:
21010       hardcode_shlibpath_var_F77=no
21011       ;;
21012
21013     openbsd*)
21014       hardcode_direct_F77=yes
21015       hardcode_shlibpath_var_F77=no
21016       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21017         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21018         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21019         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21020         export_dynamic_flag_spec_F77='${wl}-E'
21021       else
21022        case $host_os in
21023          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21024            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21025            hardcode_libdir_flag_spec_F77='-R$libdir'
21026            ;;
21027          *)
21028            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21029            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21030            ;;
21031        esac
21032       fi
21033       ;;
21034
21035     os2*)
21036       hardcode_libdir_flag_spec_F77='-L$libdir'
21037       hardcode_minus_L_F77=yes
21038       allow_undefined_flag_F77=unsupported
21039       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'
21040       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21041       ;;
21042
21043     osf3*)
21044       if test "$GCC" = yes; then
21045         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21046         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'
21047       else
21048         allow_undefined_flag_F77=' -expect_unresolved \*'
21049         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'
21050       fi
21051       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21052       hardcode_libdir_separator_F77=:
21053       ;;
21054
21055     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21056       if test "$GCC" = yes; then
21057         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21058         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'
21059         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21060       else
21061         allow_undefined_flag_F77=' -expect_unresolved \*'
21062         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'
21063         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~
21064         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
21065
21066         # Both c and cxx compiler support -rpath directly
21067         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21068       fi
21069       hardcode_libdir_separator_F77=:
21070       ;;
21071
21072     sco3.2v5*)
21073       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21074       hardcode_shlibpath_var_F77=no
21075       export_dynamic_flag_spec_F77='${wl}-Bexport'
21076       runpath_var=LD_RUN_PATH
21077       hardcode_runpath_var=yes
21078       ;;
21079
21080     solaris*)
21081       no_undefined_flag_F77=' -z text'
21082       if test "$GCC" = yes; then
21083         wlarc='${wl}'
21084         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21085         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21086           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21087       else
21088         wlarc=''
21089         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21090         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21091         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21092       fi
21093       hardcode_libdir_flag_spec_F77='-R$libdir'
21094       hardcode_shlibpath_var_F77=no
21095       case $host_os in
21096       solaris2.[0-5] | solaris2.[0-5].*) ;;
21097       *)
21098         # The compiler driver will combine linker options so we
21099         # cannot just pass the convience library names through
21100         # without $wl, iff we do not link with $LD.
21101         # Luckily, gcc supports the same syntax we need for Sun Studio.
21102         # Supported since Solaris 2.6 (maybe 2.5.1?)
21103         case $wlarc in
21104         '')
21105           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21106         *)
21107           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
21108         esac ;;
21109       esac
21110       link_all_deplibs_F77=yes
21111       ;;
21112
21113     sunos4*)
21114       if test "x$host_vendor" = xsequent; then
21115         # Use $CC to link under sequent, because it throws in some extra .o
21116         # files that make .init and .fini sections work.
21117         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21118       else
21119         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21120       fi
21121       hardcode_libdir_flag_spec_F77='-L$libdir'
21122       hardcode_direct_F77=yes
21123       hardcode_minus_L_F77=yes
21124       hardcode_shlibpath_var_F77=no
21125       ;;
21126
21127     sysv4)
21128       case $host_vendor in
21129         sni)
21130           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21131           hardcode_direct_F77=yes # is this really true???
21132         ;;
21133         siemens)
21134           ## LD is ld it makes a PLAMLIB
21135           ## CC just makes a GrossModule.
21136           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21137           reload_cmds_F77='$CC -r -o $output$reload_objs'
21138           hardcode_direct_F77=no
21139         ;;
21140         motorola)
21141           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21142           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21143         ;;
21144       esac
21145       runpath_var='LD_RUN_PATH'
21146       hardcode_shlibpath_var_F77=no
21147       ;;
21148
21149     sysv4.3*)
21150       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21151       hardcode_shlibpath_var_F77=no
21152       export_dynamic_flag_spec_F77='-Bexport'
21153       ;;
21154
21155     sysv4*MP*)
21156       if test -d /usr/nec; then
21157         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21158         hardcode_shlibpath_var_F77=no
21159         runpath_var=LD_RUN_PATH
21160         hardcode_runpath_var=yes
21161         ld_shlibs_F77=yes
21162       fi
21163       ;;
21164
21165     sysv4.2uw2*)
21166       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21167       hardcode_direct_F77=yes
21168       hardcode_minus_L_F77=no
21169       hardcode_shlibpath_var_F77=no
21170       hardcode_runpath_var=yes
21171       runpath_var=LD_RUN_PATH
21172       ;;
21173
21174    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
21175       no_undefined_flag_F77='${wl}-z ${wl}text'
21176       if test "$GCC" = yes; then
21177         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21178       else
21179         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21180       fi
21181       runpath_var='LD_RUN_PATH'
21182       hardcode_shlibpath_var_F77=no
21183       ;;
21184
21185     sysv5*)
21186       no_undefined_flag_F77=' -z text'
21187       # $CC -shared without GNU ld will not create a library from C++
21188       # object files and a static libstdc++, better avoid it by now
21189       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21190       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21191                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21192       hardcode_libdir_flag_spec_F77=
21193       hardcode_shlibpath_var_F77=no
21194       runpath_var='LD_RUN_PATH'
21195       ;;
21196
21197     uts4*)
21198       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21199       hardcode_libdir_flag_spec_F77='-L$libdir'
21200       hardcode_shlibpath_var_F77=no
21201       ;;
21202
21203     *)
21204       ld_shlibs_F77=no
21205       ;;
21206     esac
21207   fi
21208
21209 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21210 echo "${ECHO_T}$ld_shlibs_F77" >&6
21211 test "$ld_shlibs_F77" = no && can_build_shared=no
21212
21213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21214 if test "$GCC" = yes; then
21215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21216 fi
21217
21218 #
21219 # Do we need to explicitly link libc?
21220 #
21221 case "x$archive_cmds_need_lc_F77" in
21222 x|xyes)
21223   # Assume -lc should be added
21224   archive_cmds_need_lc_F77=yes
21225
21226   if test "$enable_shared" = yes && test "$GCC" = yes; then
21227     case $archive_cmds_F77 in
21228     *'~'*)
21229       # FIXME: we may have to deal with multi-command sequences.
21230       ;;
21231     '$CC '*)
21232       # Test whether the compiler implicitly links with -lc since on some
21233       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21234       # to ld, don't add -lc before -lgcc.
21235       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21237       $rm conftest*
21238       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21239
21240       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241   (eval $ac_compile) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } 2>conftest.err; then
21245         soname=conftest
21246         lib=conftest
21247         libobjs=conftest.$ac_objext
21248         deplibs=
21249         wl=$lt_prog_compiler_wl_F77
21250         compiler_flags=-v
21251         linker_flags=-v
21252         verstring=
21253         output_objdir=.
21254         libname=conftest
21255         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21256         allow_undefined_flag_F77=
21257         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21258   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); }
21262         then
21263           archive_cmds_need_lc_F77=no
21264         else
21265           archive_cmds_need_lc_F77=yes
21266         fi
21267         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21268       else
21269         cat conftest.err 1>&5
21270       fi
21271       $rm conftest*
21272       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21273 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21274       ;;
21275     esac
21276   fi
21277   ;;
21278 esac
21279
21280 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21282 library_names_spec=
21283 libname_spec='lib$name'
21284 soname_spec=
21285 shrext_cmds=".so"
21286 postinstall_cmds=
21287 postuninstall_cmds=
21288 finish_cmds=
21289 finish_eval=
21290 shlibpath_var=
21291 shlibpath_overrides_runpath=unknown
21292 version_type=none
21293 dynamic_linker="$host_os ld.so"
21294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21295 if test "$GCC" = yes; then
21296   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21297   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21298     # if the path contains ";" then we assume it to be the separator
21299     # otherwise default to the standard path separator (i.e. ":") - it is
21300     # assumed that no part of a normal pathname contains ";" but that should
21301     # okay in the real world where ";" in dirpaths is itself problematic.
21302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21303   else
21304     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21305   fi
21306 else
21307   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21308 fi
21309 need_lib_prefix=unknown
21310 hardcode_into_libs=no
21311
21312 # when you set need_version to no, make sure it does not cause -set_version
21313 # flags to be left without arguments
21314 need_version=unknown
21315
21316 case $host_os in
21317 aix3*)
21318   version_type=linux
21319   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21320   shlibpath_var=LIBPATH
21321
21322   # AIX 3 has no versioning support, so we append a major version to the name.
21323   soname_spec='${libname}${release}${shared_ext}$major'
21324   ;;
21325
21326 aix4* | aix5*)
21327   version_type=linux
21328   need_lib_prefix=no
21329   need_version=no
21330   hardcode_into_libs=yes
21331   if test "$host_cpu" = ia64; then
21332     # AIX 5 supports IA64
21333     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21334     shlibpath_var=LD_LIBRARY_PATH
21335   else
21336     # With GCC up to 2.95.x, collect2 would create an import file
21337     # for dependence libraries.  The import file would start with
21338     # the line `#! .'.  This would cause the generated library to
21339     # depend on `.', always an invalid library.  This was fixed in
21340     # development snapshots of GCC prior to 3.0.
21341     case $host_os in
21342       aix4 | aix4.[01] | aix4.[01].*)
21343       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21344            echo ' yes '
21345            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21346         :
21347       else
21348         can_build_shared=no
21349       fi
21350       ;;
21351     esac
21352     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21353     # soname into executable. Probably we can add versioning support to
21354     # collect2, so additional links can be useful in future.
21355     if test "$aix_use_runtimelinking" = yes; then
21356       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21357       # instead of lib<name>.a to let people know that these are not
21358       # typical AIX shared libraries.
21359       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21360     else
21361       # We preserve .a as extension for shared libraries through AIX4.2
21362       # and later when we are not doing run time linking.
21363       library_names_spec='${libname}${release}.a $libname.a'
21364       soname_spec='${libname}${release}${shared_ext}$major'
21365     fi
21366     shlibpath_var=LIBPATH
21367   fi
21368   ;;
21369
21370 amigaos*)
21371   library_names_spec='$libname.ixlibrary $libname.a'
21372   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21373   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'
21374   ;;
21375
21376 beos*)
21377   library_names_spec='${libname}${shared_ext}'
21378   dynamic_linker="$host_os ld.so"
21379   shlibpath_var=LIBRARY_PATH
21380   ;;
21381
21382 bsdi[45]*)
21383   version_type=linux
21384   need_version=no
21385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21386   soname_spec='${libname}${release}${shared_ext}$major'
21387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21388   shlibpath_var=LD_LIBRARY_PATH
21389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21391   # the default ld.so.conf also contains /usr/contrib/lib and
21392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21393   # libtool to hard-code these into programs
21394   ;;
21395
21396 cygwin* | mingw* | pw32*)
21397   version_type=windows
21398   shrext_cmds=".dll"
21399   need_version=no
21400   need_lib_prefix=no
21401
21402   case $GCC,$host_os in
21403   yes,cygwin* | yes,mingw* | yes,pw32*)
21404     library_names_spec='$libname.dll.a'
21405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21406     postinstall_cmds='base_file=`basename \${file}`~
21407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21408       dldir=$destdir/`dirname \$dlpath`~
21409       test -d \$dldir || mkdir -p \$dldir~
21410       $install_prog $dir/$dlname \$dldir/$dlname'
21411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21412       dlpath=$dir/\$dldll~
21413        $rm \$dlpath'
21414     shlibpath_overrides_runpath=yes
21415
21416     case $host_os in
21417     cygwin*)
21418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21421       ;;
21422     mingw*)
21423       # MinGW DLLs use traditional 'lib' prefix
21424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21427         # It is most probably a Windows format PATH printed by
21428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21429         # path with ; separators, and with drive letters. We can handle the
21430         # drive letters (cygwin fileutils understands them), so leave them,
21431         # especially as we might pass files found there to a mingw objdump,
21432         # which wouldn't understand a cygwinified path. Ahh.
21433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21434       else
21435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21436       fi
21437       ;;
21438     pw32*)
21439       # pw32 DLLs use 'pw' prefix rather than 'lib'
21440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21441       ;;
21442     esac
21443     ;;
21444
21445   *)
21446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21447     ;;
21448   esac
21449   dynamic_linker='Win32 ld.exe'
21450   # FIXME: first we should search . and the directory the executable is in
21451   shlibpath_var=PATH
21452   ;;
21453
21454 darwin* | rhapsody*)
21455   dynamic_linker="$host_os dyld"
21456   version_type=darwin
21457   need_lib_prefix=no
21458   need_version=no
21459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21460   soname_spec='${libname}${release}${major}$shared_ext'
21461   shlibpath_overrides_runpath=yes
21462   shlibpath_var=DYLD_LIBRARY_PATH
21463   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21464   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21465   if test "$GCC" = yes; then
21466     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"`
21467   else
21468     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21469   fi
21470   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21471   ;;
21472
21473 dgux*)
21474   version_type=linux
21475   need_lib_prefix=no
21476   need_version=no
21477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21478   soname_spec='${libname}${release}${shared_ext}$major'
21479   shlibpath_var=LD_LIBRARY_PATH
21480   ;;
21481
21482 freebsd1*)
21483   dynamic_linker=no
21484   ;;
21485
21486 kfreebsd*-gnu)
21487   version_type=linux
21488   need_lib_prefix=no
21489   need_version=no
21490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21491   soname_spec='${libname}${release}${shared_ext}$major'
21492   shlibpath_var=LD_LIBRARY_PATH
21493   shlibpath_overrides_runpath=no
21494   hardcode_into_libs=yes
21495   dynamic_linker='GNU ld.so'
21496   ;;
21497
21498 freebsd* | dragonfly*)
21499   # DragonFly does not have aout.  When/if they implement a new
21500   # versioning mechanism, adjust this.
21501   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21502   version_type=freebsd-$objformat
21503   case $version_type in
21504     freebsd-elf*)
21505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21506       need_version=no
21507       need_lib_prefix=no
21508       ;;
21509     freebsd-*)
21510       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21511       need_version=yes
21512       ;;
21513   esac
21514   shlibpath_var=LD_LIBRARY_PATH
21515   case $host_os in
21516   freebsd2*)
21517     shlibpath_overrides_runpath=yes
21518     ;;
21519   freebsd3.[01]* | freebsdelf3.[01]*)
21520     shlibpath_overrides_runpath=yes
21521     hardcode_into_libs=yes
21522     ;;
21523   *) # from 3.2 on
21524     shlibpath_overrides_runpath=no
21525     hardcode_into_libs=yes
21526     ;;
21527   esac
21528   ;;
21529
21530 gnu*)
21531   version_type=linux
21532   need_lib_prefix=no
21533   need_version=no
21534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21535   soname_spec='${libname}${release}${shared_ext}$major'
21536   shlibpath_var=LD_LIBRARY_PATH
21537   hardcode_into_libs=yes
21538   ;;
21539
21540 hpux9* | hpux10* | hpux11*)
21541   # Give a soname corresponding to the major version so that dld.sl refuses to
21542   # link against other versions.
21543   version_type=sunos
21544   need_lib_prefix=no
21545   need_version=no
21546   case "$host_cpu" in
21547   ia64*)
21548     shrext_cmds='.so'
21549     hardcode_into_libs=yes
21550     dynamic_linker="$host_os dld.so"
21551     shlibpath_var=LD_LIBRARY_PATH
21552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21554     soname_spec='${libname}${release}${shared_ext}$major'
21555     if test "X$HPUX_IA64_MODE" = X32; then
21556       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21557     else
21558       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21559     fi
21560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21561     ;;
21562    hppa*64*)
21563      shrext_cmds='.sl'
21564      hardcode_into_libs=yes
21565      dynamic_linker="$host_os dld.sl"
21566      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21567      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21569      soname_spec='${libname}${release}${shared_ext}$major'
21570      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21571      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21572      ;;
21573    *)
21574     shrext_cmds='.sl'
21575     dynamic_linker="$host_os dld.sl"
21576     shlibpath_var=SHLIB_PATH
21577     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21579     soname_spec='${libname}${release}${shared_ext}$major'
21580     ;;
21581   esac
21582   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21583   postinstall_cmds='chmod 555 $lib'
21584   ;;
21585
21586 irix5* | irix6* | nonstopux*)
21587   case $host_os in
21588     nonstopux*) version_type=nonstopux ;;
21589     *)
21590         if test "$lt_cv_prog_gnu_ld" = yes; then
21591                 version_type=linux
21592         else
21593                 version_type=irix
21594         fi ;;
21595   esac
21596   need_lib_prefix=no
21597   need_version=no
21598   soname_spec='${libname}${release}${shared_ext}$major'
21599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21600   case $host_os in
21601   irix5* | nonstopux*)
21602     libsuff= shlibsuff=
21603     ;;
21604   *)
21605     case $LD in # libtool.m4 will add one of these switches to LD
21606     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21607       libsuff= shlibsuff= libmagic=32-bit;;
21608     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21609       libsuff=32 shlibsuff=N32 libmagic=N32;;
21610     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21611       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21612     *) libsuff= shlibsuff= libmagic=never-match;;
21613     esac
21614     ;;
21615   esac
21616   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21617   shlibpath_overrides_runpath=no
21618   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21619   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21620   hardcode_into_libs=yes
21621   ;;
21622
21623 # No shared lib support for Linux oldld, aout, or coff.
21624 linux*oldld* | linux*aout* | linux*coff*)
21625   dynamic_linker=no
21626   ;;
21627
21628 # This must be Linux ELF.
21629 linux*)
21630   version_type=linux
21631   need_lib_prefix=no
21632   need_version=no
21633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21634   soname_spec='${libname}${release}${shared_ext}$major'
21635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21636   shlibpath_var=LD_LIBRARY_PATH
21637   shlibpath_overrides_runpath=no
21638   # This implies no fast_install, which is unacceptable.
21639   # Some rework will be needed to allow for fast_install
21640   # before this can be enabled.
21641   hardcode_into_libs=yes
21642
21643   # find out which ABI we are using
21644   libsuff=
21645   case "$host_cpu" in
21646   x86_64*|s390x*|powerpc64*)
21647     echo '#line 21647 "configure"' > conftest.$ac_ext
21648     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21649   (eval $ac_compile) 2>&5
21650   ac_status=$?
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); }; then
21653       case `/usr/bin/file conftest.$ac_objext` in
21654       *64-bit*)
21655         libsuff=64
21656         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21657         ;;
21658       esac
21659     fi
21660     rm -rf conftest*
21661     ;;
21662   esac
21663
21664   # Append ld.so.conf contents to the search path
21665   if test -f /etc/ld.so.conf; then
21666     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21667     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21668   fi
21669
21670   # We used to test for /lib/ld.so.1 and disable shared libraries on
21671   # powerpc, because MkLinux only supported shared libraries with the
21672   # GNU dynamic linker.  Since this was broken with cross compilers,
21673   # most powerpc-linux boxes support dynamic linking these days and
21674   # people can always --disable-shared, the test was removed, and we
21675   # assume the GNU/Linux dynamic linker is in use.
21676   dynamic_linker='GNU/Linux ld.so'
21677   ;;
21678
21679 knetbsd*-gnu)
21680   version_type=linux
21681   need_lib_prefix=no
21682   need_version=no
21683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21684   soname_spec='${libname}${release}${shared_ext}$major'
21685   shlibpath_var=LD_LIBRARY_PATH
21686   shlibpath_overrides_runpath=no
21687   hardcode_into_libs=yes
21688   dynamic_linker='GNU ld.so'
21689   ;;
21690
21691 netbsd*)
21692   version_type=sunos
21693   need_lib_prefix=no
21694   need_version=no
21695   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21697     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21698     dynamic_linker='NetBSD (a.out) ld.so'
21699   else
21700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21701     soname_spec='${libname}${release}${shared_ext}$major'
21702     dynamic_linker='NetBSD ld.elf_so'
21703   fi
21704   shlibpath_var=LD_LIBRARY_PATH
21705   shlibpath_overrides_runpath=yes
21706   hardcode_into_libs=yes
21707   ;;
21708
21709 newsos6)
21710   version_type=linux
21711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21712   shlibpath_var=LD_LIBRARY_PATH
21713   shlibpath_overrides_runpath=yes
21714   ;;
21715
21716 nto-qnx*)
21717   version_type=linux
21718   need_lib_prefix=no
21719   need_version=no
21720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21721   soname_spec='${libname}${release}${shared_ext}$major'
21722   shlibpath_var=LD_LIBRARY_PATH
21723   shlibpath_overrides_runpath=yes
21724   ;;
21725
21726 openbsd*)
21727   version_type=sunos
21728   need_lib_prefix=no
21729   need_version=no
21730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21732   shlibpath_var=LD_LIBRARY_PATH
21733   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21734     case $host_os in
21735       openbsd2.[89] | openbsd2.[89].*)
21736         shlibpath_overrides_runpath=no
21737         ;;
21738       *)
21739         shlibpath_overrides_runpath=yes
21740         ;;
21741       esac
21742   else
21743     shlibpath_overrides_runpath=yes
21744   fi
21745   ;;
21746
21747 os2*)
21748   libname_spec='$name'
21749   shrext_cmds=".dll"
21750   need_lib_prefix=no
21751   library_names_spec='$libname${shared_ext} $libname.a'
21752   dynamic_linker='OS/2 ld.exe'
21753   shlibpath_var=LIBPATH
21754   ;;
21755
21756 osf3* | osf4* | osf5*)
21757   version_type=osf
21758   need_lib_prefix=no
21759   need_version=no
21760   soname_spec='${libname}${release}${shared_ext}$major'
21761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21762   shlibpath_var=LD_LIBRARY_PATH
21763   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21764   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21765   ;;
21766
21767 sco3.2v5*)
21768   version_type=osf
21769   soname_spec='${libname}${release}${shared_ext}$major'
21770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771   shlibpath_var=LD_LIBRARY_PATH
21772   ;;
21773
21774 solaris*)
21775   version_type=linux
21776   need_lib_prefix=no
21777   need_version=no
21778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21779   soname_spec='${libname}${release}${shared_ext}$major'
21780   shlibpath_var=LD_LIBRARY_PATH
21781   shlibpath_overrides_runpath=yes
21782   hardcode_into_libs=yes
21783   # ldd complains unless libraries are executable
21784   postinstall_cmds='chmod +x $lib'
21785   ;;
21786
21787 sunos4*)
21788   version_type=sunos
21789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21790   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21791   shlibpath_var=LD_LIBRARY_PATH
21792   shlibpath_overrides_runpath=yes
21793   if test "$with_gnu_ld" = yes; then
21794     need_lib_prefix=no
21795   fi
21796   need_version=yes
21797   ;;
21798
21799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21800   version_type=linux
21801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21802   soname_spec='${libname}${release}${shared_ext}$major'
21803   shlibpath_var=LD_LIBRARY_PATH
21804   case $host_vendor in
21805     sni)
21806       shlibpath_overrides_runpath=no
21807       need_lib_prefix=no
21808       export_dynamic_flag_spec='${wl}-Blargedynsym'
21809       runpath_var=LD_RUN_PATH
21810       ;;
21811     siemens)
21812       need_lib_prefix=no
21813       ;;
21814     motorola)
21815       need_lib_prefix=no
21816       need_version=no
21817       shlibpath_overrides_runpath=no
21818       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21819       ;;
21820   esac
21821   ;;
21822
21823 sysv4*MP*)
21824   if test -d /usr/nec ;then
21825     version_type=linux
21826     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21827     soname_spec='$libname${shared_ext}.$major'
21828     shlibpath_var=LD_LIBRARY_PATH
21829   fi
21830   ;;
21831
21832 uts4*)
21833   version_type=linux
21834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21835   soname_spec='${libname}${release}${shared_ext}$major'
21836   shlibpath_var=LD_LIBRARY_PATH
21837   ;;
21838
21839 *)
21840   dynamic_linker=no
21841   ;;
21842 esac
21843 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21844 echo "${ECHO_T}$dynamic_linker" >&6
21845 test "$dynamic_linker" = no && can_build_shared=no
21846
21847 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21849 hardcode_action_F77=
21850 if test -n "$hardcode_libdir_flag_spec_F77" || \
21851    test -n "$runpath_var_F77" || \
21852    test "X$hardcode_automatic_F77" = "Xyes" ; then
21853
21854   # We can hardcode non-existant directories.
21855   if test "$hardcode_direct_F77" != no &&
21856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21857      # have to relink, otherwise we might link with an installed library
21858      # when we should be linking with a yet-to-be-installed one
21859      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21860      test "$hardcode_minus_L_F77" != no; then
21861     # Linking always hardcodes the temporary library directory.
21862     hardcode_action_F77=relink
21863   else
21864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21865     hardcode_action_F77=immediate
21866   fi
21867 else
21868   # We cannot hardcode anything, or else we can only hardcode existing
21869   # directories.
21870   hardcode_action_F77=unsupported
21871 fi
21872 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21873 echo "${ECHO_T}$hardcode_action_F77" >&6
21874
21875 if test "$hardcode_action_F77" = relink; then
21876   # Fast installation is not supported
21877   enable_fast_install=no
21878 elif test "$shlibpath_overrides_runpath" = yes ||
21879      test "$enable_shared" = no; then
21880   # Fast installation is not necessary
21881   enable_fast_install=needless
21882 fi
21883
21884 striplib=
21885 old_striplib=
21886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21889   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21890   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21891   echo "$as_me:$LINENO: result: yes" >&5
21892 echo "${ECHO_T}yes" >&6
21893 else
21894 # FIXME - insert some real tests, host_os isn't really good enough
21895   case $host_os in
21896    darwin*)
21897        if test -n "$STRIP" ; then
21898          striplib="$STRIP -x"
21899          echo "$as_me:$LINENO: result: yes" >&5
21900 echo "${ECHO_T}yes" >&6
21901        else
21902   echo "$as_me:$LINENO: result: no" >&5
21903 echo "${ECHO_T}no" >&6
21904 fi
21905        ;;
21906    *)
21907   echo "$as_me:$LINENO: result: no" >&5
21908 echo "${ECHO_T}no" >&6
21909     ;;
21910   esac
21911 fi
21912
21913
21914
21915 # The else clause should only fire when bootstrapping the
21916 # libtool distribution, otherwise you forgot to ship ltmain.sh
21917 # with your package, and you will get complaints that there are
21918 # no rules to generate ltmain.sh.
21919 if test -f "$ltmain"; then
21920   # See if we are running on zsh, and set the options which allow our commands through
21921   # without removal of \ escapes.
21922   if test -n "${ZSH_VERSION+set}" ; then
21923     setopt NO_GLOB_SUBST
21924   fi
21925   # Now quote all the things that may contain metacharacters while being
21926   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21927   # variables and quote the copies for generation of the libtool script.
21928   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21929     SED SHELL STRIP \
21930     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21931     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21932     deplibs_check_method reload_flag reload_cmds need_locks \
21933     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21934     lt_cv_sys_global_symbol_to_c_name_address \
21935     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21936     old_postinstall_cmds old_postuninstall_cmds \
21937     compiler_F77 \
21938     CC_F77 \
21939     LD_F77 \
21940     lt_prog_compiler_wl_F77 \
21941     lt_prog_compiler_pic_F77 \
21942     lt_prog_compiler_static_F77 \
21943     lt_prog_compiler_no_builtin_flag_F77 \
21944     export_dynamic_flag_spec_F77 \
21945     thread_safe_flag_spec_F77 \
21946     whole_archive_flag_spec_F77 \
21947     enable_shared_with_static_runtimes_F77 \
21948     old_archive_cmds_F77 \
21949     old_archive_from_new_cmds_F77 \
21950     predep_objects_F77 \
21951     postdep_objects_F77 \
21952     predeps_F77 \
21953     postdeps_F77 \
21954     compiler_lib_search_path_F77 \
21955     archive_cmds_F77 \
21956     archive_expsym_cmds_F77 \
21957     postinstall_cmds_F77 \
21958     postuninstall_cmds_F77 \
21959     old_archive_from_expsyms_cmds_F77 \
21960     allow_undefined_flag_F77 \
21961     no_undefined_flag_F77 \
21962     export_symbols_cmds_F77 \
21963     hardcode_libdir_flag_spec_F77 \
21964     hardcode_libdir_flag_spec_ld_F77 \
21965     hardcode_libdir_separator_F77 \
21966     hardcode_automatic_F77 \
21967     module_cmds_F77 \
21968     module_expsym_cmds_F77 \
21969     lt_cv_prog_compiler_c_o_F77 \
21970     exclude_expsyms_F77 \
21971     include_expsyms_F77; do
21972
21973     case $var in
21974     old_archive_cmds_F77 | \
21975     old_archive_from_new_cmds_F77 | \
21976     archive_cmds_F77 | \
21977     archive_expsym_cmds_F77 | \
21978     module_cmds_F77 | \
21979     module_expsym_cmds_F77 | \
21980     old_archive_from_expsyms_cmds_F77 | \
21981     export_symbols_cmds_F77 | \
21982     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21983     postinstall_cmds | postuninstall_cmds | \
21984     old_postinstall_cmds | old_postuninstall_cmds | \
21985     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21986       # Double-quote double-evaled strings.
21987       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21988       ;;
21989     *)
21990       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21991       ;;
21992     esac
21993   done
21994
21995   case $lt_echo in
21996   *'\$0 --fallback-echo"')
21997     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21998     ;;
21999   esac
22000
22001 cfgfile="$ofile"
22002
22003   cat <<__EOF__ >> "$cfgfile"
22004 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22005
22006 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22007
22008 # Shell to use when invoking shell scripts.
22009 SHELL=$lt_SHELL
22010
22011 # Whether or not to build shared libraries.
22012 build_libtool_libs=$enable_shared
22013
22014 # Whether or not to build static libraries.
22015 build_old_libs=$enable_static
22016
22017 # Whether or not to add -lc for building shared libraries.
22018 build_libtool_need_lc=$archive_cmds_need_lc_F77
22019
22020 # Whether or not to disallow shared libs when runtime libs are static
22021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22022
22023 # Whether or not to optimize for fast installation.
22024 fast_install=$enable_fast_install
22025
22026 # The host system.
22027 host_alias=$host_alias
22028 host=$host
22029 host_os=$host_os
22030
22031 # The build system.
22032 build_alias=$build_alias
22033 build=$build
22034 build_os=$build_os
22035
22036 # An echo program that does not interpret backslashes.
22037 echo=$lt_echo
22038
22039 # The archiver.
22040 AR=$lt_AR
22041 AR_FLAGS=$lt_AR_FLAGS
22042
22043 # A C compiler.
22044 LTCC=$lt_LTCC
22045
22046 # A language-specific compiler.
22047 CC=$lt_compiler_F77
22048
22049 # Is the compiler the GNU C compiler?
22050 with_gcc=$GCC_F77
22051
22052 # An ERE matcher.
22053 EGREP=$lt_EGREP
22054
22055 # The linker used to build libraries.
22056 LD=$lt_LD_F77
22057
22058 # Whether we need hard or soft links.
22059 LN_S=$lt_LN_S
22060
22061 # A BSD-compatible nm program.
22062 NM=$lt_NM
22063
22064 # A symbol stripping program
22065 STRIP=$lt_STRIP
22066
22067 # Used to examine libraries when file_magic_cmd begins "file"
22068 MAGIC_CMD=$MAGIC_CMD
22069
22070 # Used on cygwin: DLL creation program.
22071 DLLTOOL="$DLLTOOL"
22072
22073 # Used on cygwin: object dumper.
22074 OBJDUMP="$OBJDUMP"
22075
22076 # Used on cygwin: assembler.
22077 AS="$AS"
22078
22079 # The name of the directory that contains temporary libtool files.
22080 objdir=$objdir
22081
22082 # How to create reloadable object files.
22083 reload_flag=$lt_reload_flag
22084 reload_cmds=$lt_reload_cmds
22085
22086 # How to pass a linker flag through the compiler.
22087 wl=$lt_lt_prog_compiler_wl_F77
22088
22089 # Object file suffix (normally "o").
22090 objext="$ac_objext"
22091
22092 # Old archive suffix (normally "a").
22093 libext="$libext"
22094
22095 # Shared library suffix (normally ".so").
22096 shrext_cmds='$shrext_cmds'
22097
22098 # Executable file suffix (normally "").
22099 exeext="$exeext"
22100
22101 # Additional compiler flags for building library objects.
22102 pic_flag=$lt_lt_prog_compiler_pic_F77
22103 pic_mode=$pic_mode
22104
22105 # What is the maximum length of a command?
22106 max_cmd_len=$lt_cv_sys_max_cmd_len
22107
22108 # Does compiler simultaneously support -c and -o options?
22109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22110
22111 # Must we lock files when doing compilation?
22112 need_locks=$lt_need_locks
22113
22114 # Do we need the lib prefix for modules?
22115 need_lib_prefix=$need_lib_prefix
22116
22117 # Do we need a version for libraries?
22118 need_version=$need_version
22119
22120 # Whether dlopen is supported.
22121 dlopen_support=$enable_dlopen
22122
22123 # Whether dlopen of programs is supported.
22124 dlopen_self=$enable_dlopen_self
22125
22126 # Whether dlopen of statically linked programs is supported.
22127 dlopen_self_static=$enable_dlopen_self_static
22128
22129 # Compiler flag to prevent dynamic linking.
22130 link_static_flag=$lt_lt_prog_compiler_static_F77
22131
22132 # Compiler flag to turn off builtin functions.
22133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22134
22135 # Compiler flag to allow reflexive dlopens.
22136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22137
22138 # Compiler flag to generate shared objects directly from archives.
22139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22140
22141 # Compiler flag to generate thread-safe objects.
22142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22143
22144 # Library versioning type.
22145 version_type=$version_type
22146
22147 # Format of library name prefix.
22148 libname_spec=$lt_libname_spec
22149
22150 # List of archive names.  First name is the real one, the rest are links.
22151 # The last name is the one that the linker finds with -lNAME.
22152 library_names_spec=$lt_library_names_spec
22153
22154 # The coded name of the library, if different from the real name.
22155 soname_spec=$lt_soname_spec
22156
22157 # Commands used to build and install an old-style archive.
22158 RANLIB=$lt_RANLIB
22159 old_archive_cmds=$lt_old_archive_cmds_F77
22160 old_postinstall_cmds=$lt_old_postinstall_cmds
22161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22162
22163 # Create an old-style archive from a shared archive.
22164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22165
22166 # Create a temporary old-style archive to link instead of a shared archive.
22167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22168
22169 # Commands used to build and install a shared archive.
22170 archive_cmds=$lt_archive_cmds_F77
22171 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22172 postinstall_cmds=$lt_postinstall_cmds
22173 postuninstall_cmds=$lt_postuninstall_cmds
22174
22175 # Commands used to build a loadable module (assumed same as above if empty)
22176 module_cmds=$lt_module_cmds_F77
22177 module_expsym_cmds=$lt_module_expsym_cmds_F77
22178
22179 # Commands to strip libraries.
22180 old_striplib=$lt_old_striplib
22181 striplib=$lt_striplib
22182
22183 # Dependencies to place before the objects being linked to create a
22184 # shared library.
22185 predep_objects=$lt_predep_objects_F77
22186
22187 # Dependencies to place after the objects being linked to create a
22188 # shared library.
22189 postdep_objects=$lt_postdep_objects_F77
22190
22191 # Dependencies to place before the objects being linked to create a
22192 # shared library.
22193 predeps=$lt_predeps_F77
22194
22195 # Dependencies to place after the objects being linked to create a
22196 # shared library.
22197 postdeps=$lt_postdeps_F77
22198
22199 # The library search path used internally by the compiler when linking
22200 # a shared library.
22201 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22202
22203 # Method to check whether dependent libraries are shared objects.
22204 deplibs_check_method=$lt_deplibs_check_method
22205
22206 # Command to use when deplibs_check_method == file_magic.
22207 file_magic_cmd=$lt_file_magic_cmd
22208
22209 # Flag that allows shared libraries with undefined symbols to be built.
22210 allow_undefined_flag=$lt_allow_undefined_flag_F77
22211
22212 # Flag that forces no undefined symbols.
22213 no_undefined_flag=$lt_no_undefined_flag_F77
22214
22215 # Commands used to finish a libtool library installation in a directory.
22216 finish_cmds=$lt_finish_cmds
22217
22218 # Same as above, but a single script fragment to be evaled but not shown.
22219 finish_eval=$lt_finish_eval
22220
22221 # Take the output of nm and produce a listing of raw symbols and C names.
22222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22223
22224 # Transform the output of nm in a proper C declaration
22225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22226
22227 # Transform the output of nm in a C name address pair
22228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22229
22230 # This is the shared library runtime path variable.
22231 runpath_var=$runpath_var
22232
22233 # This is the shared library path variable.
22234 shlibpath_var=$shlibpath_var
22235
22236 # Is shlibpath searched before the hard-coded library search path?
22237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22238
22239 # How to hardcode a shared library path into an executable.
22240 hardcode_action=$hardcode_action_F77
22241
22242 # Whether we should hardcode library paths into libraries.
22243 hardcode_into_libs=$hardcode_into_libs
22244
22245 # Flag to hardcode \$libdir into a binary during linking.
22246 # This must work even if \$libdir does not exist.
22247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22248
22249 # If ld is used when linking, flag to hardcode \$libdir into
22250 # a binary during linking. This must work even if \$libdir does
22251 # not exist.
22252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22253
22254 # Whether we need a single -rpath flag with a separated argument.
22255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22256
22257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22258 # resulting binary.
22259 hardcode_direct=$hardcode_direct_F77
22260
22261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22262 # resulting binary.
22263 hardcode_minus_L=$hardcode_minus_L_F77
22264
22265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22266 # the resulting binary.
22267 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22268
22269 # Set to yes if building a shared library automatically hardcodes DIR into the library
22270 # and all subsequent libraries and executables linked against it.
22271 hardcode_automatic=$hardcode_automatic_F77
22272
22273 # Variables whose values should be saved in libtool wrapper scripts and
22274 # restored at relink time.
22275 variables_saved_for_relink="$variables_saved_for_relink"
22276
22277 # Whether libtool must link a program against all its dependency libraries.
22278 link_all_deplibs=$link_all_deplibs_F77
22279
22280 # Compile-time system search path for libraries
22281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22282
22283 # Run-time system search path for libraries
22284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22285
22286 # Fix the shell variable \$srcfile for the compiler.
22287 fix_srcfile_path="$fix_srcfile_path_F77"
22288
22289 # Set to yes if exported symbols are required.
22290 always_export_symbols=$always_export_symbols_F77
22291
22292 # The commands to list exported symbols.
22293 export_symbols_cmds=$lt_export_symbols_cmds_F77
22294
22295 # The commands to extract the exported symbol list from a shared archive.
22296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22297
22298 # Symbols that should not be listed in the preloaded symbols.
22299 exclude_expsyms=$lt_exclude_expsyms_F77
22300
22301 # Symbols that must always be exported.
22302 include_expsyms=$lt_include_expsyms_F77
22303
22304 # ### END LIBTOOL TAG CONFIG: $tagname
22305
22306 __EOF__
22307
22308
22309 else
22310   # If there is no Makefile yet, we rely on a make rule to execute
22311   # `config.status --recheck' to rerun these tests and create the
22312   # libtool script then.
22313   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22314   if test -f "$ltmain_in"; then
22315     test -f Makefile && make "$ltmain"
22316   fi
22317 fi
22318
22319
22320 ac_ext=c
22321 ac_cpp='$CPP $CPPFLAGS'
22322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22325
22326 CC="$lt_save_CC"
22327
22328         else
22329           tagname=""
22330         fi
22331         ;;
22332
22333       GCJ)
22334         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22335
22336
22337
22338 # Source file extension for Java test sources.
22339 ac_ext=java
22340
22341 # Object file extension for compiled Java test sources.
22342 objext=o
22343 objext_GCJ=$objext
22344
22345 # Code to be used in simple compile tests
22346 lt_simple_compile_test_code="class foo {}\n"
22347
22348 # Code to be used in simple link tests
22349 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22350
22351 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22352
22353 # If no C compiler was specified, use CC.
22354 LTCC=${LTCC-"$CC"}
22355
22356 # Allow CC to be a program name with arguments.
22357 compiler=$CC
22358
22359
22360 # save warnings/boilerplate of simple test code
22361 ac_outfile=conftest.$ac_objext
22362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22364 _lt_compiler_boilerplate=`cat conftest.err`
22365 $rm conftest*
22366
22367 ac_outfile=conftest.$ac_objext
22368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22370 _lt_linker_boilerplate=`cat conftest.err`
22371 $rm conftest*
22372
22373
22374 # Allow CC to be a program name with arguments.
22375 lt_save_CC="$CC"
22376 CC=${GCJ-"gcj"}
22377 compiler=$CC
22378 compiler_GCJ=$CC
22379 for cc_temp in $compiler""; do
22380   case $cc_temp in
22381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22383     \-*) ;;
22384     *) break;;
22385   esac
22386 done
22387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22388
22389
22390 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22391 archive_cmds_need_lc_GCJ=no
22392
22393 old_archive_cmds_GCJ=$old_archive_cmds
22394
22395
22396 lt_prog_compiler_no_builtin_flag_GCJ=
22397
22398 if test "$GCC" = yes; then
22399   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22400
22401
22402 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22403 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22404 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22405   echo $ECHO_N "(cached) $ECHO_C" >&6
22406 else
22407   lt_cv_prog_compiler_rtti_exceptions=no
22408   ac_outfile=conftest.$ac_objext
22409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22410    lt_compiler_flag="-fno-rtti -fno-exceptions"
22411    # Insert the option either (1) after the last *FLAGS variable, or
22412    # (2) before a word containing "conftest.", or (3) at the end.
22413    # Note that $ac_compile itself does not contain backslashes and begins
22414    # with a dollar sign (not a hyphen), so the echo should work correctly.
22415    # The option is referenced via a variable to avoid confusing sed.
22416    lt_compile=`echo "$ac_compile" | $SED \
22417    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22419    -e 's:$: $lt_compiler_flag:'`
22420    (eval echo "\"\$as_me:22420: $lt_compile\"" >&5)
22421    (eval "$lt_compile" 2>conftest.err)
22422    ac_status=$?
22423    cat conftest.err >&5
22424    echo "$as_me:22424: \$? = $ac_status" >&5
22425    if (exit $ac_status) && test -s "$ac_outfile"; then
22426      # The compiler can only warn and ignore the option if not recognized
22427      # So say no if there are warnings other than the usual output.
22428      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22429      $SED '/^$/d' conftest.err >conftest.er2
22430      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22431        lt_cv_prog_compiler_rtti_exceptions=yes
22432      fi
22433    fi
22434    $rm conftest*
22435
22436 fi
22437 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22438 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22439
22440 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22441     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22442 else
22443     :
22444 fi
22445
22446 fi
22447
22448 lt_prog_compiler_wl_GCJ=
22449 lt_prog_compiler_pic_GCJ=
22450 lt_prog_compiler_static_GCJ=
22451
22452 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22454
22455   if test "$GCC" = yes; then
22456     lt_prog_compiler_wl_GCJ='-Wl,'
22457     lt_prog_compiler_static_GCJ='-static'
22458
22459     case $host_os in
22460       aix*)
22461       # All AIX code is PIC.
22462       if test "$host_cpu" = ia64; then
22463         # AIX 5 now supports IA64 processor
22464         lt_prog_compiler_static_GCJ='-Bstatic'
22465       fi
22466       ;;
22467
22468     amigaos*)
22469       # FIXME: we need at least 68020 code to build shared libraries, but
22470       # adding the `-m68020' flag to GCC prevents building anything better,
22471       # like `-m68040'.
22472       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22473       ;;
22474
22475     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22476       # PIC is the default for these OSes.
22477       ;;
22478
22479     mingw* | pw32* | os2*)
22480       # This hack is so that the source file can tell whether it is being
22481       # built for inclusion in a dll (and should export symbols for example).
22482       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22483       ;;
22484
22485     darwin* | rhapsody*)
22486       # PIC is the default on this platform
22487       # Common symbols not allowed in MH_DYLIB files
22488       lt_prog_compiler_pic_GCJ='-fno-common'
22489       ;;
22490
22491     msdosdjgpp*)
22492       # Just because we use GCC doesn't mean we suddenly get shared libraries
22493       # on systems that don't support them.
22494       lt_prog_compiler_can_build_shared_GCJ=no
22495       enable_shared=no
22496       ;;
22497
22498     sysv4*MP*)
22499       if test -d /usr/nec; then
22500         lt_prog_compiler_pic_GCJ=-Kconform_pic
22501       fi
22502       ;;
22503
22504     hpux*)
22505       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22506       # not for PA HP-UX.
22507       case "$host_cpu" in
22508       hppa*64*|ia64*)
22509         # +Z the default
22510         ;;
22511       *)
22512         lt_prog_compiler_pic_GCJ='-fPIC'
22513         ;;
22514       esac
22515       ;;
22516
22517     *)
22518       lt_prog_compiler_pic_GCJ='-fPIC'
22519       ;;
22520     esac
22521   else
22522     # PORTME Check for flag to pass linker flags through the system compiler.
22523     case $host_os in
22524     aix*)
22525       lt_prog_compiler_wl_GCJ='-Wl,'
22526       if test "$host_cpu" = ia64; then
22527         # AIX 5 now supports IA64 processor
22528         lt_prog_compiler_static_GCJ='-Bstatic'
22529       else
22530         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22531       fi
22532       ;;
22533       darwin*)
22534         # PIC is the default on this platform
22535         # Common symbols not allowed in MH_DYLIB files
22536        case $cc_basename in
22537          xlc*)
22538          lt_prog_compiler_pic_GCJ='-qnocommon'
22539          lt_prog_compiler_wl_GCJ='-Wl,'
22540          ;;
22541        esac
22542        ;;
22543
22544     mingw* | pw32* | os2*)
22545       # This hack is so that the source file can tell whether it is being
22546       # built for inclusion in a dll (and should export symbols for example).
22547       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22548       ;;
22549
22550     hpux9* | hpux10* | hpux11*)
22551       lt_prog_compiler_wl_GCJ='-Wl,'
22552       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22553       # not for PA HP-UX.
22554       case "$host_cpu" in
22555       hppa*64*|ia64*)
22556         # +Z the default
22557         ;;
22558       *)
22559         lt_prog_compiler_pic_GCJ='+Z'
22560         ;;
22561       esac
22562       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22563       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22564       ;;
22565
22566     irix5* | irix6* | nonstopux*)
22567       lt_prog_compiler_wl_GCJ='-Wl,'
22568       # PIC (with -KPIC) is the default.
22569       lt_prog_compiler_static_GCJ='-non_shared'
22570       ;;
22571
22572     newsos6)
22573       lt_prog_compiler_pic_GCJ='-KPIC'
22574       lt_prog_compiler_static_GCJ='-Bstatic'
22575       ;;
22576
22577     linux*)
22578       case $cc_basename in
22579       icc* | ecc*)
22580         lt_prog_compiler_wl_GCJ='-Wl,'
22581         lt_prog_compiler_pic_GCJ='-KPIC'
22582         lt_prog_compiler_static_GCJ='-static'
22583         ;;
22584       pgcc* | pgf77* | pgf90*)
22585         # Portland Group compilers (*not* the Pentium gcc compiler,
22586         # which looks to be a dead project)
22587         lt_prog_compiler_wl_GCJ='-Wl,'
22588         lt_prog_compiler_pic_GCJ='-fpic'
22589         lt_prog_compiler_static_GCJ='-static'
22590         ;;
22591       ccc*)
22592         lt_prog_compiler_wl_GCJ='-Wl,'
22593         # All Alpha code is PIC.
22594         lt_prog_compiler_static_GCJ='-non_shared'
22595         ;;
22596       esac
22597       ;;
22598
22599     osf3* | osf4* | osf5*)
22600       lt_prog_compiler_wl_GCJ='-Wl,'
22601       # All OSF/1 code is PIC.
22602       lt_prog_compiler_static_GCJ='-non_shared'
22603       ;;
22604
22605     sco3.2v5*)
22606       lt_prog_compiler_pic_GCJ='-Kpic'
22607       lt_prog_compiler_static_GCJ='-dn'
22608       ;;
22609
22610     solaris*)
22611       lt_prog_compiler_pic_GCJ='-KPIC'
22612       lt_prog_compiler_static_GCJ='-Bstatic'
22613       case $cc_basename in
22614       f77* | f90* | f95*)
22615         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22616       *)
22617         lt_prog_compiler_wl_GCJ='-Wl,';;
22618       esac
22619       ;;
22620
22621     sunos4*)
22622       lt_prog_compiler_wl_GCJ='-Qoption ld '
22623       lt_prog_compiler_pic_GCJ='-PIC'
22624       lt_prog_compiler_static_GCJ='-Bstatic'
22625       ;;
22626
22627     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22628       lt_prog_compiler_wl_GCJ='-Wl,'
22629       lt_prog_compiler_pic_GCJ='-KPIC'
22630       lt_prog_compiler_static_GCJ='-Bstatic'
22631       ;;
22632
22633     sysv4*MP*)
22634       if test -d /usr/nec ;then
22635         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22636         lt_prog_compiler_static_GCJ='-Bstatic'
22637       fi
22638       ;;
22639
22640     unicos*)
22641       lt_prog_compiler_wl_GCJ='-Wl,'
22642       lt_prog_compiler_can_build_shared_GCJ=no
22643       ;;
22644
22645     uts4*)
22646       lt_prog_compiler_pic_GCJ='-pic'
22647       lt_prog_compiler_static_GCJ='-Bstatic'
22648       ;;
22649
22650     *)
22651       lt_prog_compiler_can_build_shared_GCJ=no
22652       ;;
22653     esac
22654   fi
22655
22656 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22657 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22658
22659 #
22660 # Check to make sure the PIC flag actually works.
22661 #
22662 if test -n "$lt_prog_compiler_pic_GCJ"; then
22663
22664 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22665 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22666 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22667   echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669   lt_prog_compiler_pic_works_GCJ=no
22670   ac_outfile=conftest.$ac_objext
22671    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22672    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22673    # Insert the option either (1) after the last *FLAGS variable, or
22674    # (2) before a word containing "conftest.", or (3) at the end.
22675    # Note that $ac_compile itself does not contain backslashes and begins
22676    # with a dollar sign (not a hyphen), so the echo should work correctly.
22677    # The option is referenced via a variable to avoid confusing sed.
22678    lt_compile=`echo "$ac_compile" | $SED \
22679    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22680    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22681    -e 's:$: $lt_compiler_flag:'`
22682    (eval echo "\"\$as_me:22682: $lt_compile\"" >&5)
22683    (eval "$lt_compile" 2>conftest.err)
22684    ac_status=$?
22685    cat conftest.err >&5
22686    echo "$as_me:22686: \$? = $ac_status" >&5
22687    if (exit $ac_status) && test -s "$ac_outfile"; then
22688      # The compiler can only warn and ignore the option if not recognized
22689      # So say no if there are warnings other than the usual output.
22690      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22691      $SED '/^$/d' conftest.err >conftest.er2
22692      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22693        lt_prog_compiler_pic_works_GCJ=yes
22694      fi
22695    fi
22696    $rm conftest*
22697
22698 fi
22699 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22700 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22701
22702 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22703     case $lt_prog_compiler_pic_GCJ in
22704      "" | " "*) ;;
22705      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22706      esac
22707 else
22708     lt_prog_compiler_pic_GCJ=
22709      lt_prog_compiler_can_build_shared_GCJ=no
22710 fi
22711
22712 fi
22713 case "$host_os" in
22714   # For platforms which do not support PIC, -DPIC is meaningless:
22715   *djgpp*)
22716     lt_prog_compiler_pic_GCJ=
22717     ;;
22718   *)
22719     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22720     ;;
22721 esac
22722
22723 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22724 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22725 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22726   echo $ECHO_N "(cached) $ECHO_C" >&6
22727 else
22728   lt_cv_prog_compiler_c_o_GCJ=no
22729    $rm -r conftest 2>/dev/null
22730    mkdir conftest
22731    cd conftest
22732    mkdir out
22733    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22734
22735    lt_compiler_flag="-o out/conftest2.$ac_objext"
22736    # Insert the option either (1) after the last *FLAGS variable, or
22737    # (2) before a word containing "conftest.", or (3) at the end.
22738    # Note that $ac_compile itself does not contain backslashes and begins
22739    # with a dollar sign (not a hyphen), so the echo should work correctly.
22740    lt_compile=`echo "$ac_compile" | $SED \
22741    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22742    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22743    -e 's:$: $lt_compiler_flag:'`
22744    (eval echo "\"\$as_me:22744: $lt_compile\"" >&5)
22745    (eval "$lt_compile" 2>out/conftest.err)
22746    ac_status=$?
22747    cat out/conftest.err >&5
22748    echo "$as_me:22748: \$? = $ac_status" >&5
22749    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22750    then
22751      # The compiler can only warn and ignore the option if not recognized
22752      # So say no if there are warnings
22753      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22754      $SED '/^$/d' out/conftest.err >out/conftest.er2
22755      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22756        lt_cv_prog_compiler_c_o_GCJ=yes
22757      fi
22758    fi
22759    chmod u+w .
22760    $rm conftest*
22761    # SGI C++ compiler will create directory out/ii_files/ for
22762    # template instantiation
22763    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22764    $rm out/* && rmdir out
22765    cd ..
22766    rmdir conftest
22767    $rm conftest*
22768
22769 fi
22770 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22771 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22772
22773
22774 hard_links="nottested"
22775 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22776   # do not overwrite the value of need_locks provided by the user
22777   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22778 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22779   hard_links=yes
22780   $rm conftest*
22781   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22782   touch conftest.a
22783   ln conftest.a conftest.b 2>&5 || hard_links=no
22784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22785   echo "$as_me:$LINENO: result: $hard_links" >&5
22786 echo "${ECHO_T}$hard_links" >&6
22787   if test "$hard_links" = no; then
22788     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22789 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22790     need_locks=warn
22791   fi
22792 else
22793   need_locks=no
22794 fi
22795
22796 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22797 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22798
22799   runpath_var=
22800   allow_undefined_flag_GCJ=
22801   enable_shared_with_static_runtimes_GCJ=no
22802   archive_cmds_GCJ=
22803   archive_expsym_cmds_GCJ=
22804   old_archive_From_new_cmds_GCJ=
22805   old_archive_from_expsyms_cmds_GCJ=
22806   export_dynamic_flag_spec_GCJ=
22807   whole_archive_flag_spec_GCJ=
22808   thread_safe_flag_spec_GCJ=
22809   hardcode_libdir_flag_spec_GCJ=
22810   hardcode_libdir_flag_spec_ld_GCJ=
22811   hardcode_libdir_separator_GCJ=
22812   hardcode_direct_GCJ=no
22813   hardcode_minus_L_GCJ=no
22814   hardcode_shlibpath_var_GCJ=unsupported
22815   link_all_deplibs_GCJ=unknown
22816   hardcode_automatic_GCJ=no
22817   module_cmds_GCJ=
22818   module_expsym_cmds_GCJ=
22819   always_export_symbols_GCJ=no
22820   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22821   # include_expsyms should be a list of space-separated symbols to be *always*
22822   # included in the symbol list
22823   include_expsyms_GCJ=
22824   # exclude_expsyms can be an extended regexp of symbols to exclude
22825   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22826   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22827   # as well as any symbol that contains `d'.
22828   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22829   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22830   # platforms (ab)use it in PIC code, but their linkers get confused if
22831   # the symbol is explicitly referenced.  Since portable code cannot
22832   # rely on this symbol name, it's probably fine to never include it in
22833   # preloaded symbol tables.
22834   extract_expsyms_cmds=
22835   # Just being paranoid about ensuring that cc_basename is set.
22836   for cc_temp in $compiler""; do
22837   case $cc_temp in
22838     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22839     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22840     \-*) ;;
22841     *) break;;
22842   esac
22843 done
22844 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22845
22846   case $host_os in
22847   cygwin* | mingw* | pw32*)
22848     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22849     # When not using gcc, we currently assume that we are using
22850     # Microsoft Visual C++.
22851     if test "$GCC" != yes; then
22852       with_gnu_ld=no
22853     fi
22854     ;;
22855   openbsd*)
22856     with_gnu_ld=no
22857     ;;
22858   esac
22859
22860   ld_shlibs_GCJ=yes
22861   if test "$with_gnu_ld" = yes; then
22862     # If archive_cmds runs LD, not CC, wlarc should be empty
22863     wlarc='${wl}'
22864
22865     # Set some defaults for GNU ld with shared library support. These
22866     # are reset later if shared libraries are not supported. Putting them
22867     # here allows them to be overridden if necessary.
22868     runpath_var=LD_RUN_PATH
22869     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22870     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22871     # ancient GNU ld didn't support --whole-archive et. al.
22872     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22873         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22874       else
22875         whole_archive_flag_spec_GCJ=
22876     fi
22877     supports_anon_versioning=no
22878     case `$LD -v 2>/dev/null` in
22879       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22880       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22881       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22882       *\ 2.11.*) ;; # other 2.11 versions
22883       *) supports_anon_versioning=yes ;;
22884     esac
22885
22886     # See if GNU ld supports shared libraries.
22887     case $host_os in
22888     aix3* | aix4* | aix5*)
22889       # On AIX/PPC, the GNU linker is very broken
22890       if test "$host_cpu" != ia64; then
22891         ld_shlibs_GCJ=no
22892         cat <<EOF 1>&2
22893
22894 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22895 *** to be unable to reliably create shared libraries on AIX.
22896 *** Therefore, libtool is disabling shared libraries support.  If you
22897 *** really care for shared libraries, you may want to modify your PATH
22898 *** so that a non-GNU linker is found, and then restart.
22899
22900 EOF
22901       fi
22902       ;;
22903
22904     amigaos*)
22905       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)'
22906       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22907       hardcode_minus_L_GCJ=yes
22908
22909       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22910       # that the semantics of dynamic libraries on AmigaOS, at least up
22911       # to version 4, is to share data among multiple programs linked
22912       # with the same dynamic library.  Since this doesn't match the
22913       # behavior of shared libraries on other platforms, we can't use
22914       # them.
22915       ld_shlibs_GCJ=no
22916       ;;
22917
22918     beos*)
22919       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22920         allow_undefined_flag_GCJ=unsupported
22921         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22922         # support --undefined.  This deserves some investigation.  FIXME
22923         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22924       else
22925         ld_shlibs_GCJ=no
22926       fi
22927       ;;
22928
22929     cygwin* | mingw* | pw32*)
22930       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22931       # as there is no search path for DLLs.
22932       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22933       allow_undefined_flag_GCJ=unsupported
22934       always_export_symbols_GCJ=no
22935       enable_shared_with_static_runtimes_GCJ=yes
22936       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22937
22938       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22939         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22940         # If the export-symbols file already is a .def file (1st line
22941         # is EXPORTS), use it as is; otherwise, prepend...
22942         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22943           cp $export_symbols $output_objdir/$soname.def;
22944         else
22945           echo EXPORTS > $output_objdir/$soname.def;
22946           cat $export_symbols >> $output_objdir/$soname.def;
22947         fi~
22948         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22949       else
22950         ld_shlibs_GCJ=no
22951       fi
22952       ;;
22953
22954     linux*)
22955       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22956         tmp_addflag=
22957         case $cc_basename,$host_cpu in
22958         pgcc*)                          # Portland Group C compiler
22959           whole_archive_flag_spec_GCJ=
22960           ;;
22961         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
22962           whole_archive_flag_spec_GCJ=
22963           tmp_addflag=' -fpic -Mnomain' ;;
22964         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22965           tmp_addflag=' -i_dynamic' ;;
22966         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22967           tmp_addflag=' -i_dynamic -nofor_main' ;;
22968         ifc* | ifort*)                  # Intel Fortran compiler
22969           tmp_addflag=' -nofor_main' ;;
22970         esac
22971         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22972
22973         if test $supports_anon_versioning = yes; then
22974           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22975   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22976   $echo "local: *; };" >> $output_objdir/$libname.ver~
22977           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22978         fi
22979       else
22980         ld_shlibs_GCJ=no
22981       fi
22982       ;;
22983
22984     netbsd*)
22985       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22986         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22987         wlarc=
22988       else
22989         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22990         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22991       fi
22992       ;;
22993
22994     solaris* | sysv5*)
22995       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22996         ld_shlibs_GCJ=no
22997         cat <<EOF 1>&2
22998
22999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23000 *** create shared libraries on Solaris systems.  Therefore, libtool
23001 *** is disabling shared libraries support.  We urge you to upgrade GNU
23002 *** binutils to release 2.9.1 or newer.  Another option is to modify
23003 *** your PATH or compiler configuration so that the native linker is
23004 *** used, and then restart.
23005
23006 EOF
23007       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23008         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23009         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23010       else
23011         ld_shlibs_GCJ=no
23012       fi
23013       ;;
23014
23015     sunos4*)
23016       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23017       wlarc=
23018       hardcode_direct_GCJ=yes
23019       hardcode_shlibpath_var_GCJ=no
23020       ;;
23021
23022     *)
23023       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23024         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23025         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23026       else
23027         ld_shlibs_GCJ=no
23028       fi
23029       ;;
23030     esac
23031
23032     if test "$ld_shlibs_GCJ" = no; then
23033       runpath_var=
23034       hardcode_libdir_flag_spec_GCJ=
23035       export_dynamic_flag_spec_GCJ=
23036       whole_archive_flag_spec_GCJ=
23037     fi
23038   else
23039     # PORTME fill in a description of your system's linker (not GNU ld)
23040     case $host_os in
23041     aix3*)
23042       allow_undefined_flag_GCJ=unsupported
23043       always_export_symbols_GCJ=yes
23044       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'
23045       # Note: this linker hardcodes the directories in LIBPATH if there
23046       # are no directories specified by -L.
23047       hardcode_minus_L_GCJ=yes
23048       if test "$GCC" = yes && test -z "$link_static_flag"; then
23049         # Neither direct hardcoding nor static linking is supported with a
23050         # broken collect2.
23051         hardcode_direct_GCJ=unsupported
23052       fi
23053       ;;
23054
23055     aix4* | aix5*)
23056       if test "$host_cpu" = ia64; then
23057         # On IA64, the linker does run time linking by default, so we don't
23058         # have to do anything special.
23059         aix_use_runtimelinking=no
23060         exp_sym_flag='-Bexport'
23061         no_entry_flag=""
23062       else
23063         # If we're using GNU nm, then we don't want the "-C" option.
23064         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23065         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23066           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'
23067         else
23068           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'
23069         fi
23070         aix_use_runtimelinking=no
23071
23072         # Test if we are trying to use run time linking or normal
23073         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23074         # need to do runtime linking.
23075         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23076           for ld_flag in $LDFLAGS; do
23077           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23078             aix_use_runtimelinking=yes
23079             break
23080           fi
23081           done
23082         esac
23083
23084         exp_sym_flag='-bexport'
23085         no_entry_flag='-bnoentry'
23086       fi
23087
23088       # When large executables or shared objects are built, AIX ld can
23089       # have problems creating the table of contents.  If linking a library
23090       # or program results in "error TOC overflow" add -mminimal-toc to
23091       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23092       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23093
23094       archive_cmds_GCJ=''
23095       hardcode_direct_GCJ=yes
23096       hardcode_libdir_separator_GCJ=':'
23097       link_all_deplibs_GCJ=yes
23098
23099       if test "$GCC" = yes; then
23100         case $host_os in aix4.[012]|aix4.[012].*)
23101         # We only want to do this on AIX 4.2 and lower, the check
23102         # below for broken collect2 doesn't work under 4.3+
23103           collect2name=`${CC} -print-prog-name=collect2`
23104           if test -f "$collect2name" && \
23105            strings "$collect2name" | grep resolve_lib_name >/dev/null
23106           then
23107           # We have reworked collect2
23108           hardcode_direct_GCJ=yes
23109           else
23110           # We have old collect2
23111           hardcode_direct_GCJ=unsupported
23112           # It fails to find uninstalled libraries when the uninstalled
23113           # path is not listed in the libpath.  Setting hardcode_minus_L
23114           # to unsupported forces relinking
23115           hardcode_minus_L_GCJ=yes
23116           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23117           hardcode_libdir_separator_GCJ=
23118           fi
23119         esac
23120         shared_flag='-shared'
23121         if test "$aix_use_runtimelinking" = yes; then
23122           shared_flag="$shared_flag "'${wl}-G'
23123         fi
23124       else
23125         # not using gcc
23126         if test "$host_cpu" = ia64; then
23127         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23128         # chokes on -Wl,-G. The following line is correct:
23129           shared_flag='-G'
23130         else
23131         if test "$aix_use_runtimelinking" = yes; then
23132             shared_flag='${wl}-G'
23133           else
23134             shared_flag='${wl}-bM:SRE'
23135         fi
23136         fi
23137       fi
23138
23139       # It seems that -bexpall does not export symbols beginning with
23140       # underscore (_), so it is better to generate a list of symbols to export.
23141       always_export_symbols_GCJ=yes
23142       if test "$aix_use_runtimelinking" = yes; then
23143         # Warning - without using the other runtime loading flags (-brtl),
23144         # -berok will link without error, but may produce a broken library.
23145         allow_undefined_flag_GCJ='-berok'
23146        # Determine the default libpath from the value encoded in an empty executable.
23147        cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153
23154 int
23155 main ()
23156 {
23157
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164   (eval $ac_link) 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } &&
23171          { ac_try='test -z "$ac_c_werror_flag"
23172                          || test ! -s conftest.err'
23173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174   (eval $ac_try) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); }; } &&
23178          { ac_try='test -s conftest$ac_exeext'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; }; then
23184
23185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23186 }'`
23187 # Check for a 64-bit object if we didn't find anything.
23188 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; }
23189 }'`; fi
23190 else
23191   echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194 fi
23195 rm -f conftest.err conftest.$ac_objext \
23196       conftest$ac_exeext conftest.$ac_ext
23197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23198
23199        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23200         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"
23201        else
23202         if test "$host_cpu" = ia64; then
23203           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23204           allow_undefined_flag_GCJ="-z nodefs"
23205           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"
23206         else
23207          # Determine the default libpath from the value encoded in an empty executable.
23208          cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214
23215 int
23216 main ()
23217 {
23218
23219   ;
23220   return 0;
23221 }
23222 _ACEOF
23223 rm -f conftest.$ac_objext conftest$ac_exeext
23224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23225   (eval $ac_link) 2>conftest.er1
23226   ac_status=$?
23227   grep -v '^ *+' conftest.er1 >conftest.err
23228   rm -f conftest.er1
23229   cat conftest.err >&5
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); } &&
23232          { ac_try='test -z "$ac_c_werror_flag"
23233                          || test ! -s conftest.err'
23234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235   (eval $ac_try) 2>&5
23236   ac_status=$?
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); }; } &&
23239          { ac_try='test -s conftest$ac_exeext'
23240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241   (eval $ac_try) 2>&5
23242   ac_status=$?
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); }; }; then
23245
23246 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23247 }'`
23248 # Check for a 64-bit object if we didn't find anything.
23249 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; }
23250 }'`; fi
23251 else
23252   echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255 fi
23256 rm -f conftest.err conftest.$ac_objext \
23257       conftest$ac_exeext conftest.$ac_ext
23258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23259
23260          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23261           # Warning - without using the other run time loading flags,
23262           # -berok will link without error, but may produce a broken library.
23263           no_undefined_flag_GCJ=' ${wl}-bernotok'
23264           allow_undefined_flag_GCJ=' ${wl}-berok'
23265           # -bexpall does not export symbols beginning with underscore (_)
23266           always_export_symbols_GCJ=yes
23267           # Exported symbols can be pulled into shared objects from archives
23268           whole_archive_flag_spec_GCJ=' '
23269           archive_cmds_need_lc_GCJ=yes
23270           # This is similar to how AIX traditionally builds it's shared libraries.
23271           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'
23272         fi
23273       fi
23274       ;;
23275
23276     amigaos*)
23277       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)'
23278       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23279       hardcode_minus_L_GCJ=yes
23280       # see comment about different semantics on the GNU ld section
23281       ld_shlibs_GCJ=no
23282       ;;
23283
23284     bsdi[45]*)
23285       export_dynamic_flag_spec_GCJ=-rdynamic
23286       ;;
23287
23288     cygwin* | mingw* | pw32*)
23289       # When not using gcc, we currently assume that we are using
23290       # Microsoft Visual C++.
23291       # hardcode_libdir_flag_spec is actually meaningless, as there is
23292       # no search path for DLLs.
23293       hardcode_libdir_flag_spec_GCJ=' '
23294       allow_undefined_flag_GCJ=unsupported
23295       # Tell ltmain to make .lib files, not .a files.
23296       libext=lib
23297       # Tell ltmain to make .dll files, not .so files.
23298       shrext_cmds=".dll"
23299       # FIXME: Setting linknames here is a bad hack.
23300       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23301       # The linker will automatically build a .lib file if we build a DLL.
23302       old_archive_From_new_cmds_GCJ='true'
23303       # FIXME: Should let the user specify the lib program.
23304       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23305       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23306       enable_shared_with_static_runtimes_GCJ=yes
23307       ;;
23308
23309     darwin* | rhapsody*)
23310       case "$host_os" in
23311         rhapsody* | darwin1.[012])
23312          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23313          ;;
23314        *) # Darwin 1.3 on
23315          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23316            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23317          else
23318            case ${MACOSX_DEPLOYMENT_TARGET} in
23319              10.[012])
23320                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23321                ;;
23322              10.*)
23323                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23324                ;;
23325            esac
23326          fi
23327          ;;
23328       esac
23329       archive_cmds_need_lc_GCJ=no
23330       hardcode_direct_GCJ=no
23331       hardcode_automatic_GCJ=yes
23332       hardcode_shlibpath_var_GCJ=unsupported
23333       whole_archive_flag_spec_GCJ=''
23334       link_all_deplibs_GCJ=yes
23335     if test "$GCC" = yes ; then
23336         output_verbose_link_cmd='echo'
23337         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23338       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23339       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23340       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23341       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}'
23342     else
23343       case $cc_basename in
23344         xlc*)
23345          output_verbose_link_cmd='echo'
23346          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23347          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23348           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23349          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23350           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}'
23351           ;;
23352        *)
23353          ld_shlibs_GCJ=no
23354           ;;
23355       esac
23356     fi
23357       ;;
23358
23359     dgux*)
23360       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23361       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23362       hardcode_shlibpath_var_GCJ=no
23363       ;;
23364
23365     freebsd1*)
23366       ld_shlibs_GCJ=no
23367       ;;
23368
23369     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23370     # support.  Future versions do this automatically, but an explicit c++rt0.o
23371     # does not break anything, and helps significantly (at the cost of a little
23372     # extra space).
23373     freebsd2.2*)
23374       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23375       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23376       hardcode_direct_GCJ=yes
23377       hardcode_shlibpath_var_GCJ=no
23378       ;;
23379
23380     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23381     freebsd2*)
23382       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23383       hardcode_direct_GCJ=yes
23384       hardcode_minus_L_GCJ=yes
23385       hardcode_shlibpath_var_GCJ=no
23386       ;;
23387
23388     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23389     freebsd* | kfreebsd*-gnu | dragonfly*)
23390       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23391       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23392       hardcode_direct_GCJ=yes
23393       hardcode_shlibpath_var_GCJ=no
23394       ;;
23395
23396     hpux9*)
23397       if test "$GCC" = yes; then
23398         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'
23399       else
23400         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'
23401       fi
23402       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23403       hardcode_libdir_separator_GCJ=:
23404       hardcode_direct_GCJ=yes
23405
23406       # hardcode_minus_L: Not really in the search PATH,
23407       # but as the default location of the library.
23408       hardcode_minus_L_GCJ=yes
23409       export_dynamic_flag_spec_GCJ='${wl}-E'
23410       ;;
23411
23412     hpux10* | hpux11*)
23413       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23414         case "$host_cpu" in
23415         hppa*64*|ia64*)
23416           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23417           ;;
23418         *)
23419           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23420           ;;
23421         esac
23422       else
23423         case "$host_cpu" in
23424         hppa*64*|ia64*)
23425           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23426           ;;
23427         *)
23428           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23429           ;;
23430         esac
23431       fi
23432       if test "$with_gnu_ld" = no; then
23433         case "$host_cpu" in
23434         hppa*64*)
23435           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23436           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23437           hardcode_libdir_separator_GCJ=:
23438           hardcode_direct_GCJ=no
23439           hardcode_shlibpath_var_GCJ=no
23440           ;;
23441         ia64*)
23442           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23443           hardcode_direct_GCJ=no
23444           hardcode_shlibpath_var_GCJ=no
23445
23446           # hardcode_minus_L: Not really in the search PATH,
23447           # but as the default location of the library.
23448           hardcode_minus_L_GCJ=yes
23449           ;;
23450         *)
23451           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23452           hardcode_libdir_separator_GCJ=:
23453           hardcode_direct_GCJ=yes
23454           export_dynamic_flag_spec_GCJ='${wl}-E'
23455
23456           # hardcode_minus_L: Not really in the search PATH,
23457           # but as the default location of the library.
23458           hardcode_minus_L_GCJ=yes
23459           ;;
23460         esac
23461       fi
23462       ;;
23463
23464     irix5* | irix6* | nonstopux*)
23465       if test "$GCC" = yes; then
23466         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'
23467       else
23468         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'
23469         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23470       fi
23471       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23472       hardcode_libdir_separator_GCJ=:
23473       link_all_deplibs_GCJ=yes
23474       ;;
23475
23476     netbsd*)
23477       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23478         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23479       else
23480         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23481       fi
23482       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23483       hardcode_direct_GCJ=yes
23484       hardcode_shlibpath_var_GCJ=no
23485       ;;
23486
23487     newsos6)
23488       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23489       hardcode_direct_GCJ=yes
23490       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23491       hardcode_libdir_separator_GCJ=:
23492       hardcode_shlibpath_var_GCJ=no
23493       ;;
23494
23495     openbsd*)
23496       hardcode_direct_GCJ=yes
23497       hardcode_shlibpath_var_GCJ=no
23498       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23499         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23500         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23501         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23502         export_dynamic_flag_spec_GCJ='${wl}-E'
23503       else
23504        case $host_os in
23505          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23506            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23507            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23508            ;;
23509          *)
23510            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23511            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23512            ;;
23513        esac
23514       fi
23515       ;;
23516
23517     os2*)
23518       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23519       hardcode_minus_L_GCJ=yes
23520       allow_undefined_flag_GCJ=unsupported
23521       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'
23522       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23523       ;;
23524
23525     osf3*)
23526       if test "$GCC" = yes; then
23527         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23528         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'
23529       else
23530         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23531         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'
23532       fi
23533       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23534       hardcode_libdir_separator_GCJ=:
23535       ;;
23536
23537     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23538       if test "$GCC" = yes; then
23539         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23540         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'
23541         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23542       else
23543         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23544         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'
23545         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~
23546         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
23547
23548         # Both c and cxx compiler support -rpath directly
23549         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23550       fi
23551       hardcode_libdir_separator_GCJ=:
23552       ;;
23553
23554     sco3.2v5*)
23555       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23556       hardcode_shlibpath_var_GCJ=no
23557       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23558       runpath_var=LD_RUN_PATH
23559       hardcode_runpath_var=yes
23560       ;;
23561
23562     solaris*)
23563       no_undefined_flag_GCJ=' -z text'
23564       if test "$GCC" = yes; then
23565         wlarc='${wl}'
23566         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23567         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23568           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23569       else
23570         wlarc=''
23571         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23572         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23573         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23574       fi
23575       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23576       hardcode_shlibpath_var_GCJ=no
23577       case $host_os in
23578       solaris2.[0-5] | solaris2.[0-5].*) ;;
23579       *)
23580         # The compiler driver will combine linker options so we
23581         # cannot just pass the convience library names through
23582         # without $wl, iff we do not link with $LD.
23583         # Luckily, gcc supports the same syntax we need for Sun Studio.
23584         # Supported since Solaris 2.6 (maybe 2.5.1?)
23585         case $wlarc in
23586         '')
23587           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23588         *)
23589           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
23590         esac ;;
23591       esac
23592       link_all_deplibs_GCJ=yes
23593       ;;
23594
23595     sunos4*)
23596       if test "x$host_vendor" = xsequent; then
23597         # Use $CC to link under sequent, because it throws in some extra .o
23598         # files that make .init and .fini sections work.
23599         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23600       else
23601         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23602       fi
23603       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23604       hardcode_direct_GCJ=yes
23605       hardcode_minus_L_GCJ=yes
23606       hardcode_shlibpath_var_GCJ=no
23607       ;;
23608
23609     sysv4)
23610       case $host_vendor in
23611         sni)
23612           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23613           hardcode_direct_GCJ=yes # is this really true???
23614         ;;
23615         siemens)
23616           ## LD is ld it makes a PLAMLIB
23617           ## CC just makes a GrossModule.
23618           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23619           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23620           hardcode_direct_GCJ=no
23621         ;;
23622         motorola)
23623           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23624           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23625         ;;
23626       esac
23627       runpath_var='LD_RUN_PATH'
23628       hardcode_shlibpath_var_GCJ=no
23629       ;;
23630
23631     sysv4.3*)
23632       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23633       hardcode_shlibpath_var_GCJ=no
23634       export_dynamic_flag_spec_GCJ='-Bexport'
23635       ;;
23636
23637     sysv4*MP*)
23638       if test -d /usr/nec; then
23639         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23640         hardcode_shlibpath_var_GCJ=no
23641         runpath_var=LD_RUN_PATH
23642         hardcode_runpath_var=yes
23643         ld_shlibs_GCJ=yes
23644       fi
23645       ;;
23646
23647     sysv4.2uw2*)
23648       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23649       hardcode_direct_GCJ=yes
23650       hardcode_minus_L_GCJ=no
23651       hardcode_shlibpath_var_GCJ=no
23652       hardcode_runpath_var=yes
23653       runpath_var=LD_RUN_PATH
23654       ;;
23655
23656    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23657       no_undefined_flag_GCJ='${wl}-z ${wl}text'
23658       if test "$GCC" = yes; then
23659         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23660       else
23661         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23662       fi
23663       runpath_var='LD_RUN_PATH'
23664       hardcode_shlibpath_var_GCJ=no
23665       ;;
23666
23667     sysv5*)
23668       no_undefined_flag_GCJ=' -z text'
23669       # $CC -shared without GNU ld will not create a library from C++
23670       # object files and a static libstdc++, better avoid it by now
23671       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23672       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23673                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23674       hardcode_libdir_flag_spec_GCJ=
23675       hardcode_shlibpath_var_GCJ=no
23676       runpath_var='LD_RUN_PATH'
23677       ;;
23678
23679     uts4*)
23680       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23681       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23682       hardcode_shlibpath_var_GCJ=no
23683       ;;
23684
23685     *)
23686       ld_shlibs_GCJ=no
23687       ;;
23688     esac
23689   fi
23690
23691 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23692 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23693 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23694
23695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23696 if test "$GCC" = yes; then
23697   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23698 fi
23699
23700 #
23701 # Do we need to explicitly link libc?
23702 #
23703 case "x$archive_cmds_need_lc_GCJ" in
23704 x|xyes)
23705   # Assume -lc should be added
23706   archive_cmds_need_lc_GCJ=yes
23707
23708   if test "$enable_shared" = yes && test "$GCC" = yes; then
23709     case $archive_cmds_GCJ in
23710     *'~'*)
23711       # FIXME: we may have to deal with multi-command sequences.
23712       ;;
23713     '$CC '*)
23714       # Test whether the compiler implicitly links with -lc since on some
23715       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23716       # to ld, don't add -lc before -lgcc.
23717       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23718 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23719       $rm conftest*
23720       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23721
23722       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23723   (eval $ac_compile) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } 2>conftest.err; then
23727         soname=conftest
23728         lib=conftest
23729         libobjs=conftest.$ac_objext
23730         deplibs=
23731         wl=$lt_prog_compiler_wl_GCJ
23732         compiler_flags=-v
23733         linker_flags=-v
23734         verstring=
23735         output_objdir=.
23736         libname=conftest
23737         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23738         allow_undefined_flag_GCJ=
23739         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23740   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }
23744         then
23745           archive_cmds_need_lc_GCJ=no
23746         else
23747           archive_cmds_need_lc_GCJ=yes
23748         fi
23749         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23750       else
23751         cat conftest.err 1>&5
23752       fi
23753       $rm conftest*
23754       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23755 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23756       ;;
23757     esac
23758   fi
23759   ;;
23760 esac
23761
23762 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23763 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23764 library_names_spec=
23765 libname_spec='lib$name'
23766 soname_spec=
23767 shrext_cmds=".so"
23768 postinstall_cmds=
23769 postuninstall_cmds=
23770 finish_cmds=
23771 finish_eval=
23772 shlibpath_var=
23773 shlibpath_overrides_runpath=unknown
23774 version_type=none
23775 dynamic_linker="$host_os ld.so"
23776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23777 if test "$GCC" = yes; then
23778   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23779   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23780     # if the path contains ";" then we assume it to be the separator
23781     # otherwise default to the standard path separator (i.e. ":") - it is
23782     # assumed that no part of a normal pathname contains ";" but that should
23783     # okay in the real world where ";" in dirpaths is itself problematic.
23784     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23785   else
23786     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23787   fi
23788 else
23789   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23790 fi
23791 need_lib_prefix=unknown
23792 hardcode_into_libs=no
23793
23794 # when you set need_version to no, make sure it does not cause -set_version
23795 # flags to be left without arguments
23796 need_version=unknown
23797
23798 case $host_os in
23799 aix3*)
23800   version_type=linux
23801   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23802   shlibpath_var=LIBPATH
23803
23804   # AIX 3 has no versioning support, so we append a major version to the name.
23805   soname_spec='${libname}${release}${shared_ext}$major'
23806   ;;
23807
23808 aix4* | aix5*)
23809   version_type=linux
23810   need_lib_prefix=no
23811   need_version=no
23812   hardcode_into_libs=yes
23813   if test "$host_cpu" = ia64; then
23814     # AIX 5 supports IA64
23815     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23816     shlibpath_var=LD_LIBRARY_PATH
23817   else
23818     # With GCC up to 2.95.x, collect2 would create an import file
23819     # for dependence libraries.  The import file would start with
23820     # the line `#! .'.  This would cause the generated library to
23821     # depend on `.', always an invalid library.  This was fixed in
23822     # development snapshots of GCC prior to 3.0.
23823     case $host_os in
23824       aix4 | aix4.[01] | aix4.[01].*)
23825       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23826            echo ' yes '
23827            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23828         :
23829       else
23830         can_build_shared=no
23831       fi
23832       ;;
23833     esac
23834     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23835     # soname into executable. Probably we can add versioning support to
23836     # collect2, so additional links can be useful in future.
23837     if test "$aix_use_runtimelinking" = yes; then
23838       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23839       # instead of lib<name>.a to let people know that these are not
23840       # typical AIX shared libraries.
23841       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23842     else
23843       # We preserve .a as extension for shared libraries through AIX4.2
23844       # and later when we are not doing run time linking.
23845       library_names_spec='${libname}${release}.a $libname.a'
23846       soname_spec='${libname}${release}${shared_ext}$major'
23847     fi
23848     shlibpath_var=LIBPATH
23849   fi
23850   ;;
23851
23852 amigaos*)
23853   library_names_spec='$libname.ixlibrary $libname.a'
23854   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23855   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'
23856   ;;
23857
23858 beos*)
23859   library_names_spec='${libname}${shared_ext}'
23860   dynamic_linker="$host_os ld.so"
23861   shlibpath_var=LIBRARY_PATH
23862   ;;
23863
23864 bsdi[45]*)
23865   version_type=linux
23866   need_version=no
23867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23868   soname_spec='${libname}${release}${shared_ext}$major'
23869   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23870   shlibpath_var=LD_LIBRARY_PATH
23871   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23872   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23873   # the default ld.so.conf also contains /usr/contrib/lib and
23874   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23875   # libtool to hard-code these into programs
23876   ;;
23877
23878 cygwin* | mingw* | pw32*)
23879   version_type=windows
23880   shrext_cmds=".dll"
23881   need_version=no
23882   need_lib_prefix=no
23883
23884   case $GCC,$host_os in
23885   yes,cygwin* | yes,mingw* | yes,pw32*)
23886     library_names_spec='$libname.dll.a'
23887     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23888     postinstall_cmds='base_file=`basename \${file}`~
23889       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23890       dldir=$destdir/`dirname \$dlpath`~
23891       test -d \$dldir || mkdir -p \$dldir~
23892       $install_prog $dir/$dlname \$dldir/$dlname'
23893     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23894       dlpath=$dir/\$dldll~
23895        $rm \$dlpath'
23896     shlibpath_overrides_runpath=yes
23897
23898     case $host_os in
23899     cygwin*)
23900       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23901       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23902       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23903       ;;
23904     mingw*)
23905       # MinGW DLLs use traditional 'lib' prefix
23906       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23907       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23908       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23909         # It is most probably a Windows format PATH printed by
23910         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23911         # path with ; separators, and with drive letters. We can handle the
23912         # drive letters (cygwin fileutils understands them), so leave them,
23913         # especially as we might pass files found there to a mingw objdump,
23914         # which wouldn't understand a cygwinified path. Ahh.
23915         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23916       else
23917         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23918       fi
23919       ;;
23920     pw32*)
23921       # pw32 DLLs use 'pw' prefix rather than 'lib'
23922       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23923       ;;
23924     esac
23925     ;;
23926
23927   *)
23928     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23929     ;;
23930   esac
23931   dynamic_linker='Win32 ld.exe'
23932   # FIXME: first we should search . and the directory the executable is in
23933   shlibpath_var=PATH
23934   ;;
23935
23936 darwin* | rhapsody*)
23937   dynamic_linker="$host_os dyld"
23938   version_type=darwin
23939   need_lib_prefix=no
23940   need_version=no
23941   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23942   soname_spec='${libname}${release}${major}$shared_ext'
23943   shlibpath_overrides_runpath=yes
23944   shlibpath_var=DYLD_LIBRARY_PATH
23945   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23946   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23947   if test "$GCC" = yes; then
23948     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"`
23949   else
23950     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23951   fi
23952   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23953   ;;
23954
23955 dgux*)
23956   version_type=linux
23957   need_lib_prefix=no
23958   need_version=no
23959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23960   soname_spec='${libname}${release}${shared_ext}$major'
23961   shlibpath_var=LD_LIBRARY_PATH
23962   ;;
23963
23964 freebsd1*)
23965   dynamic_linker=no
23966   ;;
23967
23968 kfreebsd*-gnu)
23969   version_type=linux
23970   need_lib_prefix=no
23971   need_version=no
23972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23973   soname_spec='${libname}${release}${shared_ext}$major'
23974   shlibpath_var=LD_LIBRARY_PATH
23975   shlibpath_overrides_runpath=no
23976   hardcode_into_libs=yes
23977   dynamic_linker='GNU ld.so'
23978   ;;
23979
23980 freebsd* | dragonfly*)
23981   # DragonFly does not have aout.  When/if they implement a new
23982   # versioning mechanism, adjust this.
23983   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23984   version_type=freebsd-$objformat
23985   case $version_type in
23986     freebsd-elf*)
23987       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23988       need_version=no
23989       need_lib_prefix=no
23990       ;;
23991     freebsd-*)
23992       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23993       need_version=yes
23994       ;;
23995   esac
23996   shlibpath_var=LD_LIBRARY_PATH
23997   case $host_os in
23998   freebsd2*)
23999     shlibpath_overrides_runpath=yes
24000     ;;
24001   freebsd3.[01]* | freebsdelf3.[01]*)
24002     shlibpath_overrides_runpath=yes
24003     hardcode_into_libs=yes
24004     ;;
24005   *) # from 3.2 on
24006     shlibpath_overrides_runpath=no
24007     hardcode_into_libs=yes
24008     ;;
24009   esac
24010   ;;
24011
24012 gnu*)
24013   version_type=linux
24014   need_lib_prefix=no
24015   need_version=no
24016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24017   soname_spec='${libname}${release}${shared_ext}$major'
24018   shlibpath_var=LD_LIBRARY_PATH
24019   hardcode_into_libs=yes
24020   ;;
24021
24022 hpux9* | hpux10* | hpux11*)
24023   # Give a soname corresponding to the major version so that dld.sl refuses to
24024   # link against other versions.
24025   version_type=sunos
24026   need_lib_prefix=no
24027   need_version=no
24028   case "$host_cpu" in
24029   ia64*)
24030     shrext_cmds='.so'
24031     hardcode_into_libs=yes
24032     dynamic_linker="$host_os dld.so"
24033     shlibpath_var=LD_LIBRARY_PATH
24034     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24036     soname_spec='${libname}${release}${shared_ext}$major'
24037     if test "X$HPUX_IA64_MODE" = X32; then
24038       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24039     else
24040       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24041     fi
24042     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24043     ;;
24044    hppa*64*)
24045      shrext_cmds='.sl'
24046      hardcode_into_libs=yes
24047      dynamic_linker="$host_os dld.sl"
24048      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24049      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24050      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24051      soname_spec='${libname}${release}${shared_ext}$major'
24052      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24053      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24054      ;;
24055    *)
24056     shrext_cmds='.sl'
24057     dynamic_linker="$host_os dld.sl"
24058     shlibpath_var=SHLIB_PATH
24059     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24061     soname_spec='${libname}${release}${shared_ext}$major'
24062     ;;
24063   esac
24064   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24065   postinstall_cmds='chmod 555 $lib'
24066   ;;
24067
24068 irix5* | irix6* | nonstopux*)
24069   case $host_os in
24070     nonstopux*) version_type=nonstopux ;;
24071     *)
24072         if test "$lt_cv_prog_gnu_ld" = yes; then
24073                 version_type=linux
24074         else
24075                 version_type=irix
24076         fi ;;
24077   esac
24078   need_lib_prefix=no
24079   need_version=no
24080   soname_spec='${libname}${release}${shared_ext}$major'
24081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24082   case $host_os in
24083   irix5* | nonstopux*)
24084     libsuff= shlibsuff=
24085     ;;
24086   *)
24087     case $LD in # libtool.m4 will add one of these switches to LD
24088     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24089       libsuff= shlibsuff= libmagic=32-bit;;
24090     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24091       libsuff=32 shlibsuff=N32 libmagic=N32;;
24092     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24093       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24094     *) libsuff= shlibsuff= libmagic=never-match;;
24095     esac
24096     ;;
24097   esac
24098   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24099   shlibpath_overrides_runpath=no
24100   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24101   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24102   hardcode_into_libs=yes
24103   ;;
24104
24105 # No shared lib support for Linux oldld, aout, or coff.
24106 linux*oldld* | linux*aout* | linux*coff*)
24107   dynamic_linker=no
24108   ;;
24109
24110 # This must be Linux ELF.
24111 linux*)
24112   version_type=linux
24113   need_lib_prefix=no
24114   need_version=no
24115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24116   soname_spec='${libname}${release}${shared_ext}$major'
24117   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24118   shlibpath_var=LD_LIBRARY_PATH
24119   shlibpath_overrides_runpath=no
24120   # This implies no fast_install, which is unacceptable.
24121   # Some rework will be needed to allow for fast_install
24122   # before this can be enabled.
24123   hardcode_into_libs=yes
24124
24125   # find out which ABI we are using
24126   libsuff=
24127   case "$host_cpu" in
24128   x86_64*|s390x*|powerpc64*)
24129     echo '#line 24129 "configure"' > conftest.$ac_ext
24130     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24131   (eval $ac_compile) 2>&5
24132   ac_status=$?
24133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134   (exit $ac_status); }; then
24135       case `/usr/bin/file conftest.$ac_objext` in
24136       *64-bit*)
24137         libsuff=64
24138         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24139         ;;
24140       esac
24141     fi
24142     rm -rf conftest*
24143     ;;
24144   esac
24145
24146   # Append ld.so.conf contents to the search path
24147   if test -f /etc/ld.so.conf; then
24148     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24149     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24150   fi
24151
24152   # We used to test for /lib/ld.so.1 and disable shared libraries on
24153   # powerpc, because MkLinux only supported shared libraries with the
24154   # GNU dynamic linker.  Since this was broken with cross compilers,
24155   # most powerpc-linux boxes support dynamic linking these days and
24156   # people can always --disable-shared, the test was removed, and we
24157   # assume the GNU/Linux dynamic linker is in use.
24158   dynamic_linker='GNU/Linux ld.so'
24159   ;;
24160
24161 knetbsd*-gnu)
24162   version_type=linux
24163   need_lib_prefix=no
24164   need_version=no
24165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24166   soname_spec='${libname}${release}${shared_ext}$major'
24167   shlibpath_var=LD_LIBRARY_PATH
24168   shlibpath_overrides_runpath=no
24169   hardcode_into_libs=yes
24170   dynamic_linker='GNU ld.so'
24171   ;;
24172
24173 netbsd*)
24174   version_type=sunos
24175   need_lib_prefix=no
24176   need_version=no
24177   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24179     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24180     dynamic_linker='NetBSD (a.out) ld.so'
24181   else
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     dynamic_linker='NetBSD ld.elf_so'
24185   fi
24186   shlibpath_var=LD_LIBRARY_PATH
24187   shlibpath_overrides_runpath=yes
24188   hardcode_into_libs=yes
24189   ;;
24190
24191 newsos6)
24192   version_type=linux
24193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24194   shlibpath_var=LD_LIBRARY_PATH
24195   shlibpath_overrides_runpath=yes
24196   ;;
24197
24198 nto-qnx*)
24199   version_type=linux
24200   need_lib_prefix=no
24201   need_version=no
24202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24203   soname_spec='${libname}${release}${shared_ext}$major'
24204   shlibpath_var=LD_LIBRARY_PATH
24205   shlibpath_overrides_runpath=yes
24206   ;;
24207
24208 openbsd*)
24209   version_type=sunos
24210   need_lib_prefix=no
24211   need_version=no
24212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24213   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24214   shlibpath_var=LD_LIBRARY_PATH
24215   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24216     case $host_os in
24217       openbsd2.[89] | openbsd2.[89].*)
24218         shlibpath_overrides_runpath=no
24219         ;;
24220       *)
24221         shlibpath_overrides_runpath=yes
24222         ;;
24223       esac
24224   else
24225     shlibpath_overrides_runpath=yes
24226   fi
24227   ;;
24228
24229 os2*)
24230   libname_spec='$name'
24231   shrext_cmds=".dll"
24232   need_lib_prefix=no
24233   library_names_spec='$libname${shared_ext} $libname.a'
24234   dynamic_linker='OS/2 ld.exe'
24235   shlibpath_var=LIBPATH
24236   ;;
24237
24238 osf3* | osf4* | osf5*)
24239   version_type=osf
24240   need_lib_prefix=no
24241   need_version=no
24242   soname_spec='${libname}${release}${shared_ext}$major'
24243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24244   shlibpath_var=LD_LIBRARY_PATH
24245   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24246   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24247   ;;
24248
24249 sco3.2v5*)
24250   version_type=osf
24251   soname_spec='${libname}${release}${shared_ext}$major'
24252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24253   shlibpath_var=LD_LIBRARY_PATH
24254   ;;
24255
24256 solaris*)
24257   version_type=linux
24258   need_lib_prefix=no
24259   need_version=no
24260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24261   soname_spec='${libname}${release}${shared_ext}$major'
24262   shlibpath_var=LD_LIBRARY_PATH
24263   shlibpath_overrides_runpath=yes
24264   hardcode_into_libs=yes
24265   # ldd complains unless libraries are executable
24266   postinstall_cmds='chmod +x $lib'
24267   ;;
24268
24269 sunos4*)
24270   version_type=sunos
24271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24272   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24273   shlibpath_var=LD_LIBRARY_PATH
24274   shlibpath_overrides_runpath=yes
24275   if test "$with_gnu_ld" = yes; then
24276     need_lib_prefix=no
24277   fi
24278   need_version=yes
24279   ;;
24280
24281 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24282   version_type=linux
24283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24284   soname_spec='${libname}${release}${shared_ext}$major'
24285   shlibpath_var=LD_LIBRARY_PATH
24286   case $host_vendor in
24287     sni)
24288       shlibpath_overrides_runpath=no
24289       need_lib_prefix=no
24290       export_dynamic_flag_spec='${wl}-Blargedynsym'
24291       runpath_var=LD_RUN_PATH
24292       ;;
24293     siemens)
24294       need_lib_prefix=no
24295       ;;
24296     motorola)
24297       need_lib_prefix=no
24298       need_version=no
24299       shlibpath_overrides_runpath=no
24300       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24301       ;;
24302   esac
24303   ;;
24304
24305 sysv4*MP*)
24306   if test -d /usr/nec ;then
24307     version_type=linux
24308     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24309     soname_spec='$libname${shared_ext}.$major'
24310     shlibpath_var=LD_LIBRARY_PATH
24311   fi
24312   ;;
24313
24314 uts4*)
24315   version_type=linux
24316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24317   soname_spec='${libname}${release}${shared_ext}$major'
24318   shlibpath_var=LD_LIBRARY_PATH
24319   ;;
24320
24321 *)
24322   dynamic_linker=no
24323   ;;
24324 esac
24325 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24326 echo "${ECHO_T}$dynamic_linker" >&6
24327 test "$dynamic_linker" = no && can_build_shared=no
24328
24329 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24330 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24331 hardcode_action_GCJ=
24332 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24333    test -n "$runpath_var_GCJ" || \
24334    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24335
24336   # We can hardcode non-existant directories.
24337   if test "$hardcode_direct_GCJ" != no &&
24338      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24339      # have to relink, otherwise we might link with an installed library
24340      # when we should be linking with a yet-to-be-installed one
24341      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24342      test "$hardcode_minus_L_GCJ" != no; then
24343     # Linking always hardcodes the temporary library directory.
24344     hardcode_action_GCJ=relink
24345   else
24346     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24347     hardcode_action_GCJ=immediate
24348   fi
24349 else
24350   # We cannot hardcode anything, or else we can only hardcode existing
24351   # directories.
24352   hardcode_action_GCJ=unsupported
24353 fi
24354 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24355 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24356
24357 if test "$hardcode_action_GCJ" = relink; then
24358   # Fast installation is not supported
24359   enable_fast_install=no
24360 elif test "$shlibpath_overrides_runpath" = yes ||
24361      test "$enable_shared" = no; then
24362   # Fast installation is not necessary
24363   enable_fast_install=needless
24364 fi
24365
24366 striplib=
24367 old_striplib=
24368 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24369 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24370 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24371   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24372   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24373   echo "$as_me:$LINENO: result: yes" >&5
24374 echo "${ECHO_T}yes" >&6
24375 else
24376 # FIXME - insert some real tests, host_os isn't really good enough
24377   case $host_os in
24378    darwin*)
24379        if test -n "$STRIP" ; then
24380          striplib="$STRIP -x"
24381          echo "$as_me:$LINENO: result: yes" >&5
24382 echo "${ECHO_T}yes" >&6
24383        else
24384   echo "$as_me:$LINENO: result: no" >&5
24385 echo "${ECHO_T}no" >&6
24386 fi
24387        ;;
24388    *)
24389   echo "$as_me:$LINENO: result: no" >&5
24390 echo "${ECHO_T}no" >&6
24391     ;;
24392   esac
24393 fi
24394
24395 if test "x$enable_dlopen" != xyes; then
24396   enable_dlopen=unknown
24397   enable_dlopen_self=unknown
24398   enable_dlopen_self_static=unknown
24399 else
24400   lt_cv_dlopen=no
24401   lt_cv_dlopen_libs=
24402
24403   case $host_os in
24404   beos*)
24405     lt_cv_dlopen="load_add_on"
24406     lt_cv_dlopen_libs=
24407     lt_cv_dlopen_self=yes
24408     ;;
24409
24410   mingw* | pw32*)
24411     lt_cv_dlopen="LoadLibrary"
24412     lt_cv_dlopen_libs=
24413    ;;
24414
24415   cygwin*)
24416     lt_cv_dlopen="dlopen"
24417     lt_cv_dlopen_libs=
24418    ;;
24419
24420   darwin*)
24421   # if libdl is installed we need to link against it
24422     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24423 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24424 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24425   echo $ECHO_N "(cached) $ECHO_C" >&6
24426 else
24427   ac_check_lib_save_LIBS=$LIBS
24428 LIBS="-ldl  $LIBS"
24429 cat >conftest.$ac_ext <<_ACEOF
24430 /* confdefs.h.  */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h.  */
24435
24436 /* Override any gcc2 internal prototype to avoid an error.  */
24437 #ifdef __cplusplus
24438 extern "C"
24439 #endif
24440 /* We use char because int might match the return type of a gcc2
24441    builtin and then its argument prototype would still apply.  */
24442 char dlopen ();
24443 int
24444 main ()
24445 {
24446 dlopen ();
24447   ;
24448   return 0;
24449 }
24450 _ACEOF
24451 rm -f conftest.$ac_objext conftest$ac_exeext
24452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24453   (eval $ac_link) 2>conftest.er1
24454   ac_status=$?
24455   grep -v '^ *+' conftest.er1 >conftest.err
24456   rm -f conftest.er1
24457   cat conftest.err >&5
24458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459   (exit $ac_status); } &&
24460          { ac_try='test -z "$ac_c_werror_flag"
24461                          || test ! -s conftest.err'
24462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463   (eval $ac_try) 2>&5
24464   ac_status=$?
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); }; } &&
24467          { ac_try='test -s conftest$ac_exeext'
24468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469   (eval $ac_try) 2>&5
24470   ac_status=$?
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); }; }; then
24473   ac_cv_lib_dl_dlopen=yes
24474 else
24475   echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24477
24478 ac_cv_lib_dl_dlopen=no
24479 fi
24480 rm -f conftest.err conftest.$ac_objext \
24481       conftest$ac_exeext conftest.$ac_ext
24482 LIBS=$ac_check_lib_save_LIBS
24483 fi
24484 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24485 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24486 if test $ac_cv_lib_dl_dlopen = yes; then
24487   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24488 else
24489
24490     lt_cv_dlopen="dyld"
24491     lt_cv_dlopen_libs=
24492     lt_cv_dlopen_self=yes
24493
24494 fi
24495
24496    ;;
24497
24498   *)
24499     echo "$as_me:$LINENO: checking for shl_load" >&5
24500 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24501 if test "${ac_cv_func_shl_load+set}" = set; then
24502   echo $ECHO_N "(cached) $ECHO_C" >&6
24503 else
24504   cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h.  */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h.  */
24510 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
24511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24512 #define shl_load innocuous_shl_load
24513
24514 /* System header to define __stub macros and hopefully few prototypes,
24515     which can conflict with char shl_load (); below.
24516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24517     <limits.h> exists even on freestanding compilers.  */
24518
24519 #ifdef __STDC__
24520 # include <limits.h>
24521 #else
24522 # include <assert.h>
24523 #endif
24524
24525 #undef shl_load
24526
24527 /* Override any gcc2 internal prototype to avoid an error.  */
24528 #ifdef __cplusplus
24529 extern "C"
24530 {
24531 #endif
24532 /* We use char because int might match the return type of a gcc2
24533    builtin and then its argument prototype would still apply.  */
24534 char shl_load ();
24535 /* The GNU C library defines this for functions which it implements
24536     to always fail with ENOSYS.  Some functions are actually named
24537     something starting with __ and the normal name is an alias.  */
24538 #if defined (__stub_shl_load) || defined (__stub___shl_load)
24539 choke me
24540 #else
24541 char (*f) () = shl_load;
24542 #endif
24543 #ifdef __cplusplus
24544 }
24545 #endif
24546
24547 int
24548 main ()
24549 {
24550 return f != shl_load;
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557   (eval $ac_link) 2>conftest.er1
24558   ac_status=$?
24559   grep -v '^ *+' conftest.er1 >conftest.err
24560   rm -f conftest.er1
24561   cat conftest.err >&5
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); } &&
24564          { ac_try='test -z "$ac_c_werror_flag"
24565                          || test ! -s conftest.err'
24566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567   (eval $ac_try) 2>&5
24568   ac_status=$?
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); }; } &&
24571          { ac_try='test -s conftest$ac_exeext'
24572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573   (eval $ac_try) 2>&5
24574   ac_status=$?
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); }; }; then
24577   ac_cv_func_shl_load=yes
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 ac_cv_func_shl_load=no
24583 fi
24584 rm -f conftest.err conftest.$ac_objext \
24585       conftest$ac_exeext conftest.$ac_ext
24586 fi
24587 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24588 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24589 if test $ac_cv_func_shl_load = yes; then
24590   lt_cv_dlopen="shl_load"
24591 else
24592   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24593 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24594 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24595   echo $ECHO_N "(cached) $ECHO_C" >&6
24596 else
24597   ac_check_lib_save_LIBS=$LIBS
24598 LIBS="-ldld  $LIBS"
24599 cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h.  */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h.  */
24605
24606 /* Override any gcc2 internal prototype to avoid an error.  */
24607 #ifdef __cplusplus
24608 extern "C"
24609 #endif
24610 /* We use char because int might match the return type of a gcc2
24611    builtin and then its argument prototype would still apply.  */
24612 char shl_load ();
24613 int
24614 main ()
24615 {
24616 shl_load ();
24617   ;
24618   return 0;
24619 }
24620 _ACEOF
24621 rm -f conftest.$ac_objext conftest$ac_exeext
24622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24623   (eval $ac_link) 2>conftest.er1
24624   ac_status=$?
24625   grep -v '^ *+' conftest.er1 >conftest.err
24626   rm -f conftest.er1
24627   cat conftest.err >&5
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); } &&
24630          { ac_try='test -z "$ac_c_werror_flag"
24631                          || test ! -s conftest.err'
24632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24633   (eval $ac_try) 2>&5
24634   ac_status=$?
24635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); }; } &&
24637          { ac_try='test -s conftest$ac_exeext'
24638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); }; }; then
24643   ac_cv_lib_dld_shl_load=yes
24644 else
24645   echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24647
24648 ac_cv_lib_dld_shl_load=no
24649 fi
24650 rm -f conftest.err conftest.$ac_objext \
24651       conftest$ac_exeext conftest.$ac_ext
24652 LIBS=$ac_check_lib_save_LIBS
24653 fi
24654 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24655 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24656 if test $ac_cv_lib_dld_shl_load = yes; then
24657   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24658 else
24659   echo "$as_me:$LINENO: checking for dlopen" >&5
24660 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24661 if test "${ac_cv_func_dlopen+set}" = set; then
24662   echo $ECHO_N "(cached) $ECHO_C" >&6
24663 else
24664   cat >conftest.$ac_ext <<_ACEOF
24665 /* confdefs.h.  */
24666 _ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h.  */
24670 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24672 #define dlopen innocuous_dlopen
24673
24674 /* System header to define __stub macros and hopefully few prototypes,
24675     which can conflict with char dlopen (); below.
24676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24677     <limits.h> exists even on freestanding compilers.  */
24678
24679 #ifdef __STDC__
24680 # include <limits.h>
24681 #else
24682 # include <assert.h>
24683 #endif
24684
24685 #undef dlopen
24686
24687 /* Override any gcc2 internal prototype to avoid an error.  */
24688 #ifdef __cplusplus
24689 extern "C"
24690 {
24691 #endif
24692 /* We use char because int might match the return type of a gcc2
24693    builtin and then its argument prototype would still apply.  */
24694 char dlopen ();
24695 /* The GNU C library defines this for functions which it implements
24696     to always fail with ENOSYS.  Some functions are actually named
24697     something starting with __ and the normal name is an alias.  */
24698 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24699 choke me
24700 #else
24701 char (*f) () = dlopen;
24702 #endif
24703 #ifdef __cplusplus
24704 }
24705 #endif
24706
24707 int
24708 main ()
24709 {
24710 return f != dlopen;
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24717   (eval $ac_link) 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } &&
24724          { ac_try='test -z "$ac_c_werror_flag"
24725                          || test ! -s conftest.err'
24726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727   (eval $ac_try) 2>&5
24728   ac_status=$?
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); }; } &&
24731          { ac_try='test -s conftest$ac_exeext'
24732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733   (eval $ac_try) 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; }; then
24737   ac_cv_func_dlopen=yes
24738 else
24739   echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24741
24742 ac_cv_func_dlopen=no
24743 fi
24744 rm -f conftest.err conftest.$ac_objext \
24745       conftest$ac_exeext conftest.$ac_ext
24746 fi
24747 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24748 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24749 if test $ac_cv_func_dlopen = yes; then
24750   lt_cv_dlopen="dlopen"
24751 else
24752   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24753 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24755   echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757   ac_check_lib_save_LIBS=$LIBS
24758 LIBS="-ldl  $LIBS"
24759 cat >conftest.$ac_ext <<_ACEOF
24760 /* confdefs.h.  */
24761 _ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h.  */
24765
24766 /* Override any gcc2 internal prototype to avoid an error.  */
24767 #ifdef __cplusplus
24768 extern "C"
24769 #endif
24770 /* We use char because int might match the return type of a gcc2
24771    builtin and then its argument prototype would still apply.  */
24772 char dlopen ();
24773 int
24774 main ()
24775 {
24776 dlopen ();
24777   ;
24778   return 0;
24779 }
24780 _ACEOF
24781 rm -f conftest.$ac_objext conftest$ac_exeext
24782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24783   (eval $ac_link) 2>conftest.er1
24784   ac_status=$?
24785   grep -v '^ *+' conftest.er1 >conftest.err
24786   rm -f conftest.er1
24787   cat conftest.err >&5
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } &&
24790          { ac_try='test -z "$ac_c_werror_flag"
24791                          || test ! -s conftest.err'
24792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24793   (eval $ac_try) 2>&5
24794   ac_status=$?
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); }; } &&
24797          { ac_try='test -s conftest$ac_exeext'
24798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); }; }; then
24803   ac_cv_lib_dl_dlopen=yes
24804 else
24805   echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24807
24808 ac_cv_lib_dl_dlopen=no
24809 fi
24810 rm -f conftest.err conftest.$ac_objext \
24811       conftest$ac_exeext conftest.$ac_ext
24812 LIBS=$ac_check_lib_save_LIBS
24813 fi
24814 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24816 if test $ac_cv_lib_dl_dlopen = yes; then
24817   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24818 else
24819   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24820 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24822   echo $ECHO_N "(cached) $ECHO_C" >&6
24823 else
24824   ac_check_lib_save_LIBS=$LIBS
24825 LIBS="-lsvld  $LIBS"
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h.  */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h.  */
24832
24833 /* Override any gcc2 internal prototype to avoid an error.  */
24834 #ifdef __cplusplus
24835 extern "C"
24836 #endif
24837 /* We use char because int might match the return type of a gcc2
24838    builtin and then its argument prototype would still apply.  */
24839 char dlopen ();
24840 int
24841 main ()
24842 {
24843 dlopen ();
24844   ;
24845   return 0;
24846 }
24847 _ACEOF
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24850   (eval $ac_link) 2>conftest.er1
24851   ac_status=$?
24852   grep -v '^ *+' conftest.er1 >conftest.err
24853   rm -f conftest.er1
24854   cat conftest.err >&5
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); } &&
24857          { ac_try='test -z "$ac_c_werror_flag"
24858                          || test ! -s conftest.err'
24859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24860   (eval $ac_try) 2>&5
24861   ac_status=$?
24862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863   (exit $ac_status); }; } &&
24864          { ac_try='test -s conftest$ac_exeext'
24865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866   (eval $ac_try) 2>&5
24867   ac_status=$?
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); }; }; then
24870   ac_cv_lib_svld_dlopen=yes
24871 else
24872   echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24874
24875 ac_cv_lib_svld_dlopen=no
24876 fi
24877 rm -f conftest.err conftest.$ac_objext \
24878       conftest$ac_exeext conftest.$ac_ext
24879 LIBS=$ac_check_lib_save_LIBS
24880 fi
24881 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24882 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24883 if test $ac_cv_lib_svld_dlopen = yes; then
24884   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24885 else
24886   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24887 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24889   echo $ECHO_N "(cached) $ECHO_C" >&6
24890 else
24891   ac_check_lib_save_LIBS=$LIBS
24892 LIBS="-ldld  $LIBS"
24893 cat >conftest.$ac_ext <<_ACEOF
24894 /* confdefs.h.  */
24895 _ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h.  */
24899
24900 /* Override any gcc2 internal prototype to avoid an error.  */
24901 #ifdef __cplusplus
24902 extern "C"
24903 #endif
24904 /* We use char because int might match the return type of a gcc2
24905    builtin and then its argument prototype would still apply.  */
24906 char dld_link ();
24907 int
24908 main ()
24909 {
24910 dld_link ();
24911   ;
24912   return 0;
24913 }
24914 _ACEOF
24915 rm -f conftest.$ac_objext conftest$ac_exeext
24916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24917   (eval $ac_link) 2>conftest.er1
24918   ac_status=$?
24919   grep -v '^ *+' conftest.er1 >conftest.err
24920   rm -f conftest.er1
24921   cat conftest.err >&5
24922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923   (exit $ac_status); } &&
24924          { ac_try='test -z "$ac_c_werror_flag"
24925                          || test ! -s conftest.err'
24926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24927   (eval $ac_try) 2>&5
24928   ac_status=$?
24929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930   (exit $ac_status); }; } &&
24931          { ac_try='test -s conftest$ac_exeext'
24932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933   (eval $ac_try) 2>&5
24934   ac_status=$?
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); }; }; then
24937   ac_cv_lib_dld_dld_link=yes
24938 else
24939   echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24941
24942 ac_cv_lib_dld_dld_link=no
24943 fi
24944 rm -f conftest.err conftest.$ac_objext \
24945       conftest$ac_exeext conftest.$ac_ext
24946 LIBS=$ac_check_lib_save_LIBS
24947 fi
24948 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24949 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24950 if test $ac_cv_lib_dld_dld_link = yes; then
24951   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24952 fi
24953
24954
24955 fi
24956
24957
24958 fi
24959
24960
24961 fi
24962
24963
24964 fi
24965
24966
24967 fi
24968
24969     ;;
24970   esac
24971
24972   if test "x$lt_cv_dlopen" != xno; then
24973     enable_dlopen=yes
24974   else
24975     enable_dlopen=no
24976   fi
24977
24978   case $lt_cv_dlopen in
24979   dlopen)
24980     save_CPPFLAGS="$CPPFLAGS"
24981     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24982
24983     save_LDFLAGS="$LDFLAGS"
24984     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24985
24986     save_LIBS="$LIBS"
24987     LIBS="$lt_cv_dlopen_libs $LIBS"
24988
24989     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24990 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24991 if test "${lt_cv_dlopen_self+set}" = set; then
24992   echo $ECHO_N "(cached) $ECHO_C" >&6
24993 else
24994           if test "$cross_compiling" = yes; then :
24995   lt_cv_dlopen_self=cross
24996 else
24997   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24998   lt_status=$lt_dlunknown
24999   cat > conftest.$ac_ext <<EOF
25000 #line 25000 "configure"
25001 #include "confdefs.h"
25002
25003 #if HAVE_DLFCN_H
25004 #include <dlfcn.h>
25005 #endif
25006
25007 #include <stdio.h>
25008
25009 #ifdef RTLD_GLOBAL
25010 #  define LT_DLGLOBAL           RTLD_GLOBAL
25011 #else
25012 #  ifdef DL_GLOBAL
25013 #    define LT_DLGLOBAL         DL_GLOBAL
25014 #  else
25015 #    define LT_DLGLOBAL         0
25016 #  endif
25017 #endif
25018
25019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25020    find out it does not work in some platform. */
25021 #ifndef LT_DLLAZY_OR_NOW
25022 #  ifdef RTLD_LAZY
25023 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
25024 #  else
25025 #    ifdef DL_LAZY
25026 #      define LT_DLLAZY_OR_NOW          DL_LAZY
25027 #    else
25028 #      ifdef RTLD_NOW
25029 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
25030 #      else
25031 #        ifdef DL_NOW
25032 #          define LT_DLLAZY_OR_NOW      DL_NOW
25033 #        else
25034 #          define LT_DLLAZY_OR_NOW      0
25035 #        endif
25036 #      endif
25037 #    endif
25038 #  endif
25039 #endif
25040
25041 #ifdef __cplusplus
25042 extern "C" void exit (int);
25043 #endif
25044
25045 void fnord() { int i=42;}
25046 int main ()
25047 {
25048   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25049   int status = $lt_dlunknown;
25050
25051   if (self)
25052     {
25053       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
25054       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25055       /* dlclose (self); */
25056     }
25057
25058     exit (status);
25059 }
25060 EOF
25061   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25062   (eval $ac_link) 2>&5
25063   ac_status=$?
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25066     (./conftest; exit; ) 2>/dev/null
25067     lt_status=$?
25068     case x$lt_status in
25069       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
25070       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
25071       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
25072     esac
25073   else :
25074     # compilation failed
25075     lt_cv_dlopen_self=no
25076   fi
25077 fi
25078 rm -fr conftest*
25079
25080
25081 fi
25082 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
25083 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
25084
25085     if test "x$lt_cv_dlopen_self" = xyes; then
25086       LDFLAGS="$LDFLAGS $link_static_flag"
25087       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
25088 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
25089 if test "${lt_cv_dlopen_self_static+set}" = set; then
25090   echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092           if test "$cross_compiling" = yes; then :
25093   lt_cv_dlopen_self_static=cross
25094 else
25095   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25096   lt_status=$lt_dlunknown
25097   cat > conftest.$ac_ext <<EOF
25098 #line 25098 "configure"
25099 #include "confdefs.h"
25100
25101 #if HAVE_DLFCN_H
25102 #include <dlfcn.h>
25103 #endif
25104
25105 #include <stdio.h>
25106
25107 #ifdef RTLD_GLOBAL
25108 #  define LT_DLGLOBAL           RTLD_GLOBAL
25109 #else
25110 #  ifdef DL_GLOBAL
25111 #    define LT_DLGLOBAL         DL_GLOBAL
25112 #  else
25113 #    define LT_DLGLOBAL         0
25114 #  endif
25115 #endif
25116
25117 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25118    find out it does not work in some platform. */
25119 #ifndef LT_DLLAZY_OR_NOW
25120 #  ifdef RTLD_LAZY
25121 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
25122 #  else
25123 #    ifdef DL_LAZY
25124 #      define LT_DLLAZY_OR_NOW          DL_LAZY
25125 #    else
25126 #      ifdef RTLD_NOW
25127 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
25128 #      else
25129 #        ifdef DL_NOW
25130 #          define LT_DLLAZY_OR_NOW      DL_NOW
25131 #        else
25132 #          define LT_DLLAZY_OR_NOW      0
25133 #        endif
25134 #      endif
25135 #    endif
25136 #  endif
25137 #endif
25138
25139 #ifdef __cplusplus
25140 extern "C" void exit (int);
25141 #endif
25142
25143 void fnord() { int i=42;}
25144 int main ()
25145 {
25146   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25147   int status = $lt_dlunknown;
25148
25149   if (self)
25150     {
25151       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
25152       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25153       /* dlclose (self); */
25154     }
25155
25156     exit (status);
25157 }
25158 EOF
25159   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160   (eval $ac_link) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25164     (./conftest; exit; ) 2>/dev/null
25165     lt_status=$?
25166     case x$lt_status in
25167       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
25168       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
25169       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
25170     esac
25171   else :
25172     # compilation failed
25173     lt_cv_dlopen_self_static=no
25174   fi
25175 fi
25176 rm -fr conftest*
25177
25178
25179 fi
25180 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
25181 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
25182     fi
25183
25184     CPPFLAGS="$save_CPPFLAGS"
25185     LDFLAGS="$save_LDFLAGS"
25186     LIBS="$save_LIBS"
25187     ;;
25188   esac
25189
25190   case $lt_cv_dlopen_self in
25191   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
25192   *) enable_dlopen_self=unknown ;;
25193   esac
25194
25195   case $lt_cv_dlopen_self_static in
25196   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25197   *) enable_dlopen_self_static=unknown ;;
25198   esac
25199 fi
25200
25201
25202 # The else clause should only fire when bootstrapping the
25203 # libtool distribution, otherwise you forgot to ship ltmain.sh
25204 # with your package, and you will get complaints that there are
25205 # no rules to generate ltmain.sh.
25206 if test -f "$ltmain"; then
25207   # See if we are running on zsh, and set the options which allow our commands through
25208   # without removal of \ escapes.
25209   if test -n "${ZSH_VERSION+set}" ; then
25210     setopt NO_GLOB_SUBST
25211   fi
25212   # Now quote all the things that may contain metacharacters while being
25213   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25214   # variables and quote the copies for generation of the libtool script.
25215   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25216     SED SHELL STRIP \
25217     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25218     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25219     deplibs_check_method reload_flag reload_cmds need_locks \
25220     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25221     lt_cv_sys_global_symbol_to_c_name_address \
25222     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25223     old_postinstall_cmds old_postuninstall_cmds \
25224     compiler_GCJ \
25225     CC_GCJ \
25226     LD_GCJ \
25227     lt_prog_compiler_wl_GCJ \
25228     lt_prog_compiler_pic_GCJ \
25229     lt_prog_compiler_static_GCJ \
25230     lt_prog_compiler_no_builtin_flag_GCJ \
25231     export_dynamic_flag_spec_GCJ \
25232     thread_safe_flag_spec_GCJ \
25233     whole_archive_flag_spec_GCJ \
25234     enable_shared_with_static_runtimes_GCJ \
25235     old_archive_cmds_GCJ \
25236     old_archive_from_new_cmds_GCJ \
25237     predep_objects_GCJ \
25238     postdep_objects_GCJ \
25239     predeps_GCJ \
25240     postdeps_GCJ \
25241     compiler_lib_search_path_GCJ \
25242     archive_cmds_GCJ \
25243     archive_expsym_cmds_GCJ \
25244     postinstall_cmds_GCJ \
25245     postuninstall_cmds_GCJ \
25246     old_archive_from_expsyms_cmds_GCJ \
25247     allow_undefined_flag_GCJ \
25248     no_undefined_flag_GCJ \
25249     export_symbols_cmds_GCJ \
25250     hardcode_libdir_flag_spec_GCJ \
25251     hardcode_libdir_flag_spec_ld_GCJ \
25252     hardcode_libdir_separator_GCJ \
25253     hardcode_automatic_GCJ \
25254     module_cmds_GCJ \
25255     module_expsym_cmds_GCJ \
25256     lt_cv_prog_compiler_c_o_GCJ \
25257     exclude_expsyms_GCJ \
25258     include_expsyms_GCJ; do
25259
25260     case $var in
25261     old_archive_cmds_GCJ | \
25262     old_archive_from_new_cmds_GCJ | \
25263     archive_cmds_GCJ | \
25264     archive_expsym_cmds_GCJ | \
25265     module_cmds_GCJ | \
25266     module_expsym_cmds_GCJ | \
25267     old_archive_from_expsyms_cmds_GCJ | \
25268     export_symbols_cmds_GCJ | \
25269     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25270     postinstall_cmds | postuninstall_cmds | \
25271     old_postinstall_cmds | old_postuninstall_cmds | \
25272     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25273       # Double-quote double-evaled strings.
25274       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25275       ;;
25276     *)
25277       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25278       ;;
25279     esac
25280   done
25281
25282   case $lt_echo in
25283   *'\$0 --fallback-echo"')
25284     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25285     ;;
25286   esac
25287
25288 cfgfile="$ofile"
25289
25290   cat <<__EOF__ >> "$cfgfile"
25291 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25292
25293 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25294
25295 # Shell to use when invoking shell scripts.
25296 SHELL=$lt_SHELL
25297
25298 # Whether or not to build shared libraries.
25299 build_libtool_libs=$enable_shared
25300
25301 # Whether or not to build static libraries.
25302 build_old_libs=$enable_static
25303
25304 # Whether or not to add -lc for building shared libraries.
25305 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25306
25307 # Whether or not to disallow shared libs when runtime libs are static
25308 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25309
25310 # Whether or not to optimize for fast installation.
25311 fast_install=$enable_fast_install
25312
25313 # The host system.
25314 host_alias=$host_alias
25315 host=$host
25316 host_os=$host_os
25317
25318 # The build system.
25319 build_alias=$build_alias
25320 build=$build
25321 build_os=$build_os
25322
25323 # An echo program that does not interpret backslashes.
25324 echo=$lt_echo
25325
25326 # The archiver.
25327 AR=$lt_AR
25328 AR_FLAGS=$lt_AR_FLAGS
25329
25330 # A C compiler.
25331 LTCC=$lt_LTCC
25332
25333 # A language-specific compiler.
25334 CC=$lt_compiler_GCJ
25335
25336 # Is the compiler the GNU C compiler?
25337 with_gcc=$GCC_GCJ
25338
25339 # An ERE matcher.
25340 EGREP=$lt_EGREP
25341
25342 # The linker used to build libraries.
25343 LD=$lt_LD_GCJ
25344
25345 # Whether we need hard or soft links.
25346 LN_S=$lt_LN_S
25347
25348 # A BSD-compatible nm program.
25349 NM=$lt_NM
25350
25351 # A symbol stripping program
25352 STRIP=$lt_STRIP
25353
25354 # Used to examine libraries when file_magic_cmd begins "file"
25355 MAGIC_CMD=$MAGIC_CMD
25356
25357 # Used on cygwin: DLL creation program.
25358 DLLTOOL="$DLLTOOL"
25359
25360 # Used on cygwin: object dumper.
25361 OBJDUMP="$OBJDUMP"
25362
25363 # Used on cygwin: assembler.
25364 AS="$AS"
25365
25366 # The name of the directory that contains temporary libtool files.
25367 objdir=$objdir
25368
25369 # How to create reloadable object files.
25370 reload_flag=$lt_reload_flag
25371 reload_cmds=$lt_reload_cmds
25372
25373 # How to pass a linker flag through the compiler.
25374 wl=$lt_lt_prog_compiler_wl_GCJ
25375
25376 # Object file suffix (normally "o").
25377 objext="$ac_objext"
25378
25379 # Old archive suffix (normally "a").
25380 libext="$libext"
25381
25382 # Shared library suffix (normally ".so").
25383 shrext_cmds='$shrext_cmds'
25384
25385 # Executable file suffix (normally "").
25386 exeext="$exeext"
25387
25388 # Additional compiler flags for building library objects.
25389 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25390 pic_mode=$pic_mode
25391
25392 # What is the maximum length of a command?
25393 max_cmd_len=$lt_cv_sys_max_cmd_len
25394
25395 # Does compiler simultaneously support -c and -o options?
25396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25397
25398 # Must we lock files when doing compilation?
25399 need_locks=$lt_need_locks
25400
25401 # Do we need the lib prefix for modules?
25402 need_lib_prefix=$need_lib_prefix
25403
25404 # Do we need a version for libraries?
25405 need_version=$need_version
25406
25407 # Whether dlopen is supported.
25408 dlopen_support=$enable_dlopen
25409
25410 # Whether dlopen of programs is supported.
25411 dlopen_self=$enable_dlopen_self
25412
25413 # Whether dlopen of statically linked programs is supported.
25414 dlopen_self_static=$enable_dlopen_self_static
25415
25416 # Compiler flag to prevent dynamic linking.
25417 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25418
25419 # Compiler flag to turn off builtin functions.
25420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25421
25422 # Compiler flag to allow reflexive dlopens.
25423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25424
25425 # Compiler flag to generate shared objects directly from archives.
25426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25427
25428 # Compiler flag to generate thread-safe objects.
25429 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25430
25431 # Library versioning type.
25432 version_type=$version_type
25433
25434 # Format of library name prefix.
25435 libname_spec=$lt_libname_spec
25436
25437 # List of archive names.  First name is the real one, the rest are links.
25438 # The last name is the one that the linker finds with -lNAME.
25439 library_names_spec=$lt_library_names_spec
25440
25441 # The coded name of the library, if different from the real name.
25442 soname_spec=$lt_soname_spec
25443
25444 # Commands used to build and install an old-style archive.
25445 RANLIB=$lt_RANLIB
25446 old_archive_cmds=$lt_old_archive_cmds_GCJ
25447 old_postinstall_cmds=$lt_old_postinstall_cmds
25448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25449
25450 # Create an old-style archive from a shared archive.
25451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25452
25453 # Create a temporary old-style archive to link instead of a shared archive.
25454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25455
25456 # Commands used to build and install a shared archive.
25457 archive_cmds=$lt_archive_cmds_GCJ
25458 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25459 postinstall_cmds=$lt_postinstall_cmds
25460 postuninstall_cmds=$lt_postuninstall_cmds
25461
25462 # Commands used to build a loadable module (assumed same as above if empty)
25463 module_cmds=$lt_module_cmds_GCJ
25464 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25465
25466 # Commands to strip libraries.
25467 old_striplib=$lt_old_striplib
25468 striplib=$lt_striplib
25469
25470 # Dependencies to place before the objects being linked to create a
25471 # shared library.
25472 predep_objects=$lt_predep_objects_GCJ
25473
25474 # Dependencies to place after the objects being linked to create a
25475 # shared library.
25476 postdep_objects=$lt_postdep_objects_GCJ
25477
25478 # Dependencies to place before the objects being linked to create a
25479 # shared library.
25480 predeps=$lt_predeps_GCJ
25481
25482 # Dependencies to place after the objects being linked to create a
25483 # shared library.
25484 postdeps=$lt_postdeps_GCJ
25485
25486 # The library search path used internally by the compiler when linking
25487 # a shared library.
25488 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25489
25490 # Method to check whether dependent libraries are shared objects.
25491 deplibs_check_method=$lt_deplibs_check_method
25492
25493 # Command to use when deplibs_check_method == file_magic.
25494 file_magic_cmd=$lt_file_magic_cmd
25495
25496 # Flag that allows shared libraries with undefined symbols to be built.
25497 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25498
25499 # Flag that forces no undefined symbols.
25500 no_undefined_flag=$lt_no_undefined_flag_GCJ
25501
25502 # Commands used to finish a libtool library installation in a directory.
25503 finish_cmds=$lt_finish_cmds
25504
25505 # Same as above, but a single script fragment to be evaled but not shown.
25506 finish_eval=$lt_finish_eval
25507
25508 # Take the output of nm and produce a listing of raw symbols and C names.
25509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25510
25511 # Transform the output of nm in a proper C declaration
25512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25513
25514 # Transform the output of nm in a C name address pair
25515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25516
25517 # This is the shared library runtime path variable.
25518 runpath_var=$runpath_var
25519
25520 # This is the shared library path variable.
25521 shlibpath_var=$shlibpath_var
25522
25523 # Is shlibpath searched before the hard-coded library search path?
25524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25525
25526 # How to hardcode a shared library path into an executable.
25527 hardcode_action=$hardcode_action_GCJ
25528
25529 # Whether we should hardcode library paths into libraries.
25530 hardcode_into_libs=$hardcode_into_libs
25531
25532 # Flag to hardcode \$libdir into a binary during linking.
25533 # This must work even if \$libdir does not exist.
25534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25535
25536 # If ld is used when linking, flag to hardcode \$libdir into
25537 # a binary during linking. This must work even if \$libdir does
25538 # not exist.
25539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25540
25541 # Whether we need a single -rpath flag with a separated argument.
25542 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25543
25544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25545 # resulting binary.
25546 hardcode_direct=$hardcode_direct_GCJ
25547
25548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25549 # resulting binary.
25550 hardcode_minus_L=$hardcode_minus_L_GCJ
25551
25552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25553 # the resulting binary.
25554 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25555
25556 # Set to yes if building a shared library automatically hardcodes DIR into the library
25557 # and all subsequent libraries and executables linked against it.
25558 hardcode_automatic=$hardcode_automatic_GCJ
25559
25560 # Variables whose values should be saved in libtool wrapper scripts and
25561 # restored at relink time.
25562 variables_saved_for_relink="$variables_saved_for_relink"
25563
25564 # Whether libtool must link a program against all its dependency libraries.
25565 link_all_deplibs=$link_all_deplibs_GCJ
25566
25567 # Compile-time system search path for libraries
25568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25569
25570 # Run-time system search path for libraries
25571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25572
25573 # Fix the shell variable \$srcfile for the compiler.
25574 fix_srcfile_path="$fix_srcfile_path_GCJ"
25575
25576 # Set to yes if exported symbols are required.
25577 always_export_symbols=$always_export_symbols_GCJ
25578
25579 # The commands to list exported symbols.
25580 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25581
25582 # The commands to extract the exported symbol list from a shared archive.
25583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25584
25585 # Symbols that should not be listed in the preloaded symbols.
25586 exclude_expsyms=$lt_exclude_expsyms_GCJ
25587
25588 # Symbols that must always be exported.
25589 include_expsyms=$lt_include_expsyms_GCJ
25590
25591 # ### END LIBTOOL TAG CONFIG: $tagname
25592
25593 __EOF__
25594
25595
25596 else
25597   # If there is no Makefile yet, we rely on a make rule to execute
25598   # `config.status --recheck' to rerun these tests and create the
25599   # libtool script then.
25600   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25601   if test -f "$ltmain_in"; then
25602     test -f Makefile && make "$ltmain"
25603   fi
25604 fi
25605
25606
25607 ac_ext=c
25608 ac_cpp='$CPP $CPPFLAGS'
25609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25612
25613 CC="$lt_save_CC"
25614
25615         else
25616           tagname=""
25617         fi
25618         ;;
25619
25620       RC)
25621
25622
25623
25624 # Source file extension for RC test sources.
25625 ac_ext=rc
25626
25627 # Object file extension for compiled RC test sources.
25628 objext=o
25629 objext_RC=$objext
25630
25631 # Code to be used in simple compile tests
25632 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25633
25634 # Code to be used in simple link tests
25635 lt_simple_link_test_code="$lt_simple_compile_test_code"
25636
25637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25638
25639 # If no C compiler was specified, use CC.
25640 LTCC=${LTCC-"$CC"}
25641
25642 # Allow CC to be a program name with arguments.
25643 compiler=$CC
25644
25645
25646 # save warnings/boilerplate of simple test code
25647 ac_outfile=conftest.$ac_objext
25648 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25650 _lt_compiler_boilerplate=`cat conftest.err`
25651 $rm conftest*
25652
25653 ac_outfile=conftest.$ac_objext
25654 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25656 _lt_linker_boilerplate=`cat conftest.err`
25657 $rm conftest*
25658
25659
25660 # Allow CC to be a program name with arguments.
25661 lt_save_CC="$CC"
25662 CC=${RC-"windres"}
25663 compiler=$CC
25664 compiler_RC=$CC
25665 for cc_temp in $compiler""; do
25666   case $cc_temp in
25667     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25668     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25669     \-*) ;;
25670     *) break;;
25671   esac
25672 done
25673 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25674
25675 lt_cv_prog_compiler_c_o_RC=yes
25676
25677 # The else clause should only fire when bootstrapping the
25678 # libtool distribution, otherwise you forgot to ship ltmain.sh
25679 # with your package, and you will get complaints that there are
25680 # no rules to generate ltmain.sh.
25681 if test -f "$ltmain"; then
25682   # See if we are running on zsh, and set the options which allow our commands through
25683   # without removal of \ escapes.
25684   if test -n "${ZSH_VERSION+set}" ; then
25685     setopt NO_GLOB_SUBST
25686   fi
25687   # Now quote all the things that may contain metacharacters while being
25688   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25689   # variables and quote the copies for generation of the libtool script.
25690   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25691     SED SHELL STRIP \
25692     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25693     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25694     deplibs_check_method reload_flag reload_cmds need_locks \
25695     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25696     lt_cv_sys_global_symbol_to_c_name_address \
25697     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25698     old_postinstall_cmds old_postuninstall_cmds \
25699     compiler_RC \
25700     CC_RC \
25701     LD_RC \
25702     lt_prog_compiler_wl_RC \
25703     lt_prog_compiler_pic_RC \
25704     lt_prog_compiler_static_RC \
25705     lt_prog_compiler_no_builtin_flag_RC \
25706     export_dynamic_flag_spec_RC \
25707     thread_safe_flag_spec_RC \
25708     whole_archive_flag_spec_RC \
25709     enable_shared_with_static_runtimes_RC \
25710     old_archive_cmds_RC \
25711     old_archive_from_new_cmds_RC \
25712     predep_objects_RC \
25713     postdep_objects_RC \
25714     predeps_RC \
25715     postdeps_RC \
25716     compiler_lib_search_path_RC \
25717     archive_cmds_RC \
25718     archive_expsym_cmds_RC \
25719     postinstall_cmds_RC \
25720     postuninstall_cmds_RC \
25721     old_archive_from_expsyms_cmds_RC \
25722     allow_undefined_flag_RC \
25723     no_undefined_flag_RC \
25724     export_symbols_cmds_RC \
25725     hardcode_libdir_flag_spec_RC \
25726     hardcode_libdir_flag_spec_ld_RC \
25727     hardcode_libdir_separator_RC \
25728     hardcode_automatic_RC \
25729     module_cmds_RC \
25730     module_expsym_cmds_RC \
25731     lt_cv_prog_compiler_c_o_RC \
25732     exclude_expsyms_RC \
25733     include_expsyms_RC; do
25734
25735     case $var in
25736     old_archive_cmds_RC | \
25737     old_archive_from_new_cmds_RC | \
25738     archive_cmds_RC | \
25739     archive_expsym_cmds_RC | \
25740     module_cmds_RC | \
25741     module_expsym_cmds_RC | \
25742     old_archive_from_expsyms_cmds_RC | \
25743     export_symbols_cmds_RC | \
25744     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25745     postinstall_cmds | postuninstall_cmds | \
25746     old_postinstall_cmds | old_postuninstall_cmds | \
25747     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25748       # Double-quote double-evaled strings.
25749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25750       ;;
25751     *)
25752       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25753       ;;
25754     esac
25755   done
25756
25757   case $lt_echo in
25758   *'\$0 --fallback-echo"')
25759     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25760     ;;
25761   esac
25762
25763 cfgfile="$ofile"
25764
25765   cat <<__EOF__ >> "$cfgfile"
25766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25767
25768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25769
25770 # Shell to use when invoking shell scripts.
25771 SHELL=$lt_SHELL
25772
25773 # Whether or not to build shared libraries.
25774 build_libtool_libs=$enable_shared
25775
25776 # Whether or not to build static libraries.
25777 build_old_libs=$enable_static
25778
25779 # Whether or not to add -lc for building shared libraries.
25780 build_libtool_need_lc=$archive_cmds_need_lc_RC
25781
25782 # Whether or not to disallow shared libs when runtime libs are static
25783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25784
25785 # Whether or not to optimize for fast installation.
25786 fast_install=$enable_fast_install
25787
25788 # The host system.
25789 host_alias=$host_alias
25790 host=$host
25791 host_os=$host_os
25792
25793 # The build system.
25794 build_alias=$build_alias
25795 build=$build
25796 build_os=$build_os
25797
25798 # An echo program that does not interpret backslashes.
25799 echo=$lt_echo
25800
25801 # The archiver.
25802 AR=$lt_AR
25803 AR_FLAGS=$lt_AR_FLAGS
25804
25805 # A C compiler.
25806 LTCC=$lt_LTCC
25807
25808 # A language-specific compiler.
25809 CC=$lt_compiler_RC
25810
25811 # Is the compiler the GNU C compiler?
25812 with_gcc=$GCC_RC
25813
25814 # An ERE matcher.
25815 EGREP=$lt_EGREP
25816
25817 # The linker used to build libraries.
25818 LD=$lt_LD_RC
25819
25820 # Whether we need hard or soft links.
25821 LN_S=$lt_LN_S
25822
25823 # A BSD-compatible nm program.
25824 NM=$lt_NM
25825
25826 # A symbol stripping program
25827 STRIP=$lt_STRIP
25828
25829 # Used to examine libraries when file_magic_cmd begins "file"
25830 MAGIC_CMD=$MAGIC_CMD
25831
25832 # Used on cygwin: DLL creation program.
25833 DLLTOOL="$DLLTOOL"
25834
25835 # Used on cygwin: object dumper.
25836 OBJDUMP="$OBJDUMP"
25837
25838 # Used on cygwin: assembler.
25839 AS="$AS"
25840
25841 # The name of the directory that contains temporary libtool files.
25842 objdir=$objdir
25843
25844 # How to create reloadable object files.
25845 reload_flag=$lt_reload_flag
25846 reload_cmds=$lt_reload_cmds
25847
25848 # How to pass a linker flag through the compiler.
25849 wl=$lt_lt_prog_compiler_wl_RC
25850
25851 # Object file suffix (normally "o").
25852 objext="$ac_objext"
25853
25854 # Old archive suffix (normally "a").
25855 libext="$libext"
25856
25857 # Shared library suffix (normally ".so").
25858 shrext_cmds='$shrext_cmds'
25859
25860 # Executable file suffix (normally "").
25861 exeext="$exeext"
25862
25863 # Additional compiler flags for building library objects.
25864 pic_flag=$lt_lt_prog_compiler_pic_RC
25865 pic_mode=$pic_mode
25866
25867 # What is the maximum length of a command?
25868 max_cmd_len=$lt_cv_sys_max_cmd_len
25869
25870 # Does compiler simultaneously support -c and -o options?
25871 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25872
25873 # Must we lock files when doing compilation?
25874 need_locks=$lt_need_locks
25875
25876 # Do we need the lib prefix for modules?
25877 need_lib_prefix=$need_lib_prefix
25878
25879 # Do we need a version for libraries?
25880 need_version=$need_version
25881
25882 # Whether dlopen is supported.
25883 dlopen_support=$enable_dlopen
25884
25885 # Whether dlopen of programs is supported.
25886 dlopen_self=$enable_dlopen_self
25887
25888 # Whether dlopen of statically linked programs is supported.
25889 dlopen_self_static=$enable_dlopen_self_static
25890
25891 # Compiler flag to prevent dynamic linking.
25892 link_static_flag=$lt_lt_prog_compiler_static_RC
25893
25894 # Compiler flag to turn off builtin functions.
25895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25896
25897 # Compiler flag to allow reflexive dlopens.
25898 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25899
25900 # Compiler flag to generate shared objects directly from archives.
25901 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25902
25903 # Compiler flag to generate thread-safe objects.
25904 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25905
25906 # Library versioning type.
25907 version_type=$version_type
25908
25909 # Format of library name prefix.
25910 libname_spec=$lt_libname_spec
25911
25912 # List of archive names.  First name is the real one, the rest are links.
25913 # The last name is the one that the linker finds with -lNAME.
25914 library_names_spec=$lt_library_names_spec
25915
25916 # The coded name of the library, if different from the real name.
25917 soname_spec=$lt_soname_spec
25918
25919 # Commands used to build and install an old-style archive.
25920 RANLIB=$lt_RANLIB
25921 old_archive_cmds=$lt_old_archive_cmds_RC
25922 old_postinstall_cmds=$lt_old_postinstall_cmds
25923 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25924
25925 # Create an old-style archive from a shared archive.
25926 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25927
25928 # Create a temporary old-style archive to link instead of a shared archive.
25929 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25930
25931 # Commands used to build and install a shared archive.
25932 archive_cmds=$lt_archive_cmds_RC
25933 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25934 postinstall_cmds=$lt_postinstall_cmds
25935 postuninstall_cmds=$lt_postuninstall_cmds
25936
25937 # Commands used to build a loadable module (assumed same as above if empty)
25938 module_cmds=$lt_module_cmds_RC
25939 module_expsym_cmds=$lt_module_expsym_cmds_RC
25940
25941 # Commands to strip libraries.
25942 old_striplib=$lt_old_striplib
25943 striplib=$lt_striplib
25944
25945 # Dependencies to place before the objects being linked to create a
25946 # shared library.
25947 predep_objects=$lt_predep_objects_RC
25948
25949 # Dependencies to place after the objects being linked to create a
25950 # shared library.
25951 postdep_objects=$lt_postdep_objects_RC
25952
25953 # Dependencies to place before the objects being linked to create a
25954 # shared library.
25955 predeps=$lt_predeps_RC
25956
25957 # Dependencies to place after the objects being linked to create a
25958 # shared library.
25959 postdeps=$lt_postdeps_RC
25960
25961 # The library search path used internally by the compiler when linking
25962 # a shared library.
25963 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25964
25965 # Method to check whether dependent libraries are shared objects.
25966 deplibs_check_method=$lt_deplibs_check_method
25967
25968 # Command to use when deplibs_check_method == file_magic.
25969 file_magic_cmd=$lt_file_magic_cmd
25970
25971 # Flag that allows shared libraries with undefined symbols to be built.
25972 allow_undefined_flag=$lt_allow_undefined_flag_RC
25973
25974 # Flag that forces no undefined symbols.
25975 no_undefined_flag=$lt_no_undefined_flag_RC
25976
25977 # Commands used to finish a libtool library installation in a directory.
25978 finish_cmds=$lt_finish_cmds
25979
25980 # Same as above, but a single script fragment to be evaled but not shown.
25981 finish_eval=$lt_finish_eval
25982
25983 # Take the output of nm and produce a listing of raw symbols and C names.
25984 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25985
25986 # Transform the output of nm in a proper C declaration
25987 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25988
25989 # Transform the output of nm in a C name address pair
25990 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25991
25992 # This is the shared library runtime path variable.
25993 runpath_var=$runpath_var
25994
25995 # This is the shared library path variable.
25996 shlibpath_var=$shlibpath_var
25997
25998 # Is shlibpath searched before the hard-coded library search path?
25999 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26000
26001 # How to hardcode a shared library path into an executable.
26002 hardcode_action=$hardcode_action_RC
26003
26004 # Whether we should hardcode library paths into libraries.
26005 hardcode_into_libs=$hardcode_into_libs
26006
26007 # Flag to hardcode \$libdir into a binary during linking.
26008 # This must work even if \$libdir does not exist.
26009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26010
26011 # If ld is used when linking, flag to hardcode \$libdir into
26012 # a binary during linking. This must work even if \$libdir does
26013 # not exist.
26014 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26015
26016 # Whether we need a single -rpath flag with a separated argument.
26017 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26018
26019 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26020 # resulting binary.
26021 hardcode_direct=$hardcode_direct_RC
26022
26023 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26024 # resulting binary.
26025 hardcode_minus_L=$hardcode_minus_L_RC
26026
26027 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26028 # the resulting binary.
26029 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26030
26031 # Set to yes if building a shared library automatically hardcodes DIR into the library
26032 # and all subsequent libraries and executables linked against it.
26033 hardcode_automatic=$hardcode_automatic_RC
26034
26035 # Variables whose values should be saved in libtool wrapper scripts and
26036 # restored at relink time.
26037 variables_saved_for_relink="$variables_saved_for_relink"
26038
26039 # Whether libtool must link a program against all its dependency libraries.
26040 link_all_deplibs=$link_all_deplibs_RC
26041
26042 # Compile-time system search path for libraries
26043 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26044
26045 # Run-time system search path for libraries
26046 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26047
26048 # Fix the shell variable \$srcfile for the compiler.
26049 fix_srcfile_path="$fix_srcfile_path_RC"
26050
26051 # Set to yes if exported symbols are required.
26052 always_export_symbols=$always_export_symbols_RC
26053
26054 # The commands to list exported symbols.
26055 export_symbols_cmds=$lt_export_symbols_cmds_RC
26056
26057 # The commands to extract the exported symbol list from a shared archive.
26058 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26059
26060 # Symbols that should not be listed in the preloaded symbols.
26061 exclude_expsyms=$lt_exclude_expsyms_RC
26062
26063 # Symbols that must always be exported.
26064 include_expsyms=$lt_include_expsyms_RC
26065
26066 # ### END LIBTOOL TAG CONFIG: $tagname
26067
26068 __EOF__
26069
26070
26071 else
26072   # If there is no Makefile yet, we rely on a make rule to execute
26073   # `config.status --recheck' to rerun these tests and create the
26074   # libtool script then.
26075   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26076   if test -f "$ltmain_in"; then
26077     test -f Makefile && make "$ltmain"
26078   fi
26079 fi
26080
26081
26082 ac_ext=c
26083 ac_cpp='$CPP $CPPFLAGS'
26084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26087
26088 CC="$lt_save_CC"
26089
26090         ;;
26091
26092       *)
26093         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26094 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26095    { (exit 1); exit 1; }; }
26096         ;;
26097       esac
26098
26099       # Append the new tag name to the list of available tags.
26100       if test -n "$tagname" ; then
26101       available_tags="$available_tags $tagname"
26102     fi
26103     fi
26104   done
26105   IFS="$lt_save_ifs"
26106
26107   # Now substitute the updated list of available tags.
26108   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26109     mv "${ofile}T" "$ofile"
26110     chmod +x "$ofile"
26111   else
26112     rm -f "${ofile}T"
26113     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26114 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26115    { (exit 1); exit 1; }; }
26116   fi
26117 fi
26118
26119
26120
26121 # This can be used to rebuild libtool when needed
26122 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26123
26124 # Always use our own libtool.
26125 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26126
26127 # Prevent multiple expansion
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151         echo "$as_me:$LINENO: checking for linux kernel dir" >&5
26152 echo $ECHO_N "checking for linux kernel dir... $ECHO_C" >&6
26153 if test "${ensc_cv_path_kerneldir+set}" = set; then
26154   echo $ECHO_N "(cached) $ECHO_C" >&6
26155 else
26156
26157
26158 # Check whether --with-kerneldir or --without-kerneldir was given.
26159 if test "${with_kerneldir+set}" = set; then
26160   withval="$with_kerneldir"
26161   case "$withval" in
26162                 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for kerneldir" >&5
26163 echo "$as_me: error: '$withval' is not a valid value for kerneldir" >&2;}
26164    { (exit 1); exit 1; }; };;
26165                 *)      ensc_cv_path_kerneldir=$withval;;
26166              esac
26167 else
26168   ensc_cv_path_kerneldir=
26169              for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
26170                 test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
26171              done
26172 fi;
26173
26174 fi
26175 echo "$as_me:$LINENO: result: $ensc_cv_path_kerneldir" >&5
26176 echo "${ECHO_T}$ensc_cv_path_kerneldir" >&6
26177
26178         test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
26179                 { { echo "$as_me:$LINENO: error: Can not find kernelsources" >&5
26180 echo "$as_me: error: Can not find kernelsources" >&2;}
26181    { (exit 1); exit 1; }; }
26182         }
26183
26184
26185
26186
26187         echo "$as_me:$LINENO: checking for linux kernel headers" >&5
26188 echo $ECHO_N "checking for linux kernel headers... $ECHO_C" >&6
26189 if test "${ensc_cv_path_kernelheaders+set}" = set; then
26190   echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192
26193                 ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
26194
26195 fi
26196 echo "$as_me:$LINENO: result: $ensc_cv_path_kernelheaders" >&5
26197 echo "${ECHO_T}$ensc_cv_path_kernelheaders" >&6
26198
26199         if test x"kernelincludedir" != x; then
26200                 kernelincludedir=$ensc_cv_path_kernelheaders
26201
26202         fi
26203
26204
26205         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
26206 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
26207
26208 # Check whether --with-vrootdir or --without-vrootdir was given.
26209 if test "${with_vrootdir+set}" = set; then
26210   withval="$with_vrootdir"
26211   case "$withval" in
26212                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
26213 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
26214    { (exit 1); exit 1; }; };;
26215                         *)      ensc_uv_path_vrootdir=$withval;;
26216                      esac
26217 else
26218   ensc_uv_path_vrootdir=/vservers
26219 fi;
26220         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
26221 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
26222
26223         if test x"vserverdir" != x; then
26224                 vserverdir=$ensc_uv_path_vrootdir
26225
26226         fi
26227
26228
26229         if test x"trunk" != x; then
26230                 CVS2CL_TAG='-F trunk'
26231
26232         fi
26233
26234         for ac_prog in cvs2cl
26235 do
26236   # Extract the first word of "$ac_prog", so it can be a program name with args.
26237 set dummy $ac_prog; ac_word=$2
26238 echo "$as_me:$LINENO: checking for $ac_word" >&5
26239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26240 if test "${ac_cv_prog_CVS2CL+set}" = set; then
26241   echo $ECHO_N "(cached) $ECHO_C" >&6
26242 else
26243   if test -n "$CVS2CL"; then
26244   ac_cv_prog_CVS2CL="$CVS2CL" # Let the user override the test.
26245 else
26246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26247 for as_dir in $PATH
26248 do
26249   IFS=$as_save_IFS
26250   test -z "$as_dir" && as_dir=.
26251   for ac_exec_ext in '' $ac_executable_extensions; do
26252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26253     ac_cv_prog_CVS2CL="$ac_prog"
26254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26255     break 2
26256   fi
26257 done
26258 done
26259
26260 fi
26261 fi
26262 CVS2CL=$ac_cv_prog_CVS2CL
26263 if test -n "$CVS2CL"; then
26264   echo "$as_me:$LINENO: result: $CVS2CL" >&5
26265 echo "${ECHO_T}$CVS2CL" >&6
26266 else
26267   echo "$as_me:$LINENO: result: no" >&5
26268 echo "${ECHO_T}no" >&6
26269 fi
26270
26271   test -n "$CVS2CL" && break
26272 done
26273
26274
26275
26276 if test x"$CVS2CL" != x; then
26277   HAVE_CVS2CL_TRUE=
26278   HAVE_CVS2CL_FALSE='#'
26279 else
26280   HAVE_CVS2CL_TRUE='#'
26281   HAVE_CVS2CL_FALSE=
26282 fi
26283
26284
26285         for ac_prog in rcs2log
26286 do
26287   # Extract the first word of "$ac_prog", so it can be a program name with args.
26288 set dummy $ac_prog; ac_word=$2
26289 echo "$as_me:$LINENO: checking for $ac_word" >&5
26290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26291 if test "${ac_cv_prog_RCS2LOG+set}" = set; then
26292   echo $ECHO_N "(cached) $ECHO_C" >&6
26293 else
26294   if test -n "$RCS2LOG"; then
26295   ac_cv_prog_RCS2LOG="$RCS2LOG" # Let the user override the test.
26296 else
26297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26298 for as_dir in $PATH
26299 do
26300   IFS=$as_save_IFS
26301   test -z "$as_dir" && as_dir=.
26302   for ac_exec_ext in '' $ac_executable_extensions; do
26303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26304     ac_cv_prog_RCS2LOG="$ac_prog"
26305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26306     break 2
26307   fi
26308 done
26309 done
26310
26311 fi
26312 fi
26313 RCS2LOG=$ac_cv_prog_RCS2LOG
26314 if test -n "$RCS2LOG"; then
26315   echo "$as_me:$LINENO: result: $RCS2LOG" >&5
26316 echo "${ECHO_T}$RCS2LOG" >&6
26317 else
26318   echo "$as_me:$LINENO: result: no" >&5
26319 echo "${ECHO_T}no" >&6
26320 fi
26321
26322   test -n "$RCS2LOG" && break
26323 done
26324
26325
26326
26327 if test x"$RCS2LOG" != x; then
26328   HAVE_RCS2LOG_TRUE=
26329   HAVE_RCS2LOG_FALSE='#'
26330 else
26331   HAVE_RCS2LOG_TRUE='#'
26332   HAVE_RCS2LOG_FALSE=
26333 fi
26334
26335
26336
26337
26338 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
26339 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
26340 # Check whether --enable-internal-headers or --disable-internal-headers was given.
26341 if test "${enable_internal_headers+set}" = set; then
26342   enableval="$enable_internal_headers"
26343   case "$enableval" in
26344                   (yes|no) ;;
26345                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
26346 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
26347    { (exit 1); exit 1; }; };;
26348                esac
26349 else
26350   enable_internal_headers=yes
26351 fi;
26352
26353
26354
26355 if test x"$enable_internal_headers" = xyes; then
26356   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
26357   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
26358 else
26359   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
26360   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
26361 fi
26362
26363 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
26364 echo "${ECHO_T}$enable_internal_headers" >&6
26365
26366 echo "$as_me:$LINENO: checking for supported APIs" >&5
26367 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
26368 # Check whether --enable-apis or --disable-apis was given.
26369 if test "${enable_apis+set}" = set; then
26370   enableval="$enable_apis"
26371
26372 else
26373   enable_apis=compat,v11,v13,fscompat,net
26374 fi;
26375
26376 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11,v13,fscompat,net'
26377 enable_api_oldproc=
26378 enable_api_olduts=
26379 old_IFS=$IFS
26380 IFS=,;
26381 for i in $enable_apis; do
26382         case "$i" in
26383                 (compat)
26384 cat >>confdefs.h <<\_ACEOF
26385 #define VC_ENABLE_API_COMPAT 1
26386 _ACEOF
26387
26388                                 enable_api_oldproc=1
26389                                 enable_api_olduts=1
26390                                 ;;
26391                 (legacy)
26392 cat >>confdefs.h <<\_ACEOF
26393 #define VC_ENABLE_API_LEGACY 1
26394 _ACEOF
26395
26396                                 enable_api_old_proc=1
26397                                 enable_api_olduts=1
26398                                 ;;
26399                 (v11)
26400 cat >>confdefs.h <<\_ACEOF
26401 #define VC_ENABLE_API_V11 1
26402 _ACEOF
26403
26404                                 enable_api_oldproc=1
26405                                 enable_api_olduts=1
26406                                 ;;
26407                 (v13)
26408 cat >>confdefs.h <<\_ACEOF
26409 #define VC_ENABLE_API_V13 1
26410 _ACEOF
26411 ;;
26412                 (net)
26413 cat >>confdefs.h <<\_ACEOF
26414 #define VC_ENABLE_API_NET 1
26415 _ACEOF
26416 ;;
26417                 (fscompat)
26418 cat >>confdefs.h <<\_ACEOF
26419 #define VC_ENABLE_API_FSCOMPAT 1
26420 _ACEOF
26421 ;;
26422                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26423 echo "$as_me: error: '$i' is not a supported API" >&2;}
26424    { (exit 1); exit 1; }; };;
26425         esac
26426 done
26427 IFS=$old_IFS
26428 if test x"$enable_api_oldproc" != x; then
26429
26430 cat >>confdefs.h <<\_ACEOF
26431 #define VC_ENABLE_API_OLDPROC 1
26432 _ACEOF
26433
26434         enable_apis="$enable_apis,oldproc"
26435 fi
26436 if test x"$enable_api_olduts" != x; then
26437
26438 cat >>confdefs.h <<\_ACEOF
26439 #define VC_ENABLE_API_OLDUTS 1
26440 _ACEOF
26441
26442         enable_apis="$enable_apis,olduts"
26443 fi
26444 echo "$as_me:$LINENO: result: $enable_apis" >&5
26445 echo "${ECHO_T}$enable_apis" >&6
26446
26447
26448
26449
26450
26451
26452
26453         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
26454 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
26455 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
26456   echo $ECHO_N "(cached) $ECHO_C" >&6
26457 else
26458
26459                 ac_ext=c
26460 ac_cpp='$CPP $CPPFLAGS'
26461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26464
26465                 cat >conftest.$ac_ext <<_ACEOF
26466
26467 #include <asm/unistd.h>
26468 #ifdef __NR_vserver
26469 ensc_syscall_tmp_nr=__NR_vserver;
26470 ensc_syscall_tmp_src=ENSC_MARK
26471 #endif
26472
26473 _ACEOF
26474                 ensc_syscall_tmp_nr=
26475                 ensc_syscall_tmp_src=
26476                 test "$ensc_syscall_tmp_nr" || \
26477                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                 conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
26478                 test "$ensc_syscall_tmp_nr" || \
26479                         eval $($CPP $CPPFLAGS -D ENSC_MARK='kernel' -I $ensc_cv_path_kernelheaders conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
26480                 test "$ensc_syscall_tmp_nr" || {
26481                         ensc_syscall_tmp_nr=273
26482                         ensc_syscall_tmp_src=default
26483                 }
26484
26485                 if test x"$ensc_syscall_tmp_nr" = x; then
26486                         { { 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
26487 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;}
26488    { (exit 1); exit 1; }; }
26489                 fi
26490                 ac_ext=c
26491 ac_cpp='$CPP $CPPFLAGS'
26492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26495
26496
26497                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
26498
26499 fi
26500 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
26501 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
26502
26503         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
26504         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
26505
26506         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
26507
26508 cat >>confdefs.h <<_ACEOF
26509 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
26510 _ACEOF
26511
26512         fi
26513
26514
26515
26516
26517
26518         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
26519 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
26520
26521 # Check whether --with-syscall or --without-syscall was given.
26522 if test "${with_syscall+set}" = set; then
26523   withval="$with_syscall"
26524
26525 else
26526   with_syscall=auto
26527 fi;
26528         echo "$as_me:$LINENO: result: $with_syscall" >&5
26529 echo "${ECHO_T}$with_syscall" >&6
26530
26531         case x"$with_syscall" in
26532             (xauto)
26533                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
26534 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
26535 if test "${ensc_cv_test_syscall+set}" = set; then
26536   echo $ECHO_N "(cached) $ECHO_C" >&6
26537 else
26538
26539                                 ac_ext=c
26540 ac_cpp='$CPP $CPPFLAGS'
26541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26544
26545                                 cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h.  */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h.  */
26551
26552 #include "$srcdir/lib/syscall-wrap.h"
26553 #include <errno.h>
26554
26555 #define __NR_foo0       300
26556 #define __NR_foo1       301
26557 #define __NR_foo2       302
26558 #define __NR_foo3       303
26559 #define __NR_foo4       304
26560 #define __NR_foo5       305
26561 inline static _syscall0(int, foo0)
26562 inline static _syscall1(int, foo1, int, a)
26563 inline static _syscall2(int, foo2, int, a, int, b)
26564 inline static _syscall3(int, foo3, int, a, int, b, int, c)
26565 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
26566 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
26567
26568 int main() {
26569   return foo0() || \
26570          foo1(1) || \
26571          foo2(1,2) || \
26572          foo3(1,2,3) || \
26573          foo4(1,2,3,4) || \
26574          foo5(1,2,3,4,5);
26575 }
26576
26577 _ACEOF
26578 rm -f conftest.$ac_objext
26579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26580   (eval $ac_compile) 2>conftest.er1
26581   ac_status=$?
26582   grep -v '^ *+' conftest.er1 >conftest.err
26583   rm -f conftest.er1
26584   cat conftest.err >&5
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); } &&
26587          { ac_try='test -z "$ac_c_werror_flag"
26588                          || test ! -s conftest.err'
26589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590   (eval $ac_try) 2>&5
26591   ac_status=$?
26592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); }; } &&
26594          { ac_try='test -s conftest.$ac_objext'
26595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26596   (eval $ac_try) 2>&5
26597   ac_status=$?
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); }; }; then
26600   ensc_cv_test_syscall=fast
26601 else
26602   echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605 ensc_cv_test_syscall=traditional
26606 fi
26607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26608
26609                                 ac_ext=c
26610 ac_cpp='$CPP $CPPFLAGS'
26611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26614
26615
26616 fi
26617 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
26618 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
26619                 with_syscall=$ensc_cv_test_syscall
26620                 ;;
26621             (xfast|xtraditional)
26622                 ;;
26623             *)
26624                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
26625 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
26626    { (exit 1); exit 1; }; }
26627                 ;;
26628         esac
26629
26630         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
26631             with_syscall='alternative'
26632         fi
26633
26634         if test x"$with_syscall" = xtraditional; then
26635
26636 cat >>confdefs.h <<\_ACEOF
26637 #define ENSC_SYSCALL_TRADITIONAL 1
26638 _ACEOF
26639
26640         fi
26641
26642
26643
26644
26645
26646
26647     ac_ext=cc
26648 ac_cpp='$CXXCPP $CPPFLAGS'
26649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26652
26653     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26654 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
26655 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26656   echo $ECHO_N "(cached) $ECHO_C" >&6
26657 else
26658
26659         cat >conftest.$ac_ext <<_ACEOF
26660 /* confdefs.h.  */
26661 _ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h.  */
26665 #include <ext2fs/ext2_fs.h>
26666                                           int main() { return 0; }
26667 _ACEOF
26668 rm -f conftest.$ac_objext
26669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26670   (eval $ac_compile) 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } &&
26677          { ac_try='test -z "$ac_cxx_werror_flag"
26678                          || test ! -s conftest.err'
26679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680   (eval $ac_try) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; } &&
26684          { ac_try='test -s conftest.$ac_objext'
26685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; }; then
26690   ensc_cv_test_ext2fs_header=e2fsprogs
26691 else
26692   echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26694
26695
26696         cat >conftest.$ac_ext <<_ACEOF
26697 /* confdefs.h.  */
26698 _ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h.  */
26702 #include <linux/ext2_fs.h>
26703                                           int main() { return 0; }
26704 _ACEOF
26705 rm -f conftest.$ac_objext
26706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26707   (eval $ac_compile) 2>conftest.er1
26708   ac_status=$?
26709   grep -v '^ *+' conftest.er1 >conftest.err
26710   rm -f conftest.er1
26711   cat conftest.err >&5
26712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713   (exit $ac_status); } &&
26714          { ac_try='test -z "$ac_cxx_werror_flag"
26715                          || test ! -s conftest.err'
26716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26717   (eval $ac_try) 2>&5
26718   ac_status=$?
26719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720   (exit $ac_status); }; } &&
26721          { ac_try='test -s conftest.$ac_objext'
26722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26723   (eval $ac_try) 2>&5
26724   ac_status=$?
26725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); }; }; then
26727   ensc_cv_test_ext2fs_header=kernel
26728 else
26729   echo "$as_me: failed program was:" >&5
26730 sed 's/^/| /' conftest.$ac_ext >&5
26731
26732
26733         ensc_cv_test_ext2fs_header=none
26734 fi
26735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26736 fi
26737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26738 fi
26739 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26740 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26741
26742     case x"$ensc_cv_test_ext2fs_header" in
26743         (xe2fsprogs)
26744                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26745   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26746 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26747 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26748   echo $ECHO_N "(cached) $ECHO_C" >&6
26749 fi
26750 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26751 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26752 else
26753   # Is the header compilable?
26754 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26755 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26756 cat >conftest.$ac_ext <<_ACEOF
26757 /* confdefs.h.  */
26758 _ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h.  */
26762 $ac_includes_default
26763 #include <ext2fs/ext2_fs.h>
26764 _ACEOF
26765 rm -f conftest.$ac_objext
26766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26767   (eval $ac_compile) 2>conftest.er1
26768   ac_status=$?
26769   grep -v '^ *+' conftest.er1 >conftest.err
26770   rm -f conftest.er1
26771   cat conftest.err >&5
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); } &&
26774          { ac_try='test -z "$ac_cxx_werror_flag"
26775                          || test ! -s conftest.err'
26776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777   (eval $ac_try) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; } &&
26781          { ac_try='test -s conftest.$ac_objext'
26782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783   (eval $ac_try) 2>&5
26784   ac_status=$?
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); }; }; then
26787   ac_header_compiler=yes
26788 else
26789   echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792 ac_header_compiler=no
26793 fi
26794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26796 echo "${ECHO_T}$ac_header_compiler" >&6
26797
26798 # Is the header present?
26799 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26800 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26801 cat >conftest.$ac_ext <<_ACEOF
26802 /* confdefs.h.  */
26803 _ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h.  */
26807 #include <ext2fs/ext2_fs.h>
26808 _ACEOF
26809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26811   ac_status=$?
26812   grep -v '^ *+' conftest.er1 >conftest.err
26813   rm -f conftest.er1
26814   cat conftest.err >&5
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); } >/dev/null; then
26817   if test -s conftest.err; then
26818     ac_cpp_err=$ac_cxx_preproc_warn_flag
26819     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26820   else
26821     ac_cpp_err=
26822   fi
26823 else
26824   ac_cpp_err=yes
26825 fi
26826 if test -z "$ac_cpp_err"; then
26827   ac_header_preproc=yes
26828 else
26829   echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26831
26832   ac_header_preproc=no
26833 fi
26834 rm -f conftest.err conftest.$ac_ext
26835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26836 echo "${ECHO_T}$ac_header_preproc" >&6
26837
26838 # So?  What about this header?
26839 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26840   yes:no: )
26841     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26842 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26843     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26844 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26845     ac_header_preproc=yes
26846     ;;
26847   no:yes:* )
26848     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26849 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26850     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26851 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26852     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26853 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26854     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26855 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26856     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26857 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26858     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26859 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26860     (
26861       cat <<\_ASBOX
26862 ## ------------------------------------------------------ ##
26863 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26864 ## ------------------------------------------------------ ##
26865 _ASBOX
26866     ) |
26867       sed "s/^/$as_me: WARNING:     /" >&2
26868     ;;
26869 esac
26870 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26871 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26872 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26873   echo $ECHO_N "(cached) $ECHO_C" >&6
26874 else
26875   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26876 fi
26877 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26878 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26879
26880 fi
26881 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26882
26883 cat >>confdefs.h <<\_ACEOF
26884 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26885 _ACEOF
26886
26887 else
26888   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26889 See \`config.log' for more details." >&5
26890 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26891 See \`config.log' for more details." >&2;}
26892    { (exit 1); exit 1; }; }
26893 fi
26894
26895
26896                 ;;
26897         (xkernel)
26898                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26899   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26900 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26901 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26902   echo $ECHO_N "(cached) $ECHO_C" >&6
26903 fi
26904 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26905 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26906 else
26907   # Is the header compilable?
26908 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26909 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26910 cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916 $ac_includes_default
26917 #include <linux/ext2_fs.h>
26918 _ACEOF
26919 rm -f conftest.$ac_objext
26920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26921   (eval $ac_compile) 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } &&
26928          { ac_try='test -z "$ac_cxx_werror_flag"
26929                          || test ! -s conftest.err'
26930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931   (eval $ac_try) 2>&5
26932   ac_status=$?
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); }; } &&
26935          { ac_try='test -s conftest.$ac_objext'
26936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937   (eval $ac_try) 2>&5
26938   ac_status=$?
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); }; }; then
26941   ac_header_compiler=yes
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946 ac_header_compiler=no
26947 fi
26948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26950 echo "${ECHO_T}$ac_header_compiler" >&6
26951
26952 # Is the header present?
26953 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26954 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961 #include <linux/ext2_fs.h>
26962 _ACEOF
26963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26965   ac_status=$?
26966   grep -v '^ *+' conftest.er1 >conftest.err
26967   rm -f conftest.er1
26968   cat conftest.err >&5
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); } >/dev/null; then
26971   if test -s conftest.err; then
26972     ac_cpp_err=$ac_cxx_preproc_warn_flag
26973     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26974   else
26975     ac_cpp_err=
26976   fi
26977 else
26978   ac_cpp_err=yes
26979 fi
26980 if test -z "$ac_cpp_err"; then
26981   ac_header_preproc=yes
26982 else
26983   echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986   ac_header_preproc=no
26987 fi
26988 rm -f conftest.err conftest.$ac_ext
26989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26990 echo "${ECHO_T}$ac_header_preproc" >&6
26991
26992 # So?  What about this header?
26993 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26994   yes:no: )
26995     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26996 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26997     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26998 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26999     ac_header_preproc=yes
27000     ;;
27001   no:yes:* )
27002     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
27003 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
27004     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
27005 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27006     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
27007 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
27008     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27009 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27010     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
27011 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27012     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
27013 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27014     (
27015       cat <<\_ASBOX
27016 ## ------------------------------------------------------ ##
27017 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27018 ## ------------------------------------------------------ ##
27019 _ASBOX
27020     ) |
27021       sed "s/^/$as_me: WARNING:     /" >&2
27022     ;;
27023 esac
27024 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27025 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
27026 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27027   echo $ECHO_N "(cached) $ECHO_C" >&6
27028 else
27029   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
27030 fi
27031 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27032 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
27033
27034 fi
27035 if test $ac_cv_header_linux_ext2_fs_h = yes; then
27036
27037 cat >>confdefs.h <<\_ACEOF
27038 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
27039 _ACEOF
27040
27041 else
27042   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
27043 See \`config.log' for more details." >&5
27044 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
27045 See \`config.log' for more details." >&2;}
27046    { (exit 1); exit 1; }; }
27047 fi
27048
27049
27050                 ;;
27051         (*)
27052                 { { echo "$as_me:$LINENO: error:
27053 ext2fs headers were not found, or they are not usable. This can have
27054 the following reasons:
27055
27056 * you have neither the e2fsprogs nor the kernel headers installed
27057
27058 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27059   and you do not have e2fsprogs headers installed; please try to install
27060   - e2fsprogs-devel (for Red Hat), or
27061   - libext2fs2-devel (for Mandrake), or
27062   - e2fslibs-dev (for Debian)
27063   in this case.
27064
27065 * kernel headers are broken and your e2fsprogs headers are too old;
27066   until version 1.27 (inclusive), they are using reserved C++ keywords
27067
27068 * kernel headers are broken and your e2fsprogs headers are too new;
27069   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27070   C++, for details and a solution see
27071   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27072
27073
27074 In the latter two cases you have the following options:
27075 * fix the headers manually, or
27076 * install a stable version of e2fsprogs (e.g. 1.34), or
27077 * use good kernel headers (from linux 2.4.x)
27078
27079 See \`config.log' for more details." >&5
27080 echo "$as_me: error:
27081 ext2fs headers were not found, or they are not usable. This can have
27082 the following reasons:
27083
27084 * you have neither the e2fsprogs nor the kernel headers installed
27085
27086 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27087   and you do not have e2fsprogs headers installed; please try to install
27088   - e2fsprogs-devel (for Red Hat), or
27089   - libext2fs2-devel (for Mandrake), or
27090   - e2fslibs-dev (for Debian)
27091   in this case.
27092
27093 * kernel headers are broken and your e2fsprogs headers are too old;
27094   until version 1.27 (inclusive), they are using reserved C++ keywords
27095
27096 * kernel headers are broken and your e2fsprogs headers are too new;
27097   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27098   C++, for details and a solution see
27099   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27100
27101
27102 In the latter two cases you have the following options:
27103 * fix the headers manually, or
27104 * install a stable version of e2fsprogs (e.g. 1.34), or
27105 * use good kernel headers (from linux 2.4.x)
27106
27107 See \`config.log' for more details." >&2;}
27108    { (exit 1); exit 1; }; }
27109                 ;;
27110     esac
27111     ac_ext=c
27112 ac_cpp='$CPP $CPPFLAGS'
27113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27116
27117
27118
27119 for ac_func in vserver
27120 do
27121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27122 echo "$as_me:$LINENO: checking for $ac_func" >&5
27123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27124 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27135 #define $ac_func innocuous_$ac_func
27136
27137 /* System header to define __stub macros and hopefully few prototypes,
27138     which can conflict with char $ac_func (); below.
27139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27140     <limits.h> exists even on freestanding compilers.  */
27141
27142 #ifdef __STDC__
27143 # include <limits.h>
27144 #else
27145 # include <assert.h>
27146 #endif
27147
27148 #undef $ac_func
27149
27150 /* Override any gcc2 internal prototype to avoid an error.  */
27151 #ifdef __cplusplus
27152 extern "C"
27153 {
27154 #endif
27155 /* We use char because int might match the return type of a gcc2
27156    builtin and then its argument prototype would still apply.  */
27157 char $ac_func ();
27158 /* The GNU C library defines this for functions which it implements
27159     to always fail with ENOSYS.  Some functions are actually named
27160     something starting with __ and the normal name is an alias.  */
27161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27162 choke me
27163 #else
27164 char (*f) () = $ac_func;
27165 #endif
27166 #ifdef __cplusplus
27167 }
27168 #endif
27169
27170 int
27171 main ()
27172 {
27173 return f != $ac_func;
27174   ;
27175   return 0;
27176 }
27177 _ACEOF
27178 rm -f conftest.$ac_objext conftest$ac_exeext
27179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27180   (eval $ac_link) 2>conftest.er1
27181   ac_status=$?
27182   grep -v '^ *+' conftest.er1 >conftest.err
27183   rm -f conftest.er1
27184   cat conftest.err >&5
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); } &&
27187          { ac_try='test -z "$ac_c_werror_flag"
27188                          || test ! -s conftest.err'
27189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190   (eval $ac_try) 2>&5
27191   ac_status=$?
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); }; } &&
27194          { ac_try='test -s conftest$ac_exeext'
27195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196   (eval $ac_try) 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); }; }; then
27200   eval "$as_ac_var=yes"
27201 else
27202   echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 eval "$as_ac_var=no"
27206 fi
27207 rm -f conftest.err conftest.$ac_objext \
27208       conftest$ac_exeext conftest.$ac_ext
27209 fi
27210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27212 if test `eval echo '${'$as_ac_var'}'` = yes; then
27213   cat >>confdefs.h <<_ACEOF
27214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27215 _ACEOF
27216
27217 fi
27218 done
27219
27220 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
27221 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
27222 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
27223   echo $ECHO_N "(cached) $ECHO_C" >&6
27224 else
27225   cat >conftest.$ac_ext <<_ACEOF
27226 /* confdefs.h.  */
27227 _ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h.  */
27231 #include <linux/fs.h>
27232
27233 int
27234 main ()
27235 {
27236 #ifndef MS_MOVE
27237   char *p = (char *) MS_MOVE;
27238 #endif
27239
27240   ;
27241   return 0;
27242 }
27243 _ACEOF
27244 rm -f conftest.$ac_objext
27245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246   (eval $ac_compile) 2>conftest.er1
27247   ac_status=$?
27248   grep -v '^ *+' conftest.er1 >conftest.err
27249   rm -f conftest.er1
27250   cat conftest.err >&5
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); } &&
27253          { ac_try='test -z "$ac_c_werror_flag"
27254                          || test ! -s conftest.err'
27255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256   (eval $ac_try) 2>&5
27257   ac_status=$?
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); }; } &&
27260          { ac_try='test -s conftest.$ac_objext'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; }; then
27266   ac_cv_have_decl_MS_MOVE=yes
27267 else
27268   echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27270
27271 ac_cv_have_decl_MS_MOVE=no
27272 fi
27273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27274 fi
27275 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
27276 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
27277 if test $ac_cv_have_decl_MS_MOVE = yes; then
27278
27279 cat >>confdefs.h <<_ACEOF
27280 #define HAVE_DECL_MS_MOVE 1
27281 _ACEOF
27282
27283
27284 else
27285   cat >>confdefs.h <<_ACEOF
27286 #define HAVE_DECL_MS_MOVE 0
27287 _ACEOF
27288
27289
27290 fi
27291
27292
27293 echo "$as_me:$LINENO: checking for xid_t" >&5
27294 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
27295 if test "${ac_cv_type_xid_t+set}" = set; then
27296   echo $ECHO_N "(cached) $ECHO_C" >&6
27297 else
27298   cat >conftest.$ac_ext <<_ACEOF
27299 /* confdefs.h.  */
27300 _ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h.  */
27304 #include <sys/types.h>
27305
27306 int
27307 main ()
27308 {
27309 if ((xid_t *) 0)
27310   return 0;
27311 if (sizeof (xid_t))
27312   return 0;
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27319   (eval $ac_compile) 2>conftest.er1
27320   ac_status=$?
27321   grep -v '^ *+' conftest.er1 >conftest.err
27322   rm -f conftest.er1
27323   cat conftest.err >&5
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); } &&
27326          { ac_try='test -z "$ac_c_werror_flag"
27327                          || test ! -s conftest.err'
27328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329   (eval $ac_try) 2>&5
27330   ac_status=$?
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); }; } &&
27333          { ac_try='test -s conftest.$ac_objext'
27334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335   (eval $ac_try) 2>&5
27336   ac_status=$?
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); }; }; then
27339   ac_cv_type_xid_t=yes
27340 else
27341   echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27343
27344 ac_cv_type_xid_t=no
27345 fi
27346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27347 fi
27348 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
27349 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
27350 if test $ac_cv_type_xid_t = yes; then
27351
27352 cat >>confdefs.h <<_ACEOF
27353 #define HAVE_XID_T 1
27354 _ACEOF
27355
27356
27357 fi
27358
27359 echo "$as_me:$LINENO: checking for nid_t" >&5
27360 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
27361 if test "${ac_cv_type_nid_t+set}" = set; then
27362   echo $ECHO_N "(cached) $ECHO_C" >&6
27363 else
27364   cat >conftest.$ac_ext <<_ACEOF
27365 /* confdefs.h.  */
27366 _ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h.  */
27370 #include <sys/types.h>
27371
27372 int
27373 main ()
27374 {
27375 if ((nid_t *) 0)
27376   return 0;
27377 if (sizeof (nid_t))
27378   return 0;
27379   ;
27380   return 0;
27381 }
27382 _ACEOF
27383 rm -f conftest.$ac_objext
27384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27385   (eval $ac_compile) 2>conftest.er1
27386   ac_status=$?
27387   grep -v '^ *+' conftest.er1 >conftest.err
27388   rm -f conftest.er1
27389   cat conftest.err >&5
27390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391   (exit $ac_status); } &&
27392          { ac_try='test -z "$ac_c_werror_flag"
27393                          || test ! -s conftest.err'
27394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395   (eval $ac_try) 2>&5
27396   ac_status=$?
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); }; } &&
27399          { ac_try='test -s conftest.$ac_objext'
27400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401   (eval $ac_try) 2>&5
27402   ac_status=$?
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); }; }; then
27405   ac_cv_type_nid_t=yes
27406 else
27407   echo "$as_me: failed program was:" >&5
27408 sed 's/^/| /' conftest.$ac_ext >&5
27409
27410 ac_cv_type_nid_t=no
27411 fi
27412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27413 fi
27414 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
27415 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
27416 if test $ac_cv_type_nid_t = yes; then
27417
27418 cat >>confdefs.h <<_ACEOF
27419 #define HAVE_NID_T 1
27420 _ACEOF
27421
27422
27423 fi
27424
27425
27426
27427 for ac_header in sys/capability.h
27428 do
27429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27431   echo "$as_me:$LINENO: checking for $ac_header" >&5
27432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27434   echo $ECHO_N "(cached) $ECHO_C" >&6
27435 fi
27436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27438 else
27439   # Is the header compilable?
27440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27442 cat >conftest.$ac_ext <<_ACEOF
27443 /* confdefs.h.  */
27444 _ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h.  */
27448 $ac_includes_default
27449 #include <$ac_header>
27450 _ACEOF
27451 rm -f conftest.$ac_objext
27452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27453   (eval $ac_compile) 2>conftest.er1
27454   ac_status=$?
27455   grep -v '^ *+' conftest.er1 >conftest.err
27456   rm -f conftest.er1
27457   cat conftest.err >&5
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); } &&
27460          { ac_try='test -z "$ac_c_werror_flag"
27461                          || test ! -s conftest.err'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; } &&
27467          { ac_try='test -s conftest.$ac_objext'
27468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469   (eval $ac_try) 2>&5
27470   ac_status=$?
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; }; then
27473   ac_header_compiler=yes
27474 else
27475   echo "$as_me: failed program was:" >&5
27476 sed 's/^/| /' conftest.$ac_ext >&5
27477
27478 ac_header_compiler=no
27479 fi
27480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27482 echo "${ECHO_T}$ac_header_compiler" >&6
27483
27484 # Is the header present?
27485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27487 cat >conftest.$ac_ext <<_ACEOF
27488 /* confdefs.h.  */
27489 _ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h.  */
27493 #include <$ac_header>
27494 _ACEOF
27495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27497   ac_status=$?
27498   grep -v '^ *+' conftest.er1 >conftest.err
27499   rm -f conftest.er1
27500   cat conftest.err >&5
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); } >/dev/null; then
27503   if test -s conftest.err; then
27504     ac_cpp_err=$ac_c_preproc_warn_flag
27505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27506   else
27507     ac_cpp_err=
27508   fi
27509 else
27510   ac_cpp_err=yes
27511 fi
27512 if test -z "$ac_cpp_err"; then
27513   ac_header_preproc=yes
27514 else
27515   echo "$as_me: failed program was:" >&5
27516 sed 's/^/| /' conftest.$ac_ext >&5
27517
27518   ac_header_preproc=no
27519 fi
27520 rm -f conftest.err conftest.$ac_ext
27521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27522 echo "${ECHO_T}$ac_header_preproc" >&6
27523
27524 # So?  What about this header?
27525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27526   yes:no: )
27527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27531     ac_header_preproc=yes
27532     ;;
27533   no:yes:* )
27534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27546     (
27547       cat <<\_ASBOX
27548 ## ------------------------------------------------------ ##
27549 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27550 ## ------------------------------------------------------ ##
27551 _ASBOX
27552     ) |
27553       sed "s/^/$as_me: WARNING:     /" >&2
27554     ;;
27555 esac
27556 echo "$as_me:$LINENO: checking for $ac_header" >&5
27557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27559   echo $ECHO_N "(cached) $ECHO_C" >&6
27560 else
27561   eval "$as_ac_Header=\$ac_header_preproc"
27562 fi
27563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27565
27566 fi
27567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27568   cat >>confdefs.h <<_ACEOF
27569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27570 _ACEOF
27571
27572 fi
27573
27574 done
27575
27576
27577
27578 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27579         ensc_have_beecrypt=yes
27580
27581         if test x"$ensc_have_beecrypt" = xyes; then
27582                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27583   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27584 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27585 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27586   echo $ECHO_N "(cached) $ECHO_C" >&6
27587 fi
27588 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27589 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27590 else
27591   # Is the header compilable?
27592 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27593 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
27594 cat >conftest.$ac_ext <<_ACEOF
27595 /* confdefs.h.  */
27596 _ACEOF
27597 cat confdefs.h >>conftest.$ac_ext
27598 cat >>conftest.$ac_ext <<_ACEOF
27599 /* end confdefs.h.  */
27600 $ac_includes_default
27601 #include <beecrypt/beecrypt.h>
27602 _ACEOF
27603 rm -f conftest.$ac_objext
27604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27605   (eval $ac_compile) 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_objext'
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_header_compiler=yes
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630 ac_header_compiler=no
27631 fi
27632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27634 echo "${ECHO_T}$ac_header_compiler" >&6
27635
27636 # Is the header present?
27637 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27638 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
27639 cat >conftest.$ac_ext <<_ACEOF
27640 /* confdefs.h.  */
27641 _ACEOF
27642 cat confdefs.h >>conftest.$ac_ext
27643 cat >>conftest.$ac_ext <<_ACEOF
27644 /* end confdefs.h.  */
27645 #include <beecrypt/beecrypt.h>
27646 _ACEOF
27647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } >/dev/null; then
27655   if test -s conftest.err; then
27656     ac_cpp_err=$ac_c_preproc_warn_flag
27657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27658   else
27659     ac_cpp_err=
27660   fi
27661 else
27662   ac_cpp_err=yes
27663 fi
27664 if test -z "$ac_cpp_err"; then
27665   ac_header_preproc=yes
27666 else
27667   echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27669
27670   ac_header_preproc=no
27671 fi
27672 rm -f conftest.err conftest.$ac_ext
27673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27674 echo "${ECHO_T}$ac_header_preproc" >&6
27675
27676 # So?  What about this header?
27677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27678   yes:no: )
27679     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27680 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27681     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27682 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27683     ac_header_preproc=yes
27684     ;;
27685   no:yes:* )
27686     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27687 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27688     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27689 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27690     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27691 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27692     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27693 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27694     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27695 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27696     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27697 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27698     (
27699       cat <<\_ASBOX
27700 ## ------------------------------------------------------ ##
27701 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27702 ## ------------------------------------------------------ ##
27703 _ASBOX
27704     ) |
27705       sed "s/^/$as_me: WARNING:     /" >&2
27706     ;;
27707 esac
27708 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27709 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27710 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27711   echo $ECHO_N "(cached) $ECHO_C" >&6
27712 else
27713   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27714 fi
27715 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27716 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27717
27718 fi
27719 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27720    :
27721 else
27722    ensc_have_beecrypt=no
27723 fi
27724
27725
27726         fi
27727
27728         if test x"$ensc_have_beecrypt" = xyes; then
27729                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27730 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27731 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27732   echo $ECHO_N "(cached) $ECHO_C" >&6
27733 else
27734   ac_check_lib_save_LIBS=$LIBS
27735 LIBS="-lbeecrypt  $LIBS"
27736 cat >conftest.$ac_ext <<_ACEOF
27737 /* confdefs.h.  */
27738 _ACEOF
27739 cat confdefs.h >>conftest.$ac_ext
27740 cat >>conftest.$ac_ext <<_ACEOF
27741 /* end confdefs.h.  */
27742
27743 /* Override any gcc2 internal prototype to avoid an error.  */
27744 #ifdef __cplusplus
27745 extern "C"
27746 #endif
27747 /* We use char because int might match the return type of a gcc2
27748    builtin and then its argument prototype would still apply.  */
27749 char hashFunctionContextInit ();
27750 int
27751 main ()
27752 {
27753 hashFunctionContextInit ();
27754   ;
27755   return 0;
27756 }
27757 _ACEOF
27758 rm -f conftest.$ac_objext conftest$ac_exeext
27759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27760   (eval $ac_link) 2>conftest.er1
27761   ac_status=$?
27762   grep -v '^ *+' conftest.er1 >conftest.err
27763   rm -f conftest.er1
27764   cat conftest.err >&5
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); } &&
27767          { ac_try='test -z "$ac_c_werror_flag"
27768                          || test ! -s conftest.err'
27769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770   (eval $ac_try) 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; } &&
27774          { ac_try='test -s conftest$ac_exeext'
27775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776   (eval $ac_try) 2>&5
27777   ac_status=$?
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); }; }; then
27780   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27786 fi
27787 rm -f conftest.err conftest.$ac_objext \
27788       conftest$ac_exeext conftest.$ac_ext
27789 LIBS=$ac_check_lib_save_LIBS
27790 fi
27791 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27792 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27793 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27794    :
27795 else
27796    ensc_have_beecrypt=no
27797 fi
27798
27799         fi
27800
27801         if test x"$ensc_have_beecrypt" != xyes; then
27802                 { echo "$as_me:$LINENO: WARNING:
27803 ****
27804 **** 'beecrypt' could not be found;
27805 **** this will disable the build of 'vhashify'
27806 ****" >&5
27807 echo "$as_me: WARNING:
27808 ****
27809 **** 'beecrypt' could not be found;
27810 **** this will disable the build of 'vhashify'
27811 ****" >&2;}
27812         fi
27813 else
27814         ensc_have_beecrypt=no
27815 fi
27816
27817
27818
27819 if test x"$ensc_have_beecrypt" = xyes; then
27820   ENSC_HAVE_BEECRYPT_TRUE=
27821   ENSC_HAVE_BEECRYPT_FALSE='#'
27822 else
27823   ENSC_HAVE_BEECRYPT_TRUE='#'
27824   ENSC_HAVE_BEECRYPT_FALSE=
27825 fi
27826
27827
27828
27829 if false; then
27830   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27831   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27832 else
27833   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27834   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27835 fi
27836
27837
27838
27839
27840 cat >>confdefs.h <<\_ACEOF
27841 #define UTMP_GID 22
27842 _ACEOF
27843
27844
27845 if false; then
27846
27847 cat >>confdefs.h <<\_ACEOF
27848 #define HAVE_GROWING_STACK 1
27849 _ACEOF
27850
27851 fi
27852
27853
27854 cat >>confdefs.h <<\_ACEOF
27855 #define _FILE_OFFSET_BITS 64
27856 _ACEOF
27857
27858
27859 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27860 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27861 ensc_diet_msg=" (you have been warned)"
27862 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27863 ensc_diet_compat_msg=" (using -lcompat)"
27864 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27865 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27866 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27867 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27868 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27869
27870
27871
27872
27873
27874                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27875
27876 cat >confcache <<\_ACEOF
27877 # This file is a shell script that caches the results of configure
27878 # tests run on this system so they can be shared between configure
27879 # scripts and configure runs, see configure's option --config-cache.
27880 # It is not useful on other systems.  If it contains results you don't
27881 # want to keep, you may remove or edit it.
27882 #
27883 # config.status only pays attention to the cache file if you give it
27884 # the --recheck option to rerun configure.
27885 #
27886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27888 # following values.
27889
27890 _ACEOF
27891
27892 # The following way of writing the cache mishandles newlines in values,
27893 # but we know of no workaround that is simple, portable, and efficient.
27894 # So, don't put newlines in cache variables' values.
27895 # Ultrix sh set writes to stderr and can't be redirected directly,
27896 # and sets the high bit in the cache file unless we assign to the vars.
27897 {
27898   (set) 2>&1 |
27899     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27900     *ac_space=\ *)
27901       # `set' does not quote correctly, so add quotes (double-quote
27902       # substitution turns \\\\ into \\, and sed turns \\ into \).
27903       sed -n \
27904         "s/'/'\\\\''/g;
27905           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27906       ;;
27907     *)
27908       # `set' quotes correctly as required by POSIX, so do not add quotes.
27909       sed -n \
27910         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27911       ;;
27912     esac;
27913 } |
27914   sed '
27915      t clear
27916      : clear
27917      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27918      t end
27919      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27920      : end' >>confcache
27921 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27922   if test -w $cache_file; then
27923     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27924     cat confcache >$cache_file
27925   else
27926     echo "not updating unwritable cache $cache_file"
27927   fi
27928 fi
27929 rm -f confcache
27930
27931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27932 # Let make expand exec_prefix.
27933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27934
27935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27937 # trailing colons and then remove the whole line if VPATH becomes empty
27938 # (actually we leave an empty line to preserve line numbers).
27939 if test "x$srcdir" = x.; then
27940   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27941 s/:*\$(srcdir):*/:/;
27942 s/:*\${srcdir}:*/:/;
27943 s/:*@srcdir@:*/:/;
27944 s/^\([^=]*=[     ]*\):*/\1/;
27945 s/:*$//;
27946 s/^[^=]*=[       ]*$//;
27947 }'
27948 fi
27949
27950 DEFS=-DHAVE_CONFIG_H
27951
27952 ac_libobjs=
27953 ac_ltlibobjs=
27954 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27955   # 1. Remove the extension, and $U if already installed.
27956   ac_i=`echo "$ac_i" |
27957          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27958   # 2. Add them.
27959   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27960   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27961 done
27962 LIBOBJS=$ac_libobjs
27963
27964 LTLIBOBJS=$ac_ltlibobjs
27965
27966
27967 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27968   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27969 Usually this means the macro was only invoked conditionally." >&5
27970 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27971 Usually this means the macro was only invoked conditionally." >&2;}
27972    { (exit 1); exit 1; }; }
27973 fi
27974 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27975   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27976 Usually this means the macro was only invoked conditionally." >&5
27977 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27978 Usually this means the macro was only invoked conditionally." >&2;}
27979    { (exit 1); exit 1; }; }
27980 fi
27981 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27982   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27983 Usually this means the macro was only invoked conditionally." >&5
27984 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27985 Usually this means the macro was only invoked conditionally." >&2;}
27986    { (exit 1); exit 1; }; }
27987 fi
27988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27989   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27990 Usually this means the macro was only invoked conditionally." >&5
27991 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27992 Usually this means the macro was only invoked conditionally." >&2;}
27993    { (exit 1); exit 1; }; }
27994 fi
27995 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27996   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27997 Usually this means the macro was only invoked conditionally." >&5
27998 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27999 Usually this means the macro was only invoked conditionally." >&2;}
28000    { (exit 1); exit 1; }; }
28001 fi
28002 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
28003   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28004 Usually this means the macro was only invoked conditionally." >&5
28005 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28006 Usually this means the macro was only invoked conditionally." >&2;}
28007    { (exit 1); exit 1; }; }
28008 fi
28009 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
28010   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
28011 Usually this means the macro was only invoked conditionally." >&5
28012 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
28013 Usually this means the macro was only invoked conditionally." >&2;}
28014    { (exit 1); exit 1; }; }
28015 fi
28016 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
28017   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
28018 Usually this means the macro was only invoked conditionally." >&5
28019 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
28020 Usually this means the macro was only invoked conditionally." >&2;}
28021    { (exit 1); exit 1; }; }
28022 fi
28023 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28024   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28025 Usually this means the macro was only invoked conditionally." >&5
28026 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28027 Usually this means the macro was only invoked conditionally." >&2;}
28028    { (exit 1); exit 1; }; }
28029 fi
28030 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28031   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28032 Usually this means the macro was only invoked conditionally." >&5
28033 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28034 Usually this means the macro was only invoked conditionally." >&2;}
28035    { (exit 1); exit 1; }; }
28036 fi
28037 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28038   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28039 Usually this means the macro was only invoked conditionally." >&5
28040 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28041 Usually this means the macro was only invoked conditionally." >&2;}
28042    { (exit 1); exit 1; }; }
28043 fi
28044 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28045   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28046 Usually this means the macro was only invoked conditionally." >&5
28047 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28048 Usually this means the macro was only invoked conditionally." >&2;}
28049    { (exit 1); exit 1; }; }
28050 fi
28051 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28052   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28053 Usually this means the macro was only invoked conditionally." >&5
28054 echo "$as_me: error: conditional \"USE_DIETLIBC\" 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 "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28059   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28060 Usually this means the macro was only invoked conditionally." >&5
28061 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" 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 "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28066   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28067 Usually this means the macro was only invoked conditionally." >&5
28068 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" 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 "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
28073   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
28074 Usually this means the macro was only invoked conditionally." >&5
28075 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" 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_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
28080   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
28081 Usually this means the macro was only invoked conditionally." >&5
28082 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" 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 "${HAVE_CVS2CL_TRUE}" && test -z "${HAVE_CVS2CL_FALSE}"; then
28087   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CVS2CL\" was never defined.
28088 Usually this means the macro was only invoked conditionally." >&5
28089 echo "$as_me: error: conditional \"HAVE_CVS2CL\" 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_RCS2LOG_TRUE}" && test -z "${HAVE_RCS2LOG_FALSE}"; then
28094   { { echo "$as_me:$LINENO: error: conditional \"HAVE_RCS2LOG\" was never defined.
28095 Usually this means the macro was only invoked conditionally." >&5
28096 echo "$as_me: error: conditional \"HAVE_RCS2LOG\" 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 "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
28101   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
28102 Usually this means the macro was only invoked conditionally." >&5
28103 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" 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 "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
28108   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
28109 Usually this means the macro was only invoked conditionally." >&5
28110 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" 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 "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
28115   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28116 Usually this means the macro was only invoked conditionally." >&5
28117 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28118 Usually this means the macro was only invoked conditionally." >&2;}
28119    { (exit 1); exit 1; }; }
28120 fi
28121
28122                         FEATURES_TXT="\
28123 Features:
28124                        CC: $CC, $($CC   --version | sed -e '1p;d')
28125                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
28126                  CPPFLAGS: '$CPPFLAGS'
28127                    CFLAGS: '$CFLAGS'
28128                  CXXFLAGS: '$CXXFLAGS'
28129                build/host: $build/$host
28130              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
28131        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
28132        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
28133            Available APIs: $enable_apis
28134             ext2fs Source: $ensc_cv_test_ext2fs_header
28135     syscall(2) invocation: $with_syscall
28136       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
28137
28138 Paths:
28139                    prefix: $prefix
28140         sysconf-Directory: $sysconfdir
28141             cfg-Directory: $sysconfdir/vservers
28142          initrd-Directory: $initrddir
28143        pkgstate-Directory: $localstatedir/run/vservers
28144             Kernelheaders: $kernelincludedir
28145           vserver-Rootdir: $vserverdir
28146 "
28147                         echo "$FEATURES_TXT" >FEATURES.txt
28148
28149
28150 : ${CONFIG_STATUS=./config.status}
28151 ac_clean_files_save=$ac_clean_files
28152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28153 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28154 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28155 cat >$CONFIG_STATUS <<_ACEOF
28156 #! $SHELL
28157 # Generated by $as_me.
28158 # Run this file to recreate the current configuration.
28159 # Compiler output produced by configure, useful for debugging
28160 # configure, is in config.log if it exists.
28161
28162 debug=false
28163 ac_cs_recheck=false
28164 ac_cs_silent=false
28165 SHELL=\${CONFIG_SHELL-$SHELL}
28166 _ACEOF
28167
28168 cat >>$CONFIG_STATUS <<\_ACEOF
28169 ## --------------------- ##
28170 ## M4sh Initialization.  ##
28171 ## --------------------- ##
28172
28173 # Be Bourne compatible
28174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28175   emulate sh
28176   NULLCMD=:
28177   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28178   # is contrary to our usage.  Disable this feature.
28179   alias -g '${1+"$@"}'='"$@"'
28180 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28181   set -o posix
28182 fi
28183 DUALCASE=1; export DUALCASE # for MKS sh
28184
28185 # Support unset when possible.
28186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28187   as_unset=unset
28188 else
28189   as_unset=false
28190 fi
28191
28192
28193 # Work around bugs in pre-3.0 UWIN ksh.
28194 $as_unset ENV MAIL MAILPATH
28195 PS1='$ '
28196 PS2='> '
28197 PS4='+ '
28198
28199 # NLS nuisances.
28200 for as_var in \
28201   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28202   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28203   LC_TELEPHONE LC_TIME
28204 do
28205   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28206     eval $as_var=C; export $as_var
28207   else
28208     $as_unset $as_var
28209   fi
28210 done
28211
28212 # Required to use basename.
28213 if expr a : '\(a\)' >/dev/null 2>&1; then
28214   as_expr=expr
28215 else
28216   as_expr=false
28217 fi
28218
28219 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28220   as_basename=basename
28221 else
28222   as_basename=false
28223 fi
28224
28225
28226 # Name of the executable.
28227 as_me=`$as_basename "$0" ||
28228 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28229          X"$0" : 'X\(//\)$' \| \
28230          X"$0" : 'X\(/\)$' \| \
28231          .     : '\(.\)' 2>/dev/null ||
28232 echo X/"$0" |
28233     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28234           /^X\/\(\/\/\)$/{ s//\1/; q; }
28235           /^X\/\(\/\).*/{ s//\1/; q; }
28236           s/.*/./; q'`
28237
28238
28239 # PATH needs CR, and LINENO needs CR and PATH.
28240 # Avoid depending upon Character Ranges.
28241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28244 as_cr_digits='0123456789'
28245 as_cr_alnum=$as_cr_Letters$as_cr_digits
28246
28247 # The user is always right.
28248 if test "${PATH_SEPARATOR+set}" != set; then
28249   echo "#! /bin/sh" >conf$$.sh
28250   echo  "exit 0"   >>conf$$.sh
28251   chmod +x conf$$.sh
28252   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28253     PATH_SEPARATOR=';'
28254   else
28255     PATH_SEPARATOR=:
28256   fi
28257   rm -f conf$$.sh
28258 fi
28259
28260
28261   as_lineno_1=$LINENO
28262   as_lineno_2=$LINENO
28263   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28264   test "x$as_lineno_1" != "x$as_lineno_2" &&
28265   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28266   # Find who we are.  Look in the path if we contain no path at all
28267   # relative or not.
28268   case $0 in
28269     *[\\/]* ) as_myself=$0 ;;
28270     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28271 for as_dir in $PATH
28272 do
28273   IFS=$as_save_IFS
28274   test -z "$as_dir" && as_dir=.
28275   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28276 done
28277
28278        ;;
28279   esac
28280   # We did not find ourselves, most probably we were run as `sh COMMAND'
28281   # in which case we are not to be found in the path.
28282   if test "x$as_myself" = x; then
28283     as_myself=$0
28284   fi
28285   if test ! -f "$as_myself"; then
28286     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28287 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28288    { (exit 1); exit 1; }; }
28289   fi
28290   case $CONFIG_SHELL in
28291   '')
28292     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28293 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28294 do
28295   IFS=$as_save_IFS
28296   test -z "$as_dir" && as_dir=.
28297   for as_base in sh bash ksh sh5; do
28298          case $as_dir in
28299          /*)
28300            if ("$as_dir/$as_base" -c '
28301   as_lineno_1=$LINENO
28302   as_lineno_2=$LINENO
28303   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28304   test "x$as_lineno_1" != "x$as_lineno_2" &&
28305   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28306              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28307              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28308              CONFIG_SHELL=$as_dir/$as_base
28309              export CONFIG_SHELL
28310              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28311            fi;;
28312          esac
28313        done
28314 done
28315 ;;
28316   esac
28317
28318   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28319   # uniformly replaced by the line number.  The first 'sed' inserts a
28320   # line-number line before each line; the second 'sed' does the real
28321   # work.  The second script uses 'N' to pair each line-number line
28322   # with the numbered line, and appends trailing '-' during
28323   # substitution so that $LINENO is not a special case at line end.
28324   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28325   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28326   sed '=' <$as_myself |
28327     sed '
28328       N
28329       s,$,-,
28330       : loop
28331       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28332       t loop
28333       s,-$,,
28334       s,^['$as_cr_digits']*\n,,
28335     ' >$as_me.lineno &&
28336   chmod +x $as_me.lineno ||
28337     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28338 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28339    { (exit 1); exit 1; }; }
28340
28341   # Don't try to exec as it changes $[0], causing all sort of problems
28342   # (the dirname of $[0] is not the place where we might find the
28343   # original and so on.  Autoconf is especially sensible to this).
28344   . ./$as_me.lineno
28345   # Exit status is that of the last command.
28346   exit
28347 }
28348
28349
28350 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28351   *c*,-n*) ECHO_N= ECHO_C='
28352 ' ECHO_T='      ' ;;
28353   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28354   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28355 esac
28356
28357 if expr a : '\(a\)' >/dev/null 2>&1; then
28358   as_expr=expr
28359 else
28360   as_expr=false
28361 fi
28362
28363 rm -f conf$$ conf$$.exe conf$$.file
28364 echo >conf$$.file
28365 if ln -s conf$$.file conf$$ 2>/dev/null; then
28366   # We could just check for DJGPP; but this test a) works b) is more generic
28367   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28368   if test -f conf$$.exe; then
28369     # Don't use ln at all; we don't have any links
28370     as_ln_s='cp -p'
28371   else
28372     as_ln_s='ln -s'
28373   fi
28374 elif ln conf$$.file conf$$ 2>/dev/null; then
28375   as_ln_s=ln
28376 else
28377   as_ln_s='cp -p'
28378 fi
28379 rm -f conf$$ conf$$.exe conf$$.file
28380
28381 if mkdir -p . 2>/dev/null; then
28382   as_mkdir_p=:
28383 else
28384   test -d ./-p && rmdir ./-p
28385   as_mkdir_p=false
28386 fi
28387
28388 as_executable_p="test -f"
28389
28390 # Sed expression to map a string onto a valid CPP name.
28391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28392
28393 # Sed expression to map a string onto a valid variable name.
28394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28395
28396
28397 # IFS
28398 # We need space, tab and new line, in precisely that order.
28399 as_nl='
28400 '
28401 IFS="   $as_nl"
28402
28403 # CDPATH.
28404 $as_unset CDPATH
28405
28406 exec 6>&1
28407
28408 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28409 # report actual input values of CONFIG_FILES etc. instead of their
28410 # values after options handling.  Logging --version etc. is OK.
28411 exec 5>>config.log
28412 {
28413   echo
28414   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28415 ## Running $as_me. ##
28416 _ASBOX
28417 } >&5
28418 cat >&5 <<_CSEOF
28419
28420 This file was extended by util-vserver $as_me 0.30.208, which was
28421 generated by GNU Autoconf 2.59.  Invocation command line was
28422
28423   CONFIG_FILES    = $CONFIG_FILES
28424   CONFIG_HEADERS  = $CONFIG_HEADERS
28425   CONFIG_LINKS    = $CONFIG_LINKS
28426   CONFIG_COMMANDS = $CONFIG_COMMANDS
28427   $ $0 $@
28428
28429 _CSEOF
28430 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28431 echo >&5
28432 _ACEOF
28433
28434 # Files that config.status was made for.
28435 if test -n "$ac_config_files"; then
28436   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28437 fi
28438
28439 if test -n "$ac_config_headers"; then
28440   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28441 fi
28442
28443 if test -n "$ac_config_links"; then
28444   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28445 fi
28446
28447 if test -n "$ac_config_commands"; then
28448   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28449 fi
28450
28451 cat >>$CONFIG_STATUS <<\_ACEOF
28452
28453 ac_cs_usage="\
28454 \`$as_me' instantiates files from templates according to the
28455 current configuration.
28456
28457 Usage: $0 [OPTIONS] [FILE]...
28458
28459   -h, --help       print this help, then exit
28460   -V, --version    print version number, then exit
28461   -q, --quiet      do not print progress messages
28462   -d, --debug      don't remove temporary files
28463       --recheck    update $as_me by reconfiguring in the same conditions
28464   --file=FILE[:TEMPLATE]
28465                    instantiate the configuration file FILE
28466   --header=FILE[:TEMPLATE]
28467                    instantiate the configuration header FILE
28468
28469 Configuration files:
28470 $config_files
28471
28472 Configuration headers:
28473 $config_headers
28474
28475 Configuration commands:
28476 $config_commands
28477
28478 Report bugs to <bug-autoconf@gnu.org>."
28479 _ACEOF
28480
28481 cat >>$CONFIG_STATUS <<_ACEOF
28482 ac_cs_version="\\
28483 util-vserver config.status 0.30.208
28484 configured by $0, generated by GNU Autoconf 2.59,
28485   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28486
28487 Copyright (C) 2003 Free Software Foundation, Inc.
28488 This config.status script is free software; the Free Software Foundation
28489 gives unlimited permission to copy, distribute and modify it."
28490 srcdir=$srcdir
28491 INSTALL="$INSTALL"
28492 _ACEOF
28493
28494 cat >>$CONFIG_STATUS <<\_ACEOF
28495 # If no file are specified by the user, then we need to provide default
28496 # value.  By we need to know if files were specified by the user.
28497 ac_need_defaults=:
28498 while test $# != 0
28499 do
28500   case $1 in
28501   --*=*)
28502     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28503     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28504     ac_shift=:
28505     ;;
28506   -*)
28507     ac_option=$1
28508     ac_optarg=$2
28509     ac_shift=shift
28510     ;;
28511   *) # This is not an option, so the user has probably given explicit
28512      # arguments.
28513      ac_option=$1
28514      ac_need_defaults=false;;
28515   esac
28516
28517   case $ac_option in
28518   # Handling of the options.
28519 _ACEOF
28520 cat >>$CONFIG_STATUS <<\_ACEOF
28521   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28522     ac_cs_recheck=: ;;
28523   --version | --vers* | -V )
28524     echo "$ac_cs_version"; exit 0 ;;
28525   --he | --h)
28526     # Conflict between --help and --header
28527     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28528 Try \`$0 --help' for more information." >&5
28529 echo "$as_me: error: ambiguous option: $1
28530 Try \`$0 --help' for more information." >&2;}
28531    { (exit 1); exit 1; }; };;
28532   --help | --hel | -h )
28533     echo "$ac_cs_usage"; exit 0 ;;
28534   --debug | --d* | -d )
28535     debug=: ;;
28536   --file | --fil | --fi | --f )
28537     $ac_shift
28538     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28539     ac_need_defaults=false;;
28540   --header | --heade | --head | --hea )
28541     $ac_shift
28542     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28543     ac_need_defaults=false;;
28544   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28545   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28546     ac_cs_silent=: ;;
28547
28548   # This is an error.
28549   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28550 Try \`$0 --help' for more information." >&5
28551 echo "$as_me: error: unrecognized option: $1
28552 Try \`$0 --help' for more information." >&2;}
28553    { (exit 1); exit 1; }; } ;;
28554
28555   *) ac_config_targets="$ac_config_targets $1" ;;
28556
28557   esac
28558   shift
28559 done
28560
28561 ac_configure_extra_args=
28562
28563 if $ac_cs_silent; then
28564   exec 6>/dev/null
28565   ac_configure_extra_args="$ac_configure_extra_args --silent"
28566 fi
28567
28568 _ACEOF
28569 cat >>$CONFIG_STATUS <<_ACEOF
28570 if \$ac_cs_recheck; then
28571   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28572   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28573 fi
28574
28575 _ACEOF
28576
28577 cat >>$CONFIG_STATUS <<_ACEOF
28578 #
28579 # INIT-COMMANDS section.
28580 #
28581
28582 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28583
28584 _ACEOF
28585
28586
28587
28588 cat >>$CONFIG_STATUS <<\_ACEOF
28589 for ac_config_target in $ac_config_targets
28590 do
28591   case "$ac_config_target" in
28592   # Handling of arguments.
28593   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
28594   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28595   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
28596   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
28597   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28598   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28599   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28600 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28601    { (exit 1); exit 1; }; };;
28602   esac
28603 done
28604
28605 # If the user did not use the arguments to specify the items to instantiate,
28606 # then the envvar interface is used.  Set only those that are not.
28607 # We use the long form for the default assignment because of an extremely
28608 # bizarre bug on SunOS 4.1.3.
28609 if $ac_need_defaults; then
28610   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28611   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28612   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28613 fi
28614
28615 # Have a temporary directory for convenience.  Make it in the build tree
28616 # simply because there is no reason to put it here, and in addition,
28617 # creating and moving files from /tmp can sometimes cause problems.
28618 # Create a temporary directory, and hook for its removal unless debugging.
28619 $debug ||
28620 {
28621   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28622   trap '{ (exit 1); exit 1; }' 1 2 13 15
28623 }
28624
28625 # Create a (secure) tmp directory for tmp files.
28626
28627 {
28628   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28629   test -n "$tmp" && test -d "$tmp"
28630 }  ||
28631 {
28632   tmp=./confstat$$-$RANDOM
28633   (umask 077 && mkdir $tmp)
28634 } ||
28635 {
28636    echo "$me: cannot create a temporary directory in ." >&2
28637    { (exit 1); exit 1; }
28638 }
28639
28640 _ACEOF
28641
28642 cat >>$CONFIG_STATUS <<_ACEOF
28643
28644 #
28645 # CONFIG_FILES section.
28646 #
28647
28648 # No need to generate the scripts if there are no CONFIG_FILES.
28649 # This happens for instance when ./config.status config.h
28650 if test -n "\$CONFIG_FILES"; then
28651   # Protect against being on the right side of a sed subst in config.status.
28652   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28653    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28654 s,@SHELL@,$SHELL,;t t
28655 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28656 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28657 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28658 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28659 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28660 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28661 s,@exec_prefix@,$exec_prefix,;t t
28662 s,@prefix@,$prefix,;t t
28663 s,@program_transform_name@,$program_transform_name,;t t
28664 s,@bindir@,$bindir,;t t
28665 s,@sbindir@,$sbindir,;t t
28666 s,@libexecdir@,$libexecdir,;t t
28667 s,@datadir@,$datadir,;t t
28668 s,@sysconfdir@,$sysconfdir,;t t
28669 s,@sharedstatedir@,$sharedstatedir,;t t
28670 s,@localstatedir@,$localstatedir,;t t
28671 s,@libdir@,$libdir,;t t
28672 s,@includedir@,$includedir,;t t
28673 s,@oldincludedir@,$oldincludedir,;t t
28674 s,@infodir@,$infodir,;t t
28675 s,@mandir@,$mandir,;t t
28676 s,@build_alias@,$build_alias,;t t
28677 s,@host_alias@,$host_alias,;t t
28678 s,@target_alias@,$target_alias,;t t
28679 s,@DEFS@,$DEFS,;t t
28680 s,@ECHO_C@,$ECHO_C,;t t
28681 s,@ECHO_N@,$ECHO_N,;t t
28682 s,@ECHO_T@,$ECHO_T,;t t
28683 s,@LIBS@,$LIBS,;t t
28684 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28685 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28686 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28687 s,@CYGPATH_W@,$CYGPATH_W,;t t
28688 s,@PACKAGE@,$PACKAGE,;t t
28689 s,@VERSION@,$VERSION,;t t
28690 s,@ACLOCAL@,$ACLOCAL,;t t
28691 s,@AUTOCONF@,$AUTOCONF,;t t
28692 s,@AUTOMAKE@,$AUTOMAKE,;t t
28693 s,@AUTOHEADER@,$AUTOHEADER,;t t
28694 s,@MAKEINFO@,$MAKEINFO,;t t
28695 s,@install_sh@,$install_sh,;t t
28696 s,@STRIP@,$STRIP,;t t
28697 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28698 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28699 s,@mkdir_p@,$mkdir_p,;t t
28700 s,@AWK@,$AWK,;t t
28701 s,@SET_MAKE@,$SET_MAKE,;t t
28702 s,@am__leading_dot@,$am__leading_dot,;t t
28703 s,@AMTAR@,$AMTAR,;t t
28704 s,@am__tar@,$am__tar,;t t
28705 s,@am__untar@,$am__untar,;t t
28706 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28707 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28708 s,@MAINT@,$MAINT,;t t
28709 s,@build@,$build,;t t
28710 s,@build_cpu@,$build_cpu,;t t
28711 s,@build_vendor@,$build_vendor,;t t
28712 s,@build_os@,$build_os,;t t
28713 s,@host@,$host,;t t
28714 s,@host_cpu@,$host_cpu,;t t
28715 s,@host_vendor@,$host_vendor,;t t
28716 s,@host_os@,$host_os,;t t
28717 s,@GPG_KEY@,$GPG_KEY,;t t
28718 s,@CXX@,$CXX,;t t
28719 s,@CXXFLAGS@,$CXXFLAGS,;t t
28720 s,@LDFLAGS@,$LDFLAGS,;t t
28721 s,@CPPFLAGS@,$CPPFLAGS,;t t
28722 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28723 s,@EXEEXT@,$EXEEXT,;t t
28724 s,@OBJEXT@,$OBJEXT,;t t
28725 s,@DEPDIR@,$DEPDIR,;t t
28726 s,@am__include@,$am__include,;t t
28727 s,@am__quote@,$am__quote,;t t
28728 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28729 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28730 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28731 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28732 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28733 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28734 s,@CC@,$CC,;t t
28735 s,@CFLAGS@,$CFLAGS,;t t
28736 s,@ac_ct_CC@,$ac_ct_CC,;t t
28737 s,@CCDEPMODE@,$CCDEPMODE,;t t
28738 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28739 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28740 s,@LN_S@,$LN_S,;t t
28741 s,@PYTHON@,$PYTHON,;t t
28742 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
28743 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
28744 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
28745 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
28746 s,@pythondir@,$pythondir,;t t
28747 s,@pkgpythondir@,$pkgpythondir,;t t
28748 s,@pyexecdir@,$pyexecdir,;t t
28749 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
28750 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28751 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28752 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28753 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28754 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28755 s,@CAT@,$CAT,;t t
28756 s,@CHOWN@,$CHOWN,;t t
28757 s,@CMP@,$CMP,;t t
28758 s,@CP@,$CP,;t t
28759 s,@DIRNAME@,$DIRNAME,;t t
28760 s,@EGREP@,$EGREP,;t t
28761 s,@ENV@,$ENV,;t t
28762 s,@GREP@,$GREP,;t t
28763 s,@LN@,$LN,;t t
28764 s,@MKDIR@,$MKDIR,;t t
28765 s,@MKFIFO@,$MKFIFO,;t t
28766 s,@MKTEMP@,$MKTEMP,;t t
28767 s,@MOUNT@,$MOUNT,;t t
28768 s,@MV@,$MV,;t t
28769 s,@NICE@,$NICE,;t t
28770 s,@PS@,$PS,;t t
28771 s,@RM@,$RM,;t t
28772 s,@RMDIR@,$RMDIR,;t t
28773 s,@SED@,$SED,;t t
28774 s,@SH@,$SH,;t t
28775 s,@TAC@,$TAC,;t t
28776 s,@TAR@,$TAR,;t t
28777 s,@TOUCH@,$TOUCH,;t t
28778 s,@TTY@,$TTY,;t t
28779 s,@UMOUNT@,$UMOUNT,;t t
28780 s,@WC@,$WC,;t t
28781 s,@IP@,$IP,;t t
28782 s,@IPTABLES@,$IPTABLES,;t t
28783 s,@MODPROBE@,$MODPROBE,;t t
28784 s,@NAMEIF@,$NAMEIF,;t t
28785 s,@NOHUP@,$NOHUP,;t t
28786 s,@RMMOD@,$RMMOD,;t t
28787 s,@VCONFIG@,$VCONFIG,;t t
28788 s,@WGET@,$WGET,;t t
28789 s,@DOXYGEN@,$DOXYGEN,;t t
28790 s,@XSLTP@,$XSLTP,;t t
28791 s,@XSLTPROC@,$XSLTPROC,;t t
28792 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28793 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28794 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28795 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28796 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28797 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28798 s,@initrddir@,$initrddir,;t t
28799 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28800 s,@DIET@,$DIET,;t t
28801 s,@DIETFLAGS@,$DIETFLAGS,;t t
28802 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28803 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28804 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28805 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28806 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28807 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28808 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28809 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28810 s,@ECHO@,$ECHO,;t t
28811 s,@AR@,$AR,;t t
28812 s,@ac_ct_AR@,$ac_ct_AR,;t t
28813 s,@RANLIB@,$RANLIB,;t t
28814 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28815 s,@CPP@,$CPP,;t t
28816 s,@CXXCPP@,$CXXCPP,;t t
28817 s,@F77@,$F77,;t t
28818 s,@FFLAGS@,$FFLAGS,;t t
28819 s,@ac_ct_F77@,$ac_ct_F77,;t t
28820 s,@LIBTOOL@,$LIBTOOL,;t t
28821 s,@kernelincludedir@,$kernelincludedir,;t t
28822 s,@vserverdir@,$vserverdir,;t t
28823 s,@CVS2CL_TAG@,$CVS2CL_TAG,;t t
28824 s,@CVS2CL@,$CVS2CL,;t t
28825 s,@HAVE_CVS2CL_TRUE@,$HAVE_CVS2CL_TRUE,;t t
28826 s,@HAVE_CVS2CL_FALSE@,$HAVE_CVS2CL_FALSE,;t t
28827 s,@RCS2LOG@,$RCS2LOG,;t t
28828 s,@HAVE_RCS2LOG_TRUE@,$HAVE_RCS2LOG_TRUE,;t t
28829 s,@HAVE_RCS2LOG_FALSE@,$HAVE_RCS2LOG_FALSE,;t t
28830 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28831 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28832 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28833 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28834 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28835 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28836 s,@LIBOBJS@,$LIBOBJS,;t t
28837 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28838 CEOF
28839
28840 _ACEOF
28841
28842   cat >>$CONFIG_STATUS <<\_ACEOF
28843   # Split the substitutions into bite-sized pieces for seds with
28844   # small command number limits, like on Digital OSF/1 and HP-UX.
28845   ac_max_sed_lines=48
28846   ac_sed_frag=1 # Number of current file.
28847   ac_beg=1 # First line for current file.
28848   ac_end=$ac_max_sed_lines # Line after last line for current file.
28849   ac_more_lines=:
28850   ac_sed_cmds=
28851   while $ac_more_lines; do
28852     if test $ac_beg -gt 1; then
28853       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28854     else
28855       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28856     fi
28857     if test ! -s $tmp/subs.frag; then
28858       ac_more_lines=false
28859     else
28860       # The purpose of the label and of the branching condition is to
28861       # speed up the sed processing (if there are no `@' at all, there
28862       # is no need to browse any of the substitutions).
28863       # These are the two extra sed commands mentioned above.
28864       (echo ':t
28865   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28866       if test -z "$ac_sed_cmds"; then
28867         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28868       else
28869         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28870       fi
28871       ac_sed_frag=`expr $ac_sed_frag + 1`
28872       ac_beg=$ac_end
28873       ac_end=`expr $ac_end + $ac_max_sed_lines`
28874     fi
28875   done
28876   if test -z "$ac_sed_cmds"; then
28877     ac_sed_cmds=cat
28878   fi
28879 fi # test -n "$CONFIG_FILES"
28880
28881 _ACEOF
28882 cat >>$CONFIG_STATUS <<\_ACEOF
28883 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28884   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28885   case $ac_file in
28886   - | *:- | *:-:* ) # input from stdin
28887         cat >$tmp/stdin
28888         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28889         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28890   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28891         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28892   * )   ac_file_in=$ac_file.in ;;
28893   esac
28894
28895   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28896   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28897 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28898          X"$ac_file" : 'X\(//\)[^/]' \| \
28899          X"$ac_file" : 'X\(//\)$' \| \
28900          X"$ac_file" : 'X\(/\)' \| \
28901          .     : '\(.\)' 2>/dev/null ||
28902 echo X"$ac_file" |
28903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28904           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28905           /^X\(\/\/\)$/{ s//\1/; q; }
28906           /^X\(\/\).*/{ s//\1/; q; }
28907           s/.*/./; q'`
28908   { if $as_mkdir_p; then
28909     mkdir -p "$ac_dir"
28910   else
28911     as_dir="$ac_dir"
28912     as_dirs=
28913     while test ! -d "$as_dir"; do
28914       as_dirs="$as_dir $as_dirs"
28915       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28917          X"$as_dir" : 'X\(//\)[^/]' \| \
28918          X"$as_dir" : 'X\(//\)$' \| \
28919          X"$as_dir" : 'X\(/\)' \| \
28920          .     : '\(.\)' 2>/dev/null ||
28921 echo X"$as_dir" |
28922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28923           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28924           /^X\(\/\/\)$/{ s//\1/; q; }
28925           /^X\(\/\).*/{ s//\1/; q; }
28926           s/.*/./; q'`
28927     done
28928     test ! -n "$as_dirs" || mkdir $as_dirs
28929   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28930 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28931    { (exit 1); exit 1; }; }; }
28932
28933   ac_builddir=.
28934
28935 if test "$ac_dir" != .; then
28936   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28937   # A "../" for each directory in $ac_dir_suffix.
28938   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28939 else
28940   ac_dir_suffix= ac_top_builddir=
28941 fi
28942
28943 case $srcdir in
28944   .)  # No --srcdir option.  We are building in place.
28945     ac_srcdir=.
28946     if test -z "$ac_top_builddir"; then
28947        ac_top_srcdir=.
28948     else
28949        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28950     fi ;;
28951   [\\/]* | ?:[\\/]* )  # Absolute path.
28952     ac_srcdir=$srcdir$ac_dir_suffix;
28953     ac_top_srcdir=$srcdir ;;
28954   *) # Relative path.
28955     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28956     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28957 esac
28958
28959 # Do not use `cd foo && pwd` to compute absolute paths, because
28960 # the directories may not exist.
28961 case `pwd` in
28962 .) ac_abs_builddir="$ac_dir";;
28963 *)
28964   case "$ac_dir" in
28965   .) ac_abs_builddir=`pwd`;;
28966   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28967   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28968   esac;;
28969 esac
28970 case $ac_abs_builddir in
28971 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28972 *)
28973   case ${ac_top_builddir}. in
28974   .) ac_abs_top_builddir=$ac_abs_builddir;;
28975   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28976   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28977   esac;;
28978 esac
28979 case $ac_abs_builddir in
28980 .) ac_abs_srcdir=$ac_srcdir;;
28981 *)
28982   case $ac_srcdir in
28983   .) ac_abs_srcdir=$ac_abs_builddir;;
28984   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28985   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28986   esac;;
28987 esac
28988 case $ac_abs_builddir in
28989 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28990 *)
28991   case $ac_top_srcdir in
28992   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28993   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28994   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28995   esac;;
28996 esac
28997
28998
28999   case $INSTALL in
29000   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29001   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29002   esac
29003
29004   if test x"$ac_file" != x-; then
29005     { echo "$as_me:$LINENO: creating $ac_file" >&5
29006 echo "$as_me: creating $ac_file" >&6;}
29007     rm -f "$ac_file"
29008   fi
29009   # Let's still pretend it is `configure' which instantiates (i.e., don't
29010   # use $as_me), people would be surprised to read:
29011   #    /* config.h.  Generated by config.status.  */
29012   if test x"$ac_file" = x-; then
29013     configure_input=
29014   else
29015     configure_input="$ac_file.  "
29016   fi
29017   configure_input=$configure_input"Generated from `echo $ac_file_in |
29018                                      sed 's,.*/,,'` by configure."
29019
29020   # First look for the input files in the build tree, otherwise in the
29021   # src tree.
29022   ac_file_inputs=`IFS=:
29023     for f in $ac_file_in; do
29024       case $f in
29025       -) echo $tmp/stdin ;;
29026       [\\/$]*)
29027          # Absolute (can't be DOS-style, as IFS=:)
29028          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29029 echo "$as_me: error: cannot find input file: $f" >&2;}
29030    { (exit 1); exit 1; }; }
29031          echo "$f";;
29032       *) # Relative
29033          if test -f "$f"; then
29034            # Build tree
29035            echo "$f"
29036          elif test -f "$srcdir/$f"; then
29037            # Source tree
29038            echo "$srcdir/$f"
29039          else
29040            # /dev/null tree
29041            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29042 echo "$as_me: error: cannot find input file: $f" >&2;}
29043    { (exit 1); exit 1; }; }
29044          fi;;
29045       esac
29046     done` || { (exit 1); exit 1; }
29047 _ACEOF
29048 cat >>$CONFIG_STATUS <<_ACEOF
29049   sed "$ac_vpsub
29050 $extrasub
29051 _ACEOF
29052 cat >>$CONFIG_STATUS <<\_ACEOF
29053 :t
29054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29055 s,@configure_input@,$configure_input,;t t
29056 s,@srcdir@,$ac_srcdir,;t t
29057 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29058 s,@top_srcdir@,$ac_top_srcdir,;t t
29059 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29060 s,@builddir@,$ac_builddir,;t t
29061 s,@abs_builddir@,$ac_abs_builddir,;t t
29062 s,@top_builddir@,$ac_top_builddir,;t t
29063 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29064 s,@INSTALL@,$ac_INSTALL,;t t
29065 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29066   rm -f $tmp/stdin
29067   if test x"$ac_file" != x-; then
29068     mv $tmp/out $ac_file
29069   else
29070     cat $tmp/out
29071     rm -f $tmp/out
29072   fi
29073
29074 done
29075 _ACEOF
29076 cat >>$CONFIG_STATUS <<\_ACEOF
29077
29078 #
29079 # CONFIG_HEADER section.
29080 #
29081
29082 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29083 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29084 #
29085 # ac_d sets the value in "#define NAME VALUE" lines.
29086 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29087 ac_dB='[         ].*$,\1#\2'
29088 ac_dC=' '
29089 ac_dD=',;t'
29090 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29091 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29092 ac_uB='$,\1#\2define\3'
29093 ac_uC=' '
29094 ac_uD=',;t'
29095
29096 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29097   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29098   case $ac_file in
29099   - | *:- | *:-:* ) # input from stdin
29100         cat >$tmp/stdin
29101         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29102         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29103   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29104         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29105   * )   ac_file_in=$ac_file.in ;;
29106   esac
29107
29108   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29109 echo "$as_me: creating $ac_file" >&6;}
29110
29111   # First look for the input files in the build tree, otherwise in the
29112   # src tree.
29113   ac_file_inputs=`IFS=:
29114     for f in $ac_file_in; do
29115       case $f in
29116       -) echo $tmp/stdin ;;
29117       [\\/$]*)
29118          # Absolute (can't be DOS-style, as IFS=:)
29119          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29120 echo "$as_me: error: cannot find input file: $f" >&2;}
29121    { (exit 1); exit 1; }; }
29122          # Do quote $f, to prevent DOS paths from being IFS'd.
29123          echo "$f";;
29124       *) # Relative
29125          if test -f "$f"; then
29126            # Build tree
29127            echo "$f"
29128          elif test -f "$srcdir/$f"; then
29129            # Source tree
29130            echo "$srcdir/$f"
29131          else
29132            # /dev/null tree
29133            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29134 echo "$as_me: error: cannot find input file: $f" >&2;}
29135    { (exit 1); exit 1; }; }
29136          fi;;
29137       esac
29138     done` || { (exit 1); exit 1; }
29139   # Remove the trailing spaces.
29140   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29141
29142 _ACEOF
29143
29144 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29145 # `conftest.undefs', that substitutes the proper values into
29146 # config.h.in to produce config.h.  The first handles `#define'
29147 # templates, and the second `#undef' templates.
29148 # And first: Protect against being on the right side of a sed subst in
29149 # config.status.  Protect against being in an unquoted here document
29150 # in config.status.
29151 rm -f conftest.defines conftest.undefs
29152 # Using a here document instead of a string reduces the quoting nightmare.
29153 # Putting comments in sed scripts is not portable.
29154 #
29155 # `end' is used to avoid that the second main sed command (meant for
29156 # 0-ary CPP macros) applies to n-ary macro definitions.
29157 # See the Autoconf documentation for `clear'.
29158 cat >confdef2sed.sed <<\_ACEOF
29159 s/[\\&,]/\\&/g
29160 s,[\\$`],\\&,g
29161 t clear
29162 : clear
29163 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29164 t end
29165 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29166 : end
29167 _ACEOF
29168 # If some macros were called several times there might be several times
29169 # the same #defines, which is useless.  Nevertheless, we may not want to
29170 # sort them, since we want the *last* AC-DEFINE to be honored.
29171 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29172 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29173 rm -f confdef2sed.sed
29174
29175 # This sed command replaces #undef with comments.  This is necessary, for
29176 # example, in the case of _POSIX_SOURCE, which is predefined and required
29177 # on some systems where configure will not decide to define it.
29178 cat >>conftest.undefs <<\_ACEOF
29179 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29180 _ACEOF
29181
29182 # Break up conftest.defines because some shells have a limit on the size
29183 # of here documents, and old seds have small limits too (100 cmds).
29184 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29185 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29186 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29187 echo '  :' >>$CONFIG_STATUS
29188 rm -f conftest.tail
29189 while grep . conftest.defines >/dev/null
29190 do
29191   # Write a limited-size here document to $tmp/defines.sed.
29192   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29193   # Speed up: don't consider the non `#define' lines.
29194   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29195   # Work around the forget-to-reset-the-flag bug.
29196   echo 't clr' >>$CONFIG_STATUS
29197   echo ': clr' >>$CONFIG_STATUS
29198   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29199   echo 'CEOF
29200   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29201   rm -f $tmp/in
29202   mv $tmp/out $tmp/in
29203 ' >>$CONFIG_STATUS
29204   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29205   rm -f conftest.defines
29206   mv conftest.tail conftest.defines
29207 done
29208 rm -f conftest.defines
29209 echo '  fi # grep' >>$CONFIG_STATUS
29210 echo >>$CONFIG_STATUS
29211
29212 # Break up conftest.undefs because some shells have a limit on the size
29213 # of here documents, and old seds have small limits too (100 cmds).
29214 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29215 rm -f conftest.tail
29216 while grep . conftest.undefs >/dev/null
29217 do
29218   # Write a limited-size here document to $tmp/undefs.sed.
29219   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29220   # Speed up: don't consider the non `#undef'
29221   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29222   # Work around the forget-to-reset-the-flag bug.
29223   echo 't clr' >>$CONFIG_STATUS
29224   echo ': clr' >>$CONFIG_STATUS
29225   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29226   echo 'CEOF
29227   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29228   rm -f $tmp/in
29229   mv $tmp/out $tmp/in
29230 ' >>$CONFIG_STATUS
29231   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29232   rm -f conftest.undefs
29233   mv conftest.tail conftest.undefs
29234 done
29235 rm -f conftest.undefs
29236
29237 cat >>$CONFIG_STATUS <<\_ACEOF
29238   # Let's still pretend it is `configure' which instantiates (i.e., don't
29239   # use $as_me), people would be surprised to read:
29240   #    /* config.h.  Generated by config.status.  */
29241   if test x"$ac_file" = x-; then
29242     echo "/* Generated by configure.  */" >$tmp/config.h
29243   else
29244     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29245   fi
29246   cat $tmp/in >>$tmp/config.h
29247   rm -f $tmp/in
29248   if test x"$ac_file" != x-; then
29249     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29250       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29251 echo "$as_me: $ac_file is unchanged" >&6;}
29252     else
29253       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29255          X"$ac_file" : 'X\(//\)[^/]' \| \
29256          X"$ac_file" : 'X\(//\)$' \| \
29257          X"$ac_file" : 'X\(/\)' \| \
29258          .     : '\(.\)' 2>/dev/null ||
29259 echo X"$ac_file" |
29260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29261           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29262           /^X\(\/\/\)$/{ s//\1/; q; }
29263           /^X\(\/\).*/{ s//\1/; q; }
29264           s/.*/./; q'`
29265       { if $as_mkdir_p; then
29266     mkdir -p "$ac_dir"
29267   else
29268     as_dir="$ac_dir"
29269     as_dirs=
29270     while test ! -d "$as_dir"; do
29271       as_dirs="$as_dir $as_dirs"
29272       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29274          X"$as_dir" : 'X\(//\)[^/]' \| \
29275          X"$as_dir" : 'X\(//\)$' \| \
29276          X"$as_dir" : 'X\(/\)' \| \
29277          .     : '\(.\)' 2>/dev/null ||
29278 echo X"$as_dir" |
29279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29280           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29281           /^X\(\/\/\)$/{ s//\1/; q; }
29282           /^X\(\/\).*/{ s//\1/; q; }
29283           s/.*/./; q'`
29284     done
29285     test ! -n "$as_dirs" || mkdir $as_dirs
29286   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29287 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29288    { (exit 1); exit 1; }; }; }
29289
29290       rm -f $ac_file
29291       mv $tmp/config.h $ac_file
29292     fi
29293   else
29294     cat $tmp/config.h
29295     rm -f $tmp/config.h
29296   fi
29297 # Compute $ac_file's index in $config_headers.
29298 _am_stamp_count=1
29299 for _am_header in $config_headers :; do
29300   case $_am_header in
29301     $ac_file | $ac_file:* )
29302       break ;;
29303     * )
29304       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29305   esac
29306 done
29307 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29308 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29309          X$ac_file : 'X\(//\)[^/]' \| \
29310          X$ac_file : 'X\(//\)$' \| \
29311          X$ac_file : 'X\(/\)' \| \
29312          .     : '\(.\)' 2>/dev/null ||
29313 echo X$ac_file |
29314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29315           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29316           /^X\(\/\/\)$/{ s//\1/; q; }
29317           /^X\(\/\).*/{ s//\1/; q; }
29318           s/.*/./; q'`/stamp-h$_am_stamp_count
29319 done
29320 _ACEOF
29321 cat >>$CONFIG_STATUS <<\_ACEOF
29322
29323 #
29324 # CONFIG_COMMANDS section.
29325 #
29326 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29327   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29328   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29329   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29330 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29331          X"$ac_dest" : 'X\(//\)[^/]' \| \
29332          X"$ac_dest" : 'X\(//\)$' \| \
29333          X"$ac_dest" : 'X\(/\)' \| \
29334          .     : '\(.\)' 2>/dev/null ||
29335 echo X"$ac_dest" |
29336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29337           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29338           /^X\(\/\/\)$/{ s//\1/; q; }
29339           /^X\(\/\).*/{ s//\1/; q; }
29340           s/.*/./; q'`
29341   { if $as_mkdir_p; then
29342     mkdir -p "$ac_dir"
29343   else
29344     as_dir="$ac_dir"
29345     as_dirs=
29346     while test ! -d "$as_dir"; do
29347       as_dirs="$as_dir $as_dirs"
29348       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29350          X"$as_dir" : 'X\(//\)[^/]' \| \
29351          X"$as_dir" : 'X\(//\)$' \| \
29352          X"$as_dir" : 'X\(/\)' \| \
29353          .     : '\(.\)' 2>/dev/null ||
29354 echo X"$as_dir" |
29355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29356           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29357           /^X\(\/\/\)$/{ s//\1/; q; }
29358           /^X\(\/\).*/{ s//\1/; q; }
29359           s/.*/./; q'`
29360     done
29361     test ! -n "$as_dirs" || mkdir $as_dirs
29362   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29363 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29364    { (exit 1); exit 1; }; }; }
29365
29366   ac_builddir=.
29367
29368 if test "$ac_dir" != .; then
29369   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29370   # A "../" for each directory in $ac_dir_suffix.
29371   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29372 else
29373   ac_dir_suffix= ac_top_builddir=
29374 fi
29375
29376 case $srcdir in
29377   .)  # No --srcdir option.  We are building in place.
29378     ac_srcdir=.
29379     if test -z "$ac_top_builddir"; then
29380        ac_top_srcdir=.
29381     else
29382        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29383     fi ;;
29384   [\\/]* | ?:[\\/]* )  # Absolute path.
29385     ac_srcdir=$srcdir$ac_dir_suffix;
29386     ac_top_srcdir=$srcdir ;;
29387   *) # Relative path.
29388     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29389     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29390 esac
29391
29392 # Do not use `cd foo && pwd` to compute absolute paths, because
29393 # the directories may not exist.
29394 case `pwd` in
29395 .) ac_abs_builddir="$ac_dir";;
29396 *)
29397   case "$ac_dir" in
29398   .) ac_abs_builddir=`pwd`;;
29399   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29400   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29401   esac;;
29402 esac
29403 case $ac_abs_builddir in
29404 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29405 *)
29406   case ${ac_top_builddir}. in
29407   .) ac_abs_top_builddir=$ac_abs_builddir;;
29408   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29409   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29410   esac;;
29411 esac
29412 case $ac_abs_builddir in
29413 .) ac_abs_srcdir=$ac_srcdir;;
29414 *)
29415   case $ac_srcdir in
29416   .) ac_abs_srcdir=$ac_abs_builddir;;
29417   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29418   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29419   esac;;
29420 esac
29421 case $ac_abs_builddir in
29422 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29423 *)
29424   case $ac_top_srcdir in
29425   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29426   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29427   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29428   esac;;
29429 esac
29430
29431
29432   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29433 echo "$as_me: executing $ac_dest commands" >&6;}
29434   case $ac_dest in
29435     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29436   # Strip MF so we end up with the name of the file.
29437   mf=`echo "$mf" | sed -e 's/:.*$//'`
29438   # Check whether this is an Automake generated Makefile or not.
29439   # We used to match only the files named `Makefile.in', but
29440   # some people rename them; so instead we look at the file content.
29441   # Grep'ing the first line is not enough: some people post-process
29442   # each Makefile.in and add a new line on top of each file to say so.
29443   # So let's grep whole file.
29444   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29445     dirpart=`(dirname "$mf") 2>/dev/null ||
29446 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29447          X"$mf" : 'X\(//\)[^/]' \| \
29448          X"$mf" : 'X\(//\)$' \| \
29449          X"$mf" : 'X\(/\)' \| \
29450          .     : '\(.\)' 2>/dev/null ||
29451 echo X"$mf" |
29452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29453           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29454           /^X\(\/\/\)$/{ s//\1/; q; }
29455           /^X\(\/\).*/{ s//\1/; q; }
29456           s/.*/./; q'`
29457   else
29458     continue
29459   fi
29460   # Extract the definition of DEPDIR, am__include, and am__quote
29461   # from the Makefile without running `make'.
29462   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29463   test -z "$DEPDIR" && continue
29464   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29465   test -z "am__include" && continue
29466   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29467   # When using ansi2knr, U may be empty or an underscore; expand it
29468   U=`sed -n 's/^U = //p' < "$mf"`
29469   # Find all dependency output files, they are included files with
29470   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29471   # simplest approach to changing $(DEPDIR) to its actual value in the
29472   # expansion.
29473   for file in `sed -n "
29474     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29475        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29476     # Make sure the directory exists.
29477     test -f "$dirpart/$file" && continue
29478     fdir=`(dirname "$file") 2>/dev/null ||
29479 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29480          X"$file" : 'X\(//\)[^/]' \| \
29481          X"$file" : 'X\(//\)$' \| \
29482          X"$file" : 'X\(/\)' \| \
29483          .     : '\(.\)' 2>/dev/null ||
29484 echo X"$file" |
29485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29486           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29487           /^X\(\/\/\)$/{ s//\1/; q; }
29488           /^X\(\/\).*/{ s//\1/; q; }
29489           s/.*/./; q'`
29490     { if $as_mkdir_p; then
29491     mkdir -p $dirpart/$fdir
29492   else
29493     as_dir=$dirpart/$fdir
29494     as_dirs=
29495     while test ! -d "$as_dir"; do
29496       as_dirs="$as_dir $as_dirs"
29497       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29499          X"$as_dir" : 'X\(//\)[^/]' \| \
29500          X"$as_dir" : 'X\(//\)$' \| \
29501          X"$as_dir" : 'X\(/\)' \| \
29502          .     : '\(.\)' 2>/dev/null ||
29503 echo X"$as_dir" |
29504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29505           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29506           /^X\(\/\/\)$/{ s//\1/; q; }
29507           /^X\(\/\).*/{ s//\1/; q; }
29508           s/.*/./; q'`
29509     done
29510     test ! -n "$as_dirs" || mkdir $as_dirs
29511   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29512 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29513    { (exit 1); exit 1; }; }; }
29514
29515     # echo "creating $dirpart/$file"
29516     echo '# dummy' > "$dirpart/$file"
29517   done
29518 done
29519  ;;
29520   esac
29521 done
29522 _ACEOF
29523
29524 cat >>$CONFIG_STATUS <<\_ACEOF
29525
29526 { (exit 0); exit 0; }
29527 _ACEOF
29528 chmod +x $CONFIG_STATUS
29529 ac_clean_files=$ac_clean_files_save
29530
29531
29532 # configure is writing to config.log, and then calls config.status.
29533 # config.status does its own redirection, appending to config.log.
29534 # Unfortunately, on DOS this fails, as config.log is still kept open
29535 # by configure, so config.status won't be able to write to it; its
29536 # output is simply discarded.  So we exec the FD to /dev/null,
29537 # effectively closing config.log, so it can be properly (re)opened and
29538 # appended to by config.status.  When coming back to configure, we
29539 # need to make the FD available again.
29540 if test "$no_create" != yes; then
29541   ac_cs_success=:
29542   ac_config_status_args=
29543   test "$silent" = yes &&
29544     ac_config_status_args="$ac_config_status_args --quiet"
29545   exec 5>/dev/null
29546   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29547   exec 5>>config.log
29548   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29549   # would make configure fail if this is the last instruction.
29550   $ac_cs_success || { (exit 1); exit 1; }
29551 fi
29552
29553
29554 { echo "$as_me:$LINENO:
29555
29556 $PACKAGE_STRING
29557
29558 $FEATURES_TXT" >&5
29559 echo "$as_me:
29560
29561 $PACKAGE_STRING
29562
29563 $FEATURES_TXT" >&6;}