72786ca83217b8582112c2a04d7431b6fa80193b
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.206 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # 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
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/main/radiusd.c"
429 ac_subdirs_all="$ac_subdirs_all 'libltdl'"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE subdirs LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION 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_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
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_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures this package to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017
1018   cat <<\_ACEOF
1019
1020 Optional Features:
1021   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1023   --disable-largefile     omit support for large files
1024   --enable-shared[=PKGS]
1025                           build shared libraries [default=yes]
1026   --enable-static[=PKGS]
1027                           build static libraries [default=yes]
1028   --enable-fast-install[=PKGS]
1029                           optimize for fast installation [default=yes]
1030   --disable-libtool-lock  avoid locking (might break parallel builds)
1031   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1032   --enable-developer               Enables features of interest to developers.
1033
1034 Optional Packages:
1035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1037   --with-system-libtool              try to use libtool installed in your system default=use our own
1038   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039   --with-pic              try to use only PIC/non-PIC objects [default=use
1040                           both]
1041   --with-tags[=TAGS]
1042                           include additional configurations [automatic]
1043   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1044   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1045   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1046   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1047   --with-threads          Use threads, if available.  (default=yes)
1048   --with-snmp             Compile in SNMP support. (default=yes)
1049   --with-large-files      Compile in large (2G+) file support. (default=no)
1050   --with-static-modules=QUOTED-MODULE-LIST
1051   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1052   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1053   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1054   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1055   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1056   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1057
1058 Some influential environment variables:
1059   CC          C compiler command
1060   CFLAGS      C compiler flags
1061   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1062               nonstandard directory <lib dir>
1063   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064               headers in a nonstandard directory <include dir>
1065   CPP         C preprocessor
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CXXCPP      C++ preprocessor
1069   F77         Fortran 77 compiler command
1070   FFLAGS      Fortran 77 compiler flags
1071
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1074
1075 _ACEOF
1076 fi
1077
1078 if test "$ac_init_help" = "recursive"; then
1079   # If there are subdirs, report their specific --help.
1080   ac_popdir=`pwd`
1081   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082     test -d $ac_dir || continue
1083     ac_builddir=.
1084
1085 if test "$ac_dir" != .; then
1086   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087   # A "../" for each directory in $ac_dir_suffix.
1088   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 else
1090   ac_dir_suffix= ac_top_builddir=
1091 fi
1092
1093 case $srcdir in
1094   .)  # No --srcdir option.  We are building in place.
1095     ac_srcdir=.
1096     if test -z "$ac_top_builddir"; then
1097        ac_top_srcdir=.
1098     else
1099        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100     fi ;;
1101   [\\/]* | ?:[\\/]* )  # Absolute path.
1102     ac_srcdir=$srcdir$ac_dir_suffix;
1103     ac_top_srcdir=$srcdir ;;
1104   *) # Relative path.
1105     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 esac
1108 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1109 # absolute.
1110 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1111 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1112 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1113 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1114
1115     cd $ac_dir
1116     # Check for guested configure; otherwise get Cygnus style configure.
1117     if test -f $ac_srcdir/configure.gnu; then
1118       echo
1119       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1120     elif test -f $ac_srcdir/configure; then
1121       echo
1122       $SHELL $ac_srcdir/configure  --help=recursive
1123     elif test -f $ac_srcdir/configure.ac ||
1124            test -f $ac_srcdir/configure.in; then
1125       echo
1126       $ac_configure --help
1127     else
1128       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129     fi
1130     cd $ac_popdir
1131   done
1132 fi
1133
1134 test -n "$ac_init_help" && exit 0
1135 if $ac_init_version; then
1136   cat <<\_ACEOF
1137
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143   exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.57.  Invocation command line was
1152
1153   $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
1171 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184   IFS=$as_save_IFS
1185   test -z "$as_dir" && as_dir=.
1186   echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213   for ac_arg
1214   do
1215     case $ac_arg in
1216     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218     | -silent | --silent | --silen | --sile | --sil)
1219       continue ;;
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     esac
1223     case $ac_pass in
1224     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225     2)
1226       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227       if test $ac_must_keep_next = true; then
1228         ac_must_keep_next=false # Got value, back to normal.
1229       else
1230         case $ac_arg in
1231           *=* | --config-cache | -C | -disable-* | --disable-* \
1232           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234           | -with-* | --with-* | -without-* | --without-* | --x)
1235             case "$ac_configure_args0 " in
1236               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237             esac
1238             ;;
1239           -* ) ac_must_keep_next=true ;;
1240         esac
1241       fi
1242       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243       # Get rid of the leading space.
1244       ac_sep=" "
1245       ;;
1246     esac
1247   done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log.  We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258   # Save into config.log some information that might help in debugging.
1259   {
1260     echo
1261
1262     cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267     echo
1268     # The following way of writing the cache mishandles newlines in values,
1269 {
1270   (set) 2>&1 |
1271     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272     *ac_space=\ *)
1273       sed -n \
1274         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276       ;;
1277     *)
1278       sed -n \
1279         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280       ;;
1281     esac;
1282 }
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290     echo
1291     for ac_var in $ac_subst_vars
1292     do
1293       eval ac_val=$`echo $ac_var`
1294       echo "$ac_var='"'"'$ac_val'"'"'"
1295     done | sort
1296     echo
1297
1298     if test -n "$ac_subst_files"; then
1299       cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304       echo
1305       for ac_var in $ac_subst_files
1306       do
1307         eval ac_val=$`echo $ac_var`
1308         echo "$ac_var='"'"'$ac_val'"'"'"
1309       done | sort
1310       echo
1311     fi
1312
1313     if test -s confdefs.h; then
1314       cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319       echo
1320       sed "/^$/d" confdefs.h | sort
1321       echo
1322     fi
1323     test "$ac_signal" != 0 &&
1324       echo "$as_me: caught signal $ac_signal"
1325     echo "$as_me: exit $exit_status"
1326   } >&5
1327   rm -f core core.* *.core &&
1328   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329     exit $exit_status
1330      ' 0
1331 for ac_signal in 1 2 13 15; do
1332   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371   if test "x$prefix" != xNONE; then
1372     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373   else
1374     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375   fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378   if test -r "$ac_site_file"; then
1379     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381     sed 's/^/| /' "$ac_site_file" >&5
1382     . "$ac_site_file"
1383   fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387   # Some versions of bash will fail to source /dev/null (special
1388   # files actually), so we avoid doing that.
1389   if test -f "$cache_file"; then
1390     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392     case $cache_file in
1393       [\\/]* | ?:[\\/]* ) . $cache_file;;
1394       *)                      . ./$cache_file;;
1395     esac
1396   fi
1397 else
1398   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400   >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409   eval ac_new_set=\$ac_env_${ac_var}_set
1410   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411   eval ac_new_val="\$ac_env_${ac_var}_value"
1412   case $ac_old_set,$ac_new_set in
1413     set,)
1414       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416       ac_cache_corrupted=: ;;
1417     ,set)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,);;
1422     *)
1423       if test "x$ac_old_val" != "x$ac_new_val"; then
1424         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427 echo "$as_me:   former value:  $ac_old_val" >&2;}
1428         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429 echo "$as_me:   current value: $ac_new_val" >&2;}
1430         ac_cache_corrupted=:
1431       fi;;
1432   esac
1433   # Pass precious variables to config.status.
1434   if test "$ac_new_set" = set; then
1435     case $ac_new_val in
1436     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438     *) ac_arg=$ac_var=$ac_new_val ;;
1439     esac
1440     case " $ac_configure_args " in
1441       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1442       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443     esac
1444   fi
1445 done
1446 if $ac_cache_corrupted; then
1447   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 ac_ext=c
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1479
1480
1481 RADIUSD_MAJOR_VERSION=1
1482 RADIUSD_MINOR_VERSION=1.0-pre0
1483 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1484
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491 if test -n "$ac_tool_prefix"; then
1492   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_CC+set}" = set; then
1497   echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499   if test -n "$CC"; then
1500   ac_cv_prog_CC="$CC" # Let the user override the test.
1501 else
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   for ac_exec_ext in '' $ac_executable_extensions; do
1508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511     break 2
1512   fi
1513 done
1514 done
1515
1516 fi
1517 fi
1518 CC=$ac_cv_prog_CC
1519 if test -n "$CC"; then
1520   echo "$as_me:$LINENO: result: $CC" >&5
1521 echo "${ECHO_T}$CC" >&6
1522 else
1523   echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527 fi
1528 if test -z "$ac_cv_prog_CC"; then
1529   ac_ct_CC=$CC
1530   # Extract the first word of "gcc", so it can be a program name with args.
1531 set dummy gcc; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1535   echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537   if test -n "$ac_ct_CC"; then
1538   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1539 else
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 for as_dir in $PATH
1542 do
1543   IFS=$as_save_IFS
1544   test -z "$as_dir" && as_dir=.
1545   for ac_exec_ext in '' $ac_executable_extensions; do
1546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547     ac_cv_prog_ac_ct_CC="gcc"
1548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549     break 2
1550   fi
1551 done
1552 done
1553
1554 fi
1555 fi
1556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1557 if test -n "$ac_ct_CC"; then
1558   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1559 echo "${ECHO_T}$ac_ct_CC" >&6
1560 else
1561   echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1563 fi
1564
1565   CC=$ac_ct_CC
1566 else
1567   CC="$ac_cv_prog_CC"
1568 fi
1569
1570 if test -z "$CC"; then
1571   if test -n "$ac_tool_prefix"; then
1572   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1573 set dummy ${ac_tool_prefix}cc; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_CC+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   if test -n "$CC"; then
1580   ac_cv_prog_CC="$CC" # Let the user override the test.
1581 else
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   for ac_exec_ext in '' $ac_executable_extensions; do
1588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589     ac_cv_prog_CC="${ac_tool_prefix}cc"
1590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591     break 2
1592   fi
1593 done
1594 done
1595
1596 fi
1597 fi
1598 CC=$ac_cv_prog_CC
1599 if test -n "$CC"; then
1600   echo "$as_me:$LINENO: result: $CC" >&5
1601 echo "${ECHO_T}$CC" >&6
1602 else
1603   echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1605 fi
1606
1607 fi
1608 if test -z "$ac_cv_prog_CC"; then
1609   ac_ct_CC=$CC
1610   # Extract the first word of "cc", so it can be a program name with args.
1611 set dummy cc; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1615   echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617   if test -n "$ac_ct_CC"; then
1618   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1619 else
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 for as_dir in $PATH
1622 do
1623   IFS=$as_save_IFS
1624   test -z "$as_dir" && as_dir=.
1625   for ac_exec_ext in '' $ac_executable_extensions; do
1626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627     ac_cv_prog_ac_ct_CC="cc"
1628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629     break 2
1630   fi
1631 done
1632 done
1633
1634 fi
1635 fi
1636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1637 if test -n "$ac_ct_CC"; then
1638   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1639 echo "${ECHO_T}$ac_ct_CC" >&6
1640 else
1641   echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1643 fi
1644
1645   CC=$ac_ct_CC
1646 else
1647   CC="$ac_cv_prog_CC"
1648 fi
1649
1650 fi
1651 if test -z "$CC"; then
1652   # Extract the first word of "cc", so it can be a program name with args.
1653 set dummy cc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$CC"; then
1660   ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662   ac_prog_rejected=no
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666   IFS=$as_save_IFS
1667   test -z "$as_dir" && as_dir=.
1668   for ac_exec_ext in '' $ac_executable_extensions; do
1669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1671        ac_prog_rejected=yes
1672        continue
1673      fi
1674     ac_cv_prog_CC="cc"
1675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676     break 2
1677   fi
1678 done
1679 done
1680
1681 if test $ac_prog_rejected = yes; then
1682   # We found a bogon in the path, so make sure we never use it.
1683   set dummy $ac_cv_prog_CC
1684   shift
1685   if test $# != 0; then
1686     # We chose a different compiler from the bogus one.
1687     # However, it has the same basename, so the bogon will be chosen
1688     # first if we set CC to just the basename; use the full file name.
1689     shift
1690     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1691   fi
1692 fi
1693 fi
1694 fi
1695 CC=$ac_cv_prog_CC
1696 if test -n "$CC"; then
1697   echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1699 else
1700   echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1702 fi
1703
1704 fi
1705 if test -z "$CC"; then
1706   if test -n "$ac_tool_prefix"; then
1707   for ac_prog in cl
1708   do
1709     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_CC+set}" = set; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   if test -n "$CC"; then
1717   ac_cv_prog_CC="$CC" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   for ac_exec_ext in '' $ac_executable_extensions; do
1725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728     break 2
1729   fi
1730 done
1731 done
1732
1733 fi
1734 fi
1735 CC=$ac_cv_prog_CC
1736 if test -n "$CC"; then
1737   echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6
1739 else
1740   echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744     test -n "$CC" && break
1745   done
1746 fi
1747 if test -z "$CC"; then
1748   ac_ct_CC=$CC
1749   for ac_prog in cl
1750 do
1751   # Extract the first word of "$ac_prog", so it can be a program name with args.
1752 set dummy $ac_prog; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   if test -n "$ac_ct_CC"; then
1759   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764   IFS=$as_save_IFS
1765   test -z "$as_dir" && as_dir=.
1766   for ac_exec_ext in '' $ac_executable_extensions; do
1767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768     ac_cv_prog_ac_ct_CC="$ac_prog"
1769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770     break 2
1771   fi
1772 done
1773 done
1774
1775 fi
1776 fi
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1781 else
1782   echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 fi
1785
1786   test -n "$ac_ct_CC" && break
1787 done
1788
1789   CC=$ac_ct_CC
1790 fi
1791
1792 fi
1793
1794
1795 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1796 See \`config.log' for more details." >&5
1797 echo "$as_me: error: no acceptable C compiler found in \$PATH
1798 See \`config.log' for more details." >&2;}
1799    { (exit 1); exit 1; }; }
1800
1801 # Provide some information about the compiler.
1802 echo "$as_me:$LINENO:" \
1803      "checking for C compiler version" >&5
1804 ac_compiler=`set X $ac_compile; echo $2`
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1806   (eval $ac_compiler --version </dev/null >&5) 2>&5
1807   ac_status=$?
1808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809   (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1811   (eval $ac_compiler -v </dev/null >&5) 2>&5
1812   ac_status=$?
1813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814   (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1816   (eval $ac_compiler -V </dev/null >&5) 2>&5
1817   ac_status=$?
1818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819   (exit $ac_status); }
1820
1821 cat >conftest.$ac_ext <<_ACEOF
1822 #line $LINENO "configure"
1823 /* confdefs.h.  */
1824 _ACEOF
1825 cat confdefs.h >>conftest.$ac_ext
1826 cat >>conftest.$ac_ext <<_ACEOF
1827 /* end confdefs.h.  */
1828
1829 int
1830 main ()
1831 {
1832
1833   ;
1834   return 0;
1835 }
1836 _ACEOF
1837 ac_clean_files_save=$ac_clean_files
1838 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1839 # Try to create an executable without -o first, disregard a.out.
1840 # It will help us diagnose broken compilers, and finding out an intuition
1841 # of exeext.
1842 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1843 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1844 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1845 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1846   (eval $ac_link_default) 2>&5
1847   ac_status=$?
1848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849   (exit $ac_status); }; then
1850   # Find the output, starting from the most likely.  This scheme is
1851 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1852 # resort.
1853
1854 # Be careful to initialize this variable, since it used to be cached.
1855 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1856 ac_cv_exeext=
1857 # b.out is created by i960 compilers.
1858 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1859 do
1860   test -f "$ac_file" || continue
1861   case $ac_file in
1862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1863         ;;
1864     conftest.$ac_ext )
1865         # This is the source file.
1866         ;;
1867     [ab].out )
1868         # We found the default executable, but exeext='' is most
1869         # certainly right.
1870         break;;
1871     *.* )
1872         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1873         # FIXME: I believe we export ac_cv_exeext for Libtool,
1874         # but it would be cool to find out if it's true.  Does anybody
1875         # maintain Libtool? --akim.
1876         export ac_cv_exeext
1877         break;;
1878     * )
1879         break;;
1880   esac
1881 done
1882 else
1883   echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: C compiler cannot create executables
1889 See \`config.log' for more details." >&2;}
1890    { (exit 77); exit 77; }; }
1891 fi
1892
1893 ac_exeext=$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_file" >&5
1895 echo "${ECHO_T}$ac_file" >&6
1896
1897 # Check the compiler produces executables we can run.  If not, either
1898 # the compiler is broken, or we cross compile.
1899 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1900 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1901 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1902 # If not cross compiling, check that we can run a simple program.
1903 if test "$cross_compiling" != yes; then
1904   if { ac_try='./$ac_file'
1905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1906   (eval $ac_try) 2>&5
1907   ac_status=$?
1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909   (exit $ac_status); }; }; then
1910     cross_compiling=no
1911   else
1912     if test "$cross_compiling" = maybe; then
1913         cross_compiling=yes
1914     else
1915         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1916 If you meant to cross compile, use \`--host'.
1917 See \`config.log' for more details." >&5
1918 echo "$as_me: error: cannot run C compiled programs.
1919 If you meant to cross compile, use \`--host'.
1920 See \`config.log' for more details." >&2;}
1921    { (exit 1); exit 1; }; }
1922     fi
1923   fi
1924 fi
1925 echo "$as_me:$LINENO: result: yes" >&5
1926 echo "${ECHO_T}yes" >&6
1927
1928 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1929 ac_clean_files=$ac_clean_files_save
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1933 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1934 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1935 echo "${ECHO_T}$cross_compiling" >&6
1936
1937 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1938 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1940   (eval $ac_link) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; then
1944   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1945 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1946 # work properly (i.e., refer to `conftest.exe'), while it won't with
1947 # `rm'.
1948 for ac_file in conftest.exe conftest conftest.*; do
1949   test -f "$ac_file" || continue
1950   case $ac_file in
1951     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1952     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1953           export ac_cv_exeext
1954           break;;
1955     * ) break;;
1956   esac
1957 done
1958 else
1959   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1962 See \`config.log' for more details." >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 rm -f conftest$ac_cv_exeext
1967 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1968 echo "${ECHO_T}$ac_cv_exeext" >&6
1969
1970 rm -f conftest.$ac_ext
1971 EXEEXT=$ac_cv_exeext
1972 ac_exeext=$EXEEXT
1973 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1974 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1975 if test "${ac_cv_objext+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 /* confdefs.h.  */
1981 _ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h.  */
1985
1986 int
1987 main ()
1988 {
1989
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 rm -f conftest.o conftest.obj
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996   (eval $ac_compile) 2>&5
1997   ac_status=$?
1998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999   (exit $ac_status); }; then
2000   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2001   case $ac_file in
2002     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2003     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2004        break;;
2005   esac
2006 done
2007 else
2008   echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2014 See \`config.log' for more details." >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017
2018 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2019 fi
2020 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2021 echo "${ECHO_T}$ac_cv_objext" >&6
2022 OBJEXT=$ac_cv_objext
2023 ac_objext=$OBJEXT
2024 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2025 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2026 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   cat >conftest.$ac_ext <<_ACEOF
2030 #line $LINENO "configure"
2031 /* confdefs.h.  */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h.  */
2036
2037 int
2038 main ()
2039 {
2040 #ifndef __GNUC__
2041        choke me
2042 #endif
2043
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050   (eval $ac_compile) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); } &&
2054          { ac_try='test -s conftest.$ac_objext'
2055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056   (eval $ac_try) 2>&5
2057   ac_status=$?
2058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059   (exit $ac_status); }; }; then
2060   ac_compiler_gnu=yes
2061 else
2062   echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065 ac_compiler_gnu=no
2066 fi
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2069
2070 fi
2071 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2073 GCC=`test $ac_compiler_gnu = yes && echo yes`
2074 ac_test_CFLAGS=${CFLAGS+set}
2075 ac_save_CFLAGS=$CFLAGS
2076 CFLAGS="-g"
2077 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2079 if test "${ac_cv_prog_cc_g+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h.  */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h.  */
2089
2090 int
2091 main ()
2092 {
2093
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100   (eval $ac_compile) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); } &&
2104          { ac_try='test -s conftest.$ac_objext'
2105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106   (eval $ac_try) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }; }; then
2110   ac_cv_prog_cc_g=yes
2111 else
2112   echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_cv_prog_cc_g=no
2116 fi
2117 rm -f conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2121 if test "$ac_test_CFLAGS" = set; then
2122   CFLAGS=$ac_save_CFLAGS
2123 elif test $ac_cv_prog_cc_g = yes; then
2124   if test "$GCC" = yes; then
2125     CFLAGS="-g -O2"
2126   else
2127     CFLAGS="-g"
2128   fi
2129 else
2130   if test "$GCC" = yes; then
2131     CFLAGS="-O2"
2132   else
2133     CFLAGS=
2134   fi
2135 fi
2136 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2137 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   ac_cv_prog_cc_stdc=no
2142 ac_save_CC=$CC
2143 cat >conftest.$ac_ext <<_ACEOF
2144 #line $LINENO "configure"
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150 #include <stdarg.h>
2151 #include <stdio.h>
2152 #include <sys/types.h>
2153 #include <sys/stat.h>
2154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2155 struct buf { int x; };
2156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157 static char *e (p, i)
2158      char **p;
2159      int i;
2160 {
2161   return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165   char *s;
2166   va_list v;
2167   va_start (v,p);
2168   s = g (p, va_arg (v,int));
2169   va_end (v);
2170   return s;
2171 }
2172 int test (int i, double x);
2173 struct s1 {int (*f) (int a);};
2174 struct s2 {int (*f) (double a);};
2175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2176 int argc;
2177 char **argv;
2178 int
2179 main ()
2180 {
2181 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 # Don't try gcc -ansi; that turns off useful extensions and
2187 # breaks some systems' header files.
2188 # AIX                   -qlanglvl=ansi
2189 # Ultrix and OSF/1      -std1
2190 # HP-UX 10.20 and later -Ae
2191 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2192 # SVR4                  -Xc -D__EXTENSIONS__
2193 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2194 do
2195   CC="$ac_save_CC $ac_arg"
2196   rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198   (eval $ac_compile) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } &&
2202          { ac_try='test -s conftest.$ac_objext'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; }; then
2208   ac_cv_prog_cc_stdc=$ac_arg
2209 break
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 fi
2215 rm -f conftest.$ac_objext
2216 done
2217 rm -f conftest.$ac_ext conftest.$ac_objext
2218 CC=$ac_save_CC
2219
2220 fi
2221
2222 case "x$ac_cv_prog_cc_stdc" in
2223   x|xno)
2224     echo "$as_me:$LINENO: result: none needed" >&5
2225 echo "${ECHO_T}none needed" >&6 ;;
2226   *)
2227     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2228 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2229     CC="$CC $ac_cv_prog_cc_stdc" ;;
2230 esac
2231
2232 # Some people use a C++ compiler to compile C.  Since we use `exit',
2233 # in C++ we need to declare it.  In case someone uses the same compiler
2234 # for both compiling C and C++ we need to have the C++ compiler decide
2235 # the declaration of exit, since it's the most demanding environment.
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #ifndef __cplusplus
2238   choke me
2239 #endif
2240 _ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243   (eval $ac_compile) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); } &&
2247          { ac_try='test -s conftest.$ac_objext'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; }; then
2253   for ac_declaration in \
2254    ''\
2255    '#include <stdlib.h>' \
2256    'extern "C" void std::exit (int) throw (); using std::exit;' \
2257    'extern "C" void std::exit (int); using std::exit;' \
2258    'extern "C" void exit (int) throw ();' \
2259    'extern "C" void exit (int);' \
2260    'void exit (int);'
2261 do
2262   cat >conftest.$ac_ext <<_ACEOF
2263 #line $LINENO "configure"
2264 /* confdefs.h.  */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h.  */
2269 #include <stdlib.h>
2270 $ac_declaration
2271 int
2272 main ()
2273 {
2274 exit (42);
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281   (eval $ac_compile) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   :
2292 else
2293   echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 continue
2297 fi
2298 rm -f conftest.$ac_objext conftest.$ac_ext
2299   cat >conftest.$ac_ext <<_ACEOF
2300 #line $LINENO "configure"
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306 $ac_declaration
2307 int
2308 main ()
2309 {
2310 exit (42);
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317   (eval $ac_compile) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   break
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 done
2335 rm -f conftest*
2336 if test -n "$ac_declaration"; then
2337   echo '#ifdef __cplusplus' >>confdefs.h
2338   echo $ac_declaration      >>confdefs.h
2339   echo '#endif'             >>confdefs.h
2340 fi
2341
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 fi
2347 rm -f conftest.$ac_objext conftest.$ac_ext
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353
2354
2355
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2363 # On Suns, sometimes $CPP names a directory.
2364 if test -n "$CPP" && test -d "$CPP"; then
2365   CPP=
2366 fi
2367 if test -z "$CPP"; then
2368   if test "${ac_cv_prog_CPP+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371       # Double quotes because CPP needs to be expanded
2372     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2373     do
2374       ac_preproc_ok=false
2375 for ac_c_preproc_warn_flag in '' yes
2376 do
2377   # Use a header file that comes with gcc, so configuring glibc
2378   # with a fresh cross-compiler works.
2379   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2380   # <limits.h> exists even on freestanding compilers.
2381   # On the NeXT, cc -E runs the code through the compiler's parser,
2382   # not just through cpp. "Syntax error" is here to catch this case.
2383   cat >conftest.$ac_ext <<_ACEOF
2384 #line $LINENO "configure"
2385 /* confdefs.h.  */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h.  */
2390 #ifdef __STDC__
2391 # include <limits.h>
2392 #else
2393 # include <assert.h>
2394 #endif
2395                      Syntax error
2396 _ACEOF
2397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2399   ac_status=$?
2400   grep -v '^ *+' conftest.er1 >conftest.err
2401   rm -f conftest.er1
2402   cat conftest.err >&5
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } >/dev/null; then
2405   if test -s conftest.err; then
2406     ac_cpp_err=$ac_c_preproc_warn_flag
2407   else
2408     ac_cpp_err=
2409   fi
2410 else
2411   ac_cpp_err=yes
2412 fi
2413 if test -z "$ac_cpp_err"; then
2414   :
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419   # Broken: fails on valid input.
2420 continue
2421 fi
2422 rm -f conftest.err conftest.$ac_ext
2423
2424   # OK, works on sane cases.  Now check whether non-existent headers
2425   # can be detected and how.
2426   cat >conftest.$ac_ext <<_ACEOF
2427 #line $LINENO "configure"
2428 /* confdefs.h.  */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h.  */
2433 #include <ac_nonexistent.h>
2434 _ACEOF
2435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } >/dev/null; then
2443   if test -s conftest.err; then
2444     ac_cpp_err=$ac_c_preproc_warn_flag
2445   else
2446     ac_cpp_err=
2447   fi
2448 else
2449   ac_cpp_err=yes
2450 fi
2451 if test -z "$ac_cpp_err"; then
2452   # Broken: success on invalid input.
2453 continue
2454 else
2455   echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457
2458   # Passes both tests.
2459 ac_preproc_ok=:
2460 break
2461 fi
2462 rm -f conftest.err conftest.$ac_ext
2463
2464 done
2465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2466 rm -f conftest.err conftest.$ac_ext
2467 if $ac_preproc_ok; then
2468   break
2469 fi
2470
2471     done
2472     ac_cv_prog_CPP=$CPP
2473
2474 fi
2475   CPP=$ac_cv_prog_CPP
2476 else
2477   ac_cv_prog_CPP=$CPP
2478 fi
2479 echo "$as_me:$LINENO: result: $CPP" >&5
2480 echo "${ECHO_T}$CPP" >&6
2481 ac_preproc_ok=false
2482 for ac_c_preproc_warn_flag in '' yes
2483 do
2484   # Use a header file that comes with gcc, so configuring glibc
2485   # with a fresh cross-compiler works.
2486   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2487   # <limits.h> exists even on freestanding compilers.
2488   # On the NeXT, cc -E runs the code through the compiler's parser,
2489   # not just through cpp. "Syntax error" is here to catch this case.
2490   cat >conftest.$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2492 /* confdefs.h.  */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h.  */
2497 #ifdef __STDC__
2498 # include <limits.h>
2499 #else
2500 # include <assert.h>
2501 #endif
2502                      Syntax error
2503 _ACEOF
2504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } >/dev/null; then
2512   if test -s conftest.err; then
2513     ac_cpp_err=$ac_c_preproc_warn_flag
2514   else
2515     ac_cpp_err=
2516   fi
2517 else
2518   ac_cpp_err=yes
2519 fi
2520 if test -z "$ac_cpp_err"; then
2521   :
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526   # Broken: fails on valid input.
2527 continue
2528 fi
2529 rm -f conftest.err conftest.$ac_ext
2530
2531   # OK, works on sane cases.  Now check whether non-existent headers
2532   # can be detected and how.
2533   cat >conftest.$ac_ext <<_ACEOF
2534 #line $LINENO "configure"
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540 #include <ac_nonexistent.h>
2541 _ACEOF
2542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544   ac_status=$?
2545   grep -v '^ *+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } >/dev/null; then
2550   if test -s conftest.err; then
2551     ac_cpp_err=$ac_c_preproc_warn_flag
2552   else
2553     ac_cpp_err=
2554   fi
2555 else
2556   ac_cpp_err=yes
2557 fi
2558 if test -z "$ac_cpp_err"; then
2559   # Broken: success on invalid input.
2560 continue
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565   # Passes both tests.
2566 ac_preproc_ok=:
2567 break
2568 fi
2569 rm -f conftest.err conftest.$ac_ext
2570
2571 done
2572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2573 rm -f conftest.err conftest.$ac_ext
2574 if $ac_preproc_ok; then
2575   :
2576 else
2577   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2580 See \`config.log' for more details." >&2;}
2581    { (exit 1); exit 1; }; }
2582 fi
2583
2584 ac_ext=c
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589
2590
2591 echo "$as_me:$LINENO: checking for egrep" >&5
2592 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2593 if test "${ac_cv_prog_egrep+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2597     then ac_cv_prog_egrep='grep -E'
2598     else ac_cv_prog_egrep='egrep'
2599     fi
2600 fi
2601 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2602 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2603  EGREP=$ac_cv_prog_egrep
2604
2605
2606
2607 echo "$as_me:$LINENO: checking for AIX" >&5
2608 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 /* confdefs.h.  */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h.  */
2616 #ifdef _AIX
2617   yes
2618 #endif
2619
2620 _ACEOF
2621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2622   $EGREP "yes" >/dev/null 2>&1; then
2623   echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625 cat >>confdefs.h <<\_ACEOF
2626 #define _ALL_SOURCE 1
2627 _ACEOF
2628
2629 else
2630   echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2632 fi
2633 rm -f conftest*
2634
2635
2636
2637 if test $ac_cv_c_compiler_gnu = yes; then
2638     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2639 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2640 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643     ac_pattern="Autoconf.*'x'"
2644   cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 /* confdefs.h.  */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h.  */
2651 #include <sgtty.h>
2652 Autoconf TIOCGETP
2653 _ACEOF
2654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2655   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2656   ac_cv_prog_gcc_traditional=yes
2657 else
2658   ac_cv_prog_gcc_traditional=no
2659 fi
2660 rm -f conftest*
2661
2662
2663   if test $ac_cv_prog_gcc_traditional = no; then
2664     cat >conftest.$ac_ext <<_ACEOF
2665 #line $LINENO "configure"
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2671 #include <termio.h>
2672 Autoconf TCGETA
2673 _ACEOF
2674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2675   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2676   ac_cv_prog_gcc_traditional=yes
2677 fi
2678 rm -f conftest*
2679
2680   fi
2681 fi
2682 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2683 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2684   if test $ac_cv_prog_gcc_traditional = yes; then
2685     CC="$CC -traditional"
2686   fi
2687 fi
2688
2689 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2690 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2691 if test "${ac_cv_prog_suncc+set}" = set; then
2692   echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694   cat > conftest.c <<EOF
2695 #ifdef __SUNPRO_C
2696   yes;
2697 #endif
2698 EOF
2699 if { ac_try='${CC-cc} -E conftest.c'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2705   ac_cv_prog_suncc=yes
2706 else
2707   ac_cv_prog_suncc=no
2708 fi
2709 fi
2710 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2711 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2712 if test -n "$ac_tool_prefix"; then
2713   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_RANLIB+set}" = set; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   if test -n "$RANLIB"; then
2721   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728   for ac_exec_ext in '' $ac_executable_extensions; do
2729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735 done
2736
2737 fi
2738 fi
2739 RANLIB=$ac_cv_prog_RANLIB
2740 if test -n "$RANLIB"; then
2741   echo "$as_me:$LINENO: result: $RANLIB" >&5
2742 echo "${ECHO_T}$RANLIB" >&6
2743 else
2744   echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2746 fi
2747
2748 fi
2749 if test -z "$ac_cv_prog_RANLIB"; then
2750   ac_ct_RANLIB=$RANLIB
2751   # Extract the first word of "ranlib", so it can be a program name with args.
2752 set dummy ranlib; ac_word=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   if test -n "$ac_ct_RANLIB"; then
2759   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764   IFS=$as_save_IFS
2765   test -z "$as_dir" && as_dir=.
2766   for ac_exec_ext in '' $ac_executable_extensions; do
2767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768     ac_cv_prog_ac_ct_RANLIB="ranlib"
2769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770     break 2
2771   fi
2772 done
2773 done
2774
2775   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2776 fi
2777 fi
2778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2779 if test -n "$ac_ct_RANLIB"; then
2780   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2782 else
2783   echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2785 fi
2786
2787   RANLIB=$ac_ct_RANLIB
2788 else
2789   RANLIB="$ac_cv_prog_RANLIB"
2790 fi
2791
2792
2793 abs_top_builddir=`pwd`
2794
2795
2796 # Check whether --enable-largefile or --disable-largefile was given.
2797 if test "${enable_largefile+set}" = set; then
2798   enableval="$enable_largefile"
2799
2800 fi;
2801 if test "$enable_largefile" != no; then
2802
2803   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2804 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2805 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   ac_cv_sys_largefile_CC=no
2809      if test "$GCC" != yes; then
2810        ac_save_CC=$CC
2811        while :; do
2812          # IRIX 6.2 and later do not support large files by default,
2813          # so use the C compiler's -n32 option if that helps.
2814          cat >conftest.$ac_ext <<_ACEOF
2815 #line $LINENO "configure"
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821 #include <sys/types.h>
2822  /* Check that off_t can represent 2**63 - 1 correctly.
2823     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2824     since some C++ compilers masquerading as C compilers
2825     incorrectly reject 9223372036854775807.  */
2826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2827   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2828                        && LARGE_OFF_T % 2147483647 == 1)
2829                       ? 1 : -1];
2830 int
2831 main ()
2832 {
2833
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838          rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840   (eval $ac_compile) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -s conftest.$ac_objext'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; }; then
2850   break
2851 else
2852   echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 fi
2856 rm -f conftest.$ac_objext
2857          CC="$CC -n32"
2858          rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860   (eval $ac_compile) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } &&
2864          { ac_try='test -s conftest.$ac_objext'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870   ac_cv_sys_largefile_CC=' -n32'; break
2871 else
2872   echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 fi
2876 rm -f conftest.$ac_objext
2877          break
2878        done
2879        CC=$ac_save_CC
2880        rm -f conftest.$ac_ext
2881     fi
2882 fi
2883 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2884 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2885   if test "$ac_cv_sys_largefile_CC" != no; then
2886     CC=$CC$ac_cv_sys_largefile_CC
2887   fi
2888
2889   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2890 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2891 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   while :; do
2895   ac_cv_sys_file_offset_bits=no
2896   cat >conftest.$ac_ext <<_ACEOF
2897 #line $LINENO "configure"
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #include <sys/types.h>
2904  /* Check that off_t can represent 2**63 - 1 correctly.
2905     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2906     since some C++ compilers masquerading as C compilers
2907     incorrectly reject 9223372036854775807.  */
2908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2909   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2910                        && LARGE_OFF_T % 2147483647 == 1)
2911                       ? 1 : -1];
2912 int
2913 main ()
2914 {
2915
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922   (eval $ac_compile) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); } &&
2926          { ac_try='test -s conftest.$ac_objext'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; }; then
2932   break
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 fi
2938 rm -f conftest.$ac_objext conftest.$ac_ext
2939   cat >conftest.$ac_ext <<_ACEOF
2940 #line $LINENO "configure"
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #define _FILE_OFFSET_BITS 64
2947 #include <sys/types.h>
2948  /* Check that off_t can represent 2**63 - 1 correctly.
2949     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2950     since some C++ compilers masquerading as C compilers
2951     incorrectly reject 9223372036854775807.  */
2952 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2953   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2954                        && LARGE_OFF_T % 2147483647 == 1)
2955                       ? 1 : -1];
2956 int
2957 main ()
2958 {
2959
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966   (eval $ac_compile) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972   (eval $ac_try) 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; }; then
2976   ac_cv_sys_file_offset_bits=64; break
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 fi
2982 rm -f conftest.$ac_objext conftest.$ac_ext
2983   break
2984 done
2985 fi
2986 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2987 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2988 if test "$ac_cv_sys_file_offset_bits" != no; then
2989
2990 cat >>confdefs.h <<_ACEOF
2991 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2992 _ACEOF
2993
2994 fi
2995 rm -f conftest*
2996   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2997 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2998 if test "${ac_cv_sys_large_files+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   while :; do
3002   ac_cv_sys_large_files=no
3003   cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #include <sys/types.h>
3011  /* Check that off_t can represent 2**63 - 1 correctly.
3012     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3013     since some C++ compilers masquerading as C compilers
3014     incorrectly reject 9223372036854775807.  */
3015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3016   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3017                        && LARGE_OFF_T % 2147483647 == 1)
3018                       ? 1 : -1];
3019 int
3020 main ()
3021 {
3022
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029   (eval $ac_compile) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); } &&
3033          { ac_try='test -s conftest.$ac_objext'
3034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035   (eval $ac_try) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   break
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 fi
3045 rm -f conftest.$ac_objext conftest.$ac_ext
3046   cat >conftest.$ac_ext <<_ACEOF
3047 #line $LINENO "configure"
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 #define _LARGE_FILES 1
3054 #include <sys/types.h>
3055  /* Check that off_t can represent 2**63 - 1 correctly.
3056     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3057     since some C++ compilers masquerading as C compilers
3058     incorrectly reject 9223372036854775807.  */
3059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3060   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3061                        && LARGE_OFF_T % 2147483647 == 1)
3062                       ? 1 : -1];
3063 int
3064 main ()
3065 {
3066
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073   (eval $ac_compile) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } &&
3077          { ac_try='test -s conftest.$ac_objext'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; }; then
3083   ac_cv_sys_large_files=1; break
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 fi
3089 rm -f conftest.$ac_objext conftest.$ac_ext
3090   break
3091 done
3092 fi
3093 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3094 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3095 if test "$ac_cv_sys_large_files" != no; then
3096
3097 cat >>confdefs.h <<_ACEOF
3098 #define _LARGE_FILES $ac_cv_sys_large_files
3099 _ACEOF
3100
3101 fi
3102 rm -f conftest*
3103 fi
3104
3105
3106 PACKAGE=freeradius
3107
3108 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3109 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3110 if test "${ac_cv_c_bigendian+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   # See if sys/param.h defines the BYTE_ORDER macro.
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121 #include <sys/types.h>
3122 #include <sys/param.h>
3123
3124 int
3125 main ()
3126 {
3127 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3128  bogus endian macros
3129 #endif
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137   (eval $ac_compile) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   # It does; now see whether it defined to BIG_ENDIAN or not.
3148 cat >conftest.$ac_ext <<_ACEOF
3149 #line $LINENO "configure"
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155 #include <sys/types.h>
3156 #include <sys/param.h>
3157
3158 int
3159 main ()
3160 {
3161 #if BYTE_ORDER != BIG_ENDIAN
3162  not big endian
3163 #endif
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171   (eval $ac_compile) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } &&
3175          { ac_try='test -s conftest.$ac_objext'
3176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177   (eval $ac_try) 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; }; then
3181   ac_cv_c_bigendian=yes
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186 ac_cv_c_bigendian=no
3187 fi
3188 rm -f conftest.$ac_objext conftest.$ac_ext
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 # It does not; compile a test program.
3194 if test "$cross_compiling" = yes; then
3195   # try to guess the endianness by grepping values into an object file
3196   ac_cv_c_bigendian=unknown
3197   cat >conftest.$ac_ext <<_ACEOF
3198 #line $LINENO "configure"
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3205 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3206 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3207 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3208 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3209 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3210 int
3211 main ()
3212 {
3213  _ascii (); _ebcdic ();
3214   ;
3215   return 0;
3216 }
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220   (eval $ac_compile) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } &&
3224          { ac_try='test -s conftest.$ac_objext'
3225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226   (eval $ac_try) 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }; }; then
3230   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3231   ac_cv_c_bigendian=yes
3232 fi
3233 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3234   if test "$ac_cv_c_bigendian" = unknown; then
3235     ac_cv_c_bigendian=no
3236   else
3237     # finding both strings is unlikely to happen, but who knows?
3238     ac_cv_c_bigendian=unknown
3239   fi
3240 fi
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 fi
3246 rm -f conftest.$ac_objext conftest.$ac_ext
3247 else
3248   cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 int
3256 main ()
3257 {
3258   /* Are we little or big endian?  From Harbison&Steele.  */
3259   union
3260   {
3261     long l;
3262     char c[sizeof (long)];
3263   } u;
3264   u.l = 1;
3265   exit (u.c[sizeof (long) - 1] == 1);
3266 }
3267 _ACEOF
3268 rm -f conftest$ac_exeext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3270   (eval $ac_link) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; }; then
3279   ac_cv_c_bigendian=no
3280 else
3281   echo "$as_me: program exited with status $ac_status" >&5
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 ( exit $ac_status )
3286 ac_cv_c_bigendian=yes
3287 fi
3288 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3289 fi
3290 fi
3291 rm -f conftest.$ac_objext conftest.$ac_ext
3292 fi
3293 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3294 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3295 case $ac_cv_c_bigendian in
3296   yes)
3297
3298 cat >>confdefs.h <<\_ACEOF
3299 #define WORDS_BIGENDIAN 1
3300 _ACEOF
3301  ;;
3302   no)
3303      ;;
3304   *)
3305     { { echo "$as_me:$LINENO: error: unknown endianness
3306 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3307 echo "$as_me: error: unknown endianness
3308 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3309    { (exit 1); exit 1; }; } ;;
3310 esac
3311
3312
3313 # Extract the first word of "gmake", so it can be a program name with args.
3314 set dummy gmake; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_GMAKE+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   if test -n "$GMAKE"; then
3321   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328   for ac_exec_ext in '' $ac_executable_extensions; do
3329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330     ac_cv_prog_GMAKE="yes"
3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335 done
3336
3337   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3338 fi
3339 fi
3340 GMAKE=$ac_cv_prog_GMAKE
3341 if test -n "$GMAKE"; then
3342   echo "$as_me:$LINENO: result: $GMAKE" >&5
3343 echo "${ECHO_T}$GMAKE" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349 if test $GMAKE = no; then
3350   # Extract the first word of "make", so it can be a program name with args.
3351 set dummy make; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_path_MAKE+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   case $MAKE in
3358   [\\/]* | ?:[\\/]*)
3359   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3360   ;;
3361   *)
3362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367   for ac_exec_ext in '' $ac_executable_extensions; do
3368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374 done
3375
3376   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3377   ;;
3378 esac
3379 fi
3380 MAKE=$ac_cv_path_MAKE
3381
3382 if test -n "$MAKE"; then
3383   echo "$as_me:$LINENO: result: $MAKE" >&5
3384 echo "${ECHO_T}$MAKE" >&6
3385 else
3386   echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388 fi
3389
3390 else
3391   # Extract the first word of "gmake", so it can be a program name with args.
3392 set dummy gmake; ac_word=$2
3393 echo "$as_me:$LINENO: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_path_MAKE+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   case $MAKE in
3399   [\\/]* | ?:[\\/]*)
3400   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3401   ;;
3402   *)
3403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408   for ac_exec_ext in '' $ac_executable_extensions; do
3409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415 done
3416
3417   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3418   ;;
3419 esac
3420 fi
3421 MAKE=$ac_cv_path_MAKE
3422
3423 if test -n "$MAKE"; then
3424   echo "$as_me:$LINENO: result: $MAKE" >&5
3425 echo "${ECHO_T}$MAKE" >&6
3426 else
3427   echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3429 fi
3430
3431 fi
3432 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3433 if test -z "$makever"; then
3434   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3435                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3436 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3437                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3438    { (exit 1); exit 1; }; }
3439 fi
3440
3441   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3442 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3443 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   ac_check_lib_save_LIBS=$LIBS
3447 LIBS="-lltdl  $LIBS"
3448 cat >conftest.$ac_ext <<_ACEOF
3449 #line $LINENO "configure"
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455
3456 /* Override any gcc2 internal prototype to avoid an error.  */
3457 #ifdef __cplusplus
3458 extern "C"
3459 #endif
3460 /* We use char because int might match the return type of a gcc2
3461    builtin and then its argument prototype would still apply.  */
3462 char lt_dlinit ();
3463 int
3464 main ()
3465 {
3466 lt_dlinit ();
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 rm -f conftest.$ac_objext conftest$ac_exeext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3473   (eval $ac_link) 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } &&
3477          { ac_try='test -s conftest$ac_exeext'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; }; then
3483   ac_cv_lib_ltdl_lt_dlinit=yes
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 ac_cv_lib_ltdl_lt_dlinit=no
3489 fi
3490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3491 LIBS=$ac_check_lib_save_LIBS
3492 fi
3493 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3494 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3495 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3496   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3497 else
3498   if test x"$enable_ltdl_install" = xno; then
3499      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3500 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3501    else
3502      enable_ltdl_install=yes
3503    fi
3504
3505 fi
3506
3507   if test x"$enable_ltdl_install" = x"yes"; then
3508     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3509     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3510     LTDLINCL='-I${top_srcdir}/''libltdl'
3511   else
3512     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3513     LIBLTDL="-lltdl"
3514     LTDLINCL=
3515   fi
3516   # For backwards non-gettext consistent compatibility...
3517   INCLTDL="$LTDLINCL"
3518
3519 ac_aux_dir=
3520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3521   if test -f $ac_dir/install-sh; then
3522     ac_aux_dir=$ac_dir
3523     ac_install_sh="$ac_aux_dir/install-sh -c"
3524     break
3525   elif test -f $ac_dir/install.sh; then
3526     ac_aux_dir=$ac_dir
3527     ac_install_sh="$ac_aux_dir/install.sh -c"
3528     break
3529   elif test -f $ac_dir/shtool; then
3530     ac_aux_dir=$ac_dir
3531     ac_install_sh="$ac_aux_dir/shtool install -c"
3532     break
3533   fi
3534 done
3535 if test -z "$ac_aux_dir"; then
3536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3538    { (exit 1); exit 1; }; }
3539 fi
3540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3543
3544
3545    LIBLTDLPATH=
3546    if test x"$enable_ltdl_install" = x"yes"; then
3547
3548
3549 subdirs="$subdirs 'libltdl'"
3550
3551      LIBLTDLPATH=libltdl
3552     fi
3553
3554
3555
3556 # Check whether --enable-shared or --disable-shared was given.
3557 if test "${enable_shared+set}" = set; then
3558   enableval="$enable_shared"
3559   p=${PACKAGE-default}
3560     case $enableval in
3561     yes) enable_shared=yes ;;
3562     no) enable_shared=no ;;
3563     *)
3564       enable_shared=no
3565       # Look at the argument we got.  We use all the common list separators.
3566       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567       for pkg in $enableval; do
3568         IFS="$lt_save_ifs"
3569         if test "X$pkg" = "X$p"; then
3570           enable_shared=yes
3571         fi
3572       done
3573       IFS="$lt_save_ifs"
3574       ;;
3575     esac
3576 else
3577   enable_shared=yes
3578 fi;
3579
3580 # Check whether --enable-static or --disable-static was given.
3581 if test "${enable_static+set}" = set; then
3582   enableval="$enable_static"
3583   p=${PACKAGE-default}
3584     case $enableval in
3585     yes) enable_static=yes ;;
3586     no) enable_static=no ;;
3587     *)
3588      enable_static=no
3589       # Look at the argument we got.  We use all the common list separators.
3590       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591       for pkg in $enableval; do
3592         IFS="$lt_save_ifs"
3593         if test "X$pkg" = "X$p"; then
3594           enable_static=yes
3595         fi
3596       done
3597       IFS="$lt_save_ifs"
3598       ;;
3599     esac
3600 else
3601   enable_static=yes
3602 fi;
3603
3604 # Check whether --enable-fast-install or --disable-fast-install was given.
3605 if test "${enable_fast_install+set}" = set; then
3606   enableval="$enable_fast_install"
3607   p=${PACKAGE-default}
3608     case $enableval in
3609     yes) enable_fast_install=yes ;;
3610     no) enable_fast_install=no ;;
3611     *)
3612       enable_fast_install=no
3613       # Look at the argument we got.  We use all the common list separators.
3614       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3615       for pkg in $enableval; do
3616         IFS="$lt_save_ifs"
3617         if test "X$pkg" = "X$p"; then
3618           enable_fast_install=yes
3619         fi
3620       done
3621       IFS="$lt_save_ifs"
3622       ;;
3623     esac
3624 else
3625   enable_fast_install=yes
3626 fi;
3627
3628 # Make sure we can run config.sub.
3629 $ac_config_sub sun4 >/dev/null 2>&1 ||
3630   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3631 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3632    { (exit 1); exit 1; }; }
3633
3634 echo "$as_me:$LINENO: checking build system type" >&5
3635 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3636 if test "${ac_cv_build+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   ac_cv_build_alias=$build_alias
3640 test -z "$ac_cv_build_alias" &&
3641   ac_cv_build_alias=`$ac_config_guess`
3642 test -z "$ac_cv_build_alias" &&
3643   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3644 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3645    { (exit 1); exit 1; }; }
3646 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3647   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3648 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3649    { (exit 1); exit 1; }; }
3650
3651 fi
3652 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3653 echo "${ECHO_T}$ac_cv_build" >&6
3654 build=$ac_cv_build
3655 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3656 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3657 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3658
3659
3660 echo "$as_me:$LINENO: checking host system type" >&5
3661 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3662 if test "${ac_cv_host+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   ac_cv_host_alias=$host_alias
3666 test -z "$ac_cv_host_alias" &&
3667   ac_cv_host_alias=$ac_cv_build_alias
3668 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3669   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3670 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3671    { (exit 1); exit 1; }; }
3672
3673 fi
3674 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3675 echo "${ECHO_T}$ac_cv_host" >&6
3676 host=$ac_cv_host
3677 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3678 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3679 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3680
3681
3682 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3683 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3684 if test "${lt_cv_path_SED+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   # Loop through the user's path and test for sed and gsed.
3688 # Then use that list of sed's as ones to test for truncation.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694   for lt_ac_prog in sed gsed; do
3695     for ac_exec_ext in '' $ac_executable_extensions; do
3696       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3697         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3698       fi
3699     done
3700   done
3701 done
3702 lt_ac_max=0
3703 lt_ac_count=0
3704 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3705 # along with /bin/sed that truncates output.
3706 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3707   test ! -f $lt_ac_sed && break
3708   cat /dev/null > conftest.in
3709   lt_ac_count=0
3710   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3711   # Check for GNU sed and select it if it is found.
3712   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3713     lt_cv_path_SED=$lt_ac_sed
3714     break
3715   fi
3716   while true; do
3717     cat conftest.in conftest.in >conftest.tmp
3718     mv conftest.tmp conftest.in
3719     cp conftest.in conftest.nl
3720     echo >>conftest.nl
3721     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3722     cmp -s conftest.out conftest.nl || break
3723     # 10000 chars as input seems more than enough
3724     test $lt_ac_count -gt 10 && break
3725     lt_ac_count=`expr $lt_ac_count + 1`
3726     if test $lt_ac_count -gt $lt_ac_max; then
3727       lt_ac_max=$lt_ac_count
3728       lt_cv_path_SED=$lt_ac_sed
3729     fi
3730   done
3731 done
3732 SED=$lt_cv_path_SED
3733
3734 fi
3735
3736 echo "$as_me:$LINENO: result: $SED" >&5
3737 echo "${ECHO_T}$SED" >&6
3738
3739
3740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3741 if test "${with_gnu_ld+set}" = set; then
3742   withval="$with_gnu_ld"
3743   test "$withval" = no || with_gnu_ld=yes
3744 else
3745   with_gnu_ld=no
3746 fi;
3747 ac_prog=ld
3748 if test "$GCC" = yes; then
3749   # Check if gcc -print-prog-name=ld gives a path.
3750   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3752   case $host in
3753   *-*-mingw*)
3754     # gcc leaves a trailing carriage return which upsets mingw
3755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3756   *)
3757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3758   esac
3759   case $ac_prog in
3760     # Accept absolute paths.
3761     [\\/]* | ?:[\\/]*)
3762       re_direlt='/[^/][^/]*/\.\./'
3763       # Canonicalize the pathname of ld
3764       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3765       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3766         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3767       done
3768       test -z "$LD" && LD="$ac_prog"
3769       ;;
3770   "")
3771     # If it fails, then pretend we aren't using GCC.
3772     ac_prog=ld
3773     ;;
3774   *)
3775     # If it is relative, then search for the first ld in PATH.
3776     with_gnu_ld=unknown
3777     ;;
3778   esac
3779 elif test "$with_gnu_ld" = yes; then
3780   echo "$as_me:$LINENO: checking for GNU ld" >&5
3781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3782 else
3783   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3785 fi
3786 if test "${lt_cv_path_LD+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if test -z "$LD"; then
3790   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3791   for ac_dir in $PATH; do
3792     IFS="$lt_save_ifs"
3793     test -z "$ac_dir" && ac_dir=.
3794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3795       lt_cv_path_LD="$ac_dir/$ac_prog"
3796       # Check to see if the program is GNU ld.  I'd rather use --version,
3797       # but apparently some GNU ld's only accept -v.
3798       # Break only if it was the GNU/non-GNU ld that we prefer.
3799       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3800       *GNU* | *'with BFD'*)
3801         test "$with_gnu_ld" != no && break
3802         ;;
3803       *)
3804         test "$with_gnu_ld" != yes && break
3805         ;;
3806       esac
3807     fi
3808   done
3809   IFS="$lt_save_ifs"
3810 else
3811   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3812 fi
3813 fi
3814
3815 LD="$lt_cv_path_LD"
3816 if test -n "$LD"; then
3817   echo "$as_me:$LINENO: result: $LD" >&5
3818 echo "${ECHO_T}$LD" >&6
3819 else
3820   echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822 fi
3823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3825    { (exit 1); exit 1; }; }
3826 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3832 case `$LD -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
3834   lt_cv_prog_gnu_ld=yes
3835   ;;
3836 *)
3837   lt_cv_prog_gnu_ld=no
3838   ;;
3839 esac
3840 fi
3841 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3843 with_gnu_ld=$lt_cv_prog_gnu_ld
3844
3845
3846 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3847 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3848 if test "${lt_cv_ld_reload_flag+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   lt_cv_ld_reload_flag='-r'
3852 fi
3853 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3854 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3855 reload_flag=$lt_cv_ld_reload_flag
3856 case $reload_flag in
3857 "" | " "*) ;;
3858 *) reload_flag=" $reload_flag" ;;
3859 esac
3860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3861
3862 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3863 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3864 if test "${lt_cv_path_NM+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   if test -n "$NM"; then
3868   # Let the user override the test.
3869   lt_cv_path_NM="$NM"
3870 else
3871   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3872   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3873     IFS="$lt_save_ifs"
3874     test -z "$ac_dir" && ac_dir=.
3875     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3876     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3877       # Check to see if the nm accepts a BSD-compat flag.
3878       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3879       #   nm: unknown option "B" ignored
3880       # Tru64's nm complains that /dev/null is an invalid object file
3881       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3882       */dev/null* | *'Invalid file or object type'*)
3883         lt_cv_path_NM="$tmp_nm -B"
3884         break
3885         ;;
3886       *)
3887         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3888         */dev/null*)
3889           lt_cv_path_NM="$tmp_nm -p"
3890           break
3891           ;;
3892         *)
3893           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3894           continue # so that we can try to find one that supports BSD flags
3895           ;;
3896         esac
3897       esac
3898     fi
3899   done
3900   IFS="$lt_save_ifs"
3901   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3902 fi
3903 fi
3904 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3905 echo "${ECHO_T}$lt_cv_path_NM" >&6
3906 NM="$lt_cv_path_NM"
3907
3908 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3909 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3910 LN_S=$as_ln_s
3911 if test "$LN_S" = "ln -s"; then
3912   echo "$as_me:$LINENO: result: yes" >&5
3913 echo "${ECHO_T}yes" >&6
3914 else
3915   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3916 echo "${ECHO_T}no, using $LN_S" >&6
3917 fi
3918
3919 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3920 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3921 if test "${lt_cv_deplibs_check_method+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   lt_cv_file_magic_cmd='$MAGIC_CMD'
3925 lt_cv_file_magic_test_file=
3926 lt_cv_deplibs_check_method='unknown'
3927 # Need to set the preceding variable on all platforms that support
3928 # interlibrary dependencies.
3929 # 'none' -- dependencies not supported.
3930 # `unknown' -- same as none, but documents that we really don't know.
3931 # 'pass_all' -- all dependencies passed with no checks.
3932 # 'test_compile' -- check by making test program.
3933 # 'file_magic [[regex]]' -- check by looking for files in library path
3934 # which responds to the $file_magic_cmd with a given extended regex.
3935 # If you have `file' or equivalent on your system and you're not sure
3936 # whether `pass_all' will *always* work, you probably want this one.
3937
3938 case $host_os in
3939 aix4* | aix5*)
3940   lt_cv_deplibs_check_method=pass_all
3941   ;;
3942
3943 beos*)
3944   lt_cv_deplibs_check_method=pass_all
3945   ;;
3946
3947 bsdi4*)
3948   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3949   lt_cv_file_magic_cmd='/usr/bin/file -L'
3950   lt_cv_file_magic_test_file=/shlib/libc.so
3951   ;;
3952
3953 cygwin*)
3954   # func_win32_libid is a shell function defined in ltmain.sh
3955   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3956   lt_cv_file_magic_cmd='func_win32_libid'
3957   ;;
3958
3959 mingw* | pw32*)
3960   # Base MSYS/MinGW do not provide the 'file' command needed by
3961   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3962   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3963   lt_cv_file_magic_cmd='$OBJDUMP -f'
3964   ;;
3965
3966 darwin* | rhapsody*)
3967   lt_cv_deplibs_check_method=pass_all
3968   ;;
3969
3970 freebsd* | kfreebsd*-gnu)
3971   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3972     case $host_cpu in
3973     i*86 )
3974       # Not sure whether the presence of OpenBSD here was a mistake.
3975       # Let's accept both of them until this is cleared up.
3976       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3977       lt_cv_file_magic_cmd=/usr/bin/file
3978       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3979       ;;
3980     esac
3981   else
3982     lt_cv_deplibs_check_method=pass_all
3983   fi
3984   ;;
3985
3986 gnu*)
3987   lt_cv_deplibs_check_method=pass_all
3988   ;;
3989
3990 hpux10.20* | hpux11*)
3991   lt_cv_file_magic_cmd=/usr/bin/file
3992   case "$host_cpu" in
3993   ia64*)
3994     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3995     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3996     ;;
3997   hppa*64*)
3998     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]'
3999     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4000     ;;
4001   *)
4002     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4003     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4004     ;;
4005   esac
4006   ;;
4007
4008 irix5* | irix6* | nonstopux*)
4009   case $LD in
4010   *-32|*"-32 ") libmagic=32-bit;;
4011   *-n32|*"-n32 ") libmagic=N32;;
4012   *-64|*"-64 ") libmagic=64-bit;;
4013   *) libmagic=never-match;;
4014   esac
4015   lt_cv_deplibs_check_method=pass_all
4016   ;;
4017
4018 # This must be Linux ELF.
4019 linux*)
4020   lt_cv_deplibs_check_method=pass_all
4021   ;;
4022
4023 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4024   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4025     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4026   else
4027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4028   fi
4029   ;;
4030
4031 newos6*)
4032   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4033   lt_cv_file_magic_cmd=/usr/bin/file
4034   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4035   ;;
4036
4037 nto-qnx*)
4038   lt_cv_deplibs_check_method=unknown
4039   ;;
4040
4041 openbsd*)
4042   lt_cv_file_magic_cmd=/usr/bin/file
4043   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4044   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4045     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4046   else
4047     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4048   fi
4049   ;;
4050
4051 osf3* | osf4* | osf5*)
4052   lt_cv_deplibs_check_method=pass_all
4053   ;;
4054
4055 sco3.2v5*)
4056   lt_cv_deplibs_check_method=pass_all
4057   ;;
4058
4059 solaris*)
4060   lt_cv_deplibs_check_method=pass_all
4061   ;;
4062
4063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4064   case $host_vendor in
4065   motorola)
4066     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]'
4067     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4068     ;;
4069   ncr)
4070     lt_cv_deplibs_check_method=pass_all
4071     ;;
4072   sequent)
4073     lt_cv_file_magic_cmd='/bin/file'
4074     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4075     ;;
4076   sni)
4077     lt_cv_file_magic_cmd='/bin/file'
4078     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4079     lt_cv_file_magic_test_file=/lib/libc.so
4080     ;;
4081   siemens)
4082     lt_cv_deplibs_check_method=pass_all
4083     ;;
4084   esac
4085   ;;
4086
4087 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4088   lt_cv_deplibs_check_method=pass_all
4089   ;;
4090 esac
4091
4092 fi
4093 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4094 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4095 file_magic_cmd=$lt_cv_file_magic_cmd
4096 deplibs_check_method=$lt_cv_deplibs_check_method
4097 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4098
4099
4100
4101
4102 # If no C compiler was specified, use CC.
4103 LTCC=${LTCC-"$CC"}
4104
4105 # Allow CC to be a program name with arguments.
4106 compiler=$CC
4107
4108 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4109 if test "${enable_libtool_lock+set}" = set; then
4110   enableval="$enable_libtool_lock"
4111
4112 fi;
4113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4114
4115 # Some flags need to be propagated to the compiler or linker for good
4116 # libtool support.
4117 case $host in
4118 ia64-*-hpux*)
4119   # Find out which ABI we are using.
4120   echo 'int i;' > conftest.$ac_ext
4121   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122   (eval $ac_compile) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; then
4126     case `/usr/bin/file conftest.$ac_objext` in
4127     *ELF-32*)
4128       HPUX_IA64_MODE="32"
4129       ;;
4130     *ELF-64*)
4131       HPUX_IA64_MODE="64"
4132       ;;
4133     esac
4134   fi
4135   rm -rf conftest*
4136   ;;
4137 *-*-irix6*)
4138   # Find out which ABI we are using.
4139   echo '#line 4139 "configure"' > conftest.$ac_ext
4140   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141   (eval $ac_compile) 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; then
4145    if test "$lt_cv_prog_gnu_ld" = yes; then
4146     case `/usr/bin/file conftest.$ac_objext` in
4147     *32-bit*)
4148       LD="${LD-ld} -melf32bsmip"
4149       ;;
4150     *N32*)
4151       LD="${LD-ld} -melf32bmipn32"
4152       ;;
4153     *64-bit*)
4154       LD="${LD-ld} -melf64bmip"
4155       ;;
4156     esac
4157    else
4158     case `/usr/bin/file conftest.$ac_objext` in
4159     *32-bit*)
4160       LD="${LD-ld} -32"
4161       ;;
4162     *N32*)
4163       LD="${LD-ld} -n32"
4164       ;;
4165     *64-bit*)
4166       LD="${LD-ld} -64"
4167       ;;
4168     esac
4169    fi
4170   fi
4171   rm -rf conftest*
4172   ;;
4173
4174 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4175   # Find out which ABI we are using.
4176   echo 'int i;' > conftest.$ac_ext
4177   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178   (eval $ac_compile) 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; then
4182     case "`/usr/bin/file conftest.o`" in
4183     *32-bit*)
4184       case $host in
4185         x86_64-*linux*)
4186           LD="${LD-ld} -m elf_i386"
4187           ;;
4188         ppc64-*linux*|powerpc64-*linux*)
4189           LD="${LD-ld} -m elf32ppclinux"
4190           ;;
4191         s390x-*linux*)
4192           LD="${LD-ld} -m elf_s390"
4193           ;;
4194         sparc64-*linux*)
4195           LD="${LD-ld} -m elf32_sparc"
4196           ;;
4197       esac
4198       ;;
4199     *64-bit*)
4200       case $host in
4201         x86_64-*linux*)
4202           LD="${LD-ld} -m elf_x86_64"
4203           ;;
4204         ppc*-*linux*|powerpc*-*linux*)
4205           LD="${LD-ld} -m elf64ppc"
4206           ;;
4207         s390*-*linux*)
4208           LD="${LD-ld} -m elf64_s390"
4209           ;;
4210         sparc*-*linux*)
4211           LD="${LD-ld} -m elf64_sparc"
4212           ;;
4213       esac
4214       ;;
4215     esac
4216   fi
4217   rm -rf conftest*
4218   ;;
4219
4220 *-*-sco3.2v5*)
4221   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4222   SAVE_CFLAGS="$CFLAGS"
4223   CFLAGS="$CFLAGS -belf"
4224   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4225 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4226 if test "${lt_cv_cc_needs_belf+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235      cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242
4243 int
4244 main ()
4245 {
4246
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253   (eval $ac_link) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -s conftest$ac_exeext'
4258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259   (eval $ac_try) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   lt_cv_cc_needs_belf=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 lt_cv_cc_needs_belf=no
4269 fi
4270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4271      ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277 fi
4278 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4279 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4280   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4281     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4282     CFLAGS="$SAVE_CFLAGS"
4283   fi
4284   ;;
4285
4286 esac
4287
4288 need_locks="$enable_libtool_lock"
4289
4290
4291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4293 if test "${ac_cv_header_stdc+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 #include <stdlib.h>
4304 #include <stdarg.h>
4305 #include <string.h>
4306 #include <float.h>
4307
4308 int
4309 main ()
4310 {
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318   (eval $ac_compile) 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); } &&
4322          { ac_try='test -s conftest.$ac_objext'
4323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324   (eval $ac_try) 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); }; }; then
4328   ac_cv_header_stdc=yes
4329 else
4330   echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 ac_cv_header_stdc=no
4334 fi
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4336
4337 if test $ac_cv_header_stdc = yes; then
4338   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 #line $LINENO "configure"
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 #include <string.h>
4347
4348 _ACEOF
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350   $EGREP "memchr" >/dev/null 2>&1; then
4351   :
4352 else
4353   ac_cv_header_stdc=no
4354 fi
4355 rm -f conftest*
4356
4357 fi
4358
4359 if test $ac_cv_header_stdc = yes; then
4360   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4361   cat >conftest.$ac_ext <<_ACEOF
4362 #line $LINENO "configure"
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 #include <stdlib.h>
4369
4370 _ACEOF
4371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4372   $EGREP "free" >/dev/null 2>&1; then
4373   :
4374 else
4375   ac_cv_header_stdc=no
4376 fi
4377 rm -f conftest*
4378
4379 fi
4380
4381 if test $ac_cv_header_stdc = yes; then
4382   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4383   if test "$cross_compiling" = yes; then
4384   :
4385 else
4386   cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393 #include <ctype.h>
4394 #if ((' ' & 0x0FF) == 0x020)
4395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4397 #else
4398 # define ISLOWER(c) \
4399                    (('a' <= (c) && (c) <= 'i') \
4400                      || ('j' <= (c) && (c) <= 'r') \
4401                      || ('s' <= (c) && (c) <= 'z'))
4402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4403 #endif
4404
4405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4406 int
4407 main ()
4408 {
4409   int i;
4410   for (i = 0; i < 256; i++)
4411     if (XOR (islower (i), ISLOWER (i))
4412         || toupper (i) != TOUPPER (i))
4413       exit(2);
4414   exit (0);
4415 }
4416 _ACEOF
4417 rm -f conftest$ac_exeext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4419   (eval $ac_link) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   :
4429 else
4430   echo "$as_me: program exited with status $ac_status" >&5
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 ( exit $ac_status )
4435 ac_cv_header_stdc=no
4436 fi
4437 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4438 fi
4439 fi
4440 fi
4441 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4442 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4443 if test $ac_cv_header_stdc = yes; then
4444
4445 cat >>confdefs.h <<\_ACEOF
4446 #define STDC_HEADERS 1
4447 _ACEOF
4448
4449 fi
4450
4451 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4462                   inttypes.h stdint.h unistd.h
4463 do
4464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4465 echo "$as_me:$LINENO: checking for $ac_header" >&5
4466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 $ac_includes_default
4478
4479 #include <$ac_header>
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483   (eval $ac_compile) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } &&
4487          { ac_try='test -s conftest.$ac_objext'
4488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489   (eval $ac_try) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   eval "$as_ac_Header=yes"
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 eval "$as_ac_Header=no"
4499 fi
4500 rm -f conftest.$ac_objext conftest.$ac_ext
4501 fi
4502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4505   cat >>confdefs.h <<_ACEOF
4506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 _ACEOF
4508
4509 fi
4510
4511 done
4512
4513
4514
4515 for ac_header in dlfcn.h
4516 do
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519   echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 fi
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4526 else
4527   # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 $ac_includes_default
4538 #include <$ac_header>
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -s conftest.$ac_objext'
4547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   ac_header_compiler=yes
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 ac_header_compiler=no
4558 fi
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4562
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 #include <$ac_header>
4574 _ACEOF
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } >/dev/null; then
4583   if test -s conftest.err; then
4584     ac_cpp_err=$ac_c_preproc_warn_flag
4585   else
4586     ac_cpp_err=
4587   fi
4588 else
4589   ac_cpp_err=yes
4590 fi
4591 if test -z "$ac_cpp_err"; then
4592   ac_header_preproc=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597   ac_header_preproc=no
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4602
4603 # So?  What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4605   yes:no )
4606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4610     (
4611       cat <<\_ASBOX
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4615 _ASBOX
4616     ) |
4617       sed "s/^/$as_me: WARNING:     /" >&2
4618     ;;
4619   no:yes )
4620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4626     (
4627       cat <<\_ASBOX
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4631 _ASBOX
4632     ) |
4633       sed "s/^/$as_me: WARNING:     /" >&2
4634     ;;
4635 esac
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   eval "$as_ac_Header=$ac_header_preproc"
4642 fi
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4645
4646 fi
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648   cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 _ACEOF
4651
4652 fi
4653
4654 done
4655
4656 ac_ext=cc
4657 ac_cpp='$CXXCPP $CPPFLAGS'
4658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4661 if test -n "$ac_tool_prefix"; then
4662   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4663   do
4664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_CXX+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   if test -n "$CXX"; then
4672   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687
4688 fi
4689 fi
4690 CXX=$ac_cv_prog_CXX
4691 if test -n "$CXX"; then
4692   echo "$as_me:$LINENO: result: $CXX" >&5
4693 echo "${ECHO_T}$CXX" >&6
4694 else
4695   echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4697 fi
4698
4699     test -n "$CXX" && break
4700   done
4701 fi
4702 if test -z "$CXX"; then
4703   ac_ct_CXX=$CXX
4704   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4705 do
4706   # Extract the first word of "$ac_prog", so it can be a program name with args.
4707 set dummy $ac_prog; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   if test -n "$ac_ct_CXX"; then
4714   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723     ac_cv_prog_ac_ct_CXX="$ac_prog"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729
4730 fi
4731 fi
4732 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4733 if test -n "$ac_ct_CXX"; then
4734   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4735 echo "${ECHO_T}$ac_ct_CXX" >&6
4736 else
4737   echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4739 fi
4740
4741   test -n "$ac_ct_CXX" && break
4742 done
4743 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4744
4745   CXX=$ac_ct_CXX
4746 fi
4747
4748
4749 # Provide some information about the compiler.
4750 echo "$as_me:$LINENO:" \
4751      "checking for C++ compiler version" >&5
4752 ac_compiler=`set X $ac_compile; echo $2`
4753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4754   (eval $ac_compiler --version </dev/null >&5) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }
4758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4759   (eval $ac_compiler -v </dev/null >&5) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }
4763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4764   (eval $ac_compiler -V </dev/null >&5) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }
4768
4769 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4770 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4771 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781
4782 int
4783 main ()
4784 {
4785 #ifndef __GNUC__
4786        choke me
4787 #endif
4788
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795   (eval $ac_compile) 2>&5
4796   ac_status=$?
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); } &&
4799          { ac_try='test -s conftest.$ac_objext'
4800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801   (eval $ac_try) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; }; then
4805   ac_compiler_gnu=yes
4806 else
4807   echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 ac_compiler_gnu=no
4811 fi
4812 rm -f conftest.$ac_objext conftest.$ac_ext
4813 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4814
4815 fi
4816 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4817 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4818 GXX=`test $ac_compiler_gnu = yes && echo yes`
4819 ac_test_CXXFLAGS=${CXXFLAGS+set}
4820 ac_save_CXXFLAGS=$CXXFLAGS
4821 CXXFLAGS="-g"
4822 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4823 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4824 if test "${ac_cv_prog_cxx_g+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   cat >conftest.$ac_ext <<_ACEOF
4828 #line $LINENO "configure"
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834
4835 int
4836 main ()
4837 {
4838
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845   (eval $ac_compile) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } &&
4849          { ac_try='test -s conftest.$ac_objext'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; }; then
4855   ac_cv_prog_cxx_g=yes
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ac_cv_prog_cxx_g=no
4861 fi
4862 rm -f conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4865 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4866 if test "$ac_test_CXXFLAGS" = set; then
4867   CXXFLAGS=$ac_save_CXXFLAGS
4868 elif test $ac_cv_prog_cxx_g = yes; then
4869   if test "$GXX" = yes; then
4870     CXXFLAGS="-g -O2"
4871   else
4872     CXXFLAGS="-g"
4873   fi
4874 else
4875   if test "$GXX" = yes; then
4876     CXXFLAGS="-O2"
4877   else
4878     CXXFLAGS=
4879   fi
4880 fi
4881 for ac_declaration in \
4882    ''\
4883    '#include <stdlib.h>' \
4884    'extern "C" void std::exit (int) throw (); using std::exit;' \
4885    'extern "C" void std::exit (int); using std::exit;' \
4886    'extern "C" void exit (int) throw ();' \
4887    'extern "C" void exit (int);' \
4888    'void exit (int);'
4889 do
4890   cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 #include <stdlib.h>
4898 $ac_declaration
4899 int
4900 main ()
4901 {
4902 exit (42);
4903   ;
4904   return 0;
4905 }
4906 _ACEOF
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909   (eval $ac_compile) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } &&
4913          { ac_try='test -s conftest.$ac_objext'
4914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915   (eval $ac_try) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; }; then
4919   :
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 continue
4925 fi
4926 rm -f conftest.$ac_objext conftest.$ac_ext
4927   cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 $ac_declaration
4935 int
4936 main ()
4937 {
4938 exit (42);
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945   (eval $ac_compile) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -s conftest.$ac_objext'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; }; then
4955   break
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 fi
4961 rm -f conftest.$ac_objext conftest.$ac_ext
4962 done
4963 rm -f conftest*
4964 if test -n "$ac_declaration"; then
4965   echo '#ifdef __cplusplus' >>confdefs.h
4966   echo $ac_declaration      >>confdefs.h
4967   echo '#endif'             >>confdefs.h
4968 fi
4969
4970 ac_ext=cc
4971 ac_cpp='$CXXCPP $CPPFLAGS'
4972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4975
4976 ac_ext=cc
4977 ac_cpp='$CXXCPP $CPPFLAGS'
4978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4981 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4982 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4983 if test -z "$CXXCPP"; then
4984   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987       # Double quotes because CXXCPP needs to be expanded
4988     for CXXCPP in "$CXX -E" "/lib/cpp"
4989     do
4990       ac_preproc_ok=false
4991 for ac_cxx_preproc_warn_flag in '' yes
4992 do
4993   # Use a header file that comes with gcc, so configuring glibc
4994   # with a fresh cross-compiler works.
4995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996   # <limits.h> exists even on freestanding compilers.
4997   # On the NeXT, cc -E runs the code through the compiler's parser,
4998   # not just through cpp. "Syntax error" is here to catch this case.
4999   cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 #ifdef __STDC__
5007 # include <limits.h>
5008 #else
5009 # include <assert.h>
5010 #endif
5011                      Syntax error
5012 _ACEOF
5013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015   ac_status=$?
5016   grep -v '^ *+' conftest.er1 >conftest.err
5017   rm -f conftest.er1
5018   cat conftest.err >&5
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); } >/dev/null; then
5021   if test -s conftest.err; then
5022     ac_cpp_err=$ac_cxx_preproc_warn_flag
5023   else
5024     ac_cpp_err=
5025   fi
5026 else
5027   ac_cpp_err=yes
5028 fi
5029 if test -z "$ac_cpp_err"; then
5030   :
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035   # Broken: fails on valid input.
5036 continue
5037 fi
5038 rm -f conftest.err conftest.$ac_ext
5039
5040   # OK, works on sane cases.  Now check whether non-existent headers
5041   # can be detected and how.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #include <ac_nonexistent.h>
5050 _ACEOF
5051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } >/dev/null; then
5059   if test -s conftest.err; then
5060     ac_cpp_err=$ac_cxx_preproc_warn_flag
5061   else
5062     ac_cpp_err=
5063   fi
5064 else
5065   ac_cpp_err=yes
5066 fi
5067 if test -z "$ac_cpp_err"; then
5068   # Broken: success on invalid input.
5069 continue
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074   # Passes both tests.
5075 ac_preproc_ok=:
5076 break
5077 fi
5078 rm -f conftest.err conftest.$ac_ext
5079
5080 done
5081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082 rm -f conftest.err conftest.$ac_ext
5083 if $ac_preproc_ok; then
5084   break
5085 fi
5086
5087     done
5088     ac_cv_prog_CXXCPP=$CXXCPP
5089
5090 fi
5091   CXXCPP=$ac_cv_prog_CXXCPP
5092 else
5093   ac_cv_prog_CXXCPP=$CXXCPP
5094 fi
5095 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5096 echo "${ECHO_T}$CXXCPP" >&6
5097 ac_preproc_ok=false
5098 for ac_cxx_preproc_warn_flag in '' yes
5099 do
5100   # Use a header file that comes with gcc, so configuring glibc
5101   # with a fresh cross-compiler works.
5102   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103   # <limits.h> exists even on freestanding compilers.
5104   # On the NeXT, cc -E runs the code through the compiler's parser,
5105   # not just through cpp. "Syntax error" is here to catch this case.
5106   cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118                      Syntax error
5119 _ACEOF
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122   ac_status=$?
5123   grep -v '^ *+' conftest.er1 >conftest.err
5124   rm -f conftest.er1
5125   cat conftest.err >&5
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } >/dev/null; then
5128   if test -s conftest.err; then
5129     ac_cpp_err=$ac_cxx_preproc_warn_flag
5130   else
5131     ac_cpp_err=
5132   fi
5133 else
5134   ac_cpp_err=yes
5135 fi
5136 if test -z "$ac_cpp_err"; then
5137   :
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142   # Broken: fails on valid input.
5143 continue
5144 fi
5145 rm -f conftest.err conftest.$ac_ext
5146
5147   # OK, works on sane cases.  Now check whether non-existent headers
5148   # can be detected and how.
5149   cat >conftest.$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156 #include <ac_nonexistent.h>
5157 _ACEOF
5158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5160   ac_status=$?
5161   grep -v '^ *+' conftest.er1 >conftest.err
5162   rm -f conftest.er1
5163   cat conftest.err >&5
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } >/dev/null; then
5166   if test -s conftest.err; then
5167     ac_cpp_err=$ac_cxx_preproc_warn_flag
5168   else
5169     ac_cpp_err=
5170   fi
5171 else
5172   ac_cpp_err=yes
5173 fi
5174 if test -z "$ac_cpp_err"; then
5175   # Broken: success on invalid input.
5176 continue
5177 else
5178   echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181   # Passes both tests.
5182 ac_preproc_ok=:
5183 break
5184 fi
5185 rm -f conftest.err conftest.$ac_ext
5186
5187 done
5188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189 rm -f conftest.err conftest.$ac_ext
5190 if $ac_preproc_ok; then
5191   :
5192 else
5193   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5194 See \`config.log' for more details." >&5
5195 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5196 See \`config.log' for more details." >&2;}
5197    { (exit 1); exit 1; }; }
5198 fi
5199
5200 ac_ext=cc
5201 ac_cpp='$CXXCPP $CPPFLAGS'
5202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5205
5206
5207 ac_ext=f
5208 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5209 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5211 if test -n "$ac_tool_prefix"; then
5212   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5213   do
5214     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_prog_F77+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test -n "$F77"; then
5222   ac_cv_prog_F77="$F77" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237
5238 fi
5239 fi
5240 F77=$ac_cv_prog_F77
5241 if test -n "$F77"; then
5242   echo "$as_me:$LINENO: result: $F77" >&5
5243 echo "${ECHO_T}$F77" >&6
5244 else
5245   echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5247 fi
5248
5249     test -n "$F77" && break
5250   done
5251 fi
5252 if test -z "$F77"; then
5253   ac_ct_F77=$F77
5254   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5255 do
5256   # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   if test -n "$ac_ct_F77"; then
5264   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271   for ac_exec_ext in '' $ac_executable_extensions; do
5272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273     ac_cv_prog_ac_ct_F77="$ac_prog"
5274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275     break 2
5276   fi
5277 done
5278 done
5279
5280 fi
5281 fi
5282 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5283 if test -n "$ac_ct_F77"; then
5284   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5285 echo "${ECHO_T}$ac_ct_F77" >&6
5286 else
5287   echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6
5289 fi
5290
5291   test -n "$ac_ct_F77" && break
5292 done
5293
5294   F77=$ac_ct_F77
5295 fi
5296
5297
5298 # Provide some information about the compiler.
5299 echo "$as_me:5299:" \
5300      "checking for Fortran 77 compiler version" >&5
5301 ac_compiler=`set X $ac_compile; echo $2`
5302 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5303   (eval $ac_compiler --version </dev/null >&5) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }
5307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5308   (eval $ac_compiler -v </dev/null >&5) 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }
5312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5313   (eval $ac_compiler -V </dev/null >&5) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }
5317
5318 # If we don't use `.F' as extension, the preprocessor is not run on the
5319 # input file.
5320 ac_save_ext=$ac_ext
5321 ac_ext=F
5322 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5323 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5324 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   cat >conftest.$ac_ext <<_ACEOF
5328       program main
5329 #ifndef __GNUC__
5330        choke me
5331 #endif
5332
5333       end
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337   (eval $ac_compile) 2>&5
5338   ac_status=$?
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -s conftest.$ac_objext'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; }; then
5347   ac_compiler_gnu=yes
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 ac_compiler_gnu=no
5353 fi
5354 rm -f conftest.$ac_objext conftest.$ac_ext
5355 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5356
5357 fi
5358 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5359 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5360 ac_ext=$ac_save_ext
5361 G77=`test $ac_compiler_gnu = yes && echo yes`
5362 ac_test_FFLAGS=${FFLAGS+set}
5363 ac_save_FFLAGS=$FFLAGS
5364 FFLAGS=
5365 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5366 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5367 if test "${ac_cv_prog_f77_g+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370   FFLAGS=-g
5371 cat >conftest.$ac_ext <<_ACEOF
5372       program main
5373
5374       end
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378   (eval $ac_compile) 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); } &&
5382          { ac_try='test -s conftest.$ac_objext'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; }; then
5388   ac_cv_prog_f77_g=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_cv_prog_f77_g=no
5394 fi
5395 rm -f conftest.$ac_objext conftest.$ac_ext
5396
5397 fi
5398 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5399 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5400 if test "$ac_test_FFLAGS" = set; then
5401   FFLAGS=$ac_save_FFLAGS
5402 elif test $ac_cv_prog_f77_g = yes; then
5403   if test "$G77" = yes; then
5404     FFLAGS="-g -O2"
5405   else
5406     FFLAGS="-g"
5407   fi
5408 else
5409   if test "$G77" = yes; then
5410     FFLAGS="-O2"
5411   else
5412     FFLAGS=
5413   fi
5414 fi
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420
5421
5422
5423 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5424
5425 # find the maximum length of command line arguments
5426 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5427 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5428 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431     i=0
5432   teststring="ABCD"
5433
5434   case $build_os in
5435   msdosdjgpp*)
5436     # On DJGPP, this test can blow up pretty badly due to problems in libc
5437     # (any single argument exceeding 2000 bytes causes a buffer overrun
5438     # during glob expansion).  Even if it were fixed, the result of this
5439     # check would be larger than it should be.
5440     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5441     ;;
5442
5443   gnu*)
5444     # Under GNU Hurd, this test is not required because there is
5445     # no limit to the length of command line arguments.
5446     # Libtool will interpret -1 as no limit whatsoever
5447     lt_cv_sys_max_cmd_len=-1;
5448     ;;
5449
5450   cygwin* | mingw*)
5451     # On Win9x/ME, this test blows up -- it succeeds, but takes
5452     # about 5 minutes as the teststring grows exponentially.
5453     # Worse, since 9x/ME are not pre-emptively multitasking,
5454     # you end up with a "frozen" computer, even though with patience
5455     # the test eventually succeeds (with a max line length of 256k).
5456     # Instead, let's just punt: use the minimum linelength reported by
5457     # all of the supported platforms: 8192 (on NT/2K/XP).
5458     lt_cv_sys_max_cmd_len=8192;
5459     ;;
5460
5461   amigaos*)
5462     # On AmigaOS with pdksh, this test takes hours, literally.
5463     # So we just punt and use a minimum line length of 8192.
5464     lt_cv_sys_max_cmd_len=8192;
5465     ;;
5466
5467  *)
5468     # If test is not a shell built-in, we'll probably end up computing a
5469     # maximum length that is only half of the actual maximum length, but
5470     # we can't tell.
5471     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5472                = "XX$teststring") >/dev/null 2>&1 &&
5473             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5474             lt_cv_sys_max_cmd_len=$new_result &&
5475             test $i != 17 # 1/2 MB should be enough
5476     do
5477       i=`expr $i + 1`
5478       teststring=$teststring$teststring
5479     done
5480     teststring=
5481     # Add a significant safety factor because C++ compilers can tack on massive
5482     # amounts of additional arguments before passing them to the linker.
5483     # It appears as though 1/2 is a usable value.
5484     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485     ;;
5486   esac
5487
5488 fi
5489
5490 if test -n $lt_cv_sys_max_cmd_len ; then
5491   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5492 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5493 else
5494   echo "$as_me:$LINENO: result: none" >&5
5495 echo "${ECHO_T}none" >&6
5496 fi
5497
5498
5499
5500
5501 # Check for command to grab the raw symbol name followed by C symbol from nm.
5502 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507
5508 # These are sane defaults that work on at least a few old systems.
5509 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5510
5511 # Character class describing NM global symbol codes.
5512 symcode='[BCDEGRST]'
5513
5514 # Regexp to match symbols that can be accessed directly from C.
5515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5516
5517 # Transform the above into a raw symbol and a C symbol.
5518 symxfrm='\1 \2\3 \3'
5519
5520 # Transform an extracted symbol line into a proper C declaration
5521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5522
5523 # Transform an extracted symbol line into symbol name and symbol address
5524 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'"
5525
5526 # Define system-specific variables.
5527 case $host_os in
5528 aix*)
5529   symcode='[BCDT]'
5530   ;;
5531 cygwin* | mingw* | pw32*)
5532   symcode='[ABCDGISTW]'
5533   ;;
5534 hpux*) # Its linker distinguishes data from code symbols
5535   if test "$host_cpu" = ia64; then
5536     symcode='[ABCDEGRST]'
5537   fi
5538   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5539   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'"
5540   ;;
5541 irix* | nonstopux*)
5542   symcode='[BCDEGRST]'
5543   ;;
5544 osf*)
5545   symcode='[BCDEGQRST]'
5546   ;;
5547 solaris* | sysv5*)
5548   symcode='[BDRT]'
5549   ;;
5550 sysv4)
5551   symcode='[DFNSTU]'
5552   ;;
5553 esac
5554
5555 # Handle CRLF in mingw tool chain
5556 opt_cr=
5557 case $build_os in
5558 mingw*)
5559   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5560   ;;
5561 esac
5562
5563 # If we're using GNU nm, then use its standard symbol codes.
5564 case `$NM -V 2>&1` in
5565 *GNU* | *'with BFD'*)
5566   symcode='[ABCDGIRSTW]' ;;
5567 esac
5568
5569 # Try without a prefix undercore, then with it.
5570 for ac_symprfx in "" "_"; do
5571
5572   # Write the raw and C identifiers.
5573   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5574
5575   # Check to see that the pipe works correctly.
5576   pipe_works=no
5577
5578   rm -f conftest*
5579   cat > conftest.$ac_ext <<EOF
5580 #ifdef __cplusplus
5581 extern "C" {
5582 #endif
5583 char nm_test_var;
5584 void nm_test_func(){}
5585 #ifdef __cplusplus
5586 }
5587 #endif
5588 int main(){nm_test_var='a';nm_test_func();return(0);}
5589 EOF
5590
5591   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592   (eval $ac_compile) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }; then
5596     # Now try to grab the symbols.
5597     nlist=conftest.nm
5598     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5599   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } && test -s "$nlist"; then
5603       # Try sorting and uniquifying the output.
5604       if sort "$nlist" | uniq > "$nlist"T; then
5605         mv -f "$nlist"T "$nlist"
5606       else
5607         rm -f "$nlist"T
5608       fi
5609
5610       # Make sure that we snagged all the symbols we need.
5611       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5612         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5613           cat <<EOF > conftest.$ac_ext
5614 #ifdef __cplusplus
5615 extern "C" {
5616 #endif
5617
5618 EOF
5619           # Now generate the symbol file.
5620           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5621
5622           cat <<EOF >> conftest.$ac_ext
5623 #if defined (__STDC__) && __STDC__
5624 # define lt_ptr_t void *
5625 #else
5626 # define lt_ptr_t char *
5627 # define const
5628 #endif
5629
5630 /* The mapping between symbol names and symbols. */
5631 const struct {
5632   const char *name;
5633   lt_ptr_t address;
5634 }
5635 lt_preloaded_symbols[] =
5636 {
5637 EOF
5638           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5639           cat <<\EOF >> conftest.$ac_ext
5640   {0, (lt_ptr_t) 0}
5641 };
5642
5643 #ifdef __cplusplus
5644 }
5645 #endif
5646 EOF
5647           # Now try linking the two files.
5648           mv conftest.$ac_objext conftstm.$ac_objext
5649           lt_save_LIBS="$LIBS"
5650           lt_save_CFLAGS="$CFLAGS"
5651           LIBS="conftstm.$ac_objext"
5652           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5653           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654   (eval $ac_link) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5658             pipe_works=yes
5659           fi
5660           LIBS="$lt_save_LIBS"
5661           CFLAGS="$lt_save_CFLAGS"
5662         else
5663           echo "cannot find nm_test_func in $nlist" >&5
5664         fi
5665       else
5666         echo "cannot find nm_test_var in $nlist" >&5
5667       fi
5668     else
5669       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5670     fi
5671   else
5672     echo "$progname: failed program was:" >&5
5673     cat conftest.$ac_ext >&5
5674   fi
5675   rm -f conftest* conftst*
5676
5677   # Do not use the global_symbol_pipe unless it works.
5678   if test "$pipe_works" = yes; then
5679     break
5680   else
5681     lt_cv_sys_global_symbol_pipe=
5682   fi
5683 done
5684
5685 fi
5686
5687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5688   lt_cv_sys_global_symbol_to_cdecl=
5689 fi
5690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5691   echo "$as_me:$LINENO: result: failed" >&5
5692 echo "${ECHO_T}failed" >&6
5693 else
5694   echo "$as_me:$LINENO: result: ok" >&5
5695 echo "${ECHO_T}ok" >&6
5696 fi
5697
5698 echo "$as_me:$LINENO: checking for objdir" >&5
5699 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5700 if test "${lt_cv_objdir+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   rm -f .libs 2>/dev/null
5704 mkdir .libs 2>/dev/null
5705 if test -d .libs; then
5706   lt_cv_objdir=.libs
5707 else
5708   # MS-DOS does not allow filenames that begin with a dot.
5709   lt_cv_objdir=_libs
5710 fi
5711 rmdir .libs 2>/dev/null
5712 fi
5713 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5714 echo "${ECHO_T}$lt_cv_objdir" >&6
5715 objdir=$lt_cv_objdir
5716
5717
5718
5719
5720
5721 case $host_os in
5722 aix3*)
5723   # AIX sometimes has problems with the GCC collect2 program.  For some
5724   # reason, if we set the COLLECT_NAMES environment variable, the problems
5725   # vanish in a puff of smoke.
5726   if test "X${COLLECT_NAMES+set}" != Xset; then
5727     COLLECT_NAMES=
5728     export COLLECT_NAMES
5729   fi
5730   ;;
5731 esac
5732
5733 # Sed substitution that helps us do robust quoting.  It backslashifies
5734 # metacharacters that are still active within double-quoted strings.
5735 Xsed='sed -e s/^X//'
5736 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5737
5738 # Same as above, but do not quote variable references.
5739 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5740
5741 # Sed substitution to delay expansion of an escaped shell variable in a
5742 # double_quote_subst'ed string.
5743 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5744
5745 # Sed substitution to avoid accidental globbing in evaled expressions
5746 no_glob_subst='s/\*/\\\*/g'
5747
5748 # Constants:
5749 rm="rm -f"
5750
5751 # Global variables:
5752 default_ofile=libtool
5753 can_build_shared=yes
5754
5755 # All known linkers require a `.a' archive for static linking (except M$VC,
5756 # which needs '.lib').
5757 libext=a
5758 ltmain="$ac_aux_dir/ltmain.sh"
5759 ofile="$default_ofile"
5760 with_gnu_ld="$lt_cv_prog_gnu_ld"
5761
5762 if test -n "$ac_tool_prefix"; then
5763   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5764 set dummy ${ac_tool_prefix}ar; ac_word=$2
5765 echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767 if test "${ac_cv_prog_AR+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   if test -n "$AR"; then
5771   ac_cv_prog_AR="$AR" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778   for ac_exec_ext in '' $ac_executable_extensions; do
5779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_AR="${ac_tool_prefix}ar"
5781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785 done
5786
5787 fi
5788 fi
5789 AR=$ac_cv_prog_AR
5790 if test -n "$AR"; then
5791   echo "$as_me:$LINENO: result: $AR" >&5
5792 echo "${ECHO_T}$AR" >&6
5793 else
5794   echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5796 fi
5797
5798 fi
5799 if test -z "$ac_cv_prog_AR"; then
5800   ac_ct_AR=$AR
5801   # Extract the first word of "ar", so it can be a program name with args.
5802 set dummy ar; ac_word=$2
5803 echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   if test -n "$ac_ct_AR"; then
5809   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816   for ac_exec_ext in '' $ac_executable_extensions; do
5817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_prog_ac_ct_AR="ar"
5819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823 done
5824
5825   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5826 fi
5827 fi
5828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5829 if test -n "$ac_ct_AR"; then
5830   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5831 echo "${ECHO_T}$ac_ct_AR" >&6
5832 else
5833   echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5835 fi
5836
5837   AR=$ac_ct_AR
5838 else
5839   AR="$ac_cv_prog_AR"
5840 fi
5841
5842 if test -n "$ac_tool_prefix"; then
5843   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5845 echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847 if test "${ac_cv_prog_RANLIB+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   if test -n "$RANLIB"; then
5851   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   for ac_exec_ext in '' $ac_executable_extensions; do
5859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865 done
5866
5867 fi
5868 fi
5869 RANLIB=$ac_cv_prog_RANLIB
5870 if test -n "$RANLIB"; then
5871   echo "$as_me:$LINENO: result: $RANLIB" >&5
5872 echo "${ECHO_T}$RANLIB" >&6
5873 else
5874   echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6
5876 fi
5877
5878 fi
5879 if test -z "$ac_cv_prog_RANLIB"; then
5880   ac_ct_RANLIB=$RANLIB
5881   # Extract the first word of "ranlib", so it can be a program name with args.
5882 set dummy ranlib; ac_word=$2
5883 echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   if test -n "$ac_ct_RANLIB"; then
5889   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898     ac_cv_prog_ac_ct_RANLIB="ranlib"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904
5905   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5906 fi
5907 fi
5908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5909 if test -n "$ac_ct_RANLIB"; then
5910   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5911 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5912 else
5913   echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6
5915 fi
5916
5917   RANLIB=$ac_ct_RANLIB
5918 else
5919   RANLIB="$ac_cv_prog_RANLIB"
5920 fi
5921
5922 if test -n "$ac_tool_prefix"; then
5923   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5924 set dummy ${ac_tool_prefix}strip; ac_word=$2
5925 echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927 if test "${ac_cv_prog_STRIP+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   if test -n "$STRIP"; then
5931   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_exec_ext in '' $ac_executable_extensions; do
5939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945 done
5946
5947 fi
5948 fi
5949 STRIP=$ac_cv_prog_STRIP
5950 if test -n "$STRIP"; then
5951   echo "$as_me:$LINENO: result: $STRIP" >&5
5952 echo "${ECHO_T}$STRIP" >&6
5953 else
5954   echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5956 fi
5957
5958 fi
5959 if test -z "$ac_cv_prog_STRIP"; then
5960   ac_ct_STRIP=$STRIP
5961   # Extract the first word of "strip", so it can be a program name with args.
5962 set dummy strip; ac_word=$2
5963 echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   if test -n "$ac_ct_STRIP"; then
5969   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974   IFS=$as_save_IFS
5975   test -z "$as_dir" && as_dir=.
5976   for ac_exec_ext in '' $ac_executable_extensions; do
5977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978     ac_cv_prog_ac_ct_STRIP="strip"
5979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983 done
5984
5985   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5986 fi
5987 fi
5988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5989 if test -n "$ac_ct_STRIP"; then
5990   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5991 echo "${ECHO_T}$ac_ct_STRIP" >&6
5992 else
5993   echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5995 fi
5996
5997   STRIP=$ac_ct_STRIP
5998 else
5999   STRIP="$ac_cv_prog_STRIP"
6000 fi
6001
6002
6003 old_CC="$CC"
6004 old_CFLAGS="$CFLAGS"
6005
6006 # Set sane defaults for various variables
6007 test -z "$AR" && AR=ar
6008 test -z "$AR_FLAGS" && AR_FLAGS=cru
6009 test -z "$AS" && AS=as
6010 test -z "$CC" && CC=cc
6011 test -z "$LTCC" && LTCC=$CC
6012 test -z "$DLLTOOL" && DLLTOOL=dlltool
6013 test -z "$LD" && LD=ld
6014 test -z "$LN_S" && LN_S="ln -s"
6015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6016 test -z "$NM" && NM=nm
6017 test -z "$SED" && SED=sed
6018 test -z "$OBJDUMP" && OBJDUMP=objdump
6019 test -z "$RANLIB" && RANLIB=:
6020 test -z "$STRIP" && STRIP=:
6021 test -z "$ac_objext" && ac_objext=o
6022
6023 # Determine commands to create old-style static archives.
6024 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6025 old_postinstall_cmds='chmod 644 $oldlib'
6026 old_postuninstall_cmds=
6027
6028 if test -n "$RANLIB"; then
6029   case $host_os in
6030   openbsd*)
6031     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6032     ;;
6033   *)
6034     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6035     ;;
6036   esac
6037   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6038 fi
6039
6040 # Only perform the check for file, if the check method requires it
6041 case $deplibs_check_method in
6042 file_magic*)
6043   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6044     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6045 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6046 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   case $MAGIC_CMD in
6050 [\\/*] |  ?:[\\/]*)
6051   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6052   ;;
6053 *)
6054   lt_save_MAGIC_CMD="$MAGIC_CMD"
6055   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6056   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6057   for ac_dir in $ac_dummy; do
6058     IFS="$lt_save_ifs"
6059     test -z "$ac_dir" && ac_dir=.
6060     if test -f $ac_dir/${ac_tool_prefix}file; then
6061       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6062       if test -n "$file_magic_test_file"; then
6063         case $deplibs_check_method in
6064         "file_magic "*)
6065           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6066           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6067           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6068             $EGREP "$file_magic_regex" > /dev/null; then
6069             :
6070           else
6071             cat <<EOF 1>&2
6072
6073 *** Warning: the command libtool uses to detect shared libraries,
6074 *** $file_magic_cmd, produces output that libtool cannot recognize.
6075 *** The result is that libtool may fail to recognize shared libraries
6076 *** as such.  This will affect the creation of libtool libraries that
6077 *** depend on shared libraries, but programs linked with such libtool
6078 *** libraries will work regardless of this problem.  Nevertheless, you
6079 *** may want to report the problem to your system manager and/or to
6080 *** bug-libtool@gnu.org
6081
6082 EOF
6083           fi ;;
6084         esac
6085       fi
6086       break
6087     fi
6088   done
6089   IFS="$lt_save_ifs"
6090   MAGIC_CMD="$lt_save_MAGIC_CMD"
6091   ;;
6092 esac
6093 fi
6094
6095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096 if test -n "$MAGIC_CMD"; then
6097   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6098 echo "${ECHO_T}$MAGIC_CMD" >&6
6099 else
6100   echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6
6102 fi
6103
6104 if test -z "$lt_cv_path_MAGIC_CMD"; then
6105   if test -n "$ac_tool_prefix"; then
6106     echo "$as_me:$LINENO: checking for file" >&5
6107 echo $ECHO_N "checking for file... $ECHO_C" >&6
6108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   case $MAGIC_CMD in
6112 [\\/*] |  ?:[\\/]*)
6113   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6114   ;;
6115 *)
6116   lt_save_MAGIC_CMD="$MAGIC_CMD"
6117   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6118   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6119   for ac_dir in $ac_dummy; do
6120     IFS="$lt_save_ifs"
6121     test -z "$ac_dir" && ac_dir=.
6122     if test -f $ac_dir/file; then
6123       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6124       if test -n "$file_magic_test_file"; then
6125         case $deplibs_check_method in
6126         "file_magic "*)
6127           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6128           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6129           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6130             $EGREP "$file_magic_regex" > /dev/null; then
6131             :
6132           else
6133             cat <<EOF 1>&2
6134
6135 *** Warning: the command libtool uses to detect shared libraries,
6136 *** $file_magic_cmd, produces output that libtool cannot recognize.
6137 *** The result is that libtool may fail to recognize shared libraries
6138 *** as such.  This will affect the creation of libtool libraries that
6139 *** depend on shared libraries, but programs linked with such libtool
6140 *** libraries will work regardless of this problem.  Nevertheless, you
6141 *** may want to report the problem to your system manager and/or to
6142 *** bug-libtool@gnu.org
6143
6144 EOF
6145           fi ;;
6146         esac
6147       fi
6148       break
6149     fi
6150   done
6151   IFS="$lt_save_ifs"
6152   MAGIC_CMD="$lt_save_MAGIC_CMD"
6153   ;;
6154 esac
6155 fi
6156
6157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158 if test -n "$MAGIC_CMD"; then
6159   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6160 echo "${ECHO_T}$MAGIC_CMD" >&6
6161 else
6162   echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6164 fi
6165
6166   else
6167     MAGIC_CMD=:
6168   fi
6169 fi
6170
6171   fi
6172   ;;
6173 esac
6174
6175 enable_dlopen=yes
6176 enable_win32_dll=no
6177
6178 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6179 if test "${enable_libtool_lock+set}" = set; then
6180   enableval="$enable_libtool_lock"
6181
6182 fi;
6183 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6184
6185
6186 # Check whether --with-pic or --without-pic was given.
6187 if test "${with_pic+set}" = set; then
6188   withval="$with_pic"
6189   pic_mode="$withval"
6190 else
6191   pic_mode=default
6192 fi;
6193 test -z "$pic_mode" && pic_mode=default
6194
6195 # Use C for the default configuration in the libtool script
6196 tagname=
6197 lt_save_CC="$CC"
6198 ac_ext=c
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204
6205 # Source file extension for C test sources.
6206 ac_ext=c
6207
6208 # Object file extension for compiled C test sources.
6209 objext=o
6210 objext=$objext
6211
6212 # Code to be used in simple compile tests
6213 lt_simple_compile_test_code="int some_variable = 0;\n"
6214
6215 # Code to be used in simple link tests
6216 lt_simple_link_test_code='int main(){return(0);}\n'
6217
6218
6219 # If no C compiler was specified, use CC.
6220 LTCC=${LTCC-"$CC"}
6221
6222 # Allow CC to be a program name with arguments.
6223 compiler=$CC
6224
6225
6226 #
6227 # Check for any special shared library compilation flags.
6228 #
6229 lt_prog_cc_shlib=
6230 if test "$GCC" = no; then
6231   case $host_os in
6232   sco3.2v5*)
6233     lt_prog_cc_shlib='-belf'
6234     ;;
6235   esac
6236 fi
6237 if test -n "$lt_prog_cc_shlib"; then
6238   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6239 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6240   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6241   else
6242     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6243 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6244     lt_cv_prog_cc_can_build_shared=no
6245   fi
6246 fi
6247
6248
6249 #
6250 # Check to make sure the static flag actually works.
6251 #
6252 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6253 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6254 if test "${lt_prog_compiler_static_works+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   lt_prog_compiler_static_works=no
6258    save_LDFLAGS="$LDFLAGS"
6259    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6260    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6261    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6262      # The compiler can only warn and ignore the option if not recognized
6263      # So say no if there are warnings
6264      if test -s conftest.err; then
6265        # Append any errors to the config.log.
6266        cat conftest.err 1>&5
6267      else
6268        lt_prog_compiler_static_works=yes
6269      fi
6270    fi
6271    $rm conftest*
6272    LDFLAGS="$save_LDFLAGS"
6273
6274 fi
6275 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6276 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6277
6278 if test x"$lt_prog_compiler_static_works" = xyes; then
6279     :
6280 else
6281     lt_prog_compiler_static=
6282 fi
6283
6284
6285
6286
6287 lt_prog_compiler_no_builtin_flag=
6288
6289 if test "$GCC" = yes; then
6290   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6291
6292
6293 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6294 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6295 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   lt_cv_prog_compiler_rtti_exceptions=no
6299   ac_outfile=conftest.$ac_objext
6300    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6301    lt_compiler_flag="-fno-rtti -fno-exceptions"
6302    # Insert the option either (1) after the last *FLAGS variable, or
6303    # (2) before a word containing "conftest.", or (3) at the end.
6304    # Note that $ac_compile itself does not contain backslashes and begins
6305    # with a dollar sign (not a hyphen), so the echo should work correctly.
6306    # The option is referenced via a variable to avoid confusing sed.
6307    lt_compile=`echo "$ac_compile" | $SED \
6308    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6310    -e 's:$: $lt_compiler_flag:'`
6311    (eval echo "\"\$as_me:6311: $lt_compile\"" >&5)
6312    (eval "$lt_compile" 2>conftest.err)
6313    ac_status=$?
6314    cat conftest.err >&5
6315    echo "$as_me:6315: \$? = $ac_status" >&5
6316    if (exit $ac_status) && test -s "$ac_outfile"; then
6317      # The compiler can only warn and ignore the option if not recognized
6318      # So say no if there are warnings
6319      if test ! -s conftest.err; then
6320        lt_cv_prog_compiler_rtti_exceptions=yes
6321      fi
6322    fi
6323    $rm conftest*
6324
6325 fi
6326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6327 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6328
6329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6330     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6331 else
6332     :
6333 fi
6334
6335 fi
6336
6337 lt_prog_compiler_wl=
6338 lt_prog_compiler_pic=
6339 lt_prog_compiler_static=
6340
6341 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6342 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6343
6344   if test "$GCC" = yes; then
6345     lt_prog_compiler_wl='-Wl,'
6346     lt_prog_compiler_static='-static'
6347
6348     case $host_os in
6349       aix*)
6350       # All AIX code is PIC.
6351       if test "$host_cpu" = ia64; then
6352         # AIX 5 now supports IA64 processor
6353         lt_prog_compiler_static='-Bstatic'
6354       fi
6355       ;;
6356
6357     amigaos*)
6358       # FIXME: we need at least 68020 code to build shared libraries, but
6359       # adding the `-m68020' flag to GCC prevents building anything better,
6360       # like `-m68040'.
6361       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6362       ;;
6363
6364     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6365       # PIC is the default for these OSes.
6366       ;;
6367
6368     mingw* | pw32* | os2*)
6369       # This hack is so that the source file can tell whether it is being
6370       # built for inclusion in a dll (and should export symbols for example).
6371       lt_prog_compiler_pic='-DDLL_EXPORT'
6372       ;;
6373
6374     darwin* | rhapsody*)
6375       # PIC is the default on this platform
6376       # Common symbols not allowed in MH_DYLIB files
6377       lt_prog_compiler_pic='-fno-common'
6378       ;;
6379
6380     msdosdjgpp*)
6381       # Just because we use GCC doesn't mean we suddenly get shared libraries
6382       # on systems that don't support them.
6383       lt_prog_compiler_can_build_shared=no
6384       enable_shared=no
6385       ;;
6386
6387     sysv4*MP*)
6388       if test -d /usr/nec; then
6389         lt_prog_compiler_pic=-Kconform_pic
6390       fi
6391       ;;
6392
6393     hpux*)
6394       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6395       # not for PA HP-UX.
6396       case "$host_cpu" in
6397       hppa*64*|ia64*)
6398         # +Z the default
6399         ;;
6400       *)
6401         lt_prog_compiler_pic='-fPIC'
6402         ;;
6403       esac
6404       ;;
6405
6406     *)
6407       lt_prog_compiler_pic='-fPIC'
6408       ;;
6409     esac
6410   else
6411     # PORTME Check for flag to pass linker flags through the system compiler.
6412     case $host_os in
6413     aix*)
6414       lt_prog_compiler_wl='-Wl,'
6415       if test "$host_cpu" = ia64; then
6416         # AIX 5 now supports IA64 processor
6417         lt_prog_compiler_static='-Bstatic'
6418       else
6419         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6420       fi
6421       ;;
6422
6423     mingw* | pw32* | os2*)
6424       # This hack is so that the source file can tell whether it is being
6425       # built for inclusion in a dll (and should export symbols for example).
6426       lt_prog_compiler_pic='-DDLL_EXPORT'
6427       ;;
6428
6429     hpux9* | hpux10* | hpux11*)
6430       lt_prog_compiler_wl='-Wl,'
6431       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6432       # not for PA HP-UX.
6433       case "$host_cpu" in
6434       hppa*64*|ia64*)
6435         # +Z the default
6436         ;;
6437       *)
6438         lt_prog_compiler_pic='+Z'
6439         ;;
6440       esac
6441       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6442       lt_prog_compiler_static='${wl}-a ${wl}archive'
6443       ;;
6444
6445     irix5* | irix6* | nonstopux*)
6446       lt_prog_compiler_wl='-Wl,'
6447       # PIC (with -KPIC) is the default.
6448       lt_prog_compiler_static='-non_shared'
6449       ;;
6450
6451     newsos6)
6452       lt_prog_compiler_pic='-KPIC'
6453       lt_prog_compiler_static='-Bstatic'
6454       ;;
6455
6456     linux*)
6457       case $CC in
6458       icc* | ecc*)
6459         lt_prog_compiler_wl='-Wl,'
6460         lt_prog_compiler_pic='-KPIC'
6461         lt_prog_compiler_static='-static'
6462         ;;
6463       ccc*)
6464         lt_prog_compiler_wl='-Wl,'
6465         # All Alpha code is PIC.
6466         lt_prog_compiler_static='-non_shared'
6467         ;;
6468       esac
6469       ;;
6470
6471     osf3* | osf4* | osf5*)
6472       lt_prog_compiler_wl='-Wl,'
6473       # All OSF/1 code is PIC.
6474       lt_prog_compiler_static='-non_shared'
6475       ;;
6476
6477     sco3.2v5*)
6478       lt_prog_compiler_pic='-Kpic'
6479       lt_prog_compiler_static='-dn'
6480       ;;
6481
6482     solaris*)
6483       lt_prog_compiler_wl='-Wl,'
6484       lt_prog_compiler_pic='-KPIC'
6485       lt_prog_compiler_static='-Bstatic'
6486       ;;
6487
6488     sunos4*)
6489       lt_prog_compiler_wl='-Qoption ld '
6490       lt_prog_compiler_pic='-PIC'
6491       lt_prog_compiler_static='-Bstatic'
6492       ;;
6493
6494     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6495       lt_prog_compiler_wl='-Wl,'
6496       lt_prog_compiler_pic='-KPIC'
6497       lt_prog_compiler_static='-Bstatic'
6498       ;;
6499
6500     sysv4*MP*)
6501       if test -d /usr/nec ;then
6502         lt_prog_compiler_pic='-Kconform_pic'
6503         lt_prog_compiler_static='-Bstatic'
6504       fi
6505       ;;
6506
6507     uts4*)
6508       lt_prog_compiler_pic='-pic'
6509       lt_prog_compiler_static='-Bstatic'
6510       ;;
6511
6512     *)
6513       lt_prog_compiler_can_build_shared=no
6514       ;;
6515     esac
6516   fi
6517
6518 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6519 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6520
6521 #
6522 # Check to make sure the PIC flag actually works.
6523 #
6524 if test -n "$lt_prog_compiler_pic"; then
6525
6526 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6527 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6528 if test "${lt_prog_compiler_pic_works+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   lt_prog_compiler_pic_works=no
6532   ac_outfile=conftest.$ac_objext
6533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6534    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6535    # Insert the option either (1) after the last *FLAGS variable, or
6536    # (2) before a word containing "conftest.", or (3) at the end.
6537    # Note that $ac_compile itself does not contain backslashes and begins
6538    # with a dollar sign (not a hyphen), so the echo should work correctly.
6539    # The option is referenced via a variable to avoid confusing sed.
6540    lt_compile=`echo "$ac_compile" | $SED \
6541    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6543    -e 's:$: $lt_compiler_flag:'`
6544    (eval echo "\"\$as_me:6544: $lt_compile\"" >&5)
6545    (eval "$lt_compile" 2>conftest.err)
6546    ac_status=$?
6547    cat conftest.err >&5
6548    echo "$as_me:6548: \$? = $ac_status" >&5
6549    if (exit $ac_status) && test -s "$ac_outfile"; then
6550      # The compiler can only warn and ignore the option if not recognized
6551      # So say no if there are warnings
6552      if test ! -s conftest.err; then
6553        lt_prog_compiler_pic_works=yes
6554      fi
6555    fi
6556    $rm conftest*
6557
6558 fi
6559 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6560 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6561
6562 if test x"$lt_prog_compiler_pic_works" = xyes; then
6563     case $lt_prog_compiler_pic in
6564      "" | " "*) ;;
6565      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6566      esac
6567 else
6568     lt_prog_compiler_pic=
6569      lt_prog_compiler_can_build_shared=no
6570 fi
6571
6572 fi
6573 case "$host_os" in
6574   # For platforms which do not support PIC, -DPIC is meaningless:
6575   *djgpp*)
6576     lt_prog_compiler_pic=
6577     ;;
6578   *)
6579     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6580     ;;
6581 esac
6582
6583 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6585 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   lt_cv_prog_compiler_c_o=no
6589    $rm -r conftest 2>/dev/null
6590    mkdir conftest
6591    cd conftest
6592    mkdir out
6593    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6594
6595    lt_compiler_flag="-o out/conftest2.$ac_objext"
6596    # Insert the option either (1) after the last *FLAGS variable, or
6597    # (2) before a word containing "conftest.", or (3) at the end.
6598    # Note that $ac_compile itself does not contain backslashes and begins
6599    # with a dollar sign (not a hyphen), so the echo should work correctly.
6600    lt_compile=`echo "$ac_compile" | $SED \
6601    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603    -e 's:$: $lt_compiler_flag:'`
6604    (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
6605    (eval "$lt_compile" 2>out/conftest.err)
6606    ac_status=$?
6607    cat out/conftest.err >&5
6608    echo "$as_me:6608: \$? = $ac_status" >&5
6609    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6610    then
6611      # The compiler can only warn and ignore the option if not recognized
6612      # So say no if there are warnings
6613      if test ! -s out/conftest.err; then
6614        lt_cv_prog_compiler_c_o=yes
6615      fi
6616    fi
6617    chmod u+w .
6618    $rm conftest*
6619    # SGI C++ compiler will create directory out/ii_files/ for
6620    # template instantiation
6621    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6622    $rm out/* && rmdir out
6623    cd ..
6624    rmdir conftest
6625    $rm conftest*
6626
6627 fi
6628 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6630
6631
6632 hard_links="nottested"
6633 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6634   # do not overwrite the value of need_locks provided by the user
6635   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6637   hard_links=yes
6638   $rm conftest*
6639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6640   touch conftest.a
6641   ln conftest.a conftest.b 2>&5 || hard_links=no
6642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6643   echo "$as_me:$LINENO: result: $hard_links" >&5
6644 echo "${ECHO_T}$hard_links" >&6
6645   if test "$hard_links" = no; then
6646     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6648     need_locks=warn
6649   fi
6650 else
6651   need_locks=no
6652 fi
6653
6654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6656
6657   runpath_var=
6658   allow_undefined_flag=
6659   enable_shared_with_static_runtimes=no
6660   archive_cmds=
6661   archive_expsym_cmds=
6662   old_archive_From_new_cmds=
6663   old_archive_from_expsyms_cmds=
6664   export_dynamic_flag_spec=
6665   whole_archive_flag_spec=
6666   thread_safe_flag_spec=
6667   hardcode_libdir_flag_spec=
6668   hardcode_libdir_flag_spec_ld=
6669   hardcode_libdir_separator=
6670   hardcode_direct=no
6671   hardcode_minus_L=no
6672   hardcode_shlibpath_var=unsupported
6673   link_all_deplibs=unknown
6674   hardcode_automatic=no
6675   module_cmds=
6676   module_expsym_cmds=
6677   always_export_symbols=no
6678   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6679   # include_expsyms should be a list of space-separated symbols to be *always*
6680   # included in the symbol list
6681   include_expsyms=
6682   # exclude_expsyms can be an extended regexp of symbols to exclude
6683   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6684   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6685   # as well as any symbol that contains `d'.
6686   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6687   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6688   # platforms (ab)use it in PIC code, but their linkers get confused if
6689   # the symbol is explicitly referenced.  Since portable code cannot
6690   # rely on this symbol name, it's probably fine to never include it in
6691   # preloaded symbol tables.
6692   extract_expsyms_cmds=
6693
6694   case $host_os in
6695   cygwin* | mingw* | pw32*)
6696     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6697     # When not using gcc, we currently assume that we are using
6698     # Microsoft Visual C++.
6699     if test "$GCC" != yes; then
6700       with_gnu_ld=no
6701     fi
6702     ;;
6703   openbsd*)
6704     with_gnu_ld=no
6705     ;;
6706   esac
6707
6708   ld_shlibs=yes
6709   if test "$with_gnu_ld" = yes; then
6710     # If archive_cmds runs LD, not CC, wlarc should be empty
6711     wlarc='${wl}'
6712
6713     # See if GNU ld supports shared libraries.
6714     case $host_os in
6715     aix3* | aix4* | aix5*)
6716       # On AIX/PPC, the GNU linker is very broken
6717       if test "$host_cpu" != ia64; then
6718         ld_shlibs=no
6719         cat <<EOF 1>&2
6720
6721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6722 *** to be unable to reliably create shared libraries on AIX.
6723 *** Therefore, libtool is disabling shared libraries support.  If you
6724 *** really care for shared libraries, you may want to modify your PATH
6725 *** so that a non-GNU linker is found, and then restart.
6726
6727 EOF
6728       fi
6729       ;;
6730
6731     amigaos*)
6732       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)'
6733       hardcode_libdir_flag_spec='-L$libdir'
6734       hardcode_minus_L=yes
6735
6736       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6737       # that the semantics of dynamic libraries on AmigaOS, at least up
6738       # to version 4, is to share data among multiple programs linked
6739       # with the same dynamic library.  Since this doesn't match the
6740       # behavior of shared libraries on other platforms, we can't use
6741       # them.
6742       ld_shlibs=no
6743       ;;
6744
6745     beos*)
6746       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6747         allow_undefined_flag=unsupported
6748         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6749         # support --undefined.  This deserves some investigation.  FIXME
6750         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6751       else
6752         ld_shlibs=no
6753       fi
6754       ;;
6755
6756     cygwin* | mingw* | pw32*)
6757       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6758       # as there is no search path for DLLs.
6759       hardcode_libdir_flag_spec='-L$libdir'
6760       allow_undefined_flag=unsupported
6761       always_export_symbols=no
6762       enable_shared_with_static_runtimes=yes
6763       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6764
6765       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6766         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6767         # If the export-symbols file already is a .def file (1st line
6768         # is EXPORTS), use it as is; otherwise, prepend...
6769         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6770           cp $export_symbols $output_objdir/$soname.def;
6771         else
6772           echo EXPORTS > $output_objdir/$soname.def;
6773           cat $export_symbols >> $output_objdir/$soname.def;
6774         fi~
6775         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6776       else
6777         ld_shlibs=no
6778       fi
6779       ;;
6780
6781     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6782       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6783         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6784         wlarc=
6785       else
6786         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6788       fi
6789       ;;
6790
6791     solaris* | sysv5*)
6792       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6793         ld_shlibs=no
6794         cat <<EOF 1>&2
6795
6796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6797 *** create shared libraries on Solaris systems.  Therefore, libtool
6798 *** is disabling shared libraries support.  We urge you to upgrade GNU
6799 *** binutils to release 2.9.1 or newer.  Another option is to modify
6800 *** your PATH or compiler configuration so that the native linker is
6801 *** used, and then restart.
6802
6803 EOF
6804       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6805         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6806         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6807       else
6808         ld_shlibs=no
6809       fi
6810       ;;
6811
6812     sunos4*)
6813       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6814       wlarc=
6815       hardcode_direct=yes
6816       hardcode_shlibpath_var=no
6817       ;;
6818
6819   linux*)
6820     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6821         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6822         archive_cmds="$tmp_archive_cmds"
6823       supports_anon_versioning=no
6824       case `$LD -v 2>/dev/null` in
6825         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6826         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6827         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6828         *\ 2.11.*) ;; # other 2.11 versions
6829         *) supports_anon_versioning=yes ;;
6830       esac
6831       if test $supports_anon_versioning = yes; then
6832         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6834 $echo "local: *; };" >> $output_objdir/$libname.ver~
6835         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6836       else
6837         archive_expsym_cmds="$tmp_archive_cmds"
6838       fi
6839       link_all_deplibs=no
6840     else
6841       ld_shlibs=no
6842     fi
6843     ;;
6844
6845     *)
6846       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6848         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6849       else
6850         ld_shlibs=no
6851       fi
6852       ;;
6853     esac
6854
6855     if test "$ld_shlibs" = yes; then
6856       runpath_var=LD_RUN_PATH
6857       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6858       export_dynamic_flag_spec='${wl}--export-dynamic'
6859       # ancient GNU ld didn't support --whole-archive et. al.
6860       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6861         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6862       else
6863         whole_archive_flag_spec=
6864       fi
6865     fi
6866   else
6867     # PORTME fill in a description of your system's linker (not GNU ld)
6868     case $host_os in
6869     aix3*)
6870       allow_undefined_flag=unsupported
6871       always_export_symbols=yes
6872       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'
6873       # Note: this linker hardcodes the directories in LIBPATH if there
6874       # are no directories specified by -L.
6875       hardcode_minus_L=yes
6876       if test "$GCC" = yes && test -z "$link_static_flag"; then
6877         # Neither direct hardcoding nor static linking is supported with a
6878         # broken collect2.
6879         hardcode_direct=unsupported
6880       fi
6881       ;;
6882
6883     aix4* | aix5*)
6884       if test "$host_cpu" = ia64; then
6885         # On IA64, the linker does run time linking by default, so we don't
6886         # have to do anything special.
6887         aix_use_runtimelinking=no
6888         exp_sym_flag='-Bexport'
6889         no_entry_flag=""
6890       else
6891         # If we're using GNU nm, then we don't want the "-C" option.
6892         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6893         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6894           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'
6895         else
6896           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'
6897         fi
6898         aix_use_runtimelinking=no
6899
6900         # Test if we are trying to use run time linking or normal
6901         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6902         # need to do runtime linking.
6903         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6904           for ld_flag in $LDFLAGS; do
6905           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6906             aix_use_runtimelinking=yes
6907             break
6908           fi
6909           done
6910         esac
6911
6912         exp_sym_flag='-bexport'
6913         no_entry_flag='-bnoentry'
6914       fi
6915
6916       # When large executables or shared objects are built, AIX ld can
6917       # have problems creating the table of contents.  If linking a library
6918       # or program results in "error TOC overflow" add -mminimal-toc to
6919       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6920       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6921
6922       archive_cmds=''
6923       hardcode_direct=yes
6924       hardcode_libdir_separator=':'
6925       link_all_deplibs=yes
6926
6927       if test "$GCC" = yes; then
6928         case $host_os in aix4.012|aix4.012.*)
6929         # We only want to do this on AIX 4.2 and lower, the check
6930         # below for broken collect2 doesn't work under 4.3+
6931           collect2name=`${CC} -print-prog-name=collect2`
6932           if test -f "$collect2name" && \
6933            strings "$collect2name" | grep resolve_lib_name >/dev/null
6934           then
6935           # We have reworked collect2
6936           hardcode_direct=yes
6937           else
6938           # We have old collect2
6939           hardcode_direct=unsupported
6940           # It fails to find uninstalled libraries when the uninstalled
6941           # path is not listed in the libpath.  Setting hardcode_minus_L
6942           # to unsupported forces relinking
6943           hardcode_minus_L=yes
6944           hardcode_libdir_flag_spec='-L$libdir'
6945           hardcode_libdir_separator=
6946           fi
6947         esac
6948         shared_flag='-shared'
6949       else
6950         # not using gcc
6951         if test "$host_cpu" = ia64; then
6952         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6953         # chokes on -Wl,-G. The following line is correct:
6954           shared_flag='-G'
6955         else
6956         if test "$aix_use_runtimelinking" = yes; then
6957             shared_flag='${wl}-G'
6958           else
6959             shared_flag='${wl}-bM:SRE'
6960         fi
6961         fi
6962       fi
6963
6964       # It seems that -bexpall does not export symbols beginning with
6965       # underscore (_), so it is better to generate a list of symbols to export.
6966       always_export_symbols=yes
6967       if test "$aix_use_runtimelinking" = yes; then
6968         # Warning - without using the other runtime loading flags (-brtl),
6969         # -berok will link without error, but may produce a broken library.
6970         allow_undefined_flag='-berok'
6971        # Determine the default libpath from the value encoded in an empty executable.
6972        cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979
6980 int
6981 main ()
6982 {
6983
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990   (eval $ac_link) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } &&
6994          { ac_try='test -s conftest$ac_exeext'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; }; then
7000
7001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7002 }'`
7003 # Check for a 64-bit object if we didn't find anything.
7004 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; }
7005 }'`; fi
7006 else
7007   echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010 fi
7011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7013
7014        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7015         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"
7016        else
7017         if test "$host_cpu" = ia64; then
7018           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7019           allow_undefined_flag="-z nodefs"
7020           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"
7021         else
7022          # Determine the default libpath from the value encoded in an empty executable.
7023          cat >conftest.$ac_ext <<_ACEOF
7024 #line $LINENO "configure"
7025 /* confdefs.h.  */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h.  */
7030
7031 int
7032 main ()
7033 {
7034
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041   (eval $ac_link) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } &&
7045          { ac_try='test -s conftest$ac_exeext'
7046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047   (eval $ac_try) 2>&5
7048   ac_status=$?
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); }; }; then
7051
7052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7053 }'`
7054 # Check for a 64-bit object if we didn't find anything.
7055 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; }
7056 }'`; fi
7057 else
7058   echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061 fi
7062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7064
7065          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7066           # Warning - without using the other run time loading flags,
7067           # -berok will link without error, but may produce a broken library.
7068           no_undefined_flag=' ${wl}-bernotok'
7069           allow_undefined_flag=' ${wl}-berok'
7070           # -bexpall does not export symbols beginning with underscore (_)
7071           always_export_symbols=yes
7072           # Exported symbols can be pulled into shared objects from archives
7073           whole_archive_flag_spec=' '
7074           archive_cmds_need_lc=yes
7075           # This is similar to how AIX traditionally builds it's shared libraries.
7076           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'
7077         fi
7078       fi
7079       ;;
7080
7081     amigaos*)
7082       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)'
7083       hardcode_libdir_flag_spec='-L$libdir'
7084       hardcode_minus_L=yes
7085       # see comment about different semantics on the GNU ld section
7086       ld_shlibs=no
7087       ;;
7088
7089     bsdi4*)
7090       export_dynamic_flag_spec=-rdynamic
7091       ;;
7092
7093     cygwin* | mingw* | pw32*)
7094       # When not using gcc, we currently assume that we are using
7095       # Microsoft Visual C++.
7096       # hardcode_libdir_flag_spec is actually meaningless, as there is
7097       # no search path for DLLs.
7098       hardcode_libdir_flag_spec=' '
7099       allow_undefined_flag=unsupported
7100       # Tell ltmain to make .lib files, not .a files.
7101       libext=lib
7102       # Tell ltmain to make .dll files, not .so files.
7103       shrext_cmds=".dll"
7104       # FIXME: Setting linknames here is a bad hack.
7105       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7106       # The linker will automatically build a .lib file if we build a DLL.
7107       old_archive_From_new_cmds='true'
7108       # FIXME: Should let the user specify the lib program.
7109       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7110       fix_srcfile_path='`cygpath -w "$srcfile"`'
7111       enable_shared_with_static_runtimes=yes
7112       ;;
7113
7114     darwin* | rhapsody*)
7115     if test "$GXX" = yes ; then
7116       archive_cmds_need_lc=no
7117       case "$host_os" in
7118       rhapsody* | darwin1.[012])
7119         allow_undefined_flag='-undefined suppress'
7120         ;;
7121       *) # Darwin 1.3 on
7122       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7123         allow_undefined_flag='-flat_namespace -undefined suppress'
7124       else
7125         case ${MACOSX_DEPLOYMENT_TARGET} in
7126           10.[012])
7127             allow_undefined_flag='-flat_namespace -undefined suppress'
7128             ;;
7129           10.*)
7130             allow_undefined_flag='-undefined dynamic_lookup'
7131             ;;
7132         esac
7133       fi
7134         ;;
7135       esac
7136         lt_int_apple_cc_single_mod=no
7137         output_verbose_link_cmd='echo'
7138         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7139           lt_int_apple_cc_single_mod=yes
7140         fi
7141         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7142           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7143         else
7144         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7145       fi
7146       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7147       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7148         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7149           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7150         else
7151           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7152         fi
7153           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}'
7154       hardcode_direct=no
7155       hardcode_automatic=yes
7156       hardcode_shlibpath_var=unsupported
7157       whole_archive_flag_spec='-all_load $convenience'
7158       link_all_deplibs=yes
7159     else
7160       ld_shlibs=no
7161     fi
7162       ;;
7163
7164     dgux*)
7165       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7166       hardcode_libdir_flag_spec='-L$libdir'
7167       hardcode_shlibpath_var=no
7168       ;;
7169
7170     freebsd1*)
7171       ld_shlibs=no
7172       ;;
7173
7174     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7175     # support.  Future versions do this automatically, but an explicit c++rt0.o
7176     # does not break anything, and helps significantly (at the cost of a little
7177     # extra space).
7178     freebsd2.2*)
7179       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7180       hardcode_libdir_flag_spec='-R$libdir'
7181       hardcode_direct=yes
7182       hardcode_shlibpath_var=no
7183       ;;
7184
7185     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7186     freebsd2*)
7187       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7188       hardcode_direct=yes
7189       hardcode_minus_L=yes
7190       hardcode_shlibpath_var=no
7191       ;;
7192
7193     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7194     freebsd* | kfreebsd*-gnu)
7195       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7196       hardcode_libdir_flag_spec='-R$libdir'
7197       hardcode_direct=yes
7198       hardcode_shlibpath_var=no
7199       ;;
7200
7201     hpux9*)
7202       if test "$GCC" = yes; then
7203         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'
7204       else
7205         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'
7206       fi
7207       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7208       hardcode_libdir_separator=:
7209       hardcode_direct=yes
7210
7211       # hardcode_minus_L: Not really in the search PATH,
7212       # but as the default location of the library.
7213       hardcode_minus_L=yes
7214       export_dynamic_flag_spec='${wl}-E'
7215       ;;
7216
7217     hpux10* | hpux11*)
7218       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7219         case "$host_cpu" in
7220         hppa*64*|ia64*)
7221           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7222           ;;
7223         *)
7224           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7225           ;;
7226         esac
7227       else
7228         case "$host_cpu" in
7229         hppa*64*|ia64*)
7230           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7231           ;;
7232         *)
7233           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7234           ;;
7235         esac
7236       fi
7237       if test "$with_gnu_ld" = no; then
7238         case "$host_cpu" in
7239         hppa*64*)
7240           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7241           hardcode_libdir_flag_spec_ld='+b $libdir'
7242           hardcode_libdir_separator=:
7243           hardcode_direct=no
7244           hardcode_shlibpath_var=no
7245           ;;
7246         ia64*)
7247           hardcode_libdir_flag_spec='-L$libdir'
7248           hardcode_direct=no
7249           hardcode_shlibpath_var=no
7250
7251           # hardcode_minus_L: Not really in the search PATH,
7252           # but as the default location of the library.
7253           hardcode_minus_L=yes
7254           ;;
7255         *)
7256           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7257           hardcode_libdir_separator=:
7258           hardcode_direct=yes
7259           export_dynamic_flag_spec='${wl}-E'
7260
7261           # hardcode_minus_L: Not really in the search PATH,
7262           # but as the default location of the library.
7263           hardcode_minus_L=yes
7264           ;;
7265         esac
7266       fi
7267       ;;
7268
7269     irix5* | irix6* | nonstopux*)
7270       if test "$GCC" = yes; then
7271         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'
7272       else
7273         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'
7274         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7275       fi
7276       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277       hardcode_libdir_separator=:
7278       link_all_deplibs=yes
7279       ;;
7280
7281     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7282       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7283         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7284       else
7285         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7286       fi
7287       hardcode_libdir_flag_spec='-R$libdir'
7288       hardcode_direct=yes
7289       hardcode_shlibpath_var=no
7290       ;;
7291
7292     newsos6)
7293       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294       hardcode_direct=yes
7295       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7296       hardcode_libdir_separator=:
7297       hardcode_shlibpath_var=no
7298       ;;
7299
7300     openbsd*)
7301       hardcode_direct=yes
7302       hardcode_shlibpath_var=no
7303       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7304         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7305         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7306         export_dynamic_flag_spec='${wl}-E'
7307       else
7308        case $host_os in
7309          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7310            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7311            hardcode_libdir_flag_spec='-R$libdir'
7312            ;;
7313          *)
7314            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7315            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7316            ;;
7317        esac
7318       fi
7319       ;;
7320
7321     os2*)
7322       hardcode_libdir_flag_spec='-L$libdir'
7323       hardcode_minus_L=yes
7324       allow_undefined_flag=unsupported
7325       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'
7326       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7327       ;;
7328
7329     osf3*)
7330       if test "$GCC" = yes; then
7331         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7332         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'
7333       else
7334         allow_undefined_flag=' -expect_unresolved \*'
7335         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'
7336       fi
7337       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338       hardcode_libdir_separator=:
7339       ;;
7340
7341     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7342       if test "$GCC" = yes; then
7343         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7344         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'
7345         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7346       else
7347         allow_undefined_flag=' -expect_unresolved \*'
7348         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'
7349         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7350         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7351
7352         # Both c and cxx compiler support -rpath directly
7353         hardcode_libdir_flag_spec='-rpath $libdir'
7354       fi
7355       hardcode_libdir_separator=:
7356       ;;
7357
7358     sco3.2v5*)
7359       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360       hardcode_shlibpath_var=no
7361       export_dynamic_flag_spec='${wl}-Bexport'
7362       runpath_var=LD_RUN_PATH
7363       hardcode_runpath_var=yes
7364       ;;
7365
7366     solaris*)
7367       no_undefined_flag=' -z text'
7368       if test "$GCC" = yes; then
7369         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7370         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7371           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7372       else
7373         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7375         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7376       fi
7377       hardcode_libdir_flag_spec='-R$libdir'
7378       hardcode_shlibpath_var=no
7379       case $host_os in
7380       solaris2.[0-5] | solaris2.[0-5].*) ;;
7381       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7382         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7383       esac
7384       link_all_deplibs=yes
7385       ;;
7386
7387     sunos4*)
7388       if test "x$host_vendor" = xsequent; then
7389         # Use $CC to link under sequent, because it throws in some extra .o
7390         # files that make .init and .fini sections work.
7391         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7392       else
7393         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7394       fi
7395       hardcode_libdir_flag_spec='-L$libdir'
7396       hardcode_direct=yes
7397       hardcode_minus_L=yes
7398       hardcode_shlibpath_var=no
7399       ;;
7400
7401     sysv4)
7402       case $host_vendor in
7403         sni)
7404           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405           hardcode_direct=yes # is this really true???
7406         ;;
7407         siemens)
7408           ## LD is ld it makes a PLAMLIB
7409           ## CC just makes a GrossModule.
7410           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7411           reload_cmds='$CC -r -o $output$reload_objs'
7412           hardcode_direct=no
7413         ;;
7414         motorola)
7415           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7417         ;;
7418       esac
7419       runpath_var='LD_RUN_PATH'
7420       hardcode_shlibpath_var=no
7421       ;;
7422
7423     sysv4.3*)
7424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425       hardcode_shlibpath_var=no
7426       export_dynamic_flag_spec='-Bexport'
7427       ;;
7428
7429     sysv4*MP*)
7430       if test -d /usr/nec; then
7431         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432         hardcode_shlibpath_var=no
7433         runpath_var=LD_RUN_PATH
7434         hardcode_runpath_var=yes
7435         ld_shlibs=yes
7436       fi
7437       ;;
7438
7439     sysv4.2uw2*)
7440       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7441       hardcode_direct=yes
7442       hardcode_minus_L=no
7443       hardcode_shlibpath_var=no
7444       hardcode_runpath_var=yes
7445       runpath_var=LD_RUN_PATH
7446       ;;
7447
7448    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7449       no_undefined_flag='${wl}-z ${wl}text'
7450       if test "$GCC" = yes; then
7451         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7452       else
7453         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7454       fi
7455       runpath_var='LD_RUN_PATH'
7456       hardcode_shlibpath_var=no
7457       ;;
7458
7459     sysv5*)
7460       no_undefined_flag=' -z text'
7461       # $CC -shared without GNU ld will not create a library from C++
7462       # object files and a static libstdc++, better avoid it by now
7463       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7465                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7466       hardcode_libdir_flag_spec=
7467       hardcode_shlibpath_var=no
7468       runpath_var='LD_RUN_PATH'
7469       ;;
7470
7471     uts4*)
7472       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473       hardcode_libdir_flag_spec='-L$libdir'
7474       hardcode_shlibpath_var=no
7475       ;;
7476
7477     *)
7478       ld_shlibs=no
7479       ;;
7480     esac
7481   fi
7482
7483 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7484 echo "${ECHO_T}$ld_shlibs" >&6
7485 test "$ld_shlibs" = no && can_build_shared=no
7486
7487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7488 if test "$GCC" = yes; then
7489   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7490 fi
7491
7492 #
7493 # Do we need to explicitly link libc?
7494 #
7495 case "x$archive_cmds_need_lc" in
7496 x|xyes)
7497   # Assume -lc should be added
7498   archive_cmds_need_lc=yes
7499
7500   if test "$enable_shared" = yes && test "$GCC" = yes; then
7501     case $archive_cmds in
7502     *'~'*)
7503       # FIXME: we may have to deal with multi-command sequences.
7504       ;;
7505     '$CC '*)
7506       # Test whether the compiler implicitly links with -lc since on some
7507       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7508       # to ld, don't add -lc before -lgcc.
7509       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7510 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7511       $rm conftest*
7512       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7513
7514       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515   (eval $ac_compile) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); } 2>conftest.err; then
7519         soname=conftest
7520         lib=conftest
7521         libobjs=conftest.$ac_objext
7522         deplibs=
7523         wl=$lt_prog_compiler_wl
7524         compiler_flags=-v
7525         linker_flags=-v
7526         verstring=
7527         output_objdir=.
7528         libname=conftest
7529         lt_save_allow_undefined_flag=$allow_undefined_flag
7530         allow_undefined_flag=
7531         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7532   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }
7536         then
7537           archive_cmds_need_lc=no
7538         else
7539           archive_cmds_need_lc=yes
7540         fi
7541         allow_undefined_flag=$lt_save_allow_undefined_flag
7542       else
7543         cat conftest.err 1>&5
7544       fi
7545       $rm conftest*
7546       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7547 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7548       ;;
7549     esac
7550   fi
7551   ;;
7552 esac
7553
7554 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7556 library_names_spec=
7557 libname_spec='lib$name'
7558 soname_spec=
7559 shrext_cmds=".so"
7560 postinstall_cmds=
7561 postuninstall_cmds=
7562 finish_cmds=
7563 finish_eval=
7564 shlibpath_var=
7565 shlibpath_overrides_runpath=unknown
7566 version_type=none
7567 dynamic_linker="$host_os ld.so"
7568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7569 if test "$GCC" = yes; then
7570   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7571   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7572     # if the path contains ";" then we assume it to be the separator
7573     # otherwise default to the standard path separator (i.e. ":") - it is
7574     # assumed that no part of a normal pathname contains ";" but that should
7575     # okay in the real world where ";" in dirpaths is itself problematic.
7576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7577   else
7578     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7579   fi
7580 else
7581   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7582 fi
7583 need_lib_prefix=unknown
7584 hardcode_into_libs=no
7585
7586 # when you set need_version to no, make sure it does not cause -set_version
7587 # flags to be left without arguments
7588 need_version=unknown
7589
7590 case $host_os in
7591 aix3*)
7592   version_type=linux
7593   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7594   shlibpath_var=LIBPATH
7595
7596   # AIX 3 has no versioning support, so we append a major version to the name.
7597   soname_spec='${libname}${release}${shared_ext}$major'
7598   ;;
7599
7600 aix4* | aix5*)
7601   version_type=linux
7602   need_lib_prefix=no
7603   need_version=no
7604   hardcode_into_libs=yes
7605   if test "$host_cpu" = ia64; then
7606     # AIX 5 supports IA64
7607     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7608     shlibpath_var=LD_LIBRARY_PATH
7609   else
7610     # With GCC up to 2.95.x, collect2 would create an import file
7611     # for dependence libraries.  The import file would start with
7612     # the line `#! .'.  This would cause the generated library to
7613     # depend on `.', always an invalid library.  This was fixed in
7614     # development snapshots of GCC prior to 3.0.
7615     case $host_os in
7616       aix4 | aix4.[01] | aix4.[01].*)
7617       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7618            echo ' yes '
7619            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7620         :
7621       else
7622         can_build_shared=no
7623       fi
7624       ;;
7625     esac
7626     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7627     # soname into executable. Probably we can add versioning support to
7628     # collect2, so additional links can be useful in future.
7629     if test "$aix_use_runtimelinking" = yes; then
7630       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7631       # instead of lib<name>.a to let people know that these are not
7632       # typical AIX shared libraries.
7633       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7634     else
7635       # We preserve .a as extension for shared libraries through AIX4.2
7636       # and later when we are not doing run time linking.
7637       library_names_spec='${libname}${release}.a $libname.a'
7638       soname_spec='${libname}${release}${shared_ext}$major'
7639     fi
7640     shlibpath_var=LIBPATH
7641   fi
7642   ;;
7643
7644 amigaos*)
7645   library_names_spec='$libname.ixlibrary $libname.a'
7646   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7647   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'
7648   ;;
7649
7650 beos*)
7651   library_names_spec='${libname}${shared_ext}'
7652   dynamic_linker="$host_os ld.so"
7653   shlibpath_var=LIBRARY_PATH
7654   ;;
7655
7656 bsdi4*)
7657   version_type=linux
7658   need_version=no
7659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7660   soname_spec='${libname}${release}${shared_ext}$major'
7661   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7662   shlibpath_var=LD_LIBRARY_PATH
7663   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7664   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7665   # the default ld.so.conf also contains /usr/contrib/lib and
7666   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7667   # libtool to hard-code these into programs
7668   ;;
7669
7670 cygwin* | mingw* | pw32*)
7671   version_type=windows
7672   shrext_cmds=".dll"
7673   need_version=no
7674   need_lib_prefix=no
7675
7676   case $GCC,$host_os in
7677   yes,cygwin* | yes,mingw* | yes,pw32*)
7678     library_names_spec='$libname.dll.a'
7679     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7680     postinstall_cmds='base_file=`basename \${file}`~
7681       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7682       dldir=$destdir/`dirname \$dlpath`~
7683       test -d \$dldir || mkdir -p \$dldir~
7684       $install_prog $dir/$dlname \$dldir/$dlname'
7685     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7686       dlpath=$dir/\$dldll~
7687        $rm \$dlpath'
7688     shlibpath_overrides_runpath=yes
7689
7690     case $host_os in
7691     cygwin*)
7692       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7693       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7695       ;;
7696     mingw*)
7697       # MinGW DLLs use traditional 'lib' prefix
7698       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7699       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7700       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7701         # It is most probably a Windows format PATH printed by
7702         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7703         # path with ; separators, and with drive letters. We can handle the
7704         # drive letters (cygwin fileutils understands them), so leave them,
7705         # especially as we might pass files found there to a mingw objdump,
7706         # which wouldn't understand a cygwinified path. Ahh.
7707         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7708       else
7709         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7710       fi
7711       ;;
7712     pw32*)
7713       # pw32 DLLs use 'pw' prefix rather than 'lib'
7714       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7715       ;;
7716     esac
7717     ;;
7718
7719   *)
7720     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7721     ;;
7722   esac
7723   dynamic_linker='Win32 ld.exe'
7724   # FIXME: first we should search . and the directory the executable is in
7725   shlibpath_var=PATH
7726   ;;
7727
7728 darwin* | rhapsody*)
7729   dynamic_linker="$host_os dyld"
7730   version_type=darwin
7731   need_lib_prefix=no
7732   need_version=no
7733   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7734   soname_spec='${libname}${release}${major}$shared_ext'
7735   shlibpath_overrides_runpath=yes
7736   shlibpath_var=DYLD_LIBRARY_PATH
7737   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7738   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7739   if test "$GCC" = yes; then
7740     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"`
7741   else
7742     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7743   fi
7744   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7745   ;;
7746
7747 dgux*)
7748   version_type=linux
7749   need_lib_prefix=no
7750   need_version=no
7751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7752   soname_spec='${libname}${release}${shared_ext}$major'
7753   shlibpath_var=LD_LIBRARY_PATH
7754   ;;
7755
7756 freebsd1*)
7757   dynamic_linker=no
7758   ;;
7759
7760 kfreebsd*-gnu)
7761   version_type=linux
7762   need_lib_prefix=no
7763   need_version=no
7764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7765   soname_spec='${libname}${release}${shared_ext}$major'
7766   shlibpath_var=LD_LIBRARY_PATH
7767   shlibpath_overrides_runpath=no
7768   hardcode_into_libs=yes
7769   dynamic_linker='GNU ld.so'
7770   ;;
7771
7772 freebsd*)
7773   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7774   version_type=freebsd-$objformat
7775   case $version_type in
7776     freebsd-elf*)
7777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7778       need_version=no
7779       need_lib_prefix=no
7780       ;;
7781     freebsd-*)
7782       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7783       need_version=yes
7784       ;;
7785   esac
7786   shlibpath_var=LD_LIBRARY_PATH
7787   case $host_os in
7788   freebsd2*)
7789     shlibpath_overrides_runpath=yes
7790     ;;
7791   freebsd3.01* | freebsdelf3.01*)
7792     shlibpath_overrides_runpath=yes
7793     hardcode_into_libs=yes
7794     ;;
7795   *) # from 3.2 on
7796     shlibpath_overrides_runpath=no
7797     hardcode_into_libs=yes
7798     ;;
7799   esac
7800   ;;
7801
7802 gnu*)
7803   version_type=linux
7804   need_lib_prefix=no
7805   need_version=no
7806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7807   soname_spec='${libname}${release}${shared_ext}$major'
7808   shlibpath_var=LD_LIBRARY_PATH
7809   hardcode_into_libs=yes
7810   ;;
7811
7812 hpux9* | hpux10* | hpux11*)
7813   # Give a soname corresponding to the major version so that dld.sl refuses to
7814   # link against other versions.
7815   version_type=sunos
7816   need_lib_prefix=no
7817   need_version=no
7818   case "$host_cpu" in
7819   ia64*)
7820     shrext_cmds='.so'
7821     hardcode_into_libs=yes
7822     dynamic_linker="$host_os dld.so"
7823     shlibpath_var=LD_LIBRARY_PATH
7824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826     soname_spec='${libname}${release}${shared_ext}$major'
7827     if test "X$HPUX_IA64_MODE" = X32; then
7828       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7829     else
7830       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7831     fi
7832     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7833     ;;
7834    hppa*64*)
7835      shrext_cmds='.sl'
7836      hardcode_into_libs=yes
7837      dynamic_linker="$host_os dld.sl"
7838      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7839      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841      soname_spec='${libname}${release}${shared_ext}$major'
7842      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7843      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7844      ;;
7845    *)
7846     shrext_cmds='.sl'
7847     dynamic_linker="$host_os dld.sl"
7848     shlibpath_var=SHLIB_PATH
7849     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851     soname_spec='${libname}${release}${shared_ext}$major'
7852     ;;
7853   esac
7854   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7855   postinstall_cmds='chmod 555 $lib'
7856   ;;
7857
7858 irix5* | irix6* | nonstopux*)
7859   case $host_os in
7860     nonstopux*) version_type=nonstopux ;;
7861     *)
7862         if test "$lt_cv_prog_gnu_ld" = yes; then
7863                 version_type=linux
7864         else
7865                 version_type=irix
7866         fi ;;
7867   esac
7868   need_lib_prefix=no
7869   need_version=no
7870   soname_spec='${libname}${release}${shared_ext}$major'
7871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7872   case $host_os in
7873   irix5* | nonstopux*)
7874     libsuff= shlibsuff=
7875     ;;
7876   *)
7877     case $LD in # libtool.m4 will add one of these switches to LD
7878     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7879       libsuff= shlibsuff= libmagic=32-bit;;
7880     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7881       libsuff=32 shlibsuff=N32 libmagic=N32;;
7882     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7883       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7884     *) libsuff= shlibsuff= libmagic=never-match;;
7885     esac
7886     ;;
7887   esac
7888   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7889   shlibpath_overrides_runpath=no
7890   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7891   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7892   hardcode_into_libs=yes
7893   ;;
7894
7895 # No shared lib support for Linux oldld, aout, or coff.
7896 linux*oldld* | linux*aout* | linux*coff*)
7897   dynamic_linker=no
7898   ;;
7899
7900 # This must be Linux ELF.
7901 linux*)
7902   version_type=linux
7903   need_lib_prefix=no
7904   need_version=no
7905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906   soname_spec='${libname}${release}${shared_ext}$major'
7907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7908   shlibpath_var=LD_LIBRARY_PATH
7909   shlibpath_overrides_runpath=no
7910   # This implies no fast_install, which is unacceptable.
7911   # Some rework will be needed to allow for fast_install
7912   # before this can be enabled.
7913   hardcode_into_libs=yes
7914
7915   # Append ld.so.conf contents to the search path
7916   if test -f /etc/ld.so.conf; then
7917     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7918     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7919   fi
7920
7921   # We used to test for /lib/ld.so.1 and disable shared libraries on
7922   # powerpc, because MkLinux only supported shared libraries with the
7923   # GNU dynamic linker.  Since this was broken with cross compilers,
7924   # most powerpc-linux boxes support dynamic linking these days and
7925   # people can always --disable-shared, the test was removed, and we
7926   # assume the GNU/Linux dynamic linker is in use.
7927   dynamic_linker='GNU/Linux ld.so'
7928   ;;
7929
7930 netbsdelf*-gnu)
7931   version_type=linux
7932   need_lib_prefix=no
7933   need_version=no
7934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7935   soname_spec='${libname}${release}${shared_ext}$major'
7936   shlibpath_var=LD_LIBRARY_PATH
7937   shlibpath_overrides_runpath=no
7938   hardcode_into_libs=yes
7939   dynamic_linker='NetBSD ld.elf_so'
7940   ;;
7941
7942 knetbsd*-gnu)
7943   version_type=linux
7944   need_lib_prefix=no
7945   need_version=no
7946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7947   soname_spec='${libname}${release}${shared_ext}$major'
7948   shlibpath_var=LD_LIBRARY_PATH
7949   shlibpath_overrides_runpath=no
7950   hardcode_into_libs=yes
7951   dynamic_linker='GNU ld.so'
7952   ;;
7953
7954 netbsd*)
7955   version_type=sunos
7956   need_lib_prefix=no
7957   need_version=no
7958   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7960     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7961     dynamic_linker='NetBSD (a.out) ld.so'
7962   else
7963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7964     soname_spec='${libname}${release}${shared_ext}$major'
7965     dynamic_linker='NetBSD ld.elf_so'
7966   fi
7967   shlibpath_var=LD_LIBRARY_PATH
7968   shlibpath_overrides_runpath=yes
7969   hardcode_into_libs=yes
7970   ;;
7971
7972 newsos6)
7973   version_type=linux
7974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975   shlibpath_var=LD_LIBRARY_PATH
7976   shlibpath_overrides_runpath=yes
7977   ;;
7978
7979 nto-qnx*)
7980   version_type=linux
7981   need_lib_prefix=no
7982   need_version=no
7983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7984   soname_spec='${libname}${release}${shared_ext}$major'
7985   shlibpath_var=LD_LIBRARY_PATH
7986   shlibpath_overrides_runpath=yes
7987   ;;
7988
7989 openbsd*)
7990   version_type=sunos
7991   need_lib_prefix=no
7992   need_version=yes
7993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7994   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7995   shlibpath_var=LD_LIBRARY_PATH
7996   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7997     case $host_os in
7998       openbsd2.[89] | openbsd2.[89].*)
7999         shlibpath_overrides_runpath=no
8000         ;;
8001       *)
8002         shlibpath_overrides_runpath=yes
8003         ;;
8004       esac
8005   else
8006     shlibpath_overrides_runpath=yes
8007   fi
8008   ;;
8009
8010 os2*)
8011   libname_spec='$name'
8012   shrext_cmds=".dll"
8013   need_lib_prefix=no
8014   library_names_spec='$libname${shared_ext} $libname.a'
8015   dynamic_linker='OS/2 ld.exe'
8016   shlibpath_var=LIBPATH
8017   ;;
8018
8019 osf3* | osf4* | osf5*)
8020   version_type=osf
8021   need_lib_prefix=no
8022   need_version=no
8023   soname_spec='${libname}${release}${shared_ext}$major'
8024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025   shlibpath_var=LD_LIBRARY_PATH
8026   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8027   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8028   ;;
8029
8030 sco3.2v5*)
8031   version_type=osf
8032   soname_spec='${libname}${release}${shared_ext}$major'
8033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8034   shlibpath_var=LD_LIBRARY_PATH
8035   ;;
8036
8037 solaris*)
8038   version_type=linux
8039   need_lib_prefix=no
8040   need_version=no
8041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042   soname_spec='${libname}${release}${shared_ext}$major'
8043   shlibpath_var=LD_LIBRARY_PATH
8044   shlibpath_overrides_runpath=yes
8045   hardcode_into_libs=yes
8046   # ldd complains unless libraries are executable
8047   postinstall_cmds='chmod +x $lib'
8048   ;;
8049
8050 sunos4*)
8051   version_type=sunos
8052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8053   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8054   shlibpath_var=LD_LIBRARY_PATH
8055   shlibpath_overrides_runpath=yes
8056   if test "$with_gnu_ld" = yes; then
8057     need_lib_prefix=no
8058   fi
8059   need_version=yes
8060   ;;
8061
8062 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8063   version_type=linux
8064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8065   soname_spec='${libname}${release}${shared_ext}$major'
8066   shlibpath_var=LD_LIBRARY_PATH
8067   case $host_vendor in
8068     sni)
8069       shlibpath_overrides_runpath=no
8070       need_lib_prefix=no
8071       export_dynamic_flag_spec='${wl}-Blargedynsym'
8072       runpath_var=LD_RUN_PATH
8073       ;;
8074     siemens)
8075       need_lib_prefix=no
8076       ;;
8077     motorola)
8078       need_lib_prefix=no
8079       need_version=no
8080       shlibpath_overrides_runpath=no
8081       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8082       ;;
8083   esac
8084   ;;
8085
8086 sysv4*MP*)
8087   if test -d /usr/nec ;then
8088     version_type=linux
8089     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8090     soname_spec='$libname${shared_ext}.$major'
8091     shlibpath_var=LD_LIBRARY_PATH
8092   fi
8093   ;;
8094
8095 uts4*)
8096   version_type=linux
8097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098   soname_spec='${libname}${release}${shared_ext}$major'
8099   shlibpath_var=LD_LIBRARY_PATH
8100   ;;
8101
8102 *)
8103   dynamic_linker=no
8104   ;;
8105 esac
8106 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8107 echo "${ECHO_T}$dynamic_linker" >&6
8108 test "$dynamic_linker" = no && can_build_shared=no
8109
8110 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8112 hardcode_action=
8113 if test -n "$hardcode_libdir_flag_spec" || \
8114    test -n "$runpath_var " || \
8115    test "X$hardcode_automatic"="Xyes" ; then
8116
8117   # We can hardcode non-existant directories.
8118   if test "$hardcode_direct" != no &&
8119      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8120      # have to relink, otherwise we might link with an installed library
8121      # when we should be linking with a yet-to-be-installed one
8122      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8123      test "$hardcode_minus_L" != no; then
8124     # Linking always hardcodes the temporary library directory.
8125     hardcode_action=relink
8126   else
8127     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8128     hardcode_action=immediate
8129   fi
8130 else
8131   # We cannot hardcode anything, or else we can only hardcode existing
8132   # directories.
8133   hardcode_action=unsupported
8134 fi
8135 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8136 echo "${ECHO_T}$hardcode_action" >&6
8137
8138 if test "$hardcode_action" = relink; then
8139   # Fast installation is not supported
8140   enable_fast_install=no
8141 elif test "$shlibpath_overrides_runpath" = yes ||
8142      test "$enable_shared" = no; then
8143   # Fast installation is not necessary
8144   enable_fast_install=needless
8145 fi
8146
8147 striplib=
8148 old_striplib=
8149 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8150 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8151 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8152   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8153   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8154   echo "$as_me:$LINENO: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6
8156 else
8157 # FIXME - insert some real tests, host_os isn't really good enough
8158   case $host_os in
8159    darwin*)
8160        if test -n "$STRIP" ; then
8161          striplib="$STRIP -x"
8162          echo "$as_me:$LINENO: result: yes" >&5
8163 echo "${ECHO_T}yes" >&6
8164        else
8165   echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8167 fi
8168        ;;
8169    *)
8170   echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6
8172     ;;
8173   esac
8174 fi
8175
8176 if test "x$enable_dlopen" != xyes; then
8177   enable_dlopen=unknown
8178   enable_dlopen_self=unknown
8179   enable_dlopen_self_static=unknown
8180 else
8181   lt_cv_dlopen=no
8182   lt_cv_dlopen_libs=
8183
8184   case $host_os in
8185   beos*)
8186     lt_cv_dlopen="load_add_on"
8187     lt_cv_dlopen_libs=
8188     lt_cv_dlopen_self=yes
8189     ;;
8190
8191   mingw* | pw32*)
8192     lt_cv_dlopen="LoadLibrary"
8193     lt_cv_dlopen_libs=
8194    ;;
8195
8196   cygwin*)
8197     lt_cv_dlopen="dlopen"
8198     lt_cv_dlopen_libs=
8199    ;;
8200
8201   darwin*)
8202   # if libdl is installed we need to link against it
8203     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   ac_check_lib_save_LIBS=$LIBS
8209 LIBS="-ldl  $LIBS"
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 /* Override any gcc2 internal prototype to avoid an error.  */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 /* We use char because int might match the return type of a gcc2
8223    builtin and then its argument prototype would still apply.  */
8224 char dlopen ();
8225 int
8226 main ()
8227 {
8228 dlopen ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235   (eval $ac_link) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } &&
8239          { ac_try='test -s conftest$ac_exeext'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; }; then
8245   ac_cv_lib_dl_dlopen=yes
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 ac_cv_lib_dl_dlopen=no
8251 fi
8252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8254 fi
8255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8256 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8257 if test $ac_cv_lib_dl_dlopen = yes; then
8258   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8259 else
8260
8261     lt_cv_dlopen="dyld"
8262     lt_cv_dlopen_libs=
8263     lt_cv_dlopen_self=yes
8264
8265 fi
8266
8267    ;;
8268
8269   *)
8270     echo "$as_me:$LINENO: checking for shl_load" >&5
8271 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8272 if test "${ac_cv_func_shl_load+set}" = set; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   cat >conftest.$ac_ext <<_ACEOF
8276 #line $LINENO "configure"
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282 /* System header to define __stub macros and hopefully few prototypes,
8283     which can conflict with char shl_load (); below.
8284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285     <limits.h> exists even on freestanding compilers.  */
8286 #ifdef __STDC__
8287 # include <limits.h>
8288 #else
8289 # include <assert.h>
8290 #endif
8291 /* Override any gcc2 internal prototype to avoid an error.  */
8292 #ifdef __cplusplus
8293 extern "C"
8294 {
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char shl_load ();
8299 /* The GNU C library defines this for functions which it implements
8300     to always fail with ENOSYS.  Some functions are actually named
8301     something starting with __ and the normal name is an alias.  */
8302 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8303 choke me
8304 #else
8305 char (*f) () = shl_load;
8306 #endif
8307 #ifdef __cplusplus
8308 }
8309 #endif
8310
8311 int
8312 main ()
8313 {
8314 return f != shl_load;
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321   (eval $ac_link) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -s conftest$ac_exeext'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; }; then
8331   ac_cv_func_shl_load=yes
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 ac_cv_func_shl_load=no
8337 fi
8338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8339 fi
8340 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8341 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8342 if test $ac_cv_func_shl_load = yes; then
8343   lt_cv_dlopen="shl_load"
8344 else
8345   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8346 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8347 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-ldld  $LIBS"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359
8360 /* Override any gcc2 internal prototype to avoid an error.  */
8361 #ifdef __cplusplus
8362 extern "C"
8363 #endif
8364 /* We use char because int might match the return type of a gcc2
8365    builtin and then its argument prototype would still apply.  */
8366 char shl_load ();
8367 int
8368 main ()
8369 {
8370 shl_load ();
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377   (eval $ac_link) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -s conftest$ac_exeext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   ac_cv_lib_dld_shl_load=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_lib_dld_shl_load=no
8393 fi
8394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_check_lib_save_LIBS
8396 fi
8397 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8398 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8399 if test $ac_cv_lib_dld_shl_load = yes; then
8400   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8401 else
8402   echo "$as_me:$LINENO: checking for dlopen" >&5
8403 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8404 if test "${ac_cv_func_dlopen+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   cat >conftest.$ac_ext <<_ACEOF
8408 #line $LINENO "configure"
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414 /* System header to define __stub macros and hopefully few prototypes,
8415     which can conflict with char dlopen (); below.
8416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8417     <limits.h> exists even on freestanding compilers.  */
8418 #ifdef __STDC__
8419 # include <limits.h>
8420 #else
8421 # include <assert.h>
8422 #endif
8423 /* Override any gcc2 internal prototype to avoid an error.  */
8424 #ifdef __cplusplus
8425 extern "C"
8426 {
8427 #endif
8428 /* We use char because int might match the return type of a gcc2
8429    builtin and then its argument prototype would still apply.  */
8430 char dlopen ();
8431 /* The GNU C library defines this for functions which it implements
8432     to always fail with ENOSYS.  Some functions are actually named
8433     something starting with __ and the normal name is an alias.  */
8434 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8435 choke me
8436 #else
8437 char (*f) () = dlopen;
8438 #endif
8439 #ifdef __cplusplus
8440 }
8441 #endif
8442
8443 int
8444 main ()
8445 {
8446 return f != dlopen;
8447   ;
8448   return 0;
8449 }
8450 _ACEOF
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8453   (eval $ac_link) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } &&
8457          { ac_try='test -s conftest$ac_exeext'
8458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459   (eval $ac_try) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; }; then
8463   ac_cv_func_dlopen=yes
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468 ac_cv_func_dlopen=no
8469 fi
8470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8471 fi
8472 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8473 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8474 if test $ac_cv_func_dlopen = yes; then
8475   lt_cv_dlopen="dlopen"
8476 else
8477   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8478 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-ldl  $LIBS"
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491
8492 /* Override any gcc2 internal prototype to avoid an error.  */
8493 #ifdef __cplusplus
8494 extern "C"
8495 #endif
8496 /* We use char because int might match the return type of a gcc2
8497    builtin and then its argument prototype would still apply.  */
8498 char dlopen ();
8499 int
8500 main ()
8501 {
8502 dlopen ();
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509   (eval $ac_link) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); } &&
8513          { ac_try='test -s conftest$ac_exeext'
8514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515   (eval $ac_try) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_cv_lib_dl_dlopen=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 ac_cv_lib_dl_dlopen=no
8525 fi
8526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8527 LIBS=$ac_check_lib_save_LIBS
8528 fi
8529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8531 if test $ac_cv_lib_dl_dlopen = yes; then
8532   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8533 else
8534   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8535 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8536 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   ac_check_lib_save_LIBS=$LIBS
8540 LIBS="-lsvld  $LIBS"
8541 cat >conftest.$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8543 /* confdefs.h.  */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h.  */
8548
8549 /* Override any gcc2 internal prototype to avoid an error.  */
8550 #ifdef __cplusplus
8551 extern "C"
8552 #endif
8553 /* We use char because int might match the return type of a gcc2
8554    builtin and then its argument prototype would still apply.  */
8555 char dlopen ();
8556 int
8557 main ()
8558 {
8559 dlopen ();
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566   (eval $ac_link) 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); } &&
8570          { ac_try='test -s conftest$ac_exeext'
8571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572   (eval $ac_try) 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); }; }; then
8576   ac_cv_lib_svld_dlopen=yes
8577 else
8578   echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ac_cv_lib_svld_dlopen=no
8582 fi
8583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8585 fi
8586 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8587 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8588 if test $ac_cv_lib_svld_dlopen = yes; then
8589   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8590 else
8591   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8592 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8593 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   ac_check_lib_save_LIBS=$LIBS
8597 LIBS="-ldld  $LIBS"
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 /* Override any gcc2 internal prototype to avoid an error.  */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 /* We use char because int might match the return type of a gcc2
8611    builtin and then its argument prototype would still apply.  */
8612 char dld_link ();
8613 int
8614 main ()
8615 {
8616 dld_link ();
8617   ;
8618   return 0;
8619 }
8620 _ACEOF
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623   (eval $ac_link) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -s conftest$ac_exeext'
8628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633   ac_cv_lib_dld_dld_link=yes
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_cv_lib_dld_dld_link=no
8639 fi
8640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8644 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8645 if test $ac_cv_lib_dld_dld_link = yes; then
8646   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8647 fi
8648
8649
8650 fi
8651
8652
8653 fi
8654
8655
8656 fi
8657
8658
8659 fi
8660
8661
8662 fi
8663
8664     ;;
8665   esac
8666
8667   if test "x$lt_cv_dlopen" != xno; then
8668     enable_dlopen=yes
8669   else
8670     enable_dlopen=no
8671   fi
8672
8673   case $lt_cv_dlopen in
8674   dlopen)
8675     save_CPPFLAGS="$CPPFLAGS"
8676     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8677
8678     save_LDFLAGS="$LDFLAGS"
8679     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8680
8681     save_LIBS="$LIBS"
8682     LIBS="$lt_cv_dlopen_libs $LIBS"
8683
8684     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8685 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8686 if test "${lt_cv_dlopen_self+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689           if test "$cross_compiling" = yes; then :
8690   lt_cv_dlopen_self=cross
8691 else
8692   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8693   lt_status=$lt_dlunknown
8694   cat > conftest.$ac_ext <<EOF
8695 #line 8695 "configure"
8696 #include "confdefs.h"
8697
8698 #if HAVE_DLFCN_H
8699 #include <dlfcn.h>
8700 #endif
8701
8702 #include <stdio.h>
8703
8704 #ifdef RTLD_GLOBAL
8705 #  define LT_DLGLOBAL           RTLD_GLOBAL
8706 #else
8707 #  ifdef DL_GLOBAL
8708 #    define LT_DLGLOBAL         DL_GLOBAL
8709 #  else
8710 #    define LT_DLGLOBAL         0
8711 #  endif
8712 #endif
8713
8714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715    find out it does not work in some platform. */
8716 #ifndef LT_DLLAZY_OR_NOW
8717 #  ifdef RTLD_LAZY
8718 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8719 #  else
8720 #    ifdef DL_LAZY
8721 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8722 #    else
8723 #      ifdef RTLD_NOW
8724 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8725 #      else
8726 #        ifdef DL_NOW
8727 #          define LT_DLLAZY_OR_NOW      DL_NOW
8728 #        else
8729 #          define LT_DLLAZY_OR_NOW      0
8730 #        endif
8731 #      endif
8732 #    endif
8733 #  endif
8734 #endif
8735
8736 #ifdef __cplusplus
8737 extern "C" void exit (int);
8738 #endif
8739
8740 void fnord() { int i=42;}
8741 int main ()
8742 {
8743   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744   int status = $lt_dlunknown;
8745
8746   if (self)
8747     {
8748       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8749       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750       /* dlclose (self); */
8751     }
8752
8753     exit (status);
8754 }
8755 EOF
8756   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757   (eval $ac_link) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761     (./conftest; exit; ) 2>/dev/null
8762     lt_status=$?
8763     case x$lt_status in
8764       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8765       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8766       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8767     esac
8768   else :
8769     # compilation failed
8770     lt_cv_dlopen_self=no
8771   fi
8772 fi
8773 rm -fr conftest*
8774
8775
8776 fi
8777 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8778 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8779
8780     if test "x$lt_cv_dlopen_self" = xyes; then
8781       LDFLAGS="$LDFLAGS $link_static_flag"
8782       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8783 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8784 if test "${lt_cv_dlopen_self_static+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787           if test "$cross_compiling" = yes; then :
8788   lt_cv_dlopen_self_static=cross
8789 else
8790   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8791   lt_status=$lt_dlunknown
8792   cat > conftest.$ac_ext <<EOF
8793 #line 8793 "configure"
8794 #include "confdefs.h"
8795
8796 #if HAVE_DLFCN_H
8797 #include <dlfcn.h>
8798 #endif
8799
8800 #include <stdio.h>
8801
8802 #ifdef RTLD_GLOBAL
8803 #  define LT_DLGLOBAL           RTLD_GLOBAL
8804 #else
8805 #  ifdef DL_GLOBAL
8806 #    define LT_DLGLOBAL         DL_GLOBAL
8807 #  else
8808 #    define LT_DLGLOBAL         0
8809 #  endif
8810 #endif
8811
8812 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8813    find out it does not work in some platform. */
8814 #ifndef LT_DLLAZY_OR_NOW
8815 #  ifdef RTLD_LAZY
8816 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8817 #  else
8818 #    ifdef DL_LAZY
8819 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8820 #    else
8821 #      ifdef RTLD_NOW
8822 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8823 #      else
8824 #        ifdef DL_NOW
8825 #          define LT_DLLAZY_OR_NOW      DL_NOW
8826 #        else
8827 #          define LT_DLLAZY_OR_NOW      0
8828 #        endif
8829 #      endif
8830 #    endif
8831 #  endif
8832 #endif
8833
8834 #ifdef __cplusplus
8835 extern "C" void exit (int);
8836 #endif
8837
8838 void fnord() { int i=42;}
8839 int main ()
8840 {
8841   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8842   int status = $lt_dlunknown;
8843
8844   if (self)
8845     {
8846       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8847       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8848       /* dlclose (self); */
8849     }
8850
8851     exit (status);
8852 }
8853 EOF
8854   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855   (eval $ac_link) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8859     (./conftest; exit; ) 2>/dev/null
8860     lt_status=$?
8861     case x$lt_status in
8862       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8863       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8864       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8865     esac
8866   else :
8867     # compilation failed
8868     lt_cv_dlopen_self_static=no
8869   fi
8870 fi
8871 rm -fr conftest*
8872
8873
8874 fi
8875 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8876 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8877     fi
8878
8879     CPPFLAGS="$save_CPPFLAGS"
8880     LDFLAGS="$save_LDFLAGS"
8881     LIBS="$save_LIBS"
8882     ;;
8883   esac
8884
8885   case $lt_cv_dlopen_self in
8886   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8887   *) enable_dlopen_self=unknown ;;
8888   esac
8889
8890   case $lt_cv_dlopen_self_static in
8891   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8892   *) enable_dlopen_self_static=unknown ;;
8893   esac
8894 fi
8895
8896
8897 # Report which librarie types wil actually be built
8898 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8899 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8900 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8901 echo "${ECHO_T}$can_build_shared" >&6
8902
8903 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8904 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8905 test "$can_build_shared" = "no" && enable_shared=no
8906
8907 # On AIX, shared libraries and static libraries use the same namespace, and
8908 # are all built from PIC.
8909 case "$host_os" in
8910 aix3*)
8911   test "$enable_shared" = yes && enable_static=no
8912   if test -n "$RANLIB"; then
8913     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8914     postinstall_cmds='$RANLIB $lib'
8915   fi
8916   ;;
8917
8918 aix4* | aix5*)
8919   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8920     test "$enable_shared" = yes && enable_static=no
8921   fi
8922   ;;
8923   darwin* | rhapsody*)
8924   if test "$GCC" = yes; then
8925     archive_cmds_need_lc=no
8926     case "$host_os" in
8927     rhapsody* | darwin1.[012])
8928       allow_undefined_flag='-undefined suppress'
8929       ;;
8930     *) # Darwin 1.3 on
8931       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8932         allow_undefined_flag='-flat_namespace -undefined suppress'
8933       else
8934         case ${MACOSX_DEPLOYMENT_TARGET} in
8935           10.[012])
8936             allow_undefined_flag='-flat_namespace -undefined suppress'
8937             ;;
8938           10.*)
8939             allow_undefined_flag='-undefined dynamic_lookup'
8940             ;;
8941         esac
8942       fi
8943       ;;
8944     esac
8945     output_verbose_link_cmd='echo'
8946     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8947     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8948     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8949     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}'
8950     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}'
8951     hardcode_direct=no
8952     hardcode_automatic=yes
8953     hardcode_shlibpath_var=unsupported
8954     whole_archive_flag_spec='-all_load $convenience'
8955     link_all_deplibs=yes
8956   else
8957     ld_shlibs=no
8958   fi
8959     ;;
8960 esac
8961 echo "$as_me:$LINENO: result: $enable_shared" >&5
8962 echo "${ECHO_T}$enable_shared" >&6
8963
8964 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8965 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8966 # Make sure either enable_shared or enable_static is yes.
8967 test "$enable_shared" = yes || enable_static=yes
8968 echo "$as_me:$LINENO: result: $enable_static" >&5
8969 echo "${ECHO_T}$enable_static" >&6
8970
8971 # The else clause should only fire when bootstrapping the
8972 # libtool distribution, otherwise you forgot to ship ltmain.sh
8973 # with your package, and you will get complaints that there are
8974 # no rules to generate ltmain.sh.
8975 if test -f "$ltmain"; then
8976   # See if we are running on zsh, and set the options which allow our commands through
8977   # without removal of \ escapes.
8978   if test -n "${ZSH_VERSION+set}" ; then
8979     setopt NO_GLOB_SUBST
8980   fi
8981   # Now quote all the things that may contain metacharacters while being
8982   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8983   # variables and quote the copies for generation of the libtool script.
8984   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8985     SED SHELL STRIP \
8986     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8987     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8988     deplibs_check_method reload_flag reload_cmds need_locks \
8989     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8990     lt_cv_sys_global_symbol_to_c_name_address \
8991     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8992     old_postinstall_cmds old_postuninstall_cmds \
8993     compiler \
8994     CC \
8995     LD \
8996     lt_prog_compiler_wl \
8997     lt_prog_compiler_pic \
8998     lt_prog_compiler_static \
8999     lt_prog_compiler_no_builtin_flag \
9000     export_dynamic_flag_spec \
9001     thread_safe_flag_spec \
9002     whole_archive_flag_spec \
9003     enable_shared_with_static_runtimes \
9004     old_archive_cmds \
9005     old_archive_from_new_cmds \
9006     predep_objects \
9007     postdep_objects \
9008     predeps \
9009     postdeps \
9010     compiler_lib_search_path \
9011     archive_cmds \
9012     archive_expsym_cmds \
9013     postinstall_cmds \
9014     postuninstall_cmds \
9015     old_archive_from_expsyms_cmds \
9016     allow_undefined_flag \
9017     no_undefined_flag \
9018     export_symbols_cmds \
9019     hardcode_libdir_flag_spec \
9020     hardcode_libdir_flag_spec_ld \
9021     hardcode_libdir_separator \
9022     hardcode_automatic \
9023     module_cmds \
9024     module_expsym_cmds \
9025     lt_cv_prog_compiler_c_o \
9026     exclude_expsyms \
9027     include_expsyms; do
9028
9029     case $var in
9030     old_archive_cmds | \
9031     old_archive_from_new_cmds | \
9032     archive_cmds | \
9033     archive_expsym_cmds | \
9034     module_cmds | \
9035     module_expsym_cmds | \
9036     old_archive_from_expsyms_cmds | \
9037     export_symbols_cmds | \
9038     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9039     postinstall_cmds | postuninstall_cmds | \
9040     old_postinstall_cmds | old_postuninstall_cmds | \
9041     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9042       # Double-quote double-evaled strings.
9043       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9044       ;;
9045     *)
9046       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9047       ;;
9048     esac
9049   done
9050
9051   case $lt_echo in
9052   *'\$0 --fallback-echo"')
9053     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9054     ;;
9055   esac
9056
9057 cfgfile="${ofile}T"
9058   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9059   $rm -f "$cfgfile"
9060   { echo "$as_me:$LINENO: creating $ofile" >&5
9061 echo "$as_me: creating $ofile" >&6;}
9062
9063   cat <<__EOF__ >> "$cfgfile"
9064 #! $SHELL
9065
9066 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9067 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9068 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9069 #
9070 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9071 # Free Software Foundation, Inc.
9072 #
9073 # This file is part of GNU Libtool:
9074 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9075 #
9076 # This program is free software; you can redistribute it and/or modify
9077 # it under the terms of the GNU General Public License as published by
9078 # the Free Software Foundation; either version 2 of the License, or
9079 # (at your option) any later version.
9080 #
9081 # This program is distributed in the hope that it will be useful, but
9082 # WITHOUT ANY WARRANTY; without even the implied warranty of
9083 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9084 # General Public License for more details.
9085 #
9086 # You should have received a copy of the GNU General Public License
9087 # along with this program; if not, write to the Free Software
9088 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9089 #
9090 # As a special exception to the GNU General Public License, if you
9091 # distribute this file as part of a program that contains a
9092 # configuration script generated by Autoconf, you may include it under
9093 # the same distribution terms that you use for the rest of that program.
9094
9095 # A sed program that does not truncate output.
9096 SED=$lt_SED
9097
9098 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9099 Xsed="$SED -e s/^X//"
9100
9101 # The HP-UX ksh and POSIX shell print the target directory to stdout
9102 # if CDPATH is set.
9103 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9104
9105 # The names of the tagged configurations supported by this script.
9106 available_tags=
9107
9108 # ### BEGIN LIBTOOL CONFIG
9109
9110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9111
9112 # Shell to use when invoking shell scripts.
9113 SHELL=$lt_SHELL
9114
9115 # Whether or not to build shared libraries.
9116 build_libtool_libs=$enable_shared
9117
9118 # Whether or not to build static libraries.
9119 build_old_libs=$enable_static
9120
9121 # Whether or not to add -lc for building shared libraries.
9122 build_libtool_need_lc=$archive_cmds_need_lc
9123
9124 # Whether or not to disallow shared libs when runtime libs are static
9125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9126
9127 # Whether or not to optimize for fast installation.
9128 fast_install=$enable_fast_install
9129
9130 # The host system.
9131 host_alias=$host_alias
9132 host=$host
9133
9134 # An echo program that does not interpret backslashes.
9135 echo=$lt_echo
9136
9137 # The archiver.
9138 AR=$lt_AR
9139 AR_FLAGS=$lt_AR_FLAGS
9140
9141 # A C compiler.
9142 LTCC=$lt_LTCC
9143
9144 # A language-specific compiler.
9145 CC=$lt_compiler
9146
9147 # Is the compiler the GNU C compiler?
9148 with_gcc=$GCC
9149
9150 # An ERE matcher.
9151 EGREP=$lt_EGREP
9152
9153 # The linker used to build libraries.
9154 LD=$lt_LD
9155
9156 # Whether we need hard or soft links.
9157 LN_S=$lt_LN_S
9158
9159 # A BSD-compatible nm program.
9160 NM=$lt_NM
9161
9162 # A symbol stripping program
9163 STRIP=$lt_STRIP
9164
9165 # Used to examine libraries when file_magic_cmd begins "file"
9166 MAGIC_CMD=$MAGIC_CMD
9167
9168 # Used on cygwin: DLL creation program.
9169 DLLTOOL="$DLLTOOL"
9170
9171 # Used on cygwin: object dumper.
9172 OBJDUMP="$OBJDUMP"
9173
9174 # Used on cygwin: assembler.
9175 AS="$AS"
9176
9177 # The name of the directory that contains temporary libtool files.
9178 objdir=$objdir
9179
9180 # How to create reloadable object files.
9181 reload_flag=$lt_reload_flag
9182 reload_cmds=$lt_reload_cmds
9183
9184 # How to pass a linker flag through the compiler.
9185 wl=$lt_lt_prog_compiler_wl
9186
9187 # Object file suffix (normally "o").
9188 objext="$ac_objext"
9189
9190 # Old archive suffix (normally "a").
9191 libext="$libext"
9192
9193 # Shared library suffix (normally ".so").
9194 shrext_cmds='$shrext_cmds'
9195
9196 # Executable file suffix (normally "").
9197 exeext="$exeext"
9198
9199 # Additional compiler flags for building library objects.
9200 pic_flag=$lt_lt_prog_compiler_pic
9201 pic_mode=$pic_mode
9202
9203 # What is the maximum length of a command?
9204 max_cmd_len=$lt_cv_sys_max_cmd_len
9205
9206 # Does compiler simultaneously support -c and -o options?
9207 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9208
9209 # Must we lock files when doing compilation ?
9210 need_locks=$lt_need_locks
9211
9212 # Do we need the lib prefix for modules?
9213 need_lib_prefix=$need_lib_prefix
9214
9215 # Do we need a version for libraries?
9216 need_version=$need_version
9217
9218 # Whether dlopen is supported.
9219 dlopen_support=$enable_dlopen
9220
9221 # Whether dlopen of programs is supported.
9222 dlopen_self=$enable_dlopen_self
9223
9224 # Whether dlopen of statically linked programs is supported.
9225 dlopen_self_static=$enable_dlopen_self_static
9226
9227 # Compiler flag to prevent dynamic linking.
9228 link_static_flag=$lt_lt_prog_compiler_static
9229
9230 # Compiler flag to turn off builtin functions.
9231 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9232
9233 # Compiler flag to allow reflexive dlopens.
9234 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9235
9236 # Compiler flag to generate shared objects directly from archives.
9237 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9238
9239 # Compiler flag to generate thread-safe objects.
9240 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9241
9242 # Library versioning type.
9243 version_type=$version_type
9244
9245 # Format of library name prefix.
9246 libname_spec=$lt_libname_spec
9247
9248 # List of archive names.  First name is the real one, the rest are links.
9249 # The last name is the one that the linker finds with -lNAME.
9250 library_names_spec=$lt_library_names_spec
9251
9252 # The coded name of the library, if different from the real name.
9253 soname_spec=$lt_soname_spec
9254
9255 # Commands used to build and install an old-style archive.
9256 RANLIB=$lt_RANLIB
9257 old_archive_cmds=$lt_old_archive_cmds
9258 old_postinstall_cmds=$lt_old_postinstall_cmds
9259 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9260
9261 # Create an old-style archive from a shared archive.
9262 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9263
9264 # Create a temporary old-style archive to link instead of a shared archive.
9265 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9266
9267 # Commands used to build and install a shared archive.
9268 archive_cmds=$lt_archive_cmds
9269 archive_expsym_cmds=$lt_archive_expsym_cmds
9270 postinstall_cmds=$lt_postinstall_cmds
9271 postuninstall_cmds=$lt_postuninstall_cmds
9272
9273 # Commands used to build a loadable module (assumed same as above if empty)
9274 module_cmds=$lt_module_cmds
9275 module_expsym_cmds=$lt_module_expsym_cmds
9276
9277 # Commands to strip libraries.
9278 old_striplib=$lt_old_striplib
9279 striplib=$lt_striplib
9280
9281 # Dependencies to place before the objects being linked to create a
9282 # shared library.
9283 predep_objects=$lt_predep_objects
9284
9285 # Dependencies to place after the objects being linked to create a
9286 # shared library.
9287 postdep_objects=$lt_postdep_objects
9288
9289 # Dependencies to place before the objects being linked to create a
9290 # shared library.
9291 predeps=$lt_predeps
9292
9293 # Dependencies to place after the objects being linked to create a
9294 # shared library.
9295 postdeps=$lt_postdeps
9296
9297 # The library search path used internally by the compiler when linking
9298 # a shared library.
9299 compiler_lib_search_path=$lt_compiler_lib_search_path
9300
9301 # Method to check whether dependent libraries are shared objects.
9302 deplibs_check_method=$lt_deplibs_check_method
9303
9304 # Command to use when deplibs_check_method == file_magic.
9305 file_magic_cmd=$lt_file_magic_cmd
9306
9307 # Flag that allows shared libraries with undefined symbols to be built.
9308 allow_undefined_flag=$lt_allow_undefined_flag
9309
9310 # Flag that forces no undefined symbols.
9311 no_undefined_flag=$lt_no_undefined_flag
9312
9313 # Commands used to finish a libtool library installation in a directory.
9314 finish_cmds=$lt_finish_cmds
9315
9316 # Same as above, but a single script fragment to be evaled but not shown.
9317 finish_eval=$lt_finish_eval
9318
9319 # Take the output of nm and produce a listing of raw symbols and C names.
9320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9321
9322 # Transform the output of nm in a proper C declaration
9323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9324
9325 # Transform the output of nm in a C name address pair
9326 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9327
9328 # This is the shared library runtime path variable.
9329 runpath_var=$runpath_var
9330
9331 # This is the shared library path variable.
9332 shlibpath_var=$shlibpath_var
9333
9334 # Is shlibpath searched before the hard-coded library search path?
9335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9336
9337 # How to hardcode a shared library path into an executable.
9338 hardcode_action=$hardcode_action
9339
9340 # Whether we should hardcode library paths into libraries.
9341 hardcode_into_libs=$hardcode_into_libs
9342
9343 # Flag to hardcode \$libdir into a binary during linking.
9344 # This must work even if \$libdir does not exist.
9345 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9346
9347 # If ld is used when linking, flag to hardcode \$libdir into
9348 # a binary during linking. This must work even if \$libdir does
9349 # not exist.
9350 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9351
9352 # Whether we need a single -rpath flag with a separated argument.
9353 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9354
9355 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9356 # resulting binary.
9357 hardcode_direct=$hardcode_direct
9358
9359 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9360 # resulting binary.
9361 hardcode_minus_L=$hardcode_minus_L
9362
9363 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9364 # the resulting binary.
9365 hardcode_shlibpath_var=$hardcode_shlibpath_var
9366
9367 # Set to yes if building a shared library automatically hardcodes DIR into the library
9368 # and all subsequent libraries and executables linked against it.
9369 hardcode_automatic=$hardcode_automatic
9370
9371 # Variables whose values should be saved in libtool wrapper scripts and
9372 # restored at relink time.
9373 variables_saved_for_relink="$variables_saved_for_relink"
9374
9375 # Whether libtool must link a program against all its dependency libraries.
9376 link_all_deplibs=$link_all_deplibs
9377
9378 # Compile-time system search path for libraries
9379 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9380
9381 # Run-time system search path for libraries
9382 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9383
9384 # Fix the shell variable \$srcfile for the compiler.
9385 fix_srcfile_path="$fix_srcfile_path"
9386
9387 # Set to yes if exported symbols are required.
9388 always_export_symbols=$always_export_symbols
9389
9390 # The commands to list exported symbols.
9391 export_symbols_cmds=$lt_export_symbols_cmds
9392
9393 # The commands to extract the exported symbol list from a shared archive.
9394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9395
9396 # Symbols that should not be listed in the preloaded symbols.
9397 exclude_expsyms=$lt_exclude_expsyms
9398
9399 # Symbols that must always be exported.
9400 include_expsyms=$lt_include_expsyms
9401
9402 # ### END LIBTOOL CONFIG
9403
9404 __EOF__
9405
9406
9407   case $host_os in
9408   aix3*)
9409     cat <<\EOF >> "$cfgfile"
9410
9411 # AIX sometimes has problems with the GCC collect2 program.  For some
9412 # reason, if we set the COLLECT_NAMES environment variable, the problems
9413 # vanish in a puff of smoke.
9414 if test "X${COLLECT_NAMES+set}" != Xset; then
9415   COLLECT_NAMES=
9416   export COLLECT_NAMES
9417 fi
9418 EOF
9419     ;;
9420   esac
9421
9422   # We use sed instead of cat because bash on DJGPP gets confused if
9423   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9424   # text mode, it properly converts lines to CR/LF.  This bash problem
9425   # is reportedly fixed, but why not run on old versions too?
9426   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9427
9428   mv -f "$cfgfile" "$ofile" || \
9429     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9430   chmod +x "$ofile"
9431
9432 else
9433   # If there is no Makefile yet, we rely on a make rule to execute
9434   # `config.status --recheck' to rerun these tests and create the
9435   # libtool script then.
9436   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9437   if test -f "$ltmain_in"; then
9438     test -f Makefile && make "$ltmain"
9439   fi
9440 fi
9441
9442
9443 ac_ext=c
9444 ac_cpp='$CPP $CPPFLAGS'
9445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448
9449 CC="$lt_save_CC"
9450
9451
9452 # Check whether --with-tags or --without-tags was given.
9453 if test "${with_tags+set}" = set; then
9454   withval="$with_tags"
9455   tagnames="$withval"
9456 fi;
9457
9458 if test -f "$ltmain" && test -n "$tagnames"; then
9459   if test ! -f "${ofile}"; then
9460     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9461 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9462   fi
9463
9464   if test -z "$LTCC"; then
9465     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9466     if test -z "$LTCC"; then
9467       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9468 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9469     else
9470       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9471 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9472     fi
9473   fi
9474
9475   # Extract list of available tagged configurations in $ofile.
9476   # Note that this assumes the entire list is on one line.
9477   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9478
9479   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9480   for tagname in $tagnames; do
9481     IFS="$lt_save_ifs"
9482     # Check whether tagname contains only valid characters
9483     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9484     "") ;;
9485     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9486 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9487    { (exit 1); exit 1; }; }
9488         ;;
9489     esac
9490
9491     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9492     then
9493       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9494 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9495    { (exit 1); exit 1; }; }
9496     fi
9497
9498     # Update the list of available tags.
9499     if test -n "$tagname"; then
9500       echo appending configuration tag \"$tagname\" to $ofile
9501
9502       case $tagname in
9503       CXX)
9504         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9505           ac_ext=cc
9506 ac_cpp='$CXXCPP $CPPFLAGS'
9507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9510
9511
9512
9513
9514 archive_cmds_need_lc_CXX=no
9515 allow_undefined_flag_CXX=
9516 always_export_symbols_CXX=no
9517 archive_expsym_cmds_CXX=
9518 export_dynamic_flag_spec_CXX=
9519 hardcode_direct_CXX=no
9520 hardcode_libdir_flag_spec_CXX=
9521 hardcode_libdir_flag_spec_ld_CXX=
9522 hardcode_libdir_separator_CXX=
9523 hardcode_minus_L_CXX=no
9524 hardcode_automatic_CXX=no
9525 module_cmds_CXX=
9526 module_expsym_cmds_CXX=
9527 link_all_deplibs_CXX=unknown
9528 old_archive_cmds_CXX=$old_archive_cmds
9529 no_undefined_flag_CXX=
9530 whole_archive_flag_spec_CXX=
9531 enable_shared_with_static_runtimes_CXX=no
9532
9533 # Dependencies to place before and after the object being linked:
9534 predep_objects_CXX=
9535 postdep_objects_CXX=
9536 predeps_CXX=
9537 postdeps_CXX=
9538 compiler_lib_search_path_CXX=
9539
9540 # Source file extension for C++ test sources.
9541 ac_ext=cc
9542
9543 # Object file extension for compiled C++ test sources.
9544 objext=o
9545 objext_CXX=$objext
9546
9547 # Code to be used in simple compile tests
9548 lt_simple_compile_test_code="int some_variable = 0;\n"
9549
9550 # Code to be used in simple link tests
9551 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9552
9553 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9554
9555 # If no C compiler was specified, use CC.
9556 LTCC=${LTCC-"$CC"}
9557
9558 # Allow CC to be a program name with arguments.
9559 compiler=$CC
9560
9561
9562 # Allow CC to be a program name with arguments.
9563 lt_save_CC=$CC
9564 lt_save_LD=$LD
9565 lt_save_GCC=$GCC
9566 GCC=$GXX
9567 lt_save_with_gnu_ld=$with_gnu_ld
9568 lt_save_path_LD=$lt_cv_path_LD
9569 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9570   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9571 else
9572   unset lt_cv_prog_gnu_ld
9573 fi
9574 if test -n "${lt_cv_path_LDCXX+set}"; then
9575   lt_cv_path_LD=$lt_cv_path_LDCXX
9576 else
9577   unset lt_cv_path_LD
9578 fi
9579 test -z "${LDCXX+set}" || LD=$LDCXX
9580 CC=${CXX-"c++"}
9581 compiler=$CC
9582 compiler_CXX=$CC
9583 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9584
9585 # We don't want -fno-exception wen compiling C++ code, so set the
9586 # no_builtin_flag separately
9587 if test "$GXX" = yes; then
9588   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9589 else
9590   lt_prog_compiler_no_builtin_flag_CXX=
9591 fi
9592
9593 if test "$GXX" = yes; then
9594   # Set up default GNU C++ configuration
9595
9596
9597 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9598 if test "${with_gnu_ld+set}" = set; then
9599   withval="$with_gnu_ld"
9600   test "$withval" = no || with_gnu_ld=yes
9601 else
9602   with_gnu_ld=no
9603 fi;
9604 ac_prog=ld
9605 if test "$GCC" = yes; then
9606   # Check if gcc -print-prog-name=ld gives a path.
9607   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9608 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9609   case $host in
9610   *-*-mingw*)
9611     # gcc leaves a trailing carriage return which upsets mingw
9612     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9613   *)
9614     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9615   esac
9616   case $ac_prog in
9617     # Accept absolute paths.
9618     [\\/]* | ?:[\\/]*)
9619       re_direlt='/[^/][^/]*/\.\./'
9620       # Canonicalize the pathname of ld
9621       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9622       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9623         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9624       done
9625       test -z "$LD" && LD="$ac_prog"
9626       ;;
9627   "")
9628     # If it fails, then pretend we aren't using GCC.
9629     ac_prog=ld
9630     ;;
9631   *)
9632     # If it is relative, then search for the first ld in PATH.
9633     with_gnu_ld=unknown
9634     ;;
9635   esac
9636 elif test "$with_gnu_ld" = yes; then
9637   echo "$as_me:$LINENO: checking for GNU ld" >&5
9638 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9639 else
9640   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9641 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9642 fi
9643 if test "${lt_cv_path_LD+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   if test -z "$LD"; then
9647   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9648   for ac_dir in $PATH; do
9649     IFS="$lt_save_ifs"
9650     test -z "$ac_dir" && ac_dir=.
9651     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9652       lt_cv_path_LD="$ac_dir/$ac_prog"
9653       # Check to see if the program is GNU ld.  I'd rather use --version,
9654       # but apparently some GNU ld's only accept -v.
9655       # Break only if it was the GNU/non-GNU ld that we prefer.
9656       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9657       *GNU* | *'with BFD'*)
9658         test "$with_gnu_ld" != no && break
9659         ;;
9660       *)
9661         test "$with_gnu_ld" != yes && break
9662         ;;
9663       esac
9664     fi
9665   done
9666   IFS="$lt_save_ifs"
9667 else
9668   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9669 fi
9670 fi
9671
9672 LD="$lt_cv_path_LD"
9673 if test -n "$LD"; then
9674   echo "$as_me:$LINENO: result: $LD" >&5
9675 echo "${ECHO_T}$LD" >&6
9676 else
9677   echo "$as_me:$LINENO: result: no" >&5
9678 echo "${ECHO_T}no" >&6
9679 fi
9680 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9681 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9682    { (exit 1); exit 1; }; }
9683 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9684 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9685 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9689 case `$LD -v 2>&1 </dev/null` in
9690 *GNU* | *'with BFD'*)
9691   lt_cv_prog_gnu_ld=yes
9692   ;;
9693 *)
9694   lt_cv_prog_gnu_ld=no
9695   ;;
9696 esac
9697 fi
9698 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9699 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9700 with_gnu_ld=$lt_cv_prog_gnu_ld
9701
9702
9703
9704   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9705   # archiving commands below assume that GNU ld is being used.
9706   if test "$with_gnu_ld" = yes; then
9707     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708     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'
9709
9710     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9711     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9712
9713     # If archive_cmds runs LD, not CC, wlarc should be empty
9714     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9715     #     investigate it a little bit more. (MM)
9716     wlarc='${wl}'
9717
9718     # ancient GNU ld didn't support --whole-archive et. al.
9719     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9720         grep 'no-whole-archive' > /dev/null; then
9721       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9722     else
9723       whole_archive_flag_spec_CXX=
9724     fi
9725   else
9726     with_gnu_ld=no
9727     wlarc=
9728
9729     # A generic and very simple default shared library creation
9730     # command for GNU C++ for the case where it uses the native
9731     # linker, instead of GNU ld.  If possible, this setting should
9732     # overridden to take advantage of the native linker features on
9733     # the platform it is being used on.
9734     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9735   fi
9736
9737   # Commands to make compiler produce verbose output that lists
9738   # what "hidden" libraries, object files and flags are used when
9739   # linking a shared library.
9740   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9741
9742 else
9743   GXX=no
9744   with_gnu_ld=no
9745   wlarc=
9746 fi
9747
9748 # PORTME: fill in a description of your system's C++ link characteristics
9749 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9750 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9751 ld_shlibs_CXX=yes
9752 case $host_os in
9753   aix3*)
9754     # FIXME: insert proper C++ library support
9755     ld_shlibs_CXX=no
9756     ;;
9757   aix4* | aix5*)
9758     if test "$host_cpu" = ia64; then
9759       # On IA64, the linker does run time linking by default, so we don't
9760       # have to do anything special.
9761       aix_use_runtimelinking=no
9762       exp_sym_flag='-Bexport'
9763       no_entry_flag=""
9764     else
9765       aix_use_runtimelinking=no
9766
9767       # Test if we are trying to use run time linking or normal
9768       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9769       # need to do runtime linking.
9770       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9771         for ld_flag in $LDFLAGS; do
9772           case $ld_flag in
9773           *-brtl*)
9774             aix_use_runtimelinking=yes
9775             break
9776             ;;
9777           esac
9778         done
9779       esac
9780
9781       exp_sym_flag='-bexport'
9782       no_entry_flag='-bnoentry'
9783     fi
9784
9785     # When large executables or shared objects are built, AIX ld can
9786     # have problems creating the table of contents.  If linking a library
9787     # or program results in "error TOC overflow" add -mminimal-toc to
9788     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9789     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9790
9791     archive_cmds_CXX=''
9792     hardcode_direct_CXX=yes
9793     hardcode_libdir_separator_CXX=':'
9794     link_all_deplibs_CXX=yes
9795
9796     if test "$GXX" = yes; then
9797       case $host_os in aix4.012|aix4.012.*)
9798       # We only want to do this on AIX 4.2 and lower, the check
9799       # below for broken collect2 doesn't work under 4.3+
9800         collect2name=`${CC} -print-prog-name=collect2`
9801         if test -f "$collect2name" && \
9802            strings "$collect2name" | grep resolve_lib_name >/dev/null
9803         then
9804           # We have reworked collect2
9805           hardcode_direct_CXX=yes
9806         else
9807           # We have old collect2
9808           hardcode_direct_CXX=unsupported
9809           # It fails to find uninstalled libraries when the uninstalled
9810           # path is not listed in the libpath.  Setting hardcode_minus_L
9811           # to unsupported forces relinking
9812           hardcode_minus_L_CXX=yes
9813           hardcode_libdir_flag_spec_CXX='-L$libdir'
9814           hardcode_libdir_separator_CXX=
9815         fi
9816       esac
9817       shared_flag='-shared'
9818     else
9819       # not using gcc
9820       if test "$host_cpu" = ia64; then
9821         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9822         # chokes on -Wl,-G. The following line is correct:
9823         shared_flag='-G'
9824       else
9825         if test "$aix_use_runtimelinking" = yes; then
9826           shared_flag='${wl}-G'
9827         else
9828           shared_flag='${wl}-bM:SRE'
9829         fi
9830       fi
9831     fi
9832
9833     # It seems that -bexpall does not export symbols beginning with
9834     # underscore (_), so it is better to generate a list of symbols to export.
9835     always_export_symbols_CXX=yes
9836     if test "$aix_use_runtimelinking" = yes; then
9837       # Warning - without using the other runtime loading flags (-brtl),
9838       # -berok will link without error, but may produce a broken library.
9839       allow_undefined_flag_CXX='-berok'
9840       # Determine the default libpath from the value encoded in an empty executable.
9841       cat >conftest.$ac_ext <<_ACEOF
9842 #line $LINENO "configure"
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848
9849 int
9850 main ()
9851 {
9852
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859   (eval $ac_link) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } &&
9863          { ac_try='test -s conftest$ac_exeext'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869
9870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9871 }'`
9872 # Check for a 64-bit object if we didn't find anything.
9873 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; }
9874 }'`; fi
9875 else
9876   echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 fi
9880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9881 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9882
9883       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9884
9885       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"
9886      else
9887       if test "$host_cpu" = ia64; then
9888         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9889         allow_undefined_flag_CXX="-z nodefs"
9890         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"
9891       else
9892         # Determine the default libpath from the value encoded in an empty executable.
9893         cat >conftest.$ac_ext <<_ACEOF
9894 #line $LINENO "configure"
9895 /* confdefs.h.  */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h.  */
9900
9901 int
9902 main ()
9903 {
9904
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911   (eval $ac_link) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } &&
9915          { ac_try='test -s conftest$ac_exeext'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921
9922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9923 }'`
9924 # Check for a 64-bit object if we didn't find anything.
9925 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; }
9926 }'`; fi
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 fi
9932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9934
9935         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9936         # Warning - without using the other run time loading flags,
9937         # -berok will link without error, but may produce a broken library.
9938         no_undefined_flag_CXX=' ${wl}-bernotok'
9939         allow_undefined_flag_CXX=' ${wl}-berok'
9940         # -bexpall does not export symbols beginning with underscore (_)
9941         always_export_symbols_CXX=yes
9942         # Exported symbols can be pulled into shared objects from archives
9943         whole_archive_flag_spec_CXX=' '
9944         archive_cmds_need_lc_CXX=yes
9945         # This is similar to how AIX traditionally builds it's shared libraries.
9946         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'
9947       fi
9948     fi
9949     ;;
9950   chorus*)
9951     case $cc_basename in
9952       *)
9953         # FIXME: insert proper C++ library support
9954         ld_shlibs_CXX=no
9955         ;;
9956     esac
9957     ;;
9958
9959   cygwin* | mingw* | pw32*)
9960     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9961     # as there is no search path for DLLs.
9962     hardcode_libdir_flag_spec_CXX='-L$libdir'
9963     allow_undefined_flag_CXX=unsupported
9964     always_export_symbols_CXX=no
9965     enable_shared_with_static_runtimes_CXX=yes
9966
9967     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9968       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'
9969       # If the export-symbols file already is a .def file (1st line
9970       # is EXPORTS), use it as is; otherwise, prepend...
9971       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9972         cp $export_symbols $output_objdir/$soname.def;
9973       else
9974         echo EXPORTS > $output_objdir/$soname.def;
9975         cat $export_symbols >> $output_objdir/$soname.def;
9976       fi~
9977       $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'
9978     else
9979       ld_shlibs_CXX=no
9980     fi
9981   ;;
9982
9983   darwin* | rhapsody*)
9984   if test "$GXX" = yes; then
9985     archive_cmds_need_lc_CXX=no
9986     case "$host_os" in
9987     rhapsody* | darwin1.[012])
9988       allow_undefined_flag_CXX='-undefined suppress'
9989       ;;
9990     *) # Darwin 1.3 on
9991       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9992         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9993       else
9994         case ${MACOSX_DEPLOYMENT_TARGET} in
9995           10.[012])
9996             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9997             ;;
9998           10.*)
9999             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10000             ;;
10001         esac
10002       fi
10003       ;;
10004     esac
10005     lt_int_apple_cc_single_mod=no
10006     output_verbose_link_cmd='echo'
10007     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10008       lt_int_apple_cc_single_mod=yes
10009     fi
10010     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10011       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10012     else
10013       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10014     fi
10015     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10016
10017     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10018     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10019       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}'
10020     else
10021       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10022     fi
10023     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}'
10024     hardcode_direct_CXX=no
10025     hardcode_automatic_CXX=yes
10026     hardcode_shlibpath_var_CXX=unsupported
10027     whole_archive_flag_spec_CXX='-all_load $convenience'
10028     link_all_deplibs_CXX=yes
10029   else
10030     ld_shlibs_CXX=no
10031   fi
10032     ;;
10033
10034   dgux*)
10035     case $cc_basename in
10036       ec++)
10037         # FIXME: insert proper C++ library support
10038         ld_shlibs_CXX=no
10039         ;;
10040       ghcx)
10041         # Green Hills C++ Compiler
10042         # FIXME: insert proper C++ library support
10043         ld_shlibs_CXX=no
10044         ;;
10045       *)
10046         # FIXME: insert proper C++ library support
10047         ld_shlibs_CXX=no
10048         ;;
10049     esac
10050     ;;
10051   freebsd12*)
10052     # C++ shared libraries reported to be fairly broken before switch to ELF
10053     ld_shlibs_CXX=no
10054     ;;
10055   freebsd-elf*)
10056     archive_cmds_need_lc_CXX=no
10057     ;;
10058   freebsd* | kfreebsd*-gnu)
10059     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10060     # conventions
10061     ld_shlibs_CXX=yes
10062     ;;
10063   gnu*)
10064     ;;
10065   hpux9*)
10066     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10067     hardcode_libdir_separator_CXX=:
10068     export_dynamic_flag_spec_CXX='${wl}-E'
10069     hardcode_direct_CXX=yes
10070     hardcode_minus_L_CXX=yes # Not in the search PATH,
10071                                 # but as the default
10072                                 # location of the library.
10073
10074     case $cc_basename in
10075     CC)
10076       # FIXME: insert proper C++ library support
10077       ld_shlibs_CXX=no
10078       ;;
10079     aCC)
10080       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'
10081       # Commands to make compiler produce verbose output that lists
10082       # what "hidden" libraries, object files and flags are used when
10083       # linking a shared library.
10084       #
10085       # There doesn't appear to be a way to prevent this compiler from
10086       # explicitly linking system object files so we need to strip them
10087       # from the output so that they don't get included in the library
10088       # dependencies.
10089       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'
10090       ;;
10091     *)
10092       if test "$GXX" = yes; then
10093         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'
10094       else
10095         # FIXME: insert proper C++ library support
10096         ld_shlibs_CXX=no
10097       fi
10098       ;;
10099     esac
10100     ;;
10101   hpux10*|hpux11*)
10102     if test $with_gnu_ld = no; then
10103       case "$host_cpu" in
10104       hppa*64*)
10105         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10106         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10107         hardcode_libdir_separator_CXX=:
10108         ;;
10109       ia64*)
10110         hardcode_libdir_flag_spec_CXX='-L$libdir'
10111         ;;
10112       *)
10113         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10114         hardcode_libdir_separator_CXX=:
10115         export_dynamic_flag_spec_CXX='${wl}-E'
10116         ;;
10117       esac
10118     fi
10119     case "$host_cpu" in
10120     hppa*64*)
10121       hardcode_direct_CXX=no
10122       hardcode_shlibpath_var_CXX=no
10123       ;;
10124     ia64*)
10125       hardcode_direct_CXX=no
10126       hardcode_shlibpath_var_CXX=no
10127       hardcode_minus_L_CXX=yes # Not in the search PATH,
10128                                               # but as the default
10129                                               # location of the library.
10130       ;;
10131     *)
10132       hardcode_direct_CXX=yes
10133       hardcode_minus_L_CXX=yes # Not in the search PATH,
10134                                               # but as the default
10135                                               # location of the library.
10136       ;;
10137     esac
10138
10139     case $cc_basename in
10140       CC)
10141         # FIXME: insert proper C++ library support
10142         ld_shlibs_CXX=no
10143         ;;
10144       aCC)
10145         case "$host_cpu" in
10146         hppa*64*|ia64*)
10147           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10148           ;;
10149         *)
10150           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10151           ;;
10152         esac
10153         # Commands to make compiler produce verbose output that lists
10154         # what "hidden" libraries, object files and flags are used when
10155         # linking a shared library.
10156         #
10157         # There doesn't appear to be a way to prevent this compiler from
10158         # explicitly linking system object files so we need to strip them
10159         # from the output so that they don't get included in the library
10160         # dependencies.
10161         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'
10162         ;;
10163       *)
10164         if test "$GXX" = yes; then
10165           if test $with_gnu_ld = no; then
10166             case "$host_cpu" in
10167             ia64*|hppa*64*)
10168               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10169               ;;
10170             *)
10171               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'
10172               ;;
10173             esac
10174           fi
10175         else
10176           # FIXME: insert proper C++ library support
10177           ld_shlibs_CXX=no
10178         fi
10179         ;;
10180     esac
10181     ;;
10182   irix5* | irix6*)
10183     case $cc_basename in
10184       CC)
10185         # SGI C++
10186         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10187
10188         # Archives containing C++ object files must be created using
10189         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10190         # necessary to make sure instantiated templates are included
10191         # in the archive.
10192         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10193         ;;
10194       *)
10195         if test "$GXX" = yes; then
10196           if test "$with_gnu_ld" = no; then
10197             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10198           else
10199             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'
10200           fi
10201         fi
10202         link_all_deplibs_CXX=yes
10203         ;;
10204     esac
10205     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10206     hardcode_libdir_separator_CXX=:
10207     ;;
10208   linux*)
10209     case $cc_basename in
10210       KCC)
10211         # Kuck and Associates, Inc. (KAI) C++ Compiler
10212
10213         # KCC will only create a shared library if the output file
10214         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10215         # to its proper name (with version) after linking.
10216         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'
10217         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'
10218         # Commands to make compiler produce verbose output that lists
10219         # what "hidden" libraries, object files and flags are used when
10220         # linking a shared library.
10221         #
10222         # There doesn't appear to be a way to prevent this compiler from
10223         # explicitly linking system object files so we need to strip them
10224         # from the output so that they don't get included in the library
10225         # dependencies.
10226         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'
10227
10228         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10229         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10230
10231         # Archives containing C++ object files must be created using
10232         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10233         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10234         ;;
10235       icpc)
10236         # Intel C++
10237         with_gnu_ld=yes
10238         archive_cmds_need_lc_CXX=no
10239         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240         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'
10241         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10242         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10243         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10244         ;;
10245       cxx)
10246         # Compaq C++
10247         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248         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'
10249
10250         runpath_var=LD_RUN_PATH
10251         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10252         hardcode_libdir_separator_CXX=:
10253
10254         # Commands to make compiler produce verbose output that lists
10255         # what "hidden" libraries, object files and flags are used when
10256         # linking a shared library.
10257         #
10258         # There doesn't appear to be a way to prevent this compiler from
10259         # explicitly linking system object files so we need to strip them
10260         # from the output so that they don't get included in the library
10261         # dependencies.
10262         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'
10263         ;;
10264     esac
10265     ;;
10266   lynxos*)
10267     # FIXME: insert proper C++ library support
10268     ld_shlibs_CXX=no
10269     ;;
10270   m88k*)
10271     # FIXME: insert proper C++ library support
10272     ld_shlibs_CXX=no
10273     ;;
10274   mvs*)
10275     case $cc_basename in
10276       cxx)
10277         # FIXME: insert proper C++ library support
10278         ld_shlibs_CXX=no
10279         ;;
10280       *)
10281         # FIXME: insert proper C++ library support
10282         ld_shlibs_CXX=no
10283         ;;
10284     esac
10285     ;;
10286   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10287     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10288       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10289       wlarc=
10290       hardcode_libdir_flag_spec_CXX='-R$libdir'
10291       hardcode_direct_CXX=yes
10292       hardcode_shlibpath_var_CXX=no
10293     fi
10294     # Workaround some broken pre-1.5 toolchains
10295     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10296     ;;
10297   osf3*)
10298     case $cc_basename in
10299       KCC)
10300         # Kuck and Associates, Inc. (KAI) C++ Compiler
10301
10302         # KCC will only create a shared library if the output file
10303         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10304         # to its proper name (with version) after linking.
10305         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'
10306
10307         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10308         hardcode_libdir_separator_CXX=:
10309
10310         # Archives containing C++ object files must be created using
10311         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10312         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10313
10314         ;;
10315       RCC)
10316         # Rational C++ 2.4.1
10317         # FIXME: insert proper C++ library support
10318         ld_shlibs_CXX=no
10319         ;;
10320       cxx)
10321         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10322         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10323
10324         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10325         hardcode_libdir_separator_CXX=:
10326
10327         # Commands to make compiler produce verbose output that lists
10328         # what "hidden" libraries, object files and flags are used when
10329         # linking a shared library.
10330         #
10331         # There doesn't appear to be a way to prevent this compiler from
10332         # explicitly linking system object files so we need to strip them
10333         # from the output so that they don't get included in the library
10334         # dependencies.
10335         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'
10336         ;;
10337       *)
10338         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10339           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10340           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10341
10342           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10343           hardcode_libdir_separator_CXX=:
10344
10345           # Commands to make compiler produce verbose output that lists
10346           # what "hidden" libraries, object files and flags are used when
10347           # linking a shared library.
10348           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10349
10350         else
10351           # FIXME: insert proper C++ library support
10352           ld_shlibs_CXX=no
10353         fi
10354         ;;
10355     esac
10356     ;;
10357   osf4* | osf5*)
10358     case $cc_basename in
10359       KCC)
10360         # Kuck and Associates, Inc. (KAI) C++ Compiler
10361
10362         # KCC will only create a shared library if the output file
10363         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10364         # to its proper name (with version) after linking.
10365         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'
10366
10367         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10368         hardcode_libdir_separator_CXX=:
10369
10370         # Archives containing C++ object files must be created using
10371         # the KAI C++ compiler.
10372         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10373         ;;
10374       RCC)
10375         # Rational C++ 2.4.1
10376         # FIXME: insert proper C++ library support
10377         ld_shlibs_CXX=no
10378         ;;
10379       cxx)
10380         allow_undefined_flag_CXX=' -expect_unresolved \*'
10381         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10382         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10383           echo "-hidden">> $lib.exp~
10384           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10385           $rm $lib.exp'
10386
10387         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10388         hardcode_libdir_separator_CXX=:
10389
10390         # Commands to make compiler produce verbose output that lists
10391         # what "hidden" libraries, object files and flags are used when
10392         # linking a shared library.
10393         #
10394         # There doesn't appear to be a way to prevent this compiler from
10395         # explicitly linking system object files so we need to strip them
10396         # from the output so that they don't get included in the library
10397         # dependencies.
10398         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'
10399         ;;
10400       *)
10401         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10402           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10403          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10404
10405           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10406           hardcode_libdir_separator_CXX=:
10407
10408           # Commands to make compiler produce verbose output that lists
10409           # what "hidden" libraries, object files and flags are used when
10410           # linking a shared library.
10411           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10412
10413         else
10414           # FIXME: insert proper C++ library support
10415           ld_shlibs_CXX=no
10416         fi
10417         ;;
10418     esac
10419     ;;
10420   psos*)
10421     # FIXME: insert proper C++ library support
10422     ld_shlibs_CXX=no
10423     ;;
10424   sco*)
10425     archive_cmds_need_lc_CXX=no
10426     case $cc_basename in
10427       CC)
10428         # FIXME: insert proper C++ library support
10429         ld_shlibs_CXX=no
10430         ;;
10431       *)
10432         # FIXME: insert proper C++ library support
10433         ld_shlibs_CXX=no
10434         ;;
10435     esac
10436     ;;
10437   sunos4*)
10438     case $cc_basename in
10439       CC)
10440         # Sun C++ 4.x
10441         # FIXME: insert proper C++ library support
10442         ld_shlibs_CXX=no
10443         ;;
10444       lcc)
10445         # Lucid
10446         # FIXME: insert proper C++ library support
10447         ld_shlibs_CXX=no
10448         ;;
10449       *)
10450         # FIXME: insert proper C++ library support
10451         ld_shlibs_CXX=no
10452         ;;
10453     esac
10454     ;;
10455   solaris*)
10456     case $cc_basename in
10457       CC)
10458         # Sun C++ 4.2, 5.x and Centerline C++
10459         no_undefined_flag_CXX=' -zdefs'
10460         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10461         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10462         $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'
10463
10464         hardcode_libdir_flag_spec_CXX='-R$libdir'
10465         hardcode_shlibpath_var_CXX=no
10466         case $host_os in
10467           solaris2.0-5 | solaris2.0-5.*) ;;
10468           *)
10469             # The C++ compiler is used as linker so we must use $wl
10470             # flag to pass the commands to the underlying system
10471             # linker.
10472             # Supported since Solaris 2.6 (maybe 2.5.1?)
10473             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10474             ;;
10475         esac
10476         link_all_deplibs_CXX=yes
10477
10478         # Commands to make compiler produce verbose output that lists
10479         # what "hidden" libraries, object files and flags are used when
10480         # linking a shared library.
10481         #
10482         # There doesn't appear to be a way to prevent this compiler from
10483         # explicitly linking system object files so we need to strip them
10484         # from the output so that they don't get included in the library
10485         # dependencies.
10486         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'
10487
10488         # Archives containing C++ object files must be created using
10489         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10490         # necessary to make sure instantiated templates are included
10491         # in the archive.
10492         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10493         ;;
10494       gcx)
10495         # Green Hills C++ Compiler
10496         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10497
10498         # The C++ compiler must be used to create the archive.
10499         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10500         ;;
10501       *)
10502         # GNU C++ compiler with Solaris linker
10503         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10504           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10505           if $CC --version | grep -v '^2\.7' > /dev/null; then
10506             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10507             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10508                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10509
10510             # Commands to make compiler produce verbose output that lists
10511             # what "hidden" libraries, object files and flags are used when
10512             # linking a shared library.
10513             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10514           else
10515             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10516             # platform.
10517             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10518             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10519                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10520
10521             # Commands to make compiler produce verbose output that lists
10522             # what "hidden" libraries, object files and flags are used when
10523             # linking a shared library.
10524             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10525           fi
10526
10527           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10528         fi
10529         ;;
10530     esac
10531     ;;
10532   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10533     archive_cmds_need_lc_CXX=no
10534     ;;
10535   tandem*)
10536     case $cc_basename in
10537       NCC)
10538         # NonStop-UX NCC 3.20
10539         # FIXME: insert proper C++ library support
10540         ld_shlibs_CXX=no
10541         ;;
10542       *)
10543         # FIXME: insert proper C++ library support
10544         ld_shlibs_CXX=no
10545         ;;
10546     esac
10547     ;;
10548   vxworks*)
10549     # FIXME: insert proper C++ library support
10550     ld_shlibs_CXX=no
10551     ;;
10552   *)
10553     # FIXME: insert proper C++ library support
10554     ld_shlibs_CXX=no
10555     ;;
10556 esac
10557 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10558 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10559 test "$ld_shlibs_CXX" = no && can_build_shared=no
10560
10561 GCC_CXX="$GXX"
10562 LD_CXX="$LD"
10563
10564
10565 cat > conftest.$ac_ext <<EOF
10566 class Foo
10567 {
10568 public:
10569   Foo (void) { a = 0; }
10570 private:
10571   int a;
10572 };
10573 EOF
10574
10575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10576   (eval $ac_compile) 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; then
10580   # Parse the compiler output and extract the necessary
10581   # objects, libraries and library flags.
10582
10583   # Sentinel used to keep track of whether or not we are before
10584   # the conftest object file.
10585   pre_test_object_deps_done=no
10586
10587   # The `*' in the case matches for architectures that use `case' in
10588   # $output_verbose_cmd can trigger glob expansion during the loop
10589   # eval without this substitution.
10590   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10591
10592   for p in `eval $output_verbose_link_cmd`; do
10593     case $p in
10594
10595     -L* | -R* | -l*)
10596        # Some compilers place space between "-{L,R}" and the path.
10597        # Remove the space.
10598        if test $p = "-L" \
10599           || test $p = "-R"; then
10600          prev=$p
10601          continue
10602        else
10603          prev=
10604        fi
10605
10606        if test "$pre_test_object_deps_done" = no; then
10607          case $p in
10608          -L* | -R*)
10609            # Internal compiler library paths should come after those
10610            # provided the user.  The postdeps already come after the
10611            # user supplied libs so there is no need to process them.
10612            if test -z "$compiler_lib_search_path_CXX"; then
10613              compiler_lib_search_path_CXX="${prev}${p}"
10614            else
10615              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10616            fi
10617            ;;
10618          # The "-l" case would never come before the object being
10619          # linked, so don't bother handling this case.
10620          esac
10621        else
10622          if test -z "$postdeps_CXX"; then
10623            postdeps_CXX="${prev}${p}"
10624          else
10625            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10626          fi
10627        fi
10628        ;;
10629
10630     *.$objext)
10631        # This assumes that the test object file only shows up
10632        # once in the compiler output.
10633        if test "$p" = "conftest.$objext"; then
10634          pre_test_object_deps_done=yes
10635          continue
10636        fi
10637
10638        if test "$pre_test_object_deps_done" = no; then
10639          if test -z "$predep_objects_CXX"; then
10640            predep_objects_CXX="$p"
10641          else
10642            predep_objects_CXX="$predep_objects_CXX $p"
10643          fi
10644        else
10645          if test -z "$postdep_objects_CXX"; then
10646            postdep_objects_CXX="$p"
10647          else
10648            postdep_objects_CXX="$postdep_objects_CXX $p"
10649          fi
10650        fi
10651        ;;
10652
10653     *) ;; # Ignore the rest.
10654
10655     esac
10656   done
10657
10658   # Clean up.
10659   rm -f a.out a.exe
10660 else
10661   echo "libtool.m4: error: problem compiling CXX test program"
10662 fi
10663
10664 $rm -f confest.$objext
10665
10666 case " $postdeps_CXX " in
10667 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10668 esac
10669
10670 lt_prog_compiler_wl_CXX=
10671 lt_prog_compiler_pic_CXX=
10672 lt_prog_compiler_static_CXX=
10673
10674 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10675 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10676
10677   # C++ specific cases for pic, static, wl, etc.
10678   if test "$GXX" = yes; then
10679     lt_prog_compiler_wl_CXX='-Wl,'
10680     lt_prog_compiler_static_CXX='-static'
10681
10682     case $host_os in
10683     aix*)
10684       # All AIX code is PIC.
10685       if test "$host_cpu" = ia64; then
10686         # AIX 5 now supports IA64 processor
10687         lt_prog_compiler_static_CXX='-Bstatic'
10688       fi
10689       ;;
10690     amigaos*)
10691       # FIXME: we need at least 68020 code to build shared libraries, but
10692       # adding the `-m68020' flag to GCC prevents building anything better,
10693       # like `-m68040'.
10694       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10695       ;;
10696     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10697       # PIC is the default for these OSes.
10698       ;;
10699     mingw* | os2* | pw32*)
10700       # This hack is so that the source file can tell whether it is being
10701       # built for inclusion in a dll (and should export symbols for example).
10702       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10703       ;;
10704     darwin* | rhapsody*)
10705       # PIC is the default on this platform
10706       # Common symbols not allowed in MH_DYLIB files
10707       lt_prog_compiler_pic_CXX='-fno-common'
10708       ;;
10709     *djgpp*)
10710       # DJGPP does not support shared libraries at all
10711       lt_prog_compiler_pic_CXX=
10712       ;;
10713     sysv4*MP*)
10714       if test -d /usr/nec; then
10715         lt_prog_compiler_pic_CXX=-Kconform_pic
10716       fi
10717       ;;
10718     hpux*)
10719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10720       # not for PA HP-UX.
10721       case "$host_cpu" in
10722       hppa*64*|ia64*)
10723         ;;
10724       *)
10725         lt_prog_compiler_pic_CXX='-fPIC'
10726         ;;
10727       esac
10728       ;;
10729     *)
10730       lt_prog_compiler_pic_CXX='-fPIC'
10731       ;;
10732     esac
10733   else
10734     case $host_os in
10735       aix4* | aix5*)
10736         # All AIX code is PIC.
10737         if test "$host_cpu" = ia64; then
10738           # AIX 5 now supports IA64 processor
10739           lt_prog_compiler_static_CXX='-Bstatic'
10740         else
10741           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10742         fi
10743         ;;
10744       chorus*)
10745         case $cc_basename in
10746         cxch68)
10747           # Green Hills C++ Compiler
10748           # _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"
10749           ;;
10750         esac
10751         ;;
10752       dgux*)
10753         case $cc_basename in
10754           ec++)
10755             lt_prog_compiler_pic_CXX='-KPIC'
10756             ;;
10757           ghcx)
10758             # Green Hills C++ Compiler
10759             lt_prog_compiler_pic_CXX='-pic'
10760             ;;
10761           *)
10762             ;;
10763         esac
10764         ;;
10765       freebsd* | kfreebsd*-gnu)
10766         # FreeBSD uses GNU C++
10767         ;;
10768       hpux9* | hpux10* | hpux11*)
10769         case $cc_basename in
10770           CC)
10771             lt_prog_compiler_wl_CXX='-Wl,'
10772             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10773             if test "$host_cpu" != ia64; then
10774               lt_prog_compiler_pic_CXX='+Z'
10775             fi
10776             ;;
10777           aCC)
10778             lt_prog_compiler_wl_CXX='-Wl,'
10779             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10780             case "$host_cpu" in
10781             hppa*64*|ia64*)
10782               # +Z the default
10783               ;;
10784             *)
10785               lt_prog_compiler_pic_CXX='+Z'
10786               ;;
10787             esac
10788             ;;
10789           *)
10790             ;;
10791         esac
10792         ;;
10793       irix5* | irix6* | nonstopux*)
10794         case $cc_basename in
10795           CC)
10796             lt_prog_compiler_wl_CXX='-Wl,'
10797             lt_prog_compiler_static_CXX='-non_shared'
10798             # CC pic flag -KPIC is the default.
10799             ;;
10800           *)
10801             ;;
10802         esac
10803         ;;
10804       linux*)
10805         case $cc_basename in
10806           KCC)
10807             # KAI C++ Compiler
10808             lt_prog_compiler_wl_CXX='--backend -Wl,'
10809             lt_prog_compiler_pic_CXX='-fPIC'
10810             ;;
10811           icpc)
10812             # Intel C++
10813             lt_prog_compiler_wl_CXX='-Wl,'
10814             lt_prog_compiler_pic_CXX='-KPIC'
10815             lt_prog_compiler_static_CXX='-static'
10816             ;;
10817           cxx)
10818             # Compaq C++
10819             # Make sure the PIC flag is empty.  It appears that all Alpha
10820             # Linux and Compaq Tru64 Unix objects are PIC.
10821             lt_prog_compiler_pic_CXX=
10822             lt_prog_compiler_static_CXX='-non_shared'
10823             ;;
10824           *)
10825             ;;
10826         esac
10827         ;;
10828       lynxos*)
10829         ;;
10830       m88k*)
10831         ;;
10832       mvs*)
10833         case $cc_basename in
10834           cxx)
10835             lt_prog_compiler_pic_CXX='-W c,exportall'
10836             ;;
10837           *)
10838             ;;
10839         esac
10840         ;;
10841       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10842         ;;
10843       osf3* | osf4* | osf5*)
10844         case $cc_basename in
10845           KCC)
10846             lt_prog_compiler_wl_CXX='--backend -Wl,'
10847             ;;
10848           RCC)
10849             # Rational C++ 2.4.1
10850             lt_prog_compiler_pic_CXX='-pic'
10851             ;;
10852           cxx)
10853             # Digital/Compaq C++
10854             lt_prog_compiler_wl_CXX='-Wl,'
10855             # Make sure the PIC flag is empty.  It appears that all Alpha
10856             # Linux and Compaq Tru64 Unix objects are PIC.
10857             lt_prog_compiler_pic_CXX=
10858             lt_prog_compiler_static_CXX='-non_shared'
10859             ;;
10860           *)
10861             ;;
10862         esac
10863         ;;
10864       psos*)
10865         ;;
10866       sco*)
10867         case $cc_basename in
10868           CC)
10869             lt_prog_compiler_pic_CXX='-fPIC'
10870             ;;
10871           *)
10872             ;;
10873         esac
10874         ;;
10875       solaris*)
10876         case $cc_basename in
10877           CC)
10878             # Sun C++ 4.2, 5.x and Centerline C++
10879             lt_prog_compiler_pic_CXX='-KPIC'
10880             lt_prog_compiler_static_CXX='-Bstatic'
10881             lt_prog_compiler_wl_CXX='-Qoption ld '
10882             ;;
10883           gcx)
10884             # Green Hills C++ Compiler
10885             lt_prog_compiler_pic_CXX='-PIC'
10886             ;;
10887           *)
10888             ;;
10889         esac
10890         ;;
10891       sunos4*)
10892         case $cc_basename in
10893           CC)
10894             # Sun C++ 4.x
10895             lt_prog_compiler_pic_CXX='-pic'
10896             lt_prog_compiler_static_CXX='-Bstatic'
10897             ;;
10898           lcc)
10899             # Lucid
10900             lt_prog_compiler_pic_CXX='-pic'
10901             ;;
10902           *)
10903             ;;
10904         esac
10905         ;;
10906       tandem*)
10907         case $cc_basename in
10908           NCC)
10909             # NonStop-UX NCC 3.20
10910             lt_prog_compiler_pic_CXX='-KPIC'
10911             ;;
10912           *)
10913             ;;
10914         esac
10915         ;;
10916       unixware*)
10917         ;;
10918       vxworks*)
10919         ;;
10920       *)
10921         lt_prog_compiler_can_build_shared_CXX=no
10922         ;;
10923     esac
10924   fi
10925
10926 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10927 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10928
10929 #
10930 # Check to make sure the PIC flag actually works.
10931 #
10932 if test -n "$lt_prog_compiler_pic_CXX"; then
10933
10934 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10936 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10937   echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939   lt_prog_compiler_pic_works_CXX=no
10940   ac_outfile=conftest.$ac_objext
10941    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10942    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10943    # Insert the option either (1) after the last *FLAGS variable, or
10944    # (2) before a word containing "conftest.", or (3) at the end.
10945    # Note that $ac_compile itself does not contain backslashes and begins
10946    # with a dollar sign (not a hyphen), so the echo should work correctly.
10947    # The option is referenced via a variable to avoid confusing sed.
10948    lt_compile=`echo "$ac_compile" | $SED \
10949    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10951    -e 's:$: $lt_compiler_flag:'`
10952    (eval echo "\"\$as_me:10952: $lt_compile\"" >&5)
10953    (eval "$lt_compile" 2>conftest.err)
10954    ac_status=$?
10955    cat conftest.err >&5
10956    echo "$as_me:10956: \$? = $ac_status" >&5
10957    if (exit $ac_status) && test -s "$ac_outfile"; then
10958      # The compiler can only warn and ignore the option if not recognized
10959      # So say no if there are warnings
10960      if test ! -s conftest.err; then
10961        lt_prog_compiler_pic_works_CXX=yes
10962      fi
10963    fi
10964    $rm conftest*
10965
10966 fi
10967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10968 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10969
10970 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10971     case $lt_prog_compiler_pic_CXX in
10972      "" | " "*) ;;
10973      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10974      esac
10975 else
10976     lt_prog_compiler_pic_CXX=
10977      lt_prog_compiler_can_build_shared_CXX=no
10978 fi
10979
10980 fi
10981 case "$host_os" in
10982   # For platforms which do not support PIC, -DPIC is meaningless:
10983   *djgpp*)
10984     lt_prog_compiler_pic_CXX=
10985     ;;
10986   *)
10987     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10988     ;;
10989 esac
10990
10991 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10992 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10993 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10994   echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996   lt_cv_prog_compiler_c_o_CXX=no
10997    $rm -r conftest 2>/dev/null
10998    mkdir conftest
10999    cd conftest
11000    mkdir out
11001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11002
11003    lt_compiler_flag="-o out/conftest2.$ac_objext"
11004    # Insert the option either (1) after the last *FLAGS variable, or
11005    # (2) before a word containing "conftest.", or (3) at the end.
11006    # Note that $ac_compile itself does not contain backslashes and begins
11007    # with a dollar sign (not a hyphen), so the echo should work correctly.
11008    lt_compile=`echo "$ac_compile" | $SED \
11009    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11011    -e 's:$: $lt_compiler_flag:'`
11012    (eval echo "\"\$as_me:11012: $lt_compile\"" >&5)
11013    (eval "$lt_compile" 2>out/conftest.err)
11014    ac_status=$?
11015    cat out/conftest.err >&5
11016    echo "$as_me:11016: \$? = $ac_status" >&5
11017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11018    then
11019      # The compiler can only warn and ignore the option if not recognized
11020      # So say no if there are warnings
11021      if test ! -s out/conftest.err; then
11022        lt_cv_prog_compiler_c_o_CXX=yes
11023      fi
11024    fi
11025    chmod u+w .
11026    $rm conftest*
11027    # SGI C++ compiler will create directory out/ii_files/ for
11028    # template instantiation
11029    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11030    $rm out/* && rmdir out
11031    cd ..
11032    rmdir conftest
11033    $rm conftest*
11034
11035 fi
11036 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11037 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11038
11039
11040 hard_links="nottested"
11041 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11042   # do not overwrite the value of need_locks provided by the user
11043   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11044 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11045   hard_links=yes
11046   $rm conftest*
11047   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11048   touch conftest.a
11049   ln conftest.a conftest.b 2>&5 || hard_links=no
11050   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11051   echo "$as_me:$LINENO: result: $hard_links" >&5
11052 echo "${ECHO_T}$hard_links" >&6
11053   if test "$hard_links" = no; then
11054     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11055 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11056     need_locks=warn
11057   fi
11058 else
11059   need_locks=no
11060 fi
11061
11062 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11063 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11064
11065   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11066   case $host_os in
11067   aix4* | aix5*)
11068     # If we're using GNU nm, then we don't want the "-C" option.
11069     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11070     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11071       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'
11072     else
11073       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'
11074     fi
11075     ;;
11076   pw32*)
11077     export_symbols_cmds_CXX="$ltdll_cmds"
11078   ;;
11079   cygwin* | mingw*)
11080     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11081   ;;
11082   linux*)
11083     link_all_deplibs_CXX=no
11084   ;;
11085   *)
11086     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11087   ;;
11088   esac
11089
11090 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11091 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11092 test "$ld_shlibs_CXX" = no && can_build_shared=no
11093
11094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11095 if test "$GCC" = yes; then
11096   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11097 fi
11098
11099 #
11100 # Do we need to explicitly link libc?
11101 #
11102 case "x$archive_cmds_need_lc_CXX" in
11103 x|xyes)
11104   # Assume -lc should be added
11105   archive_cmds_need_lc_CXX=yes
11106
11107   if test "$enable_shared" = yes && test "$GCC" = yes; then
11108     case $archive_cmds_CXX in
11109     *'~'*)
11110       # FIXME: we may have to deal with multi-command sequences.
11111       ;;
11112     '$CC '*)
11113       # Test whether the compiler implicitly links with -lc since on some
11114       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11115       # to ld, don't add -lc before -lgcc.
11116       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11117 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11118       $rm conftest*
11119       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11120
11121       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122   (eval $ac_compile) 2>&5
11123   ac_status=$?
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); } 2>conftest.err; then
11126         soname=conftest
11127         lib=conftest
11128         libobjs=conftest.$ac_objext
11129         deplibs=
11130         wl=$lt_prog_compiler_wl_CXX
11131         compiler_flags=-v
11132         linker_flags=-v
11133         verstring=
11134         output_objdir=.
11135         libname=conftest
11136         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11137         allow_undefined_flag_CXX=
11138         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11139   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }
11143         then
11144           archive_cmds_need_lc_CXX=no
11145         else
11146           archive_cmds_need_lc_CXX=yes
11147         fi
11148         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11149       else
11150         cat conftest.err 1>&5
11151       fi
11152       $rm conftest*
11153       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11154 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11155       ;;
11156     esac
11157   fi
11158   ;;
11159 esac
11160
11161 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11163 library_names_spec=
11164 libname_spec='lib$name'
11165 soname_spec=
11166 shrext_cmds=".so"
11167 postinstall_cmds=
11168 postuninstall_cmds=
11169 finish_cmds=
11170 finish_eval=
11171 shlibpath_var=
11172 shlibpath_overrides_runpath=unknown
11173 version_type=none
11174 dynamic_linker="$host_os ld.so"
11175 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11176 if test "$GCC" = yes; then
11177   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11178   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11179     # if the path contains ";" then we assume it to be the separator
11180     # otherwise default to the standard path separator (i.e. ":") - it is
11181     # assumed that no part of a normal pathname contains ";" but that should
11182     # okay in the real world where ";" in dirpaths is itself problematic.
11183     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11184   else
11185     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11186   fi
11187 else
11188   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11189 fi
11190 need_lib_prefix=unknown
11191 hardcode_into_libs=no
11192
11193 # when you set need_version to no, make sure it does not cause -set_version
11194 # flags to be left without arguments
11195 need_version=unknown
11196
11197 case $host_os in
11198 aix3*)
11199   version_type=linux
11200   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11201   shlibpath_var=LIBPATH
11202
11203   # AIX 3 has no versioning support, so we append a major version to the name.
11204   soname_spec='${libname}${release}${shared_ext}$major'
11205   ;;
11206
11207 aix4* | aix5*)
11208   version_type=linux
11209   need_lib_prefix=no
11210   need_version=no
11211   hardcode_into_libs=yes
11212   if test "$host_cpu" = ia64; then
11213     # AIX 5 supports IA64
11214     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11215     shlibpath_var=LD_LIBRARY_PATH
11216   else
11217     # With GCC up to 2.95.x, collect2 would create an import file
11218     # for dependence libraries.  The import file would start with
11219     # the line `#! .'.  This would cause the generated library to
11220     # depend on `.', always an invalid library.  This was fixed in
11221     # development snapshots of GCC prior to 3.0.
11222     case $host_os in
11223       aix4 | aix4.[01] | aix4.[01].*)
11224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11225            echo ' yes '
11226            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11227         :
11228       else
11229         can_build_shared=no
11230       fi
11231       ;;
11232     esac
11233     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11234     # soname into executable. Probably we can add versioning support to
11235     # collect2, so additional links can be useful in future.
11236     if test "$aix_use_runtimelinking" = yes; then
11237       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11238       # instead of lib<name>.a to let people know that these are not
11239       # typical AIX shared libraries.
11240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241     else
11242       # We preserve .a as extension for shared libraries through AIX4.2
11243       # and later when we are not doing run time linking.
11244       library_names_spec='${libname}${release}.a $libname.a'
11245       soname_spec='${libname}${release}${shared_ext}$major'
11246     fi
11247     shlibpath_var=LIBPATH
11248   fi
11249   ;;
11250
11251 amigaos*)
11252   library_names_spec='$libname.ixlibrary $libname.a'
11253   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11254   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'
11255   ;;
11256
11257 beos*)
11258   library_names_spec='${libname}${shared_ext}'
11259   dynamic_linker="$host_os ld.so"
11260   shlibpath_var=LIBRARY_PATH
11261   ;;
11262
11263 bsdi4*)
11264   version_type=linux
11265   need_version=no
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267   soname_spec='${libname}${release}${shared_ext}$major'
11268   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11269   shlibpath_var=LD_LIBRARY_PATH
11270   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11271   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11272   # the default ld.so.conf also contains /usr/contrib/lib and
11273   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11274   # libtool to hard-code these into programs
11275   ;;
11276
11277 cygwin* | mingw* | pw32*)
11278   version_type=windows
11279   shrext_cmds=".dll"
11280   need_version=no
11281   need_lib_prefix=no
11282
11283   case $GCC,$host_os in
11284   yes,cygwin* | yes,mingw* | yes,pw32*)
11285     library_names_spec='$libname.dll.a'
11286     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11287     postinstall_cmds='base_file=`basename \${file}`~
11288       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11289       dldir=$destdir/`dirname \$dlpath`~
11290       test -d \$dldir || mkdir -p \$dldir~
11291       $install_prog $dir/$dlname \$dldir/$dlname'
11292     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11293       dlpath=$dir/\$dldll~
11294        $rm \$dlpath'
11295     shlibpath_overrides_runpath=yes
11296
11297     case $host_os in
11298     cygwin*)
11299       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11300       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11301       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11302       ;;
11303     mingw*)
11304       # MinGW DLLs use traditional 'lib' prefix
11305       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11306       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11307       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11308         # It is most probably a Windows format PATH printed by
11309         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11310         # path with ; separators, and with drive letters. We can handle the
11311         # drive letters (cygwin fileutils understands them), so leave them,
11312         # especially as we might pass files found there to a mingw objdump,
11313         # which wouldn't understand a cygwinified path. Ahh.
11314         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11315       else
11316         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11317       fi
11318       ;;
11319     pw32*)
11320       # pw32 DLLs use 'pw' prefix rather than 'lib'
11321       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11322       ;;
11323     esac
11324     ;;
11325
11326   *)
11327     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11328     ;;
11329   esac
11330   dynamic_linker='Win32 ld.exe'
11331   # FIXME: first we should search . and the directory the executable is in
11332   shlibpath_var=PATH
11333   ;;
11334
11335 darwin* | rhapsody*)
11336   dynamic_linker="$host_os dyld"
11337   version_type=darwin
11338   need_lib_prefix=no
11339   need_version=no
11340   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11341   soname_spec='${libname}${release}${major}$shared_ext'
11342   shlibpath_overrides_runpath=yes
11343   shlibpath_var=DYLD_LIBRARY_PATH
11344   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11345   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11346   if test "$GCC" = yes; then
11347     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"`
11348   else
11349     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11350   fi
11351   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11352   ;;
11353
11354 dgux*)
11355   version_type=linux
11356   need_lib_prefix=no
11357   need_version=no
11358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11359   soname_spec='${libname}${release}${shared_ext}$major'
11360   shlibpath_var=LD_LIBRARY_PATH
11361   ;;
11362
11363 freebsd1*)
11364   dynamic_linker=no
11365   ;;
11366
11367 kfreebsd*-gnu)
11368   version_type=linux
11369   need_lib_prefix=no
11370   need_version=no
11371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11372   soname_spec='${libname}${release}${shared_ext}$major'
11373   shlibpath_var=LD_LIBRARY_PATH
11374   shlibpath_overrides_runpath=no
11375   hardcode_into_libs=yes
11376   dynamic_linker='GNU ld.so'
11377   ;;
11378
11379 freebsd*)
11380   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11381   version_type=freebsd-$objformat
11382   case $version_type in
11383     freebsd-elf*)
11384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11385       need_version=no
11386       need_lib_prefix=no
11387       ;;
11388     freebsd-*)
11389       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11390       need_version=yes
11391       ;;
11392   esac
11393   shlibpath_var=LD_LIBRARY_PATH
11394   case $host_os in
11395   freebsd2*)
11396     shlibpath_overrides_runpath=yes
11397     ;;
11398   freebsd3.01* | freebsdelf3.01*)
11399     shlibpath_overrides_runpath=yes
11400     hardcode_into_libs=yes
11401     ;;
11402   *) # from 3.2 on
11403     shlibpath_overrides_runpath=no
11404     hardcode_into_libs=yes
11405     ;;
11406   esac
11407   ;;
11408
11409 gnu*)
11410   version_type=linux
11411   need_lib_prefix=no
11412   need_version=no
11413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11414   soname_spec='${libname}${release}${shared_ext}$major'
11415   shlibpath_var=LD_LIBRARY_PATH
11416   hardcode_into_libs=yes
11417   ;;
11418
11419 hpux9* | hpux10* | hpux11*)
11420   # Give a soname corresponding to the major version so that dld.sl refuses to
11421   # link against other versions.
11422   version_type=sunos
11423   need_lib_prefix=no
11424   need_version=no
11425   case "$host_cpu" in
11426   ia64*)
11427     shrext_cmds='.so'
11428     hardcode_into_libs=yes
11429     dynamic_linker="$host_os dld.so"
11430     shlibpath_var=LD_LIBRARY_PATH
11431     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433     soname_spec='${libname}${release}${shared_ext}$major'
11434     if test "X$HPUX_IA64_MODE" = X32; then
11435       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11436     else
11437       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11438     fi
11439     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11440     ;;
11441    hppa*64*)
11442      shrext_cmds='.sl'
11443      hardcode_into_libs=yes
11444      dynamic_linker="$host_os dld.sl"
11445      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11446      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11447      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448      soname_spec='${libname}${release}${shared_ext}$major'
11449      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11450      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11451      ;;
11452    *)
11453     shrext_cmds='.sl'
11454     dynamic_linker="$host_os dld.sl"
11455     shlibpath_var=SHLIB_PATH
11456     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458     soname_spec='${libname}${release}${shared_ext}$major'
11459     ;;
11460   esac
11461   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11462   postinstall_cmds='chmod 555 $lib'
11463   ;;
11464
11465 irix5* | irix6* | nonstopux*)
11466   case $host_os in
11467     nonstopux*) version_type=nonstopux ;;
11468     *)
11469         if test "$lt_cv_prog_gnu_ld" = yes; then
11470                 version_type=linux
11471         else
11472                 version_type=irix
11473         fi ;;
11474   esac
11475   need_lib_prefix=no
11476   need_version=no
11477   soname_spec='${libname}${release}${shared_ext}$major'
11478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11479   case $host_os in
11480   irix5* | nonstopux*)
11481     libsuff= shlibsuff=
11482     ;;
11483   *)
11484     case $LD in # libtool.m4 will add one of these switches to LD
11485     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11486       libsuff= shlibsuff= libmagic=32-bit;;
11487     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11488       libsuff=32 shlibsuff=N32 libmagic=N32;;
11489     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11490       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11491     *) libsuff= shlibsuff= libmagic=never-match;;
11492     esac
11493     ;;
11494   esac
11495   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11496   shlibpath_overrides_runpath=no
11497   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11498   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11499   hardcode_into_libs=yes
11500   ;;
11501
11502 # No shared lib support for Linux oldld, aout, or coff.
11503 linux*oldld* | linux*aout* | linux*coff*)
11504   dynamic_linker=no
11505   ;;
11506
11507 # This must be Linux ELF.
11508 linux*)
11509   version_type=linux
11510   need_lib_prefix=no
11511   need_version=no
11512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513   soname_spec='${libname}${release}${shared_ext}$major'
11514   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11515   shlibpath_var=LD_LIBRARY_PATH
11516   shlibpath_overrides_runpath=no
11517   # This implies no fast_install, which is unacceptable.
11518   # Some rework will be needed to allow for fast_install
11519   # before this can be enabled.
11520   hardcode_into_libs=yes
11521
11522   # Append ld.so.conf contents to the search path
11523   if test -f /etc/ld.so.conf; then
11524     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11525     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11526   fi
11527
11528   # We used to test for /lib/ld.so.1 and disable shared libraries on
11529   # powerpc, because MkLinux only supported shared libraries with the
11530   # GNU dynamic linker.  Since this was broken with cross compilers,
11531   # most powerpc-linux boxes support dynamic linking these days and
11532   # people can always --disable-shared, the test was removed, and we
11533   # assume the GNU/Linux dynamic linker is in use.
11534   dynamic_linker='GNU/Linux ld.so'
11535   ;;
11536
11537 netbsdelf*-gnu)
11538   version_type=linux
11539   need_lib_prefix=no
11540   need_version=no
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11542   soname_spec='${libname}${release}${shared_ext}$major'
11543   shlibpath_var=LD_LIBRARY_PATH
11544   shlibpath_overrides_runpath=no
11545   hardcode_into_libs=yes
11546   dynamic_linker='NetBSD ld.elf_so'
11547   ;;
11548
11549 knetbsd*-gnu)
11550   version_type=linux
11551   need_lib_prefix=no
11552   need_version=no
11553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   shlibpath_overrides_runpath=no
11557   hardcode_into_libs=yes
11558   dynamic_linker='GNU ld.so'
11559   ;;
11560
11561 netbsd*)
11562   version_type=sunos
11563   need_lib_prefix=no
11564   need_version=no
11565   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568     dynamic_linker='NetBSD (a.out) ld.so'
11569   else
11570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11571     soname_spec='${libname}${release}${shared_ext}$major'
11572     dynamic_linker='NetBSD ld.elf_so'
11573   fi
11574   shlibpath_var=LD_LIBRARY_PATH
11575   shlibpath_overrides_runpath=yes
11576   hardcode_into_libs=yes
11577   ;;
11578
11579 newsos6)
11580   version_type=linux
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582   shlibpath_var=LD_LIBRARY_PATH
11583   shlibpath_overrides_runpath=yes
11584   ;;
11585
11586 nto-qnx*)
11587   version_type=linux
11588   need_lib_prefix=no
11589   need_version=no
11590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591   soname_spec='${libname}${release}${shared_ext}$major'
11592   shlibpath_var=LD_LIBRARY_PATH
11593   shlibpath_overrides_runpath=yes
11594   ;;
11595
11596 openbsd*)
11597   version_type=sunos
11598   need_lib_prefix=no
11599   need_version=yes
11600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11602   shlibpath_var=LD_LIBRARY_PATH
11603   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11604     case $host_os in
11605       openbsd2.[89] | openbsd2.[89].*)
11606         shlibpath_overrides_runpath=no
11607         ;;
11608       *)
11609         shlibpath_overrides_runpath=yes
11610         ;;
11611       esac
11612   else
11613     shlibpath_overrides_runpath=yes
11614   fi
11615   ;;
11616
11617 os2*)
11618   libname_spec='$name'
11619   shrext_cmds=".dll"
11620   need_lib_prefix=no
11621   library_names_spec='$libname${shared_ext} $libname.a'
11622   dynamic_linker='OS/2 ld.exe'
11623   shlibpath_var=LIBPATH
11624   ;;
11625
11626 osf3* | osf4* | osf5*)
11627   version_type=osf
11628   need_lib_prefix=no
11629   need_version=no
11630   soname_spec='${libname}${release}${shared_ext}$major'
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632   shlibpath_var=LD_LIBRARY_PATH
11633   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11634   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11635   ;;
11636
11637 sco3.2v5*)
11638   version_type=osf
11639   soname_spec='${libname}${release}${shared_ext}$major'
11640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641   shlibpath_var=LD_LIBRARY_PATH
11642   ;;
11643
11644 solaris*)
11645   version_type=linux
11646   need_lib_prefix=no
11647   need_version=no
11648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649   soname_spec='${libname}${release}${shared_ext}$major'
11650   shlibpath_var=LD_LIBRARY_PATH
11651   shlibpath_overrides_runpath=yes
11652   hardcode_into_libs=yes
11653   # ldd complains unless libraries are executable
11654   postinstall_cmds='chmod +x $lib'
11655   ;;
11656
11657 sunos4*)
11658   version_type=sunos
11659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11660   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11661   shlibpath_var=LD_LIBRARY_PATH
11662   shlibpath_overrides_runpath=yes
11663   if test "$with_gnu_ld" = yes; then
11664     need_lib_prefix=no
11665   fi
11666   need_version=yes
11667   ;;
11668
11669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11670   version_type=linux
11671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   case $host_vendor in
11675     sni)
11676       shlibpath_overrides_runpath=no
11677       need_lib_prefix=no
11678       export_dynamic_flag_spec='${wl}-Blargedynsym'
11679       runpath_var=LD_RUN_PATH
11680       ;;
11681     siemens)
11682       need_lib_prefix=no
11683       ;;
11684     motorola)
11685       need_lib_prefix=no
11686       need_version=no
11687       shlibpath_overrides_runpath=no
11688       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11689       ;;
11690   esac
11691   ;;
11692
11693 sysv4*MP*)
11694   if test -d /usr/nec ;then
11695     version_type=linux
11696     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11697     soname_spec='$libname${shared_ext}.$major'
11698     shlibpath_var=LD_LIBRARY_PATH
11699   fi
11700   ;;
11701
11702 uts4*)
11703   version_type=linux
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705   soname_spec='${libname}${release}${shared_ext}$major'
11706   shlibpath_var=LD_LIBRARY_PATH
11707   ;;
11708
11709 *)
11710   dynamic_linker=no
11711   ;;
11712 esac
11713 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11714 echo "${ECHO_T}$dynamic_linker" >&6
11715 test "$dynamic_linker" = no && can_build_shared=no
11716
11717 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11718 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11719 hardcode_action_CXX=
11720 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11721    test -n "$runpath_var CXX" || \
11722    test "X$hardcode_automatic_CXX"="Xyes" ; then
11723
11724   # We can hardcode non-existant directories.
11725   if test "$hardcode_direct_CXX" != no &&
11726      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11727      # have to relink, otherwise we might link with an installed library
11728      # when we should be linking with a yet-to-be-installed one
11729      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11730      test "$hardcode_minus_L_CXX" != no; then
11731     # Linking always hardcodes the temporary library directory.
11732     hardcode_action_CXX=relink
11733   else
11734     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11735     hardcode_action_CXX=immediate
11736   fi
11737 else
11738   # We cannot hardcode anything, or else we can only hardcode existing
11739   # directories.
11740   hardcode_action_CXX=unsupported
11741 fi
11742 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11743 echo "${ECHO_T}$hardcode_action_CXX" >&6
11744
11745 if test "$hardcode_action_CXX" = relink; then
11746   # Fast installation is not supported
11747   enable_fast_install=no
11748 elif test "$shlibpath_overrides_runpath" = yes ||
11749      test "$enable_shared" = no; then
11750   # Fast installation is not necessary
11751   enable_fast_install=needless
11752 fi
11753
11754 striplib=
11755 old_striplib=
11756 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11757 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11758 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11759   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11760   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11761   echo "$as_me:$LINENO: result: yes" >&5
11762 echo "${ECHO_T}yes" >&6
11763 else
11764 # FIXME - insert some real tests, host_os isn't really good enough
11765   case $host_os in
11766    darwin*)
11767        if test -n "$STRIP" ; then
11768          striplib="$STRIP -x"
11769          echo "$as_me:$LINENO: result: yes" >&5
11770 echo "${ECHO_T}yes" >&6
11771        else
11772   echo "$as_me:$LINENO: result: no" >&5
11773 echo "${ECHO_T}no" >&6
11774 fi
11775        ;;
11776    *)
11777   echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6
11779     ;;
11780   esac
11781 fi
11782
11783 if test "x$enable_dlopen" != xyes; then
11784   enable_dlopen=unknown
11785   enable_dlopen_self=unknown
11786   enable_dlopen_self_static=unknown
11787 else
11788   lt_cv_dlopen=no
11789   lt_cv_dlopen_libs=
11790
11791   case $host_os in
11792   beos*)
11793     lt_cv_dlopen="load_add_on"
11794     lt_cv_dlopen_libs=
11795     lt_cv_dlopen_self=yes
11796     ;;
11797
11798   mingw* | pw32*)
11799     lt_cv_dlopen="LoadLibrary"
11800     lt_cv_dlopen_libs=
11801    ;;
11802
11803   cygwin*)
11804     lt_cv_dlopen="dlopen"
11805     lt_cv_dlopen_libs=
11806    ;;
11807
11808   darwin*)
11809   # if libdl is installed we need to link against it
11810     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11811 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   ac_check_lib_save_LIBS=$LIBS
11816 LIBS="-ldl  $LIBS"
11817 cat >conftest.$ac_ext <<_ACEOF
11818 #line $LINENO "configure"
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824
11825 /* Override any gcc2 internal prototype to avoid an error.  */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 /* We use char because int might match the return type of a gcc2
11830    builtin and then its argument prototype would still apply.  */
11831 char dlopen ();
11832 int
11833 main ()
11834 {
11835 dlopen ();
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842   (eval $ac_link) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -s conftest$ac_exeext'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   ac_cv_lib_dl_dlopen=yes
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ac_cv_lib_dl_dlopen=no
11858 fi
11859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11863 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11864 if test $ac_cv_lib_dl_dlopen = yes; then
11865   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11866 else
11867
11868     lt_cv_dlopen="dyld"
11869     lt_cv_dlopen_libs=
11870     lt_cv_dlopen_self=yes
11871
11872 fi
11873
11874    ;;
11875
11876   *)
11877     echo "$as_me:$LINENO: checking for shl_load" >&5
11878 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11879 if test "${ac_cv_func_shl_load+set}" = set; then
11880   echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882   cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 /* confdefs.h.  */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h.  */
11889 /* System header to define __stub macros and hopefully few prototypes,
11890     which can conflict with char shl_load (); below.
11891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11892     <limits.h> exists even on freestanding compilers.  */
11893 #ifdef __STDC__
11894 # include <limits.h>
11895 #else
11896 # include <assert.h>
11897 #endif
11898 /* Override any gcc2 internal prototype to avoid an error.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 {
11902 #endif
11903 /* We use char because int might match the return type of a gcc2
11904    builtin and then its argument prototype would still apply.  */
11905 char shl_load ();
11906 /* The GNU C library defines this for functions which it implements
11907     to always fail with ENOSYS.  Some functions are actually named
11908     something starting with __ and the normal name is an alias.  */
11909 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11910 choke me
11911 #else
11912 char (*f) () = shl_load;
11913 #endif
11914 #ifdef __cplusplus
11915 }
11916 #endif
11917
11918 int
11919 main ()
11920 {
11921 return f != shl_load;
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928   (eval $ac_link) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934   (eval $ac_try) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; }; then
11938   ac_cv_func_shl_load=yes
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 ac_cv_func_shl_load=no
11944 fi
11945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11948 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11949 if test $ac_cv_func_shl_load = yes; then
11950   lt_cv_dlopen="shl_load"
11951 else
11952   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11953 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11954 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11955   echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957   ac_check_lib_save_LIBS=$LIBS
11958 LIBS="-ldld  $LIBS"
11959 cat >conftest.$ac_ext <<_ACEOF
11960 #line $LINENO "configure"
11961 /* confdefs.h.  */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h.  */
11966
11967 /* Override any gcc2 internal prototype to avoid an error.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 /* We use char because int might match the return type of a gcc2
11972    builtin and then its argument prototype would still apply.  */
11973 char shl_load ();
11974 int
11975 main ()
11976 {
11977 shl_load ();
11978   ;
11979   return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11984   (eval $ac_link) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } &&
11988          { ac_try='test -s conftest$ac_exeext'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; }; then
11994   ac_cv_lib_dld_shl_load=yes
11995 else
11996   echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 ac_cv_lib_dld_shl_load=no
12000 fi
12001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12002 LIBS=$ac_check_lib_save_LIBS
12003 fi
12004 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12005 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12006 if test $ac_cv_lib_dld_shl_load = yes; then
12007   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12008 else
12009   echo "$as_me:$LINENO: checking for dlopen" >&5
12010 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12011 if test "${ac_cv_func_dlopen+set}" = set; then
12012   echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014   cat >conftest.$ac_ext <<_ACEOF
12015 #line $LINENO "configure"
12016 /* confdefs.h.  */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h.  */
12021 /* System header to define __stub macros and hopefully few prototypes,
12022     which can conflict with char dlopen (); below.
12023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12024     <limits.h> exists even on freestanding compilers.  */
12025 #ifdef __STDC__
12026 # include <limits.h>
12027 #else
12028 # include <assert.h>
12029 #endif
12030 /* Override any gcc2 internal prototype to avoid an error.  */
12031 #ifdef __cplusplus
12032 extern "C"
12033 {
12034 #endif
12035 /* We use char because int might match the return type of a gcc2
12036    builtin and then its argument prototype would still apply.  */
12037 char dlopen ();
12038 /* The GNU C library defines this for functions which it implements
12039     to always fail with ENOSYS.  Some functions are actually named
12040     something starting with __ and the normal name is an alias.  */
12041 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12042 choke me
12043 #else
12044 char (*f) () = dlopen;
12045 #endif
12046 #ifdef __cplusplus
12047 }
12048 #endif
12049
12050 int
12051 main ()
12052 {
12053 return f != dlopen;
12054   ;
12055   return 0;
12056 }
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060   (eval $ac_link) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); } &&
12064          { ac_try='test -s conftest$ac_exeext'
12065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066   (eval $ac_try) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; }; then
12070   ac_cv_func_dlopen=yes
12071 else
12072   echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 ac_cv_func_dlopen=no
12076 fi
12077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12078 fi
12079 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12080 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12081 if test $ac_cv_func_dlopen = yes; then
12082   lt_cv_dlopen="dlopen"
12083 else
12084   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089   ac_check_lib_save_LIBS=$LIBS
12090 LIBS="-ldl  $LIBS"
12091 cat >conftest.$ac_ext <<_ACEOF
12092 #line $LINENO "configure"
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12098
12099 /* Override any gcc2 internal prototype to avoid an error.  */
12100 #ifdef __cplusplus
12101 extern "C"
12102 #endif
12103 /* We use char because int might match the return type of a gcc2
12104    builtin and then its argument prototype would still apply.  */
12105 char dlopen ();
12106 int
12107 main ()
12108 {
12109 dlopen ();
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12116   (eval $ac_link) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -s conftest$ac_exeext'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126   ac_cv_lib_dl_dlopen=yes
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 ac_cv_lib_dl_dlopen=no
12132 fi
12133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12135 fi
12136 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12137 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12138 if test $ac_cv_lib_dl_dlopen = yes; then
12139   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12140 else
12141   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12142 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12143 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12144   echo $ECHO_N "(cached) $ECHO_C" >&6
12145 else
12146   ac_check_lib_save_LIBS=$LIBS
12147 LIBS="-lsvld  $LIBS"
12148 cat >conftest.$ac_ext <<_ACEOF
12149 #line $LINENO "configure"
12150 /* confdefs.h.  */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h.  */
12155
12156 /* Override any gcc2 internal prototype to avoid an error.  */
12157 #ifdef __cplusplus
12158 extern "C"
12159 #endif
12160 /* We use char because int might match the return type of a gcc2
12161    builtin and then its argument prototype would still apply.  */
12162 char dlopen ();
12163 int
12164 main ()
12165 {
12166 dlopen ();
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext conftest$ac_exeext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12173   (eval $ac_link) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } &&
12177          { ac_try='test -s conftest$ac_exeext'
12178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179   (eval $ac_try) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; }; then
12183   ac_cv_lib_svld_dlopen=yes
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_cv_lib_svld_dlopen=no
12189 fi
12190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12192 fi
12193 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12194 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12195 if test $ac_cv_lib_svld_dlopen = yes; then
12196   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12197 else
12198   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12199 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12200 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12201   echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203   ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-ldld  $LIBS"
12205 cat >conftest.$ac_ext <<_ACEOF
12206 #line $LINENO "configure"
12207 /* confdefs.h.  */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h.  */
12212
12213 /* Override any gcc2 internal prototype to avoid an error.  */
12214 #ifdef __cplusplus
12215 extern "C"
12216 #endif
12217 /* We use char because int might match the return type of a gcc2
12218    builtin and then its argument prototype would still apply.  */
12219 char dld_link ();
12220 int
12221 main ()
12222 {
12223 dld_link ();
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230   (eval $ac_link) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); } &&
12234          { ac_try='test -s conftest$ac_exeext'
12235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236   (eval $ac_try) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   ac_cv_lib_dld_dld_link=yes
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245 ac_cv_lib_dld_dld_link=no
12246 fi
12247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12251 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12252 if test $ac_cv_lib_dld_dld_link = yes; then
12253   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12254 fi
12255
12256
12257 fi
12258
12259
12260 fi
12261
12262
12263 fi
12264
12265
12266 fi
12267
12268
12269 fi
12270
12271     ;;
12272   esac
12273
12274   if test "x$lt_cv_dlopen" != xno; then
12275     enable_dlopen=yes
12276   else
12277     enable_dlopen=no
12278   fi
12279
12280   case $lt_cv_dlopen in
12281   dlopen)
12282     save_CPPFLAGS="$CPPFLAGS"
12283     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12284
12285     save_LDFLAGS="$LDFLAGS"
12286     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12287
12288     save_LIBS="$LIBS"
12289     LIBS="$lt_cv_dlopen_libs $LIBS"
12290
12291     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12292 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12293 if test "${lt_cv_dlopen_self+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296           if test "$cross_compiling" = yes; then :
12297   lt_cv_dlopen_self=cross
12298 else
12299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12300   lt_status=$lt_dlunknown
12301   cat > conftest.$ac_ext <<EOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12304
12305 #if HAVE_DLFCN_H
12306 #include <dlfcn.h>
12307 #endif
12308
12309 #include <stdio.h>
12310
12311 #ifdef RTLD_GLOBAL
12312 #  define LT_DLGLOBAL           RTLD_GLOBAL
12313 #else
12314 #  ifdef DL_GLOBAL
12315 #    define LT_DLGLOBAL         DL_GLOBAL
12316 #  else
12317 #    define LT_DLGLOBAL         0
12318 #  endif
12319 #endif
12320
12321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12322    find out it does not work in some platform. */
12323 #ifndef LT_DLLAZY_OR_NOW
12324 #  ifdef RTLD_LAZY
12325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12326 #  else
12327 #    ifdef DL_LAZY
12328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12329 #    else
12330 #      ifdef RTLD_NOW
12331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12332 #      else
12333 #        ifdef DL_NOW
12334 #          define LT_DLLAZY_OR_NOW      DL_NOW
12335 #        else
12336 #          define LT_DLLAZY_OR_NOW      0
12337 #        endif
12338 #      endif
12339 #    endif
12340 #  endif
12341 #endif
12342
12343 #ifdef __cplusplus
12344 extern "C" void exit (int);
12345 #endif
12346
12347 void fnord() { int i=42;}
12348 int main ()
12349 {
12350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12351   int status = $lt_dlunknown;
12352
12353   if (self)
12354     {
12355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12357       /* dlclose (self); */
12358     }
12359
12360     exit (status);
12361 }
12362 EOF
12363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364   (eval $ac_link) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12368     (./conftest; exit; ) 2>/dev/null
12369     lt_status=$?
12370     case x$lt_status in
12371       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12372       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12373       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12374     esac
12375   else :
12376     # compilation failed
12377     lt_cv_dlopen_self=no
12378   fi
12379 fi
12380 rm -fr conftest*
12381
12382
12383 fi
12384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12385 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12386
12387     if test "x$lt_cv_dlopen_self" = xyes; then
12388       LDFLAGS="$LDFLAGS $link_static_flag"
12389       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12390 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12391 if test "${lt_cv_dlopen_self_static+set}" = set; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394           if test "$cross_compiling" = yes; then :
12395   lt_cv_dlopen_self_static=cross
12396 else
12397   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12398   lt_status=$lt_dlunknown
12399   cat > conftest.$ac_ext <<EOF
12400 #line 12400 "configure"
12401 #include "confdefs.h"
12402
12403 #if HAVE_DLFCN_H
12404 #include <dlfcn.h>
12405 #endif
12406
12407 #include <stdio.h>
12408
12409 #ifdef RTLD_GLOBAL
12410 #  define LT_DLGLOBAL           RTLD_GLOBAL
12411 #else
12412 #  ifdef DL_GLOBAL
12413 #    define LT_DLGLOBAL         DL_GLOBAL
12414 #  else
12415 #    define LT_DLGLOBAL         0
12416 #  endif
12417 #endif
12418
12419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12420    find out it does not work in some platform. */
12421 #ifndef LT_DLLAZY_OR_NOW
12422 #  ifdef RTLD_LAZY
12423 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12424 #  else
12425 #    ifdef DL_LAZY
12426 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12427 #    else
12428 #      ifdef RTLD_NOW
12429 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12430 #      else
12431 #        ifdef DL_NOW
12432 #          define LT_DLLAZY_OR_NOW      DL_NOW
12433 #        else
12434 #          define LT_DLLAZY_OR_NOW      0
12435 #        endif
12436 #      endif
12437 #    endif
12438 #  endif
12439 #endif
12440
12441 #ifdef __cplusplus
12442 extern "C" void exit (int);
12443 #endif
12444
12445 void fnord() { int i=42;}
12446 int main ()
12447 {
12448   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12449   int status = $lt_dlunknown;
12450
12451   if (self)
12452     {
12453       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12454       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12455       /* dlclose (self); */
12456     }
12457
12458     exit (status);
12459 }
12460 EOF
12461   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462   (eval $ac_link) 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12466     (./conftest; exit; ) 2>/dev/null
12467     lt_status=$?
12468     case x$lt_status in
12469       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12470       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12471       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12472     esac
12473   else :
12474     # compilation failed
12475     lt_cv_dlopen_self_static=no
12476   fi
12477 fi
12478 rm -fr conftest*
12479
12480
12481 fi
12482 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12483 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12484     fi
12485
12486     CPPFLAGS="$save_CPPFLAGS"
12487     LDFLAGS="$save_LDFLAGS"
12488     LIBS="$save_LIBS"
12489     ;;
12490   esac
12491
12492   case $lt_cv_dlopen_self in
12493   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12494   *) enable_dlopen_self=unknown ;;
12495   esac
12496
12497   case $lt_cv_dlopen_self_static in
12498   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12499   *) enable_dlopen_self_static=unknown ;;
12500   esac
12501 fi
12502
12503
12504 # The else clause should only fire when bootstrapping the
12505 # libtool distribution, otherwise you forgot to ship ltmain.sh
12506 # with your package, and you will get complaints that there are
12507 # no rules to generate ltmain.sh.
12508 if test -f "$ltmain"; then
12509   # See if we are running on zsh, and set the options which allow our commands through
12510   # without removal of \ escapes.
12511   if test -n "${ZSH_VERSION+set}" ; then
12512     setopt NO_GLOB_SUBST
12513   fi
12514   # Now quote all the things that may contain metacharacters while being
12515   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12516   # variables and quote the copies for generation of the libtool script.
12517   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12518     SED SHELL STRIP \
12519     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12520     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12521     deplibs_check_method reload_flag reload_cmds need_locks \
12522     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12523     lt_cv_sys_global_symbol_to_c_name_address \
12524     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12525     old_postinstall_cmds old_postuninstall_cmds \
12526     compiler_CXX \
12527     CC_CXX \
12528     LD_CXX \
12529     lt_prog_compiler_wl_CXX \
12530     lt_prog_compiler_pic_CXX \
12531     lt_prog_compiler_static_CXX \
12532     lt_prog_compiler_no_builtin_flag_CXX \
12533     export_dynamic_flag_spec_CXX \
12534     thread_safe_flag_spec_CXX \
12535     whole_archive_flag_spec_CXX \
12536     enable_shared_with_static_runtimes_CXX \
12537     old_archive_cmds_CXX \
12538     old_archive_from_new_cmds_CXX \
12539     predep_objects_CXX \
12540     postdep_objects_CXX \
12541     predeps_CXX \
12542     postdeps_CXX \
12543     compiler_lib_search_path_CXX \
12544     archive_cmds_CXX \
12545     archive_expsym_cmds_CXX \
12546     postinstall_cmds_CXX \
12547     postuninstall_cmds_CXX \
12548     old_archive_from_expsyms_cmds_CXX \
12549     allow_undefined_flag_CXX \
12550     no_undefined_flag_CXX \
12551     export_symbols_cmds_CXX \
12552     hardcode_libdir_flag_spec_CXX \
12553     hardcode_libdir_flag_spec_ld_CXX \
12554     hardcode_libdir_separator_CXX \
12555     hardcode_automatic_CXX \
12556     module_cmds_CXX \
12557     module_expsym_cmds_CXX \
12558     lt_cv_prog_compiler_c_o_CXX \
12559     exclude_expsyms_CXX \
12560     include_expsyms_CXX; do
12561
12562     case $var in
12563     old_archive_cmds_CXX | \
12564     old_archive_from_new_cmds_CXX | \
12565     archive_cmds_CXX | \
12566     archive_expsym_cmds_CXX | \
12567     module_cmds_CXX | \
12568     module_expsym_cmds_CXX | \
12569     old_archive_from_expsyms_cmds_CXX | \
12570     export_symbols_cmds_CXX | \
12571     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12572     postinstall_cmds | postuninstall_cmds | \
12573     old_postinstall_cmds | old_postuninstall_cmds | \
12574     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12575       # Double-quote double-evaled strings.
12576       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12577       ;;
12578     *)
12579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12580       ;;
12581     esac
12582   done
12583
12584   case $lt_echo in
12585   *'\$0 --fallback-echo"')
12586     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12587     ;;
12588   esac
12589
12590 cfgfile="$ofile"
12591
12592   cat <<__EOF__ >> "$cfgfile"
12593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12594
12595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12596
12597 # Shell to use when invoking shell scripts.
12598 SHELL=$lt_SHELL
12599
12600 # Whether or not to build shared libraries.
12601 build_libtool_libs=$enable_shared
12602
12603 # Whether or not to build static libraries.
12604 build_old_libs=$enable_static
12605
12606 # Whether or not to add -lc for building shared libraries.
12607 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12608
12609 # Whether or not to disallow shared libs when runtime libs are static
12610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12611
12612 # Whether or not to optimize for fast installation.
12613 fast_install=$enable_fast_install
12614
12615 # The host system.
12616 host_alias=$host_alias
12617 host=$host
12618
12619 # An echo program that does not interpret backslashes.
12620 echo=$lt_echo
12621
12622 # The archiver.
12623 AR=$lt_AR
12624 AR_FLAGS=$lt_AR_FLAGS
12625
12626 # A C compiler.
12627 LTCC=$lt_LTCC
12628
12629 # A language-specific compiler.
12630 CC=$lt_compiler_CXX
12631
12632 # Is the compiler the GNU C compiler?
12633 with_gcc=$GCC_CXX
12634
12635 # An ERE matcher.
12636 EGREP=$lt_EGREP
12637
12638 # The linker used to build libraries.
12639 LD=$lt_LD_CXX
12640
12641 # Whether we need hard or soft links.
12642 LN_S=$lt_LN_S
12643
12644 # A BSD-compatible nm program.
12645 NM=$lt_NM
12646
12647 # A symbol stripping program
12648 STRIP=$lt_STRIP
12649
12650 # Used to examine libraries when file_magic_cmd begins "file"
12651 MAGIC_CMD=$MAGIC_CMD
12652
12653 # Used on cygwin: DLL creation program.
12654 DLLTOOL="$DLLTOOL"
12655
12656 # Used on cygwin: object dumper.
12657 OBJDUMP="$OBJDUMP"
12658
12659 # Used on cygwin: assembler.
12660 AS="$AS"
12661
12662 # The name of the directory that contains temporary libtool files.
12663 objdir=$objdir
12664
12665 # How to create reloadable object files.
12666 reload_flag=$lt_reload_flag
12667 reload_cmds=$lt_reload_cmds
12668
12669 # How to pass a linker flag through the compiler.
12670 wl=$lt_lt_prog_compiler_wl_CXX
12671
12672 # Object file suffix (normally "o").
12673 objext="$ac_objext"
12674
12675 # Old archive suffix (normally "a").
12676 libext="$libext"
12677
12678 # Shared library suffix (normally ".so").
12679 shrext_cmds='$shrext_cmds'
12680
12681 # Executable file suffix (normally "").
12682 exeext="$exeext"
12683
12684 # Additional compiler flags for building library objects.
12685 pic_flag=$lt_lt_prog_compiler_pic_CXX
12686 pic_mode=$pic_mode
12687
12688 # What is the maximum length of a command?
12689 max_cmd_len=$lt_cv_sys_max_cmd_len
12690
12691 # Does compiler simultaneously support -c and -o options?
12692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12693
12694 # Must we lock files when doing compilation ?
12695 need_locks=$lt_need_locks
12696
12697 # Do we need the lib prefix for modules?
12698 need_lib_prefix=$need_lib_prefix
12699
12700 # Do we need a version for libraries?
12701 need_version=$need_version
12702
12703 # Whether dlopen is supported.
12704 dlopen_support=$enable_dlopen
12705
12706 # Whether dlopen of programs is supported.
12707 dlopen_self=$enable_dlopen_self
12708
12709 # Whether dlopen of statically linked programs is supported.
12710 dlopen_self_static=$enable_dlopen_self_static
12711
12712 # Compiler flag to prevent dynamic linking.
12713 link_static_flag=$lt_lt_prog_compiler_static_CXX
12714
12715 # Compiler flag to turn off builtin functions.
12716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12717
12718 # Compiler flag to allow reflexive dlopens.
12719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12720
12721 # Compiler flag to generate shared objects directly from archives.
12722 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12723
12724 # Compiler flag to generate thread-safe objects.
12725 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12726
12727 # Library versioning type.
12728 version_type=$version_type
12729
12730 # Format of library name prefix.
12731 libname_spec=$lt_libname_spec
12732
12733 # List of archive names.  First name is the real one, the rest are links.
12734 # The last name is the one that the linker finds with -lNAME.
12735 library_names_spec=$lt_library_names_spec
12736
12737 # The coded name of the library, if different from the real name.
12738 soname_spec=$lt_soname_spec
12739
12740 # Commands used to build and install an old-style archive.
12741 RANLIB=$lt_RANLIB
12742 old_archive_cmds=$lt_old_archive_cmds_CXX
12743 old_postinstall_cmds=$lt_old_postinstall_cmds
12744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12745
12746 # Create an old-style archive from a shared archive.
12747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12748
12749 # Create a temporary old-style archive to link instead of a shared archive.
12750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12751
12752 # Commands used to build and install a shared archive.
12753 archive_cmds=$lt_archive_cmds_CXX
12754 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12755 postinstall_cmds=$lt_postinstall_cmds
12756 postuninstall_cmds=$lt_postuninstall_cmds
12757
12758 # Commands used to build a loadable module (assumed same as above if empty)
12759 module_cmds=$lt_module_cmds_CXX
12760 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12761
12762 # Commands to strip libraries.
12763 old_striplib=$lt_old_striplib
12764 striplib=$lt_striplib
12765
12766 # Dependencies to place before the objects being linked to create a
12767 # shared library.
12768 predep_objects=$lt_predep_objects_CXX
12769
12770 # Dependencies to place after the objects being linked to create a
12771 # shared library.
12772 postdep_objects=$lt_postdep_objects_CXX
12773
12774 # Dependencies to place before the objects being linked to create a
12775 # shared library.
12776 predeps=$lt_predeps_CXX
12777
12778 # Dependencies to place after the objects being linked to create a
12779 # shared library.
12780 postdeps=$lt_postdeps_CXX
12781
12782 # The library search path used internally by the compiler when linking
12783 # a shared library.
12784 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12785
12786 # Method to check whether dependent libraries are shared objects.
12787 deplibs_check_method=$lt_deplibs_check_method
12788
12789 # Command to use when deplibs_check_method == file_magic.
12790 file_magic_cmd=$lt_file_magic_cmd
12791
12792 # Flag that allows shared libraries with undefined symbols to be built.
12793 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12794
12795 # Flag that forces no undefined symbols.
12796 no_undefined_flag=$lt_no_undefined_flag_CXX
12797
12798 # Commands used to finish a libtool library installation in a directory.
12799 finish_cmds=$lt_finish_cmds
12800
12801 # Same as above, but a single script fragment to be evaled but not shown.
12802 finish_eval=$lt_finish_eval
12803
12804 # Take the output of nm and produce a listing of raw symbols and C names.
12805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12806
12807 # Transform the output of nm in a proper C declaration
12808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12809
12810 # Transform the output of nm in a C name address pair
12811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12812
12813 # This is the shared library runtime path variable.
12814 runpath_var=$runpath_var
12815
12816 # This is the shared library path variable.
12817 shlibpath_var=$shlibpath_var
12818
12819 # Is shlibpath searched before the hard-coded library search path?
12820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12821
12822 # How to hardcode a shared library path into an executable.
12823 hardcode_action=$hardcode_action_CXX
12824
12825 # Whether we should hardcode library paths into libraries.
12826 hardcode_into_libs=$hardcode_into_libs
12827
12828 # Flag to hardcode \$libdir into a binary during linking.
12829 # This must work even if \$libdir does not exist.
12830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12831
12832 # If ld is used when linking, flag to hardcode \$libdir into
12833 # a binary during linking. This must work even if \$libdir does
12834 # not exist.
12835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12836
12837 # Whether we need a single -rpath flag with a separated argument.
12838 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12839
12840 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12841 # resulting binary.
12842 hardcode_direct=$hardcode_direct_CXX
12843
12844 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12845 # resulting binary.
12846 hardcode_minus_L=$hardcode_minus_L_CXX
12847
12848 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12849 # the resulting binary.
12850 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12851
12852 # Set to yes if building a shared library automatically hardcodes DIR into the library
12853 # and all subsequent libraries and executables linked against it.
12854 hardcode_automatic=$hardcode_automatic_CXX
12855
12856 # Variables whose values should be saved in libtool wrapper scripts and
12857 # restored at relink time.
12858 variables_saved_for_relink="$variables_saved_for_relink"
12859
12860 # Whether libtool must link a program against all its dependency libraries.
12861 link_all_deplibs=$link_all_deplibs_CXX
12862
12863 # Compile-time system search path for libraries
12864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12865
12866 # Run-time system search path for libraries
12867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12868
12869 # Fix the shell variable \$srcfile for the compiler.
12870 fix_srcfile_path="$fix_srcfile_path_CXX"
12871
12872 # Set to yes if exported symbols are required.
12873 always_export_symbols=$always_export_symbols_CXX
12874
12875 # The commands to list exported symbols.
12876 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12877
12878 # The commands to extract the exported symbol list from a shared archive.
12879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12880
12881 # Symbols that should not be listed in the preloaded symbols.
12882 exclude_expsyms=$lt_exclude_expsyms_CXX
12883
12884 # Symbols that must always be exported.
12885 include_expsyms=$lt_include_expsyms_CXX
12886
12887 # ### END LIBTOOL TAG CONFIG: $tagname
12888
12889 __EOF__
12890
12891
12892 else
12893   # If there is no Makefile yet, we rely on a make rule to execute
12894   # `config.status --recheck' to rerun these tests and create the
12895   # libtool script then.
12896   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12897   if test -f "$ltmain_in"; then
12898     test -f Makefile && make "$ltmain"
12899   fi
12900 fi
12901
12902
12903 ac_ext=c
12904 ac_cpp='$CPP $CPPFLAGS'
12905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12908
12909 CC=$lt_save_CC
12910 LDCXX=$LD
12911 LD=$lt_save_LD
12912 GCC=$lt_save_GCC
12913 with_gnu_ldcxx=$with_gnu_ld
12914 with_gnu_ld=$lt_save_with_gnu_ld
12915 lt_cv_path_LDCXX=$lt_cv_path_LD
12916 lt_cv_path_LD=$lt_save_path_LD
12917 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12918 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12919
12920         else
12921           tagname=""
12922         fi
12923         ;;
12924
12925       F77)
12926         if test -n "$F77" && test "X$F77" != "Xno"; then
12927
12928 ac_ext=f
12929 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12930 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12932
12933
12934 archive_cmds_need_lc_F77=no
12935 allow_undefined_flag_F77=
12936 always_export_symbols_F77=no
12937 archive_expsym_cmds_F77=
12938 export_dynamic_flag_spec_F77=
12939 hardcode_direct_F77=no
12940 hardcode_libdir_flag_spec_F77=
12941 hardcode_libdir_flag_spec_ld_F77=
12942 hardcode_libdir_separator_F77=
12943 hardcode_minus_L_F77=no
12944 hardcode_automatic_F77=no
12945 module_cmds_F77=
12946 module_expsym_cmds_F77=
12947 link_all_deplibs_F77=unknown
12948 old_archive_cmds_F77=$old_archive_cmds
12949 no_undefined_flag_F77=
12950 whole_archive_flag_spec_F77=
12951 enable_shared_with_static_runtimes_F77=no
12952
12953 # Source file extension for f77 test sources.
12954 ac_ext=f
12955
12956 # Object file extension for compiled f77 test sources.
12957 objext=o
12958 objext_F77=$objext
12959
12960 # Code to be used in simple compile tests
12961 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12962
12963 # Code to be used in simple link tests
12964 lt_simple_link_test_code="      program t\n      end\n"
12965
12966 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12967
12968 # If no C compiler was specified, use CC.
12969 LTCC=${LTCC-"$CC"}
12970
12971 # Allow CC to be a program name with arguments.
12972 compiler=$CC
12973
12974
12975 # Allow CC to be a program name with arguments.
12976 lt_save_CC="$CC"
12977 CC=${F77-"f77"}
12978 compiler=$CC
12979 compiler_F77=$CC
12980 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12981
12982 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12983 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12984 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12985 echo "${ECHO_T}$can_build_shared" >&6
12986
12987 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12988 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12989 test "$can_build_shared" = "no" && enable_shared=no
12990
12991 # On AIX, shared libraries and static libraries use the same namespace, and
12992 # are all built from PIC.
12993 case "$host_os" in
12994 aix3*)
12995   test "$enable_shared" = yes && enable_static=no
12996   if test -n "$RANLIB"; then
12997     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12998     postinstall_cmds='$RANLIB $lib'
12999   fi
13000   ;;
13001 aix4* | aix5*)
13002   test "$enable_shared" = yes && enable_static=no
13003   ;;
13004 esac
13005 echo "$as_me:$LINENO: result: $enable_shared" >&5
13006 echo "${ECHO_T}$enable_shared" >&6
13007
13008 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13009 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13010 # Make sure either enable_shared or enable_static is yes.
13011 test "$enable_shared" = yes || enable_static=yes
13012 echo "$as_me:$LINENO: result: $enable_static" >&5
13013 echo "${ECHO_T}$enable_static" >&6
13014
13015 test "$ld_shlibs_F77" = no && can_build_shared=no
13016
13017 GCC_F77="$G77"
13018 LD_F77="$LD"
13019
13020 lt_prog_compiler_wl_F77=
13021 lt_prog_compiler_pic_F77=
13022 lt_prog_compiler_static_F77=
13023
13024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13026
13027   if test "$GCC" = yes; then
13028     lt_prog_compiler_wl_F77='-Wl,'
13029     lt_prog_compiler_static_F77='-static'
13030
13031     case $host_os in
13032       aix*)
13033       # All AIX code is PIC.
13034       if test "$host_cpu" = ia64; then
13035         # AIX 5 now supports IA64 processor
13036         lt_prog_compiler_static_F77='-Bstatic'
13037       fi
13038       ;;
13039
13040     amigaos*)
13041       # FIXME: we need at least 68020 code to build shared libraries, but
13042       # adding the `-m68020' flag to GCC prevents building anything better,
13043       # like `-m68040'.
13044       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13045       ;;
13046
13047     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13048       # PIC is the default for these OSes.
13049       ;;
13050
13051     mingw* | pw32* | os2*)
13052       # This hack is so that the source file can tell whether it is being
13053       # built for inclusion in a dll (and should export symbols for example).
13054       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13055       ;;
13056
13057     darwin* | rhapsody*)
13058       # PIC is the default on this platform
13059       # Common symbols not allowed in MH_DYLIB files
13060       lt_prog_compiler_pic_F77='-fno-common'
13061       ;;
13062
13063     msdosdjgpp*)
13064       # Just because we use GCC doesn't mean we suddenly get shared libraries
13065       # on systems that don't support them.
13066       lt_prog_compiler_can_build_shared_F77=no
13067       enable_shared=no
13068       ;;
13069
13070     sysv4*MP*)
13071       if test -d /usr/nec; then
13072         lt_prog_compiler_pic_F77=-Kconform_pic
13073       fi
13074       ;;
13075
13076     hpux*)
13077       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13078       # not for PA HP-UX.
13079       case "$host_cpu" in
13080       hppa*64*|ia64*)
13081         # +Z the default
13082         ;;
13083       *)
13084         lt_prog_compiler_pic_F77='-fPIC'
13085         ;;
13086       esac
13087       ;;
13088
13089     *)
13090       lt_prog_compiler_pic_F77='-fPIC'
13091       ;;
13092     esac
13093   else
13094     # PORTME Check for flag to pass linker flags through the system compiler.
13095     case $host_os in
13096     aix*)
13097       lt_prog_compiler_wl_F77='-Wl,'
13098       if test "$host_cpu" = ia64; then
13099         # AIX 5 now supports IA64 processor
13100         lt_prog_compiler_static_F77='-Bstatic'
13101       else
13102         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13103       fi
13104       ;;
13105
13106     mingw* | pw32* | os2*)
13107       # This hack is so that the source file can tell whether it is being
13108       # built for inclusion in a dll (and should export symbols for example).
13109       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13110       ;;
13111
13112     hpux9* | hpux10* | hpux11*)
13113       lt_prog_compiler_wl_F77='-Wl,'
13114       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13115       # not for PA HP-UX.
13116       case "$host_cpu" in
13117       hppa*64*|ia64*)
13118         # +Z the default
13119         ;;
13120       *)
13121         lt_prog_compiler_pic_F77='+Z'
13122         ;;
13123       esac
13124       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13125       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13126       ;;
13127
13128     irix5* | irix6* | nonstopux*)
13129       lt_prog_compiler_wl_F77='-Wl,'
13130       # PIC (with -KPIC) is the default.
13131       lt_prog_compiler_static_F77='-non_shared'
13132       ;;
13133
13134     newsos6)
13135       lt_prog_compiler_pic_F77='-KPIC'
13136       lt_prog_compiler_static_F77='-Bstatic'
13137       ;;
13138
13139     linux*)
13140       case $CC in
13141       icc* | ecc*)
13142         lt_prog_compiler_wl_F77='-Wl,'
13143         lt_prog_compiler_pic_F77='-KPIC'
13144         lt_prog_compiler_static_F77='-static'
13145         ;;
13146       ccc*)
13147         lt_prog_compiler_wl_F77='-Wl,'
13148         # All Alpha code is PIC.
13149         lt_prog_compiler_static_F77='-non_shared'
13150         ;;
13151       esac
13152       ;;
13153
13154     osf3* | osf4* | osf5*)
13155       lt_prog_compiler_wl_F77='-Wl,'
13156       # All OSF/1 code is PIC.
13157       lt_prog_compiler_static_F77='-non_shared'
13158       ;;
13159
13160     sco3.2v5*)
13161       lt_prog_compiler_pic_F77='-Kpic'
13162       lt_prog_compiler_static_F77='-dn'
13163       ;;
13164
13165     solaris*)
13166       lt_prog_compiler_wl_F77='-Wl,'
13167       lt_prog_compiler_pic_F77='-KPIC'
13168       lt_prog_compiler_static_F77='-Bstatic'
13169       ;;
13170
13171     sunos4*)
13172       lt_prog_compiler_wl_F77='-Qoption ld '
13173       lt_prog_compiler_pic_F77='-PIC'
13174       lt_prog_compiler_static_F77='-Bstatic'
13175       ;;
13176
13177     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13178       lt_prog_compiler_wl_F77='-Wl,'
13179       lt_prog_compiler_pic_F77='-KPIC'
13180       lt_prog_compiler_static_F77='-Bstatic'
13181       ;;
13182
13183     sysv4*MP*)
13184       if test -d /usr/nec ;then
13185         lt_prog_compiler_pic_F77='-Kconform_pic'
13186         lt_prog_compiler_static_F77='-Bstatic'
13187       fi
13188       ;;
13189
13190     uts4*)
13191       lt_prog_compiler_pic_F77='-pic'
13192       lt_prog_compiler_static_F77='-Bstatic'
13193       ;;
13194
13195     *)
13196       lt_prog_compiler_can_build_shared_F77=no
13197       ;;
13198     esac
13199   fi
13200
13201 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13202 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13203
13204 #
13205 # Check to make sure the PIC flag actually works.
13206 #
13207 if test -n "$lt_prog_compiler_pic_F77"; then
13208
13209 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13210 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13211 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   lt_prog_compiler_pic_works_F77=no
13215   ac_outfile=conftest.$ac_objext
13216    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13217    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13218    # Insert the option either (1) after the last *FLAGS variable, or
13219    # (2) before a word containing "conftest.", or (3) at the end.
13220    # Note that $ac_compile itself does not contain backslashes and begins
13221    # with a dollar sign (not a hyphen), so the echo should work correctly.
13222    # The option is referenced via a variable to avoid confusing sed.
13223    lt_compile=`echo "$ac_compile" | $SED \
13224    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13226    -e 's:$: $lt_compiler_flag:'`
13227    (eval echo "\"\$as_me:13227: $lt_compile\"" >&5)
13228    (eval "$lt_compile" 2>conftest.err)
13229    ac_status=$?
13230    cat conftest.err >&5
13231    echo "$as_me:13231: \$? = $ac_status" >&5
13232    if (exit $ac_status) && test -s "$ac_outfile"; then
13233      # The compiler can only warn and ignore the option if not recognized
13234      # So say no if there are warnings
13235      if test ! -s conftest.err; then
13236        lt_prog_compiler_pic_works_F77=yes
13237      fi
13238    fi
13239    $rm conftest*
13240
13241 fi
13242 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13243 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13244
13245 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13246     case $lt_prog_compiler_pic_F77 in
13247      "" | " "*) ;;
13248      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13249      esac
13250 else
13251     lt_prog_compiler_pic_F77=
13252      lt_prog_compiler_can_build_shared_F77=no
13253 fi
13254
13255 fi
13256 case "$host_os" in
13257   # For platforms which do not support PIC, -DPIC is meaningless:
13258   *djgpp*)
13259     lt_prog_compiler_pic_F77=
13260     ;;
13261   *)
13262     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13263     ;;
13264 esac
13265
13266 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13267 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13268 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   lt_cv_prog_compiler_c_o_F77=no
13272    $rm -r conftest 2>/dev/null
13273    mkdir conftest
13274    cd conftest
13275    mkdir out
13276    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13277
13278    lt_compiler_flag="-o out/conftest2.$ac_objext"
13279    # Insert the option either (1) after the last *FLAGS variable, or
13280    # (2) before a word containing "conftest.", or (3) at the end.
13281    # Note that $ac_compile itself does not contain backslashes and begins
13282    # with a dollar sign (not a hyphen), so the echo should work correctly.
13283    lt_compile=`echo "$ac_compile" | $SED \
13284    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13286    -e 's:$: $lt_compiler_flag:'`
13287    (eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
13288    (eval "$lt_compile" 2>out/conftest.err)
13289    ac_status=$?
13290    cat out/conftest.err >&5
13291    echo "$as_me:13291: \$? = $ac_status" >&5
13292    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13293    then
13294      # The compiler can only warn and ignore the option if not recognized
13295      # So say no if there are warnings
13296      if test ! -s out/conftest.err; then
13297        lt_cv_prog_compiler_c_o_F77=yes
13298      fi
13299    fi
13300    chmod u+w .
13301    $rm conftest*
13302    # SGI C++ compiler will create directory out/ii_files/ for
13303    # template instantiation
13304    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13305    $rm out/* && rmdir out
13306    cd ..
13307    rmdir conftest
13308    $rm conftest*
13309
13310 fi
13311 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13312 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13313
13314
13315 hard_links="nottested"
13316 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13317   # do not overwrite the value of need_locks provided by the user
13318   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13319 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13320   hard_links=yes
13321   $rm conftest*
13322   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13323   touch conftest.a
13324   ln conftest.a conftest.b 2>&5 || hard_links=no
13325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13326   echo "$as_me:$LINENO: result: $hard_links" >&5
13327 echo "${ECHO_T}$hard_links" >&6
13328   if test "$hard_links" = no; then
13329     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13330 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13331     need_locks=warn
13332   fi
13333 else
13334   need_locks=no
13335 fi
13336
13337 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13338 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13339
13340   runpath_var=
13341   allow_undefined_flag_F77=
13342   enable_shared_with_static_runtimes_F77=no
13343   archive_cmds_F77=
13344   archive_expsym_cmds_F77=
13345   old_archive_From_new_cmds_F77=
13346   old_archive_from_expsyms_cmds_F77=
13347   export_dynamic_flag_spec_F77=
13348   whole_archive_flag_spec_F77=
13349   thread_safe_flag_spec_F77=
13350   hardcode_libdir_flag_spec_F77=
13351   hardcode_libdir_flag_spec_ld_F77=
13352   hardcode_libdir_separator_F77=
13353   hardcode_direct_F77=no
13354   hardcode_minus_L_F77=no
13355   hardcode_shlibpath_var_F77=unsupported
13356   link_all_deplibs_F77=unknown
13357   hardcode_automatic_F77=no
13358   module_cmds_F77=
13359   module_expsym_cmds_F77=
13360   always_export_symbols_F77=no
13361   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13362   # include_expsyms should be a list of space-separated symbols to be *always*
13363   # included in the symbol list
13364   include_expsyms_F77=
13365   # exclude_expsyms can be an extended regexp of symbols to exclude
13366   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13367   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13368   # as well as any symbol that contains `d'.
13369   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13370   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13371   # platforms (ab)use it in PIC code, but their linkers get confused if
13372   # the symbol is explicitly referenced.  Since portable code cannot
13373   # rely on this symbol name, it's probably fine to never include it in
13374   # preloaded symbol tables.
13375   extract_expsyms_cmds=
13376
13377   case $host_os in
13378   cygwin* | mingw* | pw32*)
13379     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13380     # When not using gcc, we currently assume that we are using
13381     # Microsoft Visual C++.
13382     if test "$GCC" != yes; then
13383       with_gnu_ld=no
13384     fi
13385     ;;
13386   openbsd*)
13387     with_gnu_ld=no
13388     ;;
13389   esac
13390
13391   ld_shlibs_F77=yes
13392   if test "$with_gnu_ld" = yes; then
13393     # If archive_cmds runs LD, not CC, wlarc should be empty
13394     wlarc='${wl}'
13395
13396     # See if GNU ld supports shared libraries.
13397     case $host_os in
13398     aix3* | aix4* | aix5*)
13399       # On AIX/PPC, the GNU linker is very broken
13400       if test "$host_cpu" != ia64; then
13401         ld_shlibs_F77=no
13402         cat <<EOF 1>&2
13403
13404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13405 *** to be unable to reliably create shared libraries on AIX.
13406 *** Therefore, libtool is disabling shared libraries support.  If you
13407 *** really care for shared libraries, you may want to modify your PATH
13408 *** so that a non-GNU linker is found, and then restart.
13409
13410 EOF
13411       fi
13412       ;;
13413
13414     amigaos*)
13415       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)'
13416       hardcode_libdir_flag_spec_F77='-L$libdir'
13417       hardcode_minus_L_F77=yes
13418
13419       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13420       # that the semantics of dynamic libraries on AmigaOS, at least up
13421       # to version 4, is to share data among multiple programs linked
13422       # with the same dynamic library.  Since this doesn't match the
13423       # behavior of shared libraries on other platforms, we can't use
13424       # them.
13425       ld_shlibs_F77=no
13426       ;;
13427
13428     beos*)
13429       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13430         allow_undefined_flag_F77=unsupported
13431         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13432         # support --undefined.  This deserves some investigation.  FIXME
13433         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13434       else
13435         ld_shlibs_F77=no
13436       fi
13437       ;;
13438
13439     cygwin* | mingw* | pw32*)
13440       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13441       # as there is no search path for DLLs.
13442       hardcode_libdir_flag_spec_F77='-L$libdir'
13443       allow_undefined_flag_F77=unsupported
13444       always_export_symbols_F77=no
13445       enable_shared_with_static_runtimes_F77=yes
13446       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13447
13448       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13449         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13450         # If the export-symbols file already is a .def file (1st line
13451         # is EXPORTS), use it as is; otherwise, prepend...
13452         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13453           cp $export_symbols $output_objdir/$soname.def;
13454         else
13455           echo EXPORTS > $output_objdir/$soname.def;
13456           cat $export_symbols >> $output_objdir/$soname.def;
13457         fi~
13458         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13459       else
13460         ld_shlibs=no
13461       fi
13462       ;;
13463
13464     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13465       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13466         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13467         wlarc=
13468       else
13469         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13471       fi
13472       ;;
13473
13474     solaris* | sysv5*)
13475       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13476         ld_shlibs_F77=no
13477         cat <<EOF 1>&2
13478
13479 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13480 *** create shared libraries on Solaris systems.  Therefore, libtool
13481 *** is disabling shared libraries support.  We urge you to upgrade GNU
13482 *** binutils to release 2.9.1 or newer.  Another option is to modify
13483 *** your PATH or compiler configuration so that the native linker is
13484 *** used, and then restart.
13485
13486 EOF
13487       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13488         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13489         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13490       else
13491         ld_shlibs_F77=no
13492       fi
13493       ;;
13494
13495     sunos4*)
13496       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13497       wlarc=
13498       hardcode_direct_F77=yes
13499       hardcode_shlibpath_var_F77=no
13500       ;;
13501
13502   linux*)
13503     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13504         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13505         archive_cmds_F77="$tmp_archive_cmds"
13506       supports_anon_versioning=no
13507       case `$LD -v 2>/dev/null` in
13508         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13509         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13510         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13511         *\ 2.11.*) ;; # other 2.11 versions
13512         *) supports_anon_versioning=yes ;;
13513       esac
13514       if test $supports_anon_versioning = yes; then
13515         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13517 $echo "local: *; };" >> $output_objdir/$libname.ver~
13518         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13519       else
13520         archive_expsym_cmds_F77="$tmp_archive_cmds"
13521       fi
13522       link_all_deplibs_F77=no
13523     else
13524       ld_shlibs_F77=no
13525     fi
13526     ;;
13527
13528     *)
13529       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13532       else
13533         ld_shlibs_F77=no
13534       fi
13535       ;;
13536     esac
13537
13538     if test "$ld_shlibs_F77" = yes; then
13539       runpath_var=LD_RUN_PATH
13540       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13541       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13542       # ancient GNU ld didn't support --whole-archive et. al.
13543       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13544         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13545       else
13546         whole_archive_flag_spec_F77=
13547       fi
13548     fi
13549   else
13550     # PORTME fill in a description of your system's linker (not GNU ld)
13551     case $host_os in
13552     aix3*)
13553       allow_undefined_flag_F77=unsupported
13554       always_export_symbols_F77=yes
13555       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'
13556       # Note: this linker hardcodes the directories in LIBPATH if there
13557       # are no directories specified by -L.
13558       hardcode_minus_L_F77=yes
13559       if test "$GCC" = yes && test -z "$link_static_flag"; then
13560         # Neither direct hardcoding nor static linking is supported with a
13561         # broken collect2.
13562         hardcode_direct_F77=unsupported
13563       fi
13564       ;;
13565
13566     aix4* | aix5*)
13567       if test "$host_cpu" = ia64; then
13568         # On IA64, the linker does run time linking by default, so we don't
13569         # have to do anything special.
13570         aix_use_runtimelinking=no
13571         exp_sym_flag='-Bexport'
13572         no_entry_flag=""
13573       else
13574         # If we're using GNU nm, then we don't want the "-C" option.
13575         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13576         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13577           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'
13578         else
13579           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'
13580         fi
13581         aix_use_runtimelinking=no
13582
13583         # Test if we are trying to use run time linking or normal
13584         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13585         # need to do runtime linking.
13586         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13587           for ld_flag in $LDFLAGS; do
13588           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13589             aix_use_runtimelinking=yes
13590             break
13591           fi
13592           done
13593         esac
13594
13595         exp_sym_flag='-bexport'
13596         no_entry_flag='-bnoentry'
13597       fi
13598
13599       # When large executables or shared objects are built, AIX ld can
13600       # have problems creating the table of contents.  If linking a library
13601       # or program results in "error TOC overflow" add -mminimal-toc to
13602       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13603       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13604
13605       archive_cmds_F77=''
13606       hardcode_direct_F77=yes
13607       hardcode_libdir_separator_F77=':'
13608       link_all_deplibs_F77=yes
13609
13610       if test "$GCC" = yes; then
13611         case $host_os in aix4.012|aix4.012.*)
13612         # We only want to do this on AIX 4.2 and lower, the check
13613         # below for broken collect2 doesn't work under 4.3+
13614           collect2name=`${CC} -print-prog-name=collect2`
13615           if test -f "$collect2name" && \
13616            strings "$collect2name" | grep resolve_lib_name >/dev/null
13617           then
13618           # We have reworked collect2
13619           hardcode_direct_F77=yes
13620           else
13621           # We have old collect2
13622           hardcode_direct_F77=unsupported
13623           # It fails to find uninstalled libraries when the uninstalled
13624           # path is not listed in the libpath.  Setting hardcode_minus_L
13625           # to unsupported forces relinking
13626           hardcode_minus_L_F77=yes
13627           hardcode_libdir_flag_spec_F77='-L$libdir'
13628           hardcode_libdir_separator_F77=
13629           fi
13630         esac
13631         shared_flag='-shared'
13632       else
13633         # not using gcc
13634         if test "$host_cpu" = ia64; then
13635         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636         # chokes on -Wl,-G. The following line is correct:
13637           shared_flag='-G'
13638         else
13639         if test "$aix_use_runtimelinking" = yes; then
13640             shared_flag='${wl}-G'
13641           else
13642             shared_flag='${wl}-bM:SRE'
13643         fi
13644         fi
13645       fi
13646
13647       # It seems that -bexpall does not export symbols beginning with
13648       # underscore (_), so it is better to generate a list of symbols to export.
13649       always_export_symbols_F77=yes
13650       if test "$aix_use_runtimelinking" = yes; then
13651         # Warning - without using the other runtime loading flags (-brtl),
13652         # -berok will link without error, but may produce a broken library.
13653         allow_undefined_flag_F77='-berok'
13654        # Determine the default libpath from the value encoded in an empty executable.
13655        cat >conftest.$ac_ext <<_ACEOF
13656       program main
13657
13658       end
13659 _ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662   (eval $ac_link) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } &&
13666          { ac_try='test -s conftest$ac_exeext'
13667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668   (eval $ac_try) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; }; then
13672
13673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13674 }'`
13675 # Check for a 64-bit object if we didn't find anything.
13676 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; }
13677 }'`; fi
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 fi
13683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13685
13686        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13687         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"
13688        else
13689         if test "$host_cpu" = ia64; then
13690           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13691           allow_undefined_flag_F77="-z nodefs"
13692           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"
13693         else
13694          # Determine the default libpath from the value encoded in an empty executable.
13695          cat >conftest.$ac_ext <<_ACEOF
13696       program main
13697
13698       end
13699 _ACEOF
13700 rm -f conftest.$ac_objext conftest$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702   (eval $ac_link) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -s conftest$ac_exeext'
13707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708   (eval $ac_try) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; }; then
13712
13713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13714 }'`
13715 # Check for a 64-bit object if we didn't find anything.
13716 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; }
13717 }'`; fi
13718 else
13719   echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13721
13722 fi
13723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13725
13726          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13727           # Warning - without using the other run time loading flags,
13728           # -berok will link without error, but may produce a broken library.
13729           no_undefined_flag_F77=' ${wl}-bernotok'
13730           allow_undefined_flag_F77=' ${wl}-berok'
13731           # -bexpall does not export symbols beginning with underscore (_)
13732           always_export_symbols_F77=yes
13733           # Exported symbols can be pulled into shared objects from archives
13734           whole_archive_flag_spec_F77=' '
13735           archive_cmds_need_lc_F77=yes
13736           # This is similar to how AIX traditionally builds it's shared libraries.
13737           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'
13738         fi
13739       fi
13740       ;;
13741
13742     amigaos*)
13743       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)'
13744       hardcode_libdir_flag_spec_F77='-L$libdir'
13745       hardcode_minus_L_F77=yes
13746       # see comment about different semantics on the GNU ld section
13747       ld_shlibs_F77=no
13748       ;;
13749
13750     bsdi4*)
13751       export_dynamic_flag_spec_F77=-rdynamic
13752       ;;
13753
13754     cygwin* | mingw* | pw32*)
13755       # When not using gcc, we currently assume that we are using
13756       # Microsoft Visual C++.
13757       # hardcode_libdir_flag_spec is actually meaningless, as there is
13758       # no search path for DLLs.
13759       hardcode_libdir_flag_spec_F77=' '
13760       allow_undefined_flag_F77=unsupported
13761       # Tell ltmain to make .lib files, not .a files.
13762       libext=lib
13763       # Tell ltmain to make .dll files, not .so files.
13764       shrext_cmds=".dll"
13765       # FIXME: Setting linknames here is a bad hack.
13766       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13767       # The linker will automatically build a .lib file if we build a DLL.
13768       old_archive_From_new_cmds_F77='true'
13769       # FIXME: Should let the user specify the lib program.
13770       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13771       fix_srcfile_path='`cygpath -w "$srcfile"`'
13772       enable_shared_with_static_runtimes_F77=yes
13773       ;;
13774
13775     darwin* | rhapsody*)
13776     if test "$GXX" = yes ; then
13777       archive_cmds_need_lc_F77=no
13778       case "$host_os" in
13779       rhapsody* | darwin1.[012])
13780         allow_undefined_flag_F77='-undefined suppress'
13781         ;;
13782       *) # Darwin 1.3 on
13783       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13784         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13785       else
13786         case ${MACOSX_DEPLOYMENT_TARGET} in
13787           10.[012])
13788             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13789             ;;
13790           10.*)
13791             allow_undefined_flag_F77='-undefined dynamic_lookup'
13792             ;;
13793         esac
13794       fi
13795         ;;
13796       esac
13797         lt_int_apple_cc_single_mod=no
13798         output_verbose_link_cmd='echo'
13799         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13800           lt_int_apple_cc_single_mod=yes
13801         fi
13802         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13803           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13804         else
13805         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13806       fi
13807       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13808       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13809         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13810           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13811         else
13812           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13813         fi
13814           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}'
13815       hardcode_direct_F77=no
13816       hardcode_automatic_F77=yes
13817       hardcode_shlibpath_var_F77=unsupported
13818       whole_archive_flag_spec_F77='-all_load $convenience'
13819       link_all_deplibs_F77=yes
13820     else
13821       ld_shlibs_F77=no
13822     fi
13823       ;;
13824
13825     dgux*)
13826       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827       hardcode_libdir_flag_spec_F77='-L$libdir'
13828       hardcode_shlibpath_var_F77=no
13829       ;;
13830
13831     freebsd1*)
13832       ld_shlibs_F77=no
13833       ;;
13834
13835     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13836     # support.  Future versions do this automatically, but an explicit c++rt0.o
13837     # does not break anything, and helps significantly (at the cost of a little
13838     # extra space).
13839     freebsd2.2*)
13840       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13841       hardcode_libdir_flag_spec_F77='-R$libdir'
13842       hardcode_direct_F77=yes
13843       hardcode_shlibpath_var_F77=no
13844       ;;
13845
13846     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13847     freebsd2*)
13848       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13849       hardcode_direct_F77=yes
13850       hardcode_minus_L_F77=yes
13851       hardcode_shlibpath_var_F77=no
13852       ;;
13853
13854     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13855     freebsd* | kfreebsd*-gnu)
13856       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13857       hardcode_libdir_flag_spec_F77='-R$libdir'
13858       hardcode_direct_F77=yes
13859       hardcode_shlibpath_var_F77=no
13860       ;;
13861
13862     hpux9*)
13863       if test "$GCC" = yes; then
13864         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'
13865       else
13866         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'
13867       fi
13868       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13869       hardcode_libdir_separator_F77=:
13870       hardcode_direct_F77=yes
13871
13872       # hardcode_minus_L: Not really in the search PATH,
13873       # but as the default location of the library.
13874       hardcode_minus_L_F77=yes
13875       export_dynamic_flag_spec_F77='${wl}-E'
13876       ;;
13877
13878     hpux10* | hpux11*)
13879       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13880         case "$host_cpu" in
13881         hppa*64*|ia64*)
13882           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13883           ;;
13884         *)
13885           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13886           ;;
13887         esac
13888       else
13889         case "$host_cpu" in
13890         hppa*64*|ia64*)
13891           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13892           ;;
13893         *)
13894           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13895           ;;
13896         esac
13897       fi
13898       if test "$with_gnu_ld" = no; then
13899         case "$host_cpu" in
13900         hppa*64*)
13901           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13902           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13903           hardcode_libdir_separator_F77=:
13904           hardcode_direct_F77=no
13905           hardcode_shlibpath_var_F77=no
13906           ;;
13907         ia64*)
13908           hardcode_libdir_flag_spec_F77='-L$libdir'
13909           hardcode_direct_F77=no
13910           hardcode_shlibpath_var_F77=no
13911
13912           # hardcode_minus_L: Not really in the search PATH,
13913           # but as the default location of the library.
13914           hardcode_minus_L_F77=yes
13915           ;;
13916         *)
13917           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13918           hardcode_libdir_separator_F77=:
13919           hardcode_direct_F77=yes
13920           export_dynamic_flag_spec_F77='${wl}-E'
13921
13922           # hardcode_minus_L: Not really in the search PATH,
13923           # but as the default location of the library.
13924           hardcode_minus_L_F77=yes
13925           ;;
13926         esac
13927       fi
13928       ;;
13929
13930     irix5* | irix6* | nonstopux*)
13931       if test "$GCC" = yes; then
13932         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'
13933       else
13934         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'
13935         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13936       fi
13937       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13938       hardcode_libdir_separator_F77=:
13939       link_all_deplibs_F77=yes
13940       ;;
13941
13942     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13943       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13944         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13945       else
13946         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13947       fi
13948       hardcode_libdir_flag_spec_F77='-R$libdir'
13949       hardcode_direct_F77=yes
13950       hardcode_shlibpath_var_F77=no
13951       ;;
13952
13953     newsos6)
13954       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955       hardcode_direct_F77=yes
13956       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13957       hardcode_libdir_separator_F77=:
13958       hardcode_shlibpath_var_F77=no
13959       ;;
13960
13961     openbsd*)
13962       hardcode_direct_F77=yes
13963       hardcode_shlibpath_var_F77=no
13964       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13965         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13966         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13967         export_dynamic_flag_spec_F77='${wl}-E'
13968       else
13969        case $host_os in
13970          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13971            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13972            hardcode_libdir_flag_spec_F77='-R$libdir'
13973            ;;
13974          *)
13975            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13976            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13977            ;;
13978        esac
13979       fi
13980       ;;
13981
13982     os2*)
13983       hardcode_libdir_flag_spec_F77='-L$libdir'
13984       hardcode_minus_L_F77=yes
13985       allow_undefined_flag_F77=unsupported
13986       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'
13987       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13988       ;;
13989
13990     osf3*)
13991       if test "$GCC" = yes; then
13992         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13993         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'
13994       else
13995         allow_undefined_flag_F77=' -expect_unresolved \*'
13996         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'
13997       fi
13998       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13999       hardcode_libdir_separator_F77=:
14000       ;;
14001
14002     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14003       if test "$GCC" = yes; then
14004         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14005         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'
14006         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14007       else
14008         allow_undefined_flag_F77=' -expect_unresolved \*'
14009         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'
14010         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~
14011         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14012
14013         # Both c and cxx compiler support -rpath directly
14014         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14015       fi
14016       hardcode_libdir_separator_F77=:
14017       ;;
14018
14019     sco3.2v5*)
14020       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021       hardcode_shlibpath_var_F77=no
14022       export_dynamic_flag_spec_F77='${wl}-Bexport'
14023       runpath_var=LD_RUN_PATH
14024       hardcode_runpath_var=yes
14025       ;;
14026
14027     solaris*)
14028       no_undefined_flag_F77=' -z text'
14029       if test "$GCC" = yes; then
14030         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14031         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14032           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14033       else
14034         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14036         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14037       fi
14038       hardcode_libdir_flag_spec_F77='-R$libdir'
14039       hardcode_shlibpath_var_F77=no
14040       case $host_os in
14041       solaris2.[0-5] | solaris2.[0-5].*) ;;
14042       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14043         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14044       esac
14045       link_all_deplibs_F77=yes
14046       ;;
14047
14048     sunos4*)
14049       if test "x$host_vendor" = xsequent; then
14050         # Use $CC to link under sequent, because it throws in some extra .o
14051         # files that make .init and .fini sections work.
14052         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14053       else
14054         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14055       fi
14056       hardcode_libdir_flag_spec_F77='-L$libdir'
14057       hardcode_direct_F77=yes
14058       hardcode_minus_L_F77=yes
14059       hardcode_shlibpath_var_F77=no
14060       ;;
14061
14062     sysv4)
14063       case $host_vendor in
14064         sni)
14065           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14066           hardcode_direct_F77=yes # is this really true???
14067         ;;
14068         siemens)
14069           ## LD is ld it makes a PLAMLIB
14070           ## CC just makes a GrossModule.
14071           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14072           reload_cmds_F77='$CC -r -o $output$reload_objs'
14073           hardcode_direct_F77=no
14074         ;;
14075         motorola)
14076           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14078         ;;
14079       esac
14080       runpath_var='LD_RUN_PATH'
14081       hardcode_shlibpath_var_F77=no
14082       ;;
14083
14084     sysv4.3*)
14085       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14086       hardcode_shlibpath_var_F77=no
14087       export_dynamic_flag_spec_F77='-Bexport'
14088       ;;
14089
14090     sysv4*MP*)
14091       if test -d /usr/nec; then
14092         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14093         hardcode_shlibpath_var_F77=no
14094         runpath_var=LD_RUN_PATH
14095         hardcode_runpath_var=yes
14096         ld_shlibs_F77=yes
14097       fi
14098       ;;
14099
14100     sysv4.2uw2*)
14101       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14102       hardcode_direct_F77=yes
14103       hardcode_minus_L_F77=no
14104       hardcode_shlibpath_var_F77=no
14105       hardcode_runpath_var=yes
14106       runpath_var=LD_RUN_PATH
14107       ;;
14108
14109    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14110       no_undefined_flag_F77='${wl}-z ${wl}text'
14111       if test "$GCC" = yes; then
14112         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14113       else
14114         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14115       fi
14116       runpath_var='LD_RUN_PATH'
14117       hardcode_shlibpath_var_F77=no
14118       ;;
14119
14120     sysv5*)
14121       no_undefined_flag_F77=' -z text'
14122       # $CC -shared without GNU ld will not create a library from C++
14123       # object files and a static libstdc++, better avoid it by now
14124       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14125       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14126                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14127       hardcode_libdir_flag_spec_F77=
14128       hardcode_shlibpath_var_F77=no
14129       runpath_var='LD_RUN_PATH'
14130       ;;
14131
14132     uts4*)
14133       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14134       hardcode_libdir_flag_spec_F77='-L$libdir'
14135       hardcode_shlibpath_var_F77=no
14136       ;;
14137
14138     *)
14139       ld_shlibs_F77=no
14140       ;;
14141     esac
14142   fi
14143
14144 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14145 echo "${ECHO_T}$ld_shlibs_F77" >&6
14146 test "$ld_shlibs_F77" = no && can_build_shared=no
14147
14148 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14149 if test "$GCC" = yes; then
14150   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14151 fi
14152
14153 #
14154 # Do we need to explicitly link libc?
14155 #
14156 case "x$archive_cmds_need_lc_F77" in
14157 x|xyes)
14158   # Assume -lc should be added
14159   archive_cmds_need_lc_F77=yes
14160
14161   if test "$enable_shared" = yes && test "$GCC" = yes; then
14162     case $archive_cmds_F77 in
14163     *'~'*)
14164       # FIXME: we may have to deal with multi-command sequences.
14165       ;;
14166     '$CC '*)
14167       # Test whether the compiler implicitly links with -lc since on some
14168       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14169       # to ld, don't add -lc before -lgcc.
14170       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14171 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14172       $rm conftest*
14173       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14174
14175       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176   (eval $ac_compile) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } 2>conftest.err; then
14180         soname=conftest
14181         lib=conftest
14182         libobjs=conftest.$ac_objext
14183         deplibs=
14184         wl=$lt_prog_compiler_wl_F77
14185         compiler_flags=-v
14186         linker_flags=-v
14187         verstring=
14188         output_objdir=.
14189         libname=conftest
14190         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14191         allow_undefined_flag_F77=
14192         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14193   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }
14197         then
14198           archive_cmds_need_lc_F77=no
14199         else
14200           archive_cmds_need_lc_F77=yes
14201         fi
14202         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14203       else
14204         cat conftest.err 1>&5
14205       fi
14206       $rm conftest*
14207       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14208 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14209       ;;
14210     esac
14211   fi
14212   ;;
14213 esac
14214
14215 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14216 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14217 library_names_spec=
14218 libname_spec='lib$name'
14219 soname_spec=
14220 shrext_cmds=".so"
14221 postinstall_cmds=
14222 postuninstall_cmds=
14223 finish_cmds=
14224 finish_eval=
14225 shlibpath_var=
14226 shlibpath_overrides_runpath=unknown
14227 version_type=none
14228 dynamic_linker="$host_os ld.so"
14229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14230 if test "$GCC" = yes; then
14231   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14232   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14233     # if the path contains ";" then we assume it to be the separator
14234     # otherwise default to the standard path separator (i.e. ":") - it is
14235     # assumed that no part of a normal pathname contains ";" but that should
14236     # okay in the real world where ";" in dirpaths is itself problematic.
14237     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14238   else
14239     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14240   fi
14241 else
14242   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14243 fi
14244 need_lib_prefix=unknown
14245 hardcode_into_libs=no
14246
14247 # when you set need_version to no, make sure it does not cause -set_version
14248 # flags to be left without arguments
14249 need_version=unknown
14250
14251 case $host_os in
14252 aix3*)
14253   version_type=linux
14254   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14255   shlibpath_var=LIBPATH
14256
14257   # AIX 3 has no versioning support, so we append a major version to the name.
14258   soname_spec='${libname}${release}${shared_ext}$major'
14259   ;;
14260
14261 aix4* | aix5*)
14262   version_type=linux
14263   need_lib_prefix=no
14264   need_version=no
14265   hardcode_into_libs=yes
14266   if test "$host_cpu" = ia64; then
14267     # AIX 5 supports IA64
14268     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14269     shlibpath_var=LD_LIBRARY_PATH
14270   else
14271     # With GCC up to 2.95.x, collect2 would create an import file
14272     # for dependence libraries.  The import file would start with
14273     # the line `#! .'.  This would cause the generated library to
14274     # depend on `.', always an invalid library.  This was fixed in
14275     # development snapshots of GCC prior to 3.0.
14276     case $host_os in
14277       aix4 | aix4.[01] | aix4.[01].*)
14278       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14279            echo ' yes '
14280            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14281         :
14282       else
14283         can_build_shared=no
14284       fi
14285       ;;
14286     esac
14287     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14288     # soname into executable. Probably we can add versioning support to
14289     # collect2, so additional links can be useful in future.
14290     if test "$aix_use_runtimelinking" = yes; then
14291       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14292       # instead of lib<name>.a to let people know that these are not
14293       # typical AIX shared libraries.
14294       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14295     else
14296       # We preserve .a as extension for shared libraries through AIX4.2
14297       # and later when we are not doing run time linking.
14298       library_names_spec='${libname}${release}.a $libname.a'
14299       soname_spec='${libname}${release}${shared_ext}$major'
14300     fi
14301     shlibpath_var=LIBPATH
14302   fi
14303   ;;
14304
14305 amigaos*)
14306   library_names_spec='$libname.ixlibrary $libname.a'
14307   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14308   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'
14309   ;;
14310
14311 beos*)
14312   library_names_spec='${libname}${shared_ext}'
14313   dynamic_linker="$host_os ld.so"
14314   shlibpath_var=LIBRARY_PATH
14315   ;;
14316
14317 bsdi4*)
14318   version_type=linux
14319   need_version=no
14320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321   soname_spec='${libname}${release}${shared_ext}$major'
14322   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14323   shlibpath_var=LD_LIBRARY_PATH
14324   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14325   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14326   # the default ld.so.conf also contains /usr/contrib/lib and
14327   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14328   # libtool to hard-code these into programs
14329   ;;
14330
14331 cygwin* | mingw* | pw32*)
14332   version_type=windows
14333   shrext_cmds=".dll"
14334   need_version=no
14335   need_lib_prefix=no
14336
14337   case $GCC,$host_os in
14338   yes,cygwin* | yes,mingw* | yes,pw32*)
14339     library_names_spec='$libname.dll.a'
14340     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14341     postinstall_cmds='base_file=`basename \${file}`~
14342       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14343       dldir=$destdir/`dirname \$dlpath`~
14344       test -d \$dldir || mkdir -p \$dldir~
14345       $install_prog $dir/$dlname \$dldir/$dlname'
14346     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14347       dlpath=$dir/\$dldll~
14348        $rm \$dlpath'
14349     shlibpath_overrides_runpath=yes
14350
14351     case $host_os in
14352     cygwin*)
14353       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14354       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14355       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14356       ;;
14357     mingw*)
14358       # MinGW DLLs use traditional 'lib' prefix
14359       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14360       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14361       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14362         # It is most probably a Windows format PATH printed by
14363         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14364         # path with ; separators, and with drive letters. We can handle the
14365         # drive letters (cygwin fileutils understands them), so leave them,
14366         # especially as we might pass files found there to a mingw objdump,
14367         # which wouldn't understand a cygwinified path. Ahh.
14368         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14369       else
14370         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14371       fi
14372       ;;
14373     pw32*)
14374       # pw32 DLLs use 'pw' prefix rather than 'lib'
14375       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14376       ;;
14377     esac
14378     ;;
14379
14380   *)
14381     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14382     ;;
14383   esac
14384   dynamic_linker='Win32 ld.exe'
14385   # FIXME: first we should search . and the directory the executable is in
14386   shlibpath_var=PATH
14387   ;;
14388
14389 darwin* | rhapsody*)
14390   dynamic_linker="$host_os dyld"
14391   version_type=darwin
14392   need_lib_prefix=no
14393   need_version=no
14394   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14395   soname_spec='${libname}${release}${major}$shared_ext'
14396   shlibpath_overrides_runpath=yes
14397   shlibpath_var=DYLD_LIBRARY_PATH
14398   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14399   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14400   if test "$GCC" = yes; then
14401     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"`
14402   else
14403     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14404   fi
14405   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14406   ;;
14407
14408 dgux*)
14409   version_type=linux
14410   need_lib_prefix=no
14411   need_version=no
14412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14413   soname_spec='${libname}${release}${shared_ext}$major'
14414   shlibpath_var=LD_LIBRARY_PATH
14415   ;;
14416
14417 freebsd1*)
14418   dynamic_linker=no
14419   ;;
14420
14421 kfreebsd*-gnu)
14422   version_type=linux
14423   need_lib_prefix=no
14424   need_version=no
14425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14426   soname_spec='${libname}${release}${shared_ext}$major'
14427   shlibpath_var=LD_LIBRARY_PATH
14428   shlibpath_overrides_runpath=no
14429   hardcode_into_libs=yes
14430   dynamic_linker='GNU ld.so'
14431   ;;
14432
14433 freebsd*)
14434   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14435   version_type=freebsd-$objformat
14436   case $version_type in
14437     freebsd-elf*)
14438       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14439       need_version=no
14440       need_lib_prefix=no
14441       ;;
14442     freebsd-*)
14443       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14444       need_version=yes
14445       ;;
14446   esac
14447   shlibpath_var=LD_LIBRARY_PATH
14448   case $host_os in
14449   freebsd2*)
14450     shlibpath_overrides_runpath=yes
14451     ;;
14452   freebsd3.01* | freebsdelf3.01*)
14453     shlibpath_overrides_runpath=yes
14454     hardcode_into_libs=yes
14455     ;;
14456   *) # from 3.2 on
14457     shlibpath_overrides_runpath=no
14458     hardcode_into_libs=yes
14459     ;;
14460   esac
14461   ;;
14462
14463 gnu*)
14464   version_type=linux
14465   need_lib_prefix=no
14466   need_version=no
14467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14468   soname_spec='${libname}${release}${shared_ext}$major'
14469   shlibpath_var=LD_LIBRARY_PATH
14470   hardcode_into_libs=yes
14471   ;;
14472
14473 hpux9* | hpux10* | hpux11*)
14474   # Give a soname corresponding to the major version so that dld.sl refuses to
14475   # link against other versions.
14476   version_type=sunos
14477   need_lib_prefix=no
14478   need_version=no
14479   case "$host_cpu" in
14480   ia64*)
14481     shrext_cmds='.so'
14482     hardcode_into_libs=yes
14483     dynamic_linker="$host_os dld.so"
14484     shlibpath_var=LD_LIBRARY_PATH
14485     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487     soname_spec='${libname}${release}${shared_ext}$major'
14488     if test "X$HPUX_IA64_MODE" = X32; then
14489       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14490     else
14491       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14492     fi
14493     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14494     ;;
14495    hppa*64*)
14496      shrext_cmds='.sl'
14497      hardcode_into_libs=yes
14498      dynamic_linker="$host_os dld.sl"
14499      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14500      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14501      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502      soname_spec='${libname}${release}${shared_ext}$major'
14503      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14504      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14505      ;;
14506    *)
14507     shrext_cmds='.sl'
14508     dynamic_linker="$host_os dld.sl"
14509     shlibpath_var=SHLIB_PATH
14510     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512     soname_spec='${libname}${release}${shared_ext}$major'
14513     ;;
14514   esac
14515   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14516   postinstall_cmds='chmod 555 $lib'
14517   ;;
14518
14519 irix5* | irix6* | nonstopux*)
14520   case $host_os in
14521     nonstopux*) version_type=nonstopux ;;
14522     *)
14523         if test "$lt_cv_prog_gnu_ld" = yes; then
14524                 version_type=linux
14525         else
14526                 version_type=irix
14527         fi ;;
14528   esac
14529   need_lib_prefix=no
14530   need_version=no
14531   soname_spec='${libname}${release}${shared_ext}$major'
14532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14533   case $host_os in
14534   irix5* | nonstopux*)
14535     libsuff= shlibsuff=
14536     ;;
14537   *)
14538     case $LD in # libtool.m4 will add one of these switches to LD
14539     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14540       libsuff= shlibsuff= libmagic=32-bit;;
14541     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14542       libsuff=32 shlibsuff=N32 libmagic=N32;;
14543     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14544       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14545     *) libsuff= shlibsuff= libmagic=never-match;;
14546     esac
14547     ;;
14548   esac
14549   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14550   shlibpath_overrides_runpath=no
14551   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14552   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14553   hardcode_into_libs=yes
14554   ;;
14555
14556 # No shared lib support for Linux oldld, aout, or coff.
14557 linux*oldld* | linux*aout* | linux*coff*)
14558   dynamic_linker=no
14559   ;;
14560
14561 # This must be Linux ELF.
14562 linux*)
14563   version_type=linux
14564   need_lib_prefix=no
14565   need_version=no
14566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567   soname_spec='${libname}${release}${shared_ext}$major'
14568   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14569   shlibpath_var=LD_LIBRARY_PATH
14570   shlibpath_overrides_runpath=no
14571   # This implies no fast_install, which is unacceptable.
14572   # Some rework will be needed to allow for fast_install
14573   # before this can be enabled.
14574   hardcode_into_libs=yes
14575
14576   # Append ld.so.conf contents to the search path
14577   if test -f /etc/ld.so.conf; then
14578     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14579     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14580   fi
14581
14582   # We used to test for /lib/ld.so.1 and disable shared libraries on
14583   # powerpc, because MkLinux only supported shared libraries with the
14584   # GNU dynamic linker.  Since this was broken with cross compilers,
14585   # most powerpc-linux boxes support dynamic linking these days and
14586   # people can always --disable-shared, the test was removed, and we
14587   # assume the GNU/Linux dynamic linker is in use.
14588   dynamic_linker='GNU/Linux ld.so'
14589   ;;
14590
14591 netbsdelf*-gnu)
14592   version_type=linux
14593   need_lib_prefix=no
14594   need_version=no
14595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14596   soname_spec='${libname}${release}${shared_ext}$major'
14597   shlibpath_var=LD_LIBRARY_PATH
14598   shlibpath_overrides_runpath=no
14599   hardcode_into_libs=yes
14600   dynamic_linker='NetBSD ld.elf_so'
14601   ;;
14602
14603 knetbsd*-gnu)
14604   version_type=linux
14605   need_lib_prefix=no
14606   need_version=no
14607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14608   soname_spec='${libname}${release}${shared_ext}$major'
14609   shlibpath_var=LD_LIBRARY_PATH
14610   shlibpath_overrides_runpath=no
14611   hardcode_into_libs=yes
14612   dynamic_linker='GNU ld.so'
14613   ;;
14614
14615 netbsd*)
14616   version_type=sunos
14617   need_lib_prefix=no
14618   need_version=no
14619   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14621     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14622     dynamic_linker='NetBSD (a.out) ld.so'
14623   else
14624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625     soname_spec='${libname}${release}${shared_ext}$major'
14626     dynamic_linker='NetBSD ld.elf_so'
14627   fi
14628   shlibpath_var=LD_LIBRARY_PATH
14629   shlibpath_overrides_runpath=yes
14630   hardcode_into_libs=yes
14631   ;;
14632
14633 newsos6)
14634   version_type=linux
14635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636   shlibpath_var=LD_LIBRARY_PATH
14637   shlibpath_overrides_runpath=yes
14638   ;;
14639
14640 nto-qnx*)
14641   version_type=linux
14642   need_lib_prefix=no
14643   need_version=no
14644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645   soname_spec='${libname}${release}${shared_ext}$major'
14646   shlibpath_var=LD_LIBRARY_PATH
14647   shlibpath_overrides_runpath=yes
14648   ;;
14649
14650 openbsd*)
14651   version_type=sunos
14652   need_lib_prefix=no
14653   need_version=yes
14654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14656   shlibpath_var=LD_LIBRARY_PATH
14657   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14658     case $host_os in
14659       openbsd2.[89] | openbsd2.[89].*)
14660         shlibpath_overrides_runpath=no
14661         ;;
14662       *)
14663         shlibpath_overrides_runpath=yes
14664         ;;
14665       esac
14666   else
14667     shlibpath_overrides_runpath=yes
14668   fi
14669   ;;
14670
14671 os2*)
14672   libname_spec='$name'
14673   shrext_cmds=".dll"
14674   need_lib_prefix=no
14675   library_names_spec='$libname${shared_ext} $libname.a'
14676   dynamic_linker='OS/2 ld.exe'
14677   shlibpath_var=LIBPATH
14678   ;;
14679
14680 osf3* | osf4* | osf5*)
14681   version_type=osf
14682   need_lib_prefix=no
14683   need_version=no
14684   soname_spec='${libname}${release}${shared_ext}$major'
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14689   ;;
14690
14691 sco3.2v5*)
14692   version_type=osf
14693   soname_spec='${libname}${release}${shared_ext}$major'
14694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695   shlibpath_var=LD_LIBRARY_PATH
14696   ;;
14697
14698 solaris*)
14699   version_type=linux
14700   need_lib_prefix=no
14701   need_version=no
14702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703   soname_spec='${libname}${release}${shared_ext}$major'
14704   shlibpath_var=LD_LIBRARY_PATH
14705   shlibpath_overrides_runpath=yes
14706   hardcode_into_libs=yes
14707   # ldd complains unless libraries are executable
14708   postinstall_cmds='chmod +x $lib'
14709   ;;
14710
14711 sunos4*)
14712   version_type=sunos
14713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14715   shlibpath_var=LD_LIBRARY_PATH
14716   shlibpath_overrides_runpath=yes
14717   if test "$with_gnu_ld" = yes; then
14718     need_lib_prefix=no
14719   fi
14720   need_version=yes
14721   ;;
14722
14723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14724   version_type=linux
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726   soname_spec='${libname}${release}${shared_ext}$major'
14727   shlibpath_var=LD_LIBRARY_PATH
14728   case $host_vendor in
14729     sni)
14730       shlibpath_overrides_runpath=no
14731       need_lib_prefix=no
14732       export_dynamic_flag_spec='${wl}-Blargedynsym'
14733       runpath_var=LD_RUN_PATH
14734       ;;
14735     siemens)
14736       need_lib_prefix=no
14737       ;;
14738     motorola)
14739       need_lib_prefix=no
14740       need_version=no
14741       shlibpath_overrides_runpath=no
14742       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14743       ;;
14744   esac
14745   ;;
14746
14747 sysv4*MP*)
14748   if test -d /usr/nec ;then
14749     version_type=linux
14750     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14751     soname_spec='$libname${shared_ext}.$major'
14752     shlibpath_var=LD_LIBRARY_PATH
14753   fi
14754   ;;
14755
14756 uts4*)
14757   version_type=linux
14758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759   soname_spec='${libname}${release}${shared_ext}$major'
14760   shlibpath_var=LD_LIBRARY_PATH
14761   ;;
14762
14763 *)
14764   dynamic_linker=no
14765   ;;
14766 esac
14767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14768 echo "${ECHO_T}$dynamic_linker" >&6
14769 test "$dynamic_linker" = no && can_build_shared=no
14770
14771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14773 hardcode_action_F77=
14774 if test -n "$hardcode_libdir_flag_spec_F77" || \
14775    test -n "$runpath_var F77" || \
14776    test "X$hardcode_automatic_F77"="Xyes" ; then
14777
14778   # We can hardcode non-existant directories.
14779   if test "$hardcode_direct_F77" != no &&
14780      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14781      # have to relink, otherwise we might link with an installed library
14782      # when we should be linking with a yet-to-be-installed one
14783      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14784      test "$hardcode_minus_L_F77" != no; then
14785     # Linking always hardcodes the temporary library directory.
14786     hardcode_action_F77=relink
14787   else
14788     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14789     hardcode_action_F77=immediate
14790   fi
14791 else
14792   # We cannot hardcode anything, or else we can only hardcode existing
14793   # directories.
14794   hardcode_action_F77=unsupported
14795 fi
14796 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14797 echo "${ECHO_T}$hardcode_action_F77" >&6
14798
14799 if test "$hardcode_action_F77" = relink; then
14800   # Fast installation is not supported
14801   enable_fast_install=no
14802 elif test "$shlibpath_overrides_runpath" = yes ||
14803      test "$enable_shared" = no; then
14804   # Fast installation is not necessary
14805   enable_fast_install=needless
14806 fi
14807
14808 striplib=
14809 old_striplib=
14810 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14812 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14813   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14814   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14815   echo "$as_me:$LINENO: result: yes" >&5
14816 echo "${ECHO_T}yes" >&6
14817 else
14818 # FIXME - insert some real tests, host_os isn't really good enough
14819   case $host_os in
14820    darwin*)
14821        if test -n "$STRIP" ; then
14822          striplib="$STRIP -x"
14823          echo "$as_me:$LINENO: result: yes" >&5
14824 echo "${ECHO_T}yes" >&6
14825        else
14826   echo "$as_me:$LINENO: result: no" >&5
14827 echo "${ECHO_T}no" >&6
14828 fi
14829        ;;
14830    *)
14831   echo "$as_me:$LINENO: result: no" >&5
14832 echo "${ECHO_T}no" >&6
14833     ;;
14834   esac
14835 fi
14836
14837
14838
14839 # The else clause should only fire when bootstrapping the
14840 # libtool distribution, otherwise you forgot to ship ltmain.sh
14841 # with your package, and you will get complaints that there are
14842 # no rules to generate ltmain.sh.
14843 if test -f "$ltmain"; then
14844   # See if we are running on zsh, and set the options which allow our commands through
14845   # without removal of \ escapes.
14846   if test -n "${ZSH_VERSION+set}" ; then
14847     setopt NO_GLOB_SUBST
14848   fi
14849   # Now quote all the things that may contain metacharacters while being
14850   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14851   # variables and quote the copies for generation of the libtool script.
14852   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14853     SED SHELL STRIP \
14854     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14855     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14856     deplibs_check_method reload_flag reload_cmds need_locks \
14857     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14858     lt_cv_sys_global_symbol_to_c_name_address \
14859     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14860     old_postinstall_cmds old_postuninstall_cmds \
14861     compiler_F77 \
14862     CC_F77 \
14863     LD_F77 \
14864     lt_prog_compiler_wl_F77 \
14865     lt_prog_compiler_pic_F77 \
14866     lt_prog_compiler_static_F77 \
14867     lt_prog_compiler_no_builtin_flag_F77 \
14868     export_dynamic_flag_spec_F77 \
14869     thread_safe_flag_spec_F77 \
14870     whole_archive_flag_spec_F77 \
14871     enable_shared_with_static_runtimes_F77 \
14872     old_archive_cmds_F77 \
14873     old_archive_from_new_cmds_F77 \
14874     predep_objects_F77 \
14875     postdep_objects_F77 \
14876     predeps_F77 \
14877     postdeps_F77 \
14878     compiler_lib_search_path_F77 \
14879     archive_cmds_F77 \
14880     archive_expsym_cmds_F77 \
14881     postinstall_cmds_F77 \
14882     postuninstall_cmds_F77 \
14883     old_archive_from_expsyms_cmds_F77 \
14884     allow_undefined_flag_F77 \
14885     no_undefined_flag_F77 \
14886     export_symbols_cmds_F77 \
14887     hardcode_libdir_flag_spec_F77 \
14888     hardcode_libdir_flag_spec_ld_F77 \
14889     hardcode_libdir_separator_F77 \
14890     hardcode_automatic_F77 \
14891     module_cmds_F77 \
14892     module_expsym_cmds_F77 \
14893     lt_cv_prog_compiler_c_o_F77 \
14894     exclude_expsyms_F77 \
14895     include_expsyms_F77; do
14896
14897     case $var in
14898     old_archive_cmds_F77 | \
14899     old_archive_from_new_cmds_F77 | \
14900     archive_cmds_F77 | \
14901     archive_expsym_cmds_F77 | \
14902     module_cmds_F77 | \
14903     module_expsym_cmds_F77 | \
14904     old_archive_from_expsyms_cmds_F77 | \
14905     export_symbols_cmds_F77 | \
14906     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14907     postinstall_cmds | postuninstall_cmds | \
14908     old_postinstall_cmds | old_postuninstall_cmds | \
14909     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14910       # Double-quote double-evaled strings.
14911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14912       ;;
14913     *)
14914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14915       ;;
14916     esac
14917   done
14918
14919   case $lt_echo in
14920   *'\$0 --fallback-echo"')
14921     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14922     ;;
14923   esac
14924
14925 cfgfile="$ofile"
14926
14927   cat <<__EOF__ >> "$cfgfile"
14928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14929
14930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14931
14932 # Shell to use when invoking shell scripts.
14933 SHELL=$lt_SHELL
14934
14935 # Whether or not to build shared libraries.
14936 build_libtool_libs=$enable_shared
14937
14938 # Whether or not to build static libraries.
14939 build_old_libs=$enable_static
14940
14941 # Whether or not to add -lc for building shared libraries.
14942 build_libtool_need_lc=$archive_cmds_need_lc_F77
14943
14944 # Whether or not to disallow shared libs when runtime libs are static
14945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14946
14947 # Whether or not to optimize for fast installation.
14948 fast_install=$enable_fast_install
14949
14950 # The host system.
14951 host_alias=$host_alias
14952 host=$host
14953
14954 # An echo program that does not interpret backslashes.
14955 echo=$lt_echo
14956
14957 # The archiver.
14958 AR=$lt_AR
14959 AR_FLAGS=$lt_AR_FLAGS
14960
14961 # A C compiler.
14962 LTCC=$lt_LTCC
14963
14964 # A language-specific compiler.
14965 CC=$lt_compiler_F77
14966
14967 # Is the compiler the GNU C compiler?
14968 with_gcc=$GCC_F77
14969
14970 # An ERE matcher.
14971 EGREP=$lt_EGREP
14972
14973 # The linker used to build libraries.
14974 LD=$lt_LD_F77
14975
14976 # Whether we need hard or soft links.
14977 LN_S=$lt_LN_S
14978
14979 # A BSD-compatible nm program.
14980 NM=$lt_NM
14981
14982 # A symbol stripping program
14983 STRIP=$lt_STRIP
14984
14985 # Used to examine libraries when file_magic_cmd begins "file"
14986 MAGIC_CMD=$MAGIC_CMD
14987
14988 # Used on cygwin: DLL creation program.
14989 DLLTOOL="$DLLTOOL"
14990
14991 # Used on cygwin: object dumper.
14992 OBJDUMP="$OBJDUMP"
14993
14994 # Used on cygwin: assembler.
14995 AS="$AS"
14996
14997 # The name of the directory that contains temporary libtool files.
14998 objdir=$objdir
14999
15000 # How to create reloadable object files.
15001 reload_flag=$lt_reload_flag
15002 reload_cmds=$lt_reload_cmds
15003
15004 # How to pass a linker flag through the compiler.
15005 wl=$lt_lt_prog_compiler_wl_F77
15006
15007 # Object file suffix (normally "o").
15008 objext="$ac_objext"
15009
15010 # Old archive suffix (normally "a").
15011 libext="$libext"
15012
15013 # Shared library suffix (normally ".so").
15014 shrext_cmds='$shrext_cmds'
15015
15016 # Executable file suffix (normally "").
15017 exeext="$exeext"
15018
15019 # Additional compiler flags for building library objects.
15020 pic_flag=$lt_lt_prog_compiler_pic_F77
15021 pic_mode=$pic_mode
15022
15023 # What is the maximum length of a command?
15024 max_cmd_len=$lt_cv_sys_max_cmd_len
15025
15026 # Does compiler simultaneously support -c and -o options?
15027 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15028
15029 # Must we lock files when doing compilation ?
15030 need_locks=$lt_need_locks
15031
15032 # Do we need the lib prefix for modules?
15033 need_lib_prefix=$need_lib_prefix
15034
15035 # Do we need a version for libraries?
15036 need_version=$need_version
15037
15038 # Whether dlopen is supported.
15039 dlopen_support=$enable_dlopen
15040
15041 # Whether dlopen of programs is supported.
15042 dlopen_self=$enable_dlopen_self
15043
15044 # Whether dlopen of statically linked programs is supported.
15045 dlopen_self_static=$enable_dlopen_self_static
15046
15047 # Compiler flag to prevent dynamic linking.
15048 link_static_flag=$lt_lt_prog_compiler_static_F77
15049
15050 # Compiler flag to turn off builtin functions.
15051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15052
15053 # Compiler flag to allow reflexive dlopens.
15054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15055
15056 # Compiler flag to generate shared objects directly from archives.
15057 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15058
15059 # Compiler flag to generate thread-safe objects.
15060 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15061
15062 # Library versioning type.
15063 version_type=$version_type
15064
15065 # Format of library name prefix.
15066 libname_spec=$lt_libname_spec
15067
15068 # List of archive names.  First name is the real one, the rest are links.
15069 # The last name is the one that the linker finds with -lNAME.
15070 library_names_spec=$lt_library_names_spec
15071
15072 # The coded name of the library, if different from the real name.
15073 soname_spec=$lt_soname_spec
15074
15075 # Commands used to build and install an old-style archive.
15076 RANLIB=$lt_RANLIB
15077 old_archive_cmds=$lt_old_archive_cmds_F77
15078 old_postinstall_cmds=$lt_old_postinstall_cmds
15079 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15080
15081 # Create an old-style archive from a shared archive.
15082 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15083
15084 # Create a temporary old-style archive to link instead of a shared archive.
15085 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15086
15087 # Commands used to build and install a shared archive.
15088 archive_cmds=$lt_archive_cmds_F77
15089 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15090 postinstall_cmds=$lt_postinstall_cmds
15091 postuninstall_cmds=$lt_postuninstall_cmds
15092
15093 # Commands used to build a loadable module (assumed same as above if empty)
15094 module_cmds=$lt_module_cmds_F77
15095 module_expsym_cmds=$lt_module_expsym_cmds_F77
15096
15097 # Commands to strip libraries.
15098 old_striplib=$lt_old_striplib
15099 striplib=$lt_striplib
15100
15101 # Dependencies to place before the objects being linked to create a
15102 # shared library.
15103 predep_objects=$lt_predep_objects_F77
15104
15105 # Dependencies to place after the objects being linked to create a
15106 # shared library.
15107 postdep_objects=$lt_postdep_objects_F77
15108
15109 # Dependencies to place before the objects being linked to create a
15110 # shared library.
15111 predeps=$lt_predeps_F77
15112
15113 # Dependencies to place after the objects being linked to create a
15114 # shared library.
15115 postdeps=$lt_postdeps_F77
15116
15117 # The library search path used internally by the compiler when linking
15118 # a shared library.
15119 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15120
15121 # Method to check whether dependent libraries are shared objects.
15122 deplibs_check_method=$lt_deplibs_check_method
15123
15124 # Command to use when deplibs_check_method == file_magic.
15125 file_magic_cmd=$lt_file_magic_cmd
15126
15127 # Flag that allows shared libraries with undefined symbols to be built.
15128 allow_undefined_flag=$lt_allow_undefined_flag_F77
15129
15130 # Flag that forces no undefined symbols.
15131 no_undefined_flag=$lt_no_undefined_flag_F77
15132
15133 # Commands used to finish a libtool library installation in a directory.
15134 finish_cmds=$lt_finish_cmds
15135
15136 # Same as above, but a single script fragment to be evaled but not shown.
15137 finish_eval=$lt_finish_eval
15138
15139 # Take the output of nm and produce a listing of raw symbols and C names.
15140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15141
15142 # Transform the output of nm in a proper C declaration
15143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15144
15145 # Transform the output of nm in a C name address pair
15146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15147
15148 # This is the shared library runtime path variable.
15149 runpath_var=$runpath_var
15150
15151 # This is the shared library path variable.
15152 shlibpath_var=$shlibpath_var
15153
15154 # Is shlibpath searched before the hard-coded library search path?
15155 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15156
15157 # How to hardcode a shared library path into an executable.
15158 hardcode_action=$hardcode_action_F77
15159
15160 # Whether we should hardcode library paths into libraries.
15161 hardcode_into_libs=$hardcode_into_libs
15162
15163 # Flag to hardcode \$libdir into a binary during linking.
15164 # This must work even if \$libdir does not exist.
15165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15166
15167 # If ld is used when linking, flag to hardcode \$libdir into
15168 # a binary during linking. This must work even if \$libdir does
15169 # not exist.
15170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15171
15172 # Whether we need a single -rpath flag with a separated argument.
15173 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15174
15175 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15176 # resulting binary.
15177 hardcode_direct=$hardcode_direct_F77
15178
15179 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15180 # resulting binary.
15181 hardcode_minus_L=$hardcode_minus_L_F77
15182
15183 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15184 # the resulting binary.
15185 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15186
15187 # Set to yes if building a shared library automatically hardcodes DIR into the library
15188 # and all subsequent libraries and executables linked against it.
15189 hardcode_automatic=$hardcode_automatic_F77
15190
15191 # Variables whose values should be saved in libtool wrapper scripts and
15192 # restored at relink time.
15193 variables_saved_for_relink="$variables_saved_for_relink"
15194
15195 # Whether libtool must link a program against all its dependency libraries.
15196 link_all_deplibs=$link_all_deplibs_F77
15197
15198 # Compile-time system search path for libraries
15199 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15200
15201 # Run-time system search path for libraries
15202 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15203
15204 # Fix the shell variable \$srcfile for the compiler.
15205 fix_srcfile_path="$fix_srcfile_path_F77"
15206
15207 # Set to yes if exported symbols are required.
15208 always_export_symbols=$always_export_symbols_F77
15209
15210 # The commands to list exported symbols.
15211 export_symbols_cmds=$lt_export_symbols_cmds_F77
15212
15213 # The commands to extract the exported symbol list from a shared archive.
15214 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15215
15216 # Symbols that should not be listed in the preloaded symbols.
15217 exclude_expsyms=$lt_exclude_expsyms_F77
15218
15219 # Symbols that must always be exported.
15220 include_expsyms=$lt_include_expsyms_F77
15221
15222 # ### END LIBTOOL TAG CONFIG: $tagname
15223
15224 __EOF__
15225
15226
15227 else
15228   # If there is no Makefile yet, we rely on a make rule to execute
15229   # `config.status --recheck' to rerun these tests and create the
15230   # libtool script then.
15231   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15232   if test -f "$ltmain_in"; then
15233     test -f Makefile && make "$ltmain"
15234   fi
15235 fi
15236
15237
15238 ac_ext=c
15239 ac_cpp='$CPP $CPPFLAGS'
15240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15243
15244 CC="$lt_save_CC"
15245
15246         else
15247           tagname=""
15248         fi
15249         ;;
15250
15251       GCJ)
15252         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15253
15254
15255
15256 # Source file extension for Java test sources.
15257 ac_ext=java
15258
15259 # Object file extension for compiled Java test sources.
15260 objext=o
15261 objext_GCJ=$objext
15262
15263 # Code to be used in simple compile tests
15264 lt_simple_compile_test_code="class foo {}\n"
15265
15266 # Code to be used in simple link tests
15267 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15268
15269 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15270
15271 # If no C compiler was specified, use CC.
15272 LTCC=${LTCC-"$CC"}
15273
15274 # Allow CC to be a program name with arguments.
15275 compiler=$CC
15276
15277
15278 # Allow CC to be a program name with arguments.
15279 lt_save_CC="$CC"
15280 CC=${GCJ-"gcj"}
15281 compiler=$CC
15282 compiler_GCJ=$CC
15283
15284 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15285 archive_cmds_need_lc_GCJ=no
15286
15287
15288 lt_prog_compiler_no_builtin_flag_GCJ=
15289
15290 if test "$GCC" = yes; then
15291   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15292
15293
15294 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15295 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15296 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   lt_cv_prog_compiler_rtti_exceptions=no
15300   ac_outfile=conftest.$ac_objext
15301    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15302    lt_compiler_flag="-fno-rtti -fno-exceptions"
15303    # Insert the option either (1) after the last *FLAGS variable, or
15304    # (2) before a word containing "conftest.", or (3) at the end.
15305    # Note that $ac_compile itself does not contain backslashes and begins
15306    # with a dollar sign (not a hyphen), so the echo should work correctly.
15307    # The option is referenced via a variable to avoid confusing sed.
15308    lt_compile=`echo "$ac_compile" | $SED \
15309    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15311    -e 's:$: $lt_compiler_flag:'`
15312    (eval echo "\"\$as_me:15312: $lt_compile\"" >&5)
15313    (eval "$lt_compile" 2>conftest.err)
15314    ac_status=$?
15315    cat conftest.err >&5
15316    echo "$as_me:15316: \$? = $ac_status" >&5
15317    if (exit $ac_status) && test -s "$ac_outfile"; then
15318      # The compiler can only warn and ignore the option if not recognized
15319      # So say no if there are warnings
15320      if test ! -s conftest.err; then
15321        lt_cv_prog_compiler_rtti_exceptions=yes
15322      fi
15323    fi
15324    $rm conftest*
15325
15326 fi
15327 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15328 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15329
15330 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15331     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15332 else
15333     :
15334 fi
15335
15336 fi
15337
15338 lt_prog_compiler_wl_GCJ=
15339 lt_prog_compiler_pic_GCJ=
15340 lt_prog_compiler_static_GCJ=
15341
15342 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15344
15345   if test "$GCC" = yes; then
15346     lt_prog_compiler_wl_GCJ='-Wl,'
15347     lt_prog_compiler_static_GCJ='-static'
15348
15349     case $host_os in
15350       aix*)
15351       # All AIX code is PIC.
15352       if test "$host_cpu" = ia64; then
15353         # AIX 5 now supports IA64 processor
15354         lt_prog_compiler_static_GCJ='-Bstatic'
15355       fi
15356       ;;
15357
15358     amigaos*)
15359       # FIXME: we need at least 68020 code to build shared libraries, but
15360       # adding the `-m68020' flag to GCC prevents building anything better,
15361       # like `-m68040'.
15362       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15363       ;;
15364
15365     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15366       # PIC is the default for these OSes.
15367       ;;
15368
15369     mingw* | pw32* | os2*)
15370       # This hack is so that the source file can tell whether it is being
15371       # built for inclusion in a dll (and should export symbols for example).
15372       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15373       ;;
15374
15375     darwin* | rhapsody*)
15376       # PIC is the default on this platform
15377       # Common symbols not allowed in MH_DYLIB files
15378       lt_prog_compiler_pic_GCJ='-fno-common'
15379       ;;
15380
15381     msdosdjgpp*)
15382       # Just because we use GCC doesn't mean we suddenly get shared libraries
15383       # on systems that don't support them.
15384       lt_prog_compiler_can_build_shared_GCJ=no
15385       enable_shared=no
15386       ;;
15387
15388     sysv4*MP*)
15389       if test -d /usr/nec; then
15390         lt_prog_compiler_pic_GCJ=-Kconform_pic
15391       fi
15392       ;;
15393
15394     hpux*)
15395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15396       # not for PA HP-UX.
15397       case "$host_cpu" in
15398       hppa*64*|ia64*)
15399         # +Z the default
15400         ;;
15401       *)
15402         lt_prog_compiler_pic_GCJ='-fPIC'
15403         ;;
15404       esac
15405       ;;
15406
15407     *)
15408       lt_prog_compiler_pic_GCJ='-fPIC'
15409       ;;
15410     esac
15411   else
15412     # PORTME Check for flag to pass linker flags through the system compiler.
15413     case $host_os in
15414     aix*)
15415       lt_prog_compiler_wl_GCJ='-Wl,'
15416       if test "$host_cpu" = ia64; then
15417         # AIX 5 now supports IA64 processor
15418         lt_prog_compiler_static_GCJ='-Bstatic'
15419       else
15420         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15421       fi
15422       ;;
15423
15424     mingw* | pw32* | os2*)
15425       # This hack is so that the source file can tell whether it is being
15426       # built for inclusion in a dll (and should export symbols for example).
15427       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15428       ;;
15429
15430     hpux9* | hpux10* | hpux11*)
15431       lt_prog_compiler_wl_GCJ='-Wl,'
15432       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15433       # not for PA HP-UX.
15434       case "$host_cpu" in
15435       hppa*64*|ia64*)
15436         # +Z the default
15437         ;;
15438       *)
15439         lt_prog_compiler_pic_GCJ='+Z'
15440         ;;
15441       esac
15442       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15443       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15444       ;;
15445
15446     irix5* | irix6* | nonstopux*)
15447       lt_prog_compiler_wl_GCJ='-Wl,'
15448       # PIC (with -KPIC) is the default.
15449       lt_prog_compiler_static_GCJ='-non_shared'
15450       ;;
15451
15452     newsos6)
15453       lt_prog_compiler_pic_GCJ='-KPIC'
15454       lt_prog_compiler_static_GCJ='-Bstatic'
15455       ;;
15456
15457     linux*)
15458       case $CC in
15459       icc* | ecc*)
15460         lt_prog_compiler_wl_GCJ='-Wl,'
15461         lt_prog_compiler_pic_GCJ='-KPIC'
15462         lt_prog_compiler_static_GCJ='-static'
15463         ;;
15464       ccc*)
15465         lt_prog_compiler_wl_GCJ='-Wl,'
15466         # All Alpha code is PIC.
15467         lt_prog_compiler_static_GCJ='-non_shared'
15468         ;;
15469       esac
15470       ;;
15471
15472     osf3* | osf4* | osf5*)
15473       lt_prog_compiler_wl_GCJ='-Wl,'
15474       # All OSF/1 code is PIC.
15475       lt_prog_compiler_static_GCJ='-non_shared'
15476       ;;
15477
15478     sco3.2v5*)
15479       lt_prog_compiler_pic_GCJ='-Kpic'
15480       lt_prog_compiler_static_GCJ='-dn'
15481       ;;
15482
15483     solaris*)
15484       lt_prog_compiler_wl_GCJ='-Wl,'
15485       lt_prog_compiler_pic_GCJ='-KPIC'
15486       lt_prog_compiler_static_GCJ='-Bstatic'
15487       ;;
15488
15489     sunos4*)
15490       lt_prog_compiler_wl_GCJ='-Qoption ld '
15491       lt_prog_compiler_pic_GCJ='-PIC'
15492       lt_prog_compiler_static_GCJ='-Bstatic'
15493       ;;
15494
15495     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15496       lt_prog_compiler_wl_GCJ='-Wl,'
15497       lt_prog_compiler_pic_GCJ='-KPIC'
15498       lt_prog_compiler_static_GCJ='-Bstatic'
15499       ;;
15500
15501     sysv4*MP*)
15502       if test -d /usr/nec ;then
15503         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15504         lt_prog_compiler_static_GCJ='-Bstatic'
15505       fi
15506       ;;
15507
15508     uts4*)
15509       lt_prog_compiler_pic_GCJ='-pic'
15510       lt_prog_compiler_static_GCJ='-Bstatic'
15511       ;;
15512
15513     *)
15514       lt_prog_compiler_can_build_shared_GCJ=no
15515       ;;
15516     esac
15517   fi
15518
15519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15520 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15521
15522 #
15523 # Check to make sure the PIC flag actually works.
15524 #
15525 if test -n "$lt_prog_compiler_pic_GCJ"; then
15526
15527 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15528 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15529 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15530   echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532   lt_prog_compiler_pic_works_GCJ=no
15533   ac_outfile=conftest.$ac_objext
15534    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15535    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15536    # Insert the option either (1) after the last *FLAGS variable, or
15537    # (2) before a word containing "conftest.", or (3) at the end.
15538    # Note that $ac_compile itself does not contain backslashes and begins
15539    # with a dollar sign (not a hyphen), so the echo should work correctly.
15540    # The option is referenced via a variable to avoid confusing sed.
15541    lt_compile=`echo "$ac_compile" | $SED \
15542    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15544    -e 's:$: $lt_compiler_flag:'`
15545    (eval echo "\"\$as_me:15545: $lt_compile\"" >&5)
15546    (eval "$lt_compile" 2>conftest.err)
15547    ac_status=$?
15548    cat conftest.err >&5
15549    echo "$as_me:15549: \$? = $ac_status" >&5
15550    if (exit $ac_status) && test -s "$ac_outfile"; then
15551      # The compiler can only warn and ignore the option if not recognized
15552      # So say no if there are warnings
15553      if test ! -s conftest.err; then
15554        lt_prog_compiler_pic_works_GCJ=yes
15555      fi
15556    fi
15557    $rm conftest*
15558
15559 fi
15560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15561 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15562
15563 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15564     case $lt_prog_compiler_pic_GCJ in
15565      "" | " "*) ;;
15566      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15567      esac
15568 else
15569     lt_prog_compiler_pic_GCJ=
15570      lt_prog_compiler_can_build_shared_GCJ=no
15571 fi
15572
15573 fi
15574 case "$host_os" in
15575   # For platforms which do not support PIC, -DPIC is meaningless:
15576   *djgpp*)
15577     lt_prog_compiler_pic_GCJ=
15578     ;;
15579   *)
15580     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15581     ;;
15582 esac
15583
15584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15586 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15587   echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589   lt_cv_prog_compiler_c_o_GCJ=no
15590    $rm -r conftest 2>/dev/null
15591    mkdir conftest
15592    cd conftest
15593    mkdir out
15594    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15595
15596    lt_compiler_flag="-o out/conftest2.$ac_objext"
15597    # Insert the option either (1) after the last *FLAGS variable, or
15598    # (2) before a word containing "conftest.", or (3) at the end.
15599    # Note that $ac_compile itself does not contain backslashes and begins
15600    # with a dollar sign (not a hyphen), so the echo should work correctly.
15601    lt_compile=`echo "$ac_compile" | $SED \
15602    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15603    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15604    -e 's:$: $lt_compiler_flag:'`
15605    (eval echo "\"\$as_me:15605: $lt_compile\"" >&5)
15606    (eval "$lt_compile" 2>out/conftest.err)
15607    ac_status=$?
15608    cat out/conftest.err >&5
15609    echo "$as_me:15609: \$? = $ac_status" >&5
15610    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15611    then
15612      # The compiler can only warn and ignore the option if not recognized
15613      # So say no if there are warnings
15614      if test ! -s out/conftest.err; then
15615        lt_cv_prog_compiler_c_o_GCJ=yes
15616      fi
15617    fi
15618    chmod u+w .
15619    $rm conftest*
15620    # SGI C++ compiler will create directory out/ii_files/ for
15621    # template instantiation
15622    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15623    $rm out/* && rmdir out
15624    cd ..
15625    rmdir conftest
15626    $rm conftest*
15627
15628 fi
15629 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15631
15632
15633 hard_links="nottested"
15634 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15635   # do not overwrite the value of need_locks provided by the user
15636   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15638   hard_links=yes
15639   $rm conftest*
15640   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15641   touch conftest.a
15642   ln conftest.a conftest.b 2>&5 || hard_links=no
15643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15644   echo "$as_me:$LINENO: result: $hard_links" >&5
15645 echo "${ECHO_T}$hard_links" >&6
15646   if test "$hard_links" = no; then
15647     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15649     need_locks=warn
15650   fi
15651 else
15652   need_locks=no
15653 fi
15654
15655 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15657
15658   runpath_var=
15659   allow_undefined_flag_GCJ=
15660   enable_shared_with_static_runtimes_GCJ=no
15661   archive_cmds_GCJ=
15662   archive_expsym_cmds_GCJ=
15663   old_archive_From_new_cmds_GCJ=
15664   old_archive_from_expsyms_cmds_GCJ=
15665   export_dynamic_flag_spec_GCJ=
15666   whole_archive_flag_spec_GCJ=
15667   thread_safe_flag_spec_GCJ=
15668   hardcode_libdir_flag_spec_GCJ=
15669   hardcode_libdir_flag_spec_ld_GCJ=
15670   hardcode_libdir_separator_GCJ=
15671   hardcode_direct_GCJ=no
15672   hardcode_minus_L_GCJ=no
15673   hardcode_shlibpath_var_GCJ=unsupported
15674   link_all_deplibs_GCJ=unknown
15675   hardcode_automatic_GCJ=no
15676   module_cmds_GCJ=
15677   module_expsym_cmds_GCJ=
15678   always_export_symbols_GCJ=no
15679   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15680   # include_expsyms should be a list of space-separated symbols to be *always*
15681   # included in the symbol list
15682   include_expsyms_GCJ=
15683   # exclude_expsyms can be an extended regexp of symbols to exclude
15684   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15685   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15686   # as well as any symbol that contains `d'.
15687   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15688   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15689   # platforms (ab)use it in PIC code, but their linkers get confused if
15690   # the symbol is explicitly referenced.  Since portable code cannot
15691   # rely on this symbol name, it's probably fine to never include it in
15692   # preloaded symbol tables.
15693   extract_expsyms_cmds=
15694
15695   case $host_os in
15696   cygwin* | mingw* | pw32*)
15697     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15698     # When not using gcc, we currently assume that we are using
15699     # Microsoft Visual C++.
15700     if test "$GCC" != yes; then
15701       with_gnu_ld=no
15702     fi
15703     ;;
15704   openbsd*)
15705     with_gnu_ld=no
15706     ;;
15707   esac
15708
15709   ld_shlibs_GCJ=yes
15710   if test "$with_gnu_ld" = yes; then
15711     # If archive_cmds runs LD, not CC, wlarc should be empty
15712     wlarc='${wl}'
15713
15714     # See if GNU ld supports shared libraries.
15715     case $host_os in
15716     aix3* | aix4* | aix5*)
15717       # On AIX/PPC, the GNU linker is very broken
15718       if test "$host_cpu" != ia64; then
15719         ld_shlibs_GCJ=no
15720         cat <<EOF 1>&2
15721
15722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15723 *** to be unable to reliably create shared libraries on AIX.
15724 *** Therefore, libtool is disabling shared libraries support.  If you
15725 *** really care for shared libraries, you may want to modify your PATH
15726 *** so that a non-GNU linker is found, and then restart.
15727
15728 EOF
15729       fi
15730       ;;
15731
15732     amigaos*)
15733       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)'
15734       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15735       hardcode_minus_L_GCJ=yes
15736
15737       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15738       # that the semantics of dynamic libraries on AmigaOS, at least up
15739       # to version 4, is to share data among multiple programs linked
15740       # with the same dynamic library.  Since this doesn't match the
15741       # behavior of shared libraries on other platforms, we can't use
15742       # them.
15743       ld_shlibs_GCJ=no
15744       ;;
15745
15746     beos*)
15747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15748         allow_undefined_flag_GCJ=unsupported
15749         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15750         # support --undefined.  This deserves some investigation.  FIXME
15751         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15752       else
15753         ld_shlibs_GCJ=no
15754       fi
15755       ;;
15756
15757     cygwin* | mingw* | pw32*)
15758       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15759       # as there is no search path for DLLs.
15760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761       allow_undefined_flag_GCJ=unsupported
15762       always_export_symbols_GCJ=no
15763       enable_shared_with_static_runtimes_GCJ=yes
15764       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15765
15766       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15767         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15768         # If the export-symbols file already is a .def file (1st line
15769         # is EXPORTS), use it as is; otherwise, prepend...
15770         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15771           cp $export_symbols $output_objdir/$soname.def;
15772         else
15773           echo EXPORTS > $output_objdir/$soname.def;
15774           cat $export_symbols >> $output_objdir/$soname.def;
15775         fi~
15776         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15777       else
15778         ld_shlibs=no
15779       fi
15780       ;;
15781
15782     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15783       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15784         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15785         wlarc=
15786       else
15787         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15788         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15789       fi
15790       ;;
15791
15792     solaris* | sysv5*)
15793       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15794         ld_shlibs_GCJ=no
15795         cat <<EOF 1>&2
15796
15797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15798 *** create shared libraries on Solaris systems.  Therefore, libtool
15799 *** is disabling shared libraries support.  We urge you to upgrade GNU
15800 *** binutils to release 2.9.1 or newer.  Another option is to modify
15801 *** your PATH or compiler configuration so that the native linker is
15802 *** used, and then restart.
15803
15804 EOF
15805       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15806         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15807         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15808       else
15809         ld_shlibs_GCJ=no
15810       fi
15811       ;;
15812
15813     sunos4*)
15814       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15815       wlarc=
15816       hardcode_direct_GCJ=yes
15817       hardcode_shlibpath_var_GCJ=no
15818       ;;
15819
15820   linux*)
15821     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15822         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823         archive_cmds_GCJ="$tmp_archive_cmds"
15824       supports_anon_versioning=no
15825       case `$LD -v 2>/dev/null` in
15826         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15827         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15828         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15829         *\ 2.11.*) ;; # other 2.11 versions
15830         *) supports_anon_versioning=yes ;;
15831       esac
15832       if test $supports_anon_versioning = yes; then
15833         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15835 $echo "local: *; };" >> $output_objdir/$libname.ver~
15836         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15837       else
15838         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15839       fi
15840       link_all_deplibs_GCJ=no
15841     else
15842       ld_shlibs_GCJ=no
15843     fi
15844     ;;
15845
15846     *)
15847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15848         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15849         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15850       else
15851         ld_shlibs_GCJ=no
15852       fi
15853       ;;
15854     esac
15855
15856     if test "$ld_shlibs_GCJ" = yes; then
15857       runpath_var=LD_RUN_PATH
15858       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15859       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15860       # ancient GNU ld didn't support --whole-archive et. al.
15861       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15862         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15863       else
15864         whole_archive_flag_spec_GCJ=
15865       fi
15866     fi
15867   else
15868     # PORTME fill in a description of your system's linker (not GNU ld)
15869     case $host_os in
15870     aix3*)
15871       allow_undefined_flag_GCJ=unsupported
15872       always_export_symbols_GCJ=yes
15873       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'
15874       # Note: this linker hardcodes the directories in LIBPATH if there
15875       # are no directories specified by -L.
15876       hardcode_minus_L_GCJ=yes
15877       if test "$GCC" = yes && test -z "$link_static_flag"; then
15878         # Neither direct hardcoding nor static linking is supported with a
15879         # broken collect2.
15880         hardcode_direct_GCJ=unsupported
15881       fi
15882       ;;
15883
15884     aix4* | aix5*)
15885       if test "$host_cpu" = ia64; then
15886         # On IA64, the linker does run time linking by default, so we don't
15887         # have to do anything special.
15888         aix_use_runtimelinking=no
15889         exp_sym_flag='-Bexport'
15890         no_entry_flag=""
15891       else
15892         # If we're using GNU nm, then we don't want the "-C" option.
15893         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15894         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15895           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'
15896         else
15897           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'
15898         fi
15899         aix_use_runtimelinking=no
15900
15901         # Test if we are trying to use run time linking or normal
15902         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15903         # need to do runtime linking.
15904         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15905           for ld_flag in $LDFLAGS; do
15906           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15907             aix_use_runtimelinking=yes
15908             break
15909           fi
15910           done
15911         esac
15912
15913         exp_sym_flag='-bexport'
15914         no_entry_flag='-bnoentry'
15915       fi
15916
15917       # When large executables or shared objects are built, AIX ld can
15918       # have problems creating the table of contents.  If linking a library
15919       # or program results in "error TOC overflow" add -mminimal-toc to
15920       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15921       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15922
15923       archive_cmds_GCJ=''
15924       hardcode_direct_GCJ=yes
15925       hardcode_libdir_separator_GCJ=':'
15926       link_all_deplibs_GCJ=yes
15927
15928       if test "$GCC" = yes; then
15929         case $host_os in aix4.012|aix4.012.*)
15930         # We only want to do this on AIX 4.2 and lower, the check
15931         # below for broken collect2 doesn't work under 4.3+
15932           collect2name=`${CC} -print-prog-name=collect2`
15933           if test -f "$collect2name" && \
15934            strings "$collect2name" | grep resolve_lib_name >/dev/null
15935           then
15936           # We have reworked collect2
15937           hardcode_direct_GCJ=yes
15938           else
15939           # We have old collect2
15940           hardcode_direct_GCJ=unsupported
15941           # It fails to find uninstalled libraries when the uninstalled
15942           # path is not listed in the libpath.  Setting hardcode_minus_L
15943           # to unsupported forces relinking
15944           hardcode_minus_L_GCJ=yes
15945           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15946           hardcode_libdir_separator_GCJ=
15947           fi
15948         esac
15949         shared_flag='-shared'
15950       else
15951         # not using gcc
15952         if test "$host_cpu" = ia64; then
15953         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15954         # chokes on -Wl,-G. The following line is correct:
15955           shared_flag='-G'
15956         else
15957         if test "$aix_use_runtimelinking" = yes; then
15958             shared_flag='${wl}-G'
15959           else
15960             shared_flag='${wl}-bM:SRE'
15961         fi
15962         fi
15963       fi
15964
15965       # It seems that -bexpall does not export symbols beginning with
15966       # underscore (_), so it is better to generate a list of symbols to export.
15967       always_export_symbols_GCJ=yes
15968       if test "$aix_use_runtimelinking" = yes; then
15969         # Warning - without using the other runtime loading flags (-brtl),
15970         # -berok will link without error, but may produce a broken library.
15971         allow_undefined_flag_GCJ='-berok'
15972        # Determine the default libpath from the value encoded in an empty executable.
15973        cat >conftest.$ac_ext <<_ACEOF
15974 #line $LINENO "configure"
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980
15981 int
15982 main ()
15983 {
15984
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15991   (eval $ac_link) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); } &&
15995          { ac_try='test -s conftest$ac_exeext'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; }; then
16001
16002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16003 }'`
16004 # Check for a 64-bit object if we didn't find anything.
16005 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; }
16006 }'`; fi
16007 else
16008   echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011 fi
16012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16014
16015        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16016         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"
16017        else
16018         if test "$host_cpu" = ia64; then
16019           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16020           allow_undefined_flag_GCJ="-z nodefs"
16021           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"
16022         else
16023          # Determine the default libpath from the value encoded in an empty executable.
16024          cat >conftest.$ac_ext <<_ACEOF
16025 #line $LINENO "configure"
16026 /* confdefs.h.  */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h.  */
16031
16032 int
16033 main ()
16034 {
16035
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16042   (eval $ac_link) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } &&
16046          { ac_try='test -s conftest$ac_exeext'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052
16053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16054 }'`
16055 # Check for a 64-bit object if we didn't find anything.
16056 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; }
16057 }'`; fi
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 fi
16063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16065
16066          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16067           # Warning - without using the other run time loading flags,
16068           # -berok will link without error, but may produce a broken library.
16069           no_undefined_flag_GCJ=' ${wl}-bernotok'
16070           allow_undefined_flag_GCJ=' ${wl}-berok'
16071           # -bexpall does not export symbols beginning with underscore (_)
16072           always_export_symbols_GCJ=yes
16073           # Exported symbols can be pulled into shared objects from archives
16074           whole_archive_flag_spec_GCJ=' '
16075           archive_cmds_need_lc_GCJ=yes
16076           # This is similar to how AIX traditionally builds it's shared libraries.
16077           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'
16078         fi
16079       fi
16080       ;;
16081
16082     amigaos*)
16083       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)'
16084       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085       hardcode_minus_L_GCJ=yes
16086       # see comment about different semantics on the GNU ld section
16087       ld_shlibs_GCJ=no
16088       ;;
16089
16090     bsdi4*)
16091       export_dynamic_flag_spec_GCJ=-rdynamic
16092       ;;
16093
16094     cygwin* | mingw* | pw32*)
16095       # When not using gcc, we currently assume that we are using
16096       # Microsoft Visual C++.
16097       # hardcode_libdir_flag_spec is actually meaningless, as there is
16098       # no search path for DLLs.
16099       hardcode_libdir_flag_spec_GCJ=' '
16100       allow_undefined_flag_GCJ=unsupported
16101       # Tell ltmain to make .lib files, not .a files.
16102       libext=lib
16103       # Tell ltmain to make .dll files, not .so files.
16104       shrext_cmds=".dll"
16105       # FIXME: Setting linknames here is a bad hack.
16106       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16107       # The linker will automatically build a .lib file if we build a DLL.
16108       old_archive_From_new_cmds_GCJ='true'
16109       # FIXME: Should let the user specify the lib program.
16110       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16111       fix_srcfile_path='`cygpath -w "$srcfile"`'
16112       enable_shared_with_static_runtimes_GCJ=yes
16113       ;;
16114
16115     darwin* | rhapsody*)
16116     if test "$GXX" = yes ; then
16117       archive_cmds_need_lc_GCJ=no
16118       case "$host_os" in
16119       rhapsody* | darwin1.[012])
16120         allow_undefined_flag_GCJ='-undefined suppress'
16121         ;;
16122       *) # Darwin 1.3 on
16123       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16124         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16125       else
16126         case ${MACOSX_DEPLOYMENT_TARGET} in
16127           10.[012])
16128             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16129             ;;
16130           10.*)
16131             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16132             ;;
16133         esac
16134       fi
16135         ;;
16136       esac
16137         lt_int_apple_cc_single_mod=no
16138         output_verbose_link_cmd='echo'
16139         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16140           lt_int_apple_cc_single_mod=yes
16141         fi
16142         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16143           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16144         else
16145         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16146       fi
16147       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16148       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16149         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16150           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16151         else
16152           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16153         fi
16154           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}'
16155       hardcode_direct_GCJ=no
16156       hardcode_automatic_GCJ=yes
16157       hardcode_shlibpath_var_GCJ=unsupported
16158       whole_archive_flag_spec_GCJ='-all_load $convenience'
16159       link_all_deplibs_GCJ=yes
16160     else
16161       ld_shlibs_GCJ=no
16162     fi
16163       ;;
16164
16165     dgux*)
16166       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168       hardcode_shlibpath_var_GCJ=no
16169       ;;
16170
16171     freebsd1*)
16172       ld_shlibs_GCJ=no
16173       ;;
16174
16175     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16176     # support.  Future versions do this automatically, but an explicit c++rt0.o
16177     # does not break anything, and helps significantly (at the cost of a little
16178     # extra space).
16179     freebsd2.2*)
16180       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16181       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16182       hardcode_direct_GCJ=yes
16183       hardcode_shlibpath_var_GCJ=no
16184       ;;
16185
16186     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16187     freebsd2*)
16188       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16189       hardcode_direct_GCJ=yes
16190       hardcode_minus_L_GCJ=yes
16191       hardcode_shlibpath_var_GCJ=no
16192       ;;
16193
16194     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16195     freebsd* | kfreebsd*-gnu)
16196       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16197       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16198       hardcode_direct_GCJ=yes
16199       hardcode_shlibpath_var_GCJ=no
16200       ;;
16201
16202     hpux9*)
16203       if test "$GCC" = yes; then
16204         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'
16205       else
16206         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'
16207       fi
16208       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16209       hardcode_libdir_separator_GCJ=:
16210       hardcode_direct_GCJ=yes
16211
16212       # hardcode_minus_L: Not really in the search PATH,
16213       # but as the default location of the library.
16214       hardcode_minus_L_GCJ=yes
16215       export_dynamic_flag_spec_GCJ='${wl}-E'
16216       ;;
16217
16218     hpux10* | hpux11*)
16219       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16220         case "$host_cpu" in
16221         hppa*64*|ia64*)
16222           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223           ;;
16224         *)
16225           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16226           ;;
16227         esac
16228       else
16229         case "$host_cpu" in
16230         hppa*64*|ia64*)
16231           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16232           ;;
16233         *)
16234           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16235           ;;
16236         esac
16237       fi
16238       if test "$with_gnu_ld" = no; then
16239         case "$host_cpu" in
16240         hppa*64*)
16241           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16242           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16243           hardcode_libdir_separator_GCJ=:
16244           hardcode_direct_GCJ=no
16245           hardcode_shlibpath_var_GCJ=no
16246           ;;
16247         ia64*)
16248           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16249           hardcode_direct_GCJ=no
16250           hardcode_shlibpath_var_GCJ=no
16251
16252           # hardcode_minus_L: Not really in the search PATH,
16253           # but as the default location of the library.
16254           hardcode_minus_L_GCJ=yes
16255           ;;
16256         *)
16257           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16258           hardcode_libdir_separator_GCJ=:
16259           hardcode_direct_GCJ=yes
16260           export_dynamic_flag_spec_GCJ='${wl}-E'
16261
16262           # hardcode_minus_L: Not really in the search PATH,
16263           # but as the default location of the library.
16264           hardcode_minus_L_GCJ=yes
16265           ;;
16266         esac
16267       fi
16268       ;;
16269
16270     irix5* | irix6* | nonstopux*)
16271       if test "$GCC" = yes; then
16272         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'
16273       else
16274         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'
16275         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16276       fi
16277       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16278       hardcode_libdir_separator_GCJ=:
16279       link_all_deplibs_GCJ=yes
16280       ;;
16281
16282     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16283       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16284         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16285       else
16286         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16287       fi
16288       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16289       hardcode_direct_GCJ=yes
16290       hardcode_shlibpath_var_GCJ=no
16291       ;;
16292
16293     newsos6)
16294       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16295       hardcode_direct_GCJ=yes
16296       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16297       hardcode_libdir_separator_GCJ=:
16298       hardcode_shlibpath_var_GCJ=no
16299       ;;
16300
16301     openbsd*)
16302       hardcode_direct_GCJ=yes
16303       hardcode_shlibpath_var_GCJ=no
16304       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16305         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16306         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16307         export_dynamic_flag_spec_GCJ='${wl}-E'
16308       else
16309        case $host_os in
16310          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16311            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16312            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16313            ;;
16314          *)
16315            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16316            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16317            ;;
16318        esac
16319       fi
16320       ;;
16321
16322     os2*)
16323       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324       hardcode_minus_L_GCJ=yes
16325       allow_undefined_flag_GCJ=unsupported
16326       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'
16327       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16328       ;;
16329
16330     osf3*)
16331       if test "$GCC" = yes; then
16332         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16333         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'
16334       else
16335         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16336         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'
16337       fi
16338       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16339       hardcode_libdir_separator_GCJ=:
16340       ;;
16341
16342     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16343       if test "$GCC" = yes; then
16344         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16345         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'
16346         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16347       else
16348         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16349         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'
16350         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~
16351         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16352
16353         # Both c and cxx compiler support -rpath directly
16354         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16355       fi
16356       hardcode_libdir_separator_GCJ=:
16357       ;;
16358
16359     sco3.2v5*)
16360       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16361       hardcode_shlibpath_var_GCJ=no
16362       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16363       runpath_var=LD_RUN_PATH
16364       hardcode_runpath_var=yes
16365       ;;
16366
16367     solaris*)
16368       no_undefined_flag_GCJ=' -z text'
16369       if test "$GCC" = yes; then
16370         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16371         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16372           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16373       else
16374         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16376         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16377       fi
16378       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16379       hardcode_shlibpath_var_GCJ=no
16380       case $host_os in
16381       solaris2.[0-5] | solaris2.[0-5].*) ;;
16382       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16383         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16384       esac
16385       link_all_deplibs_GCJ=yes
16386       ;;
16387
16388     sunos4*)
16389       if test "x$host_vendor" = xsequent; then
16390         # Use $CC to link under sequent, because it throws in some extra .o
16391         # files that make .init and .fini sections work.
16392         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16393       else
16394         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16395       fi
16396       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397       hardcode_direct_GCJ=yes
16398       hardcode_minus_L_GCJ=yes
16399       hardcode_shlibpath_var_GCJ=no
16400       ;;
16401
16402     sysv4)
16403       case $host_vendor in
16404         sni)
16405           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16406           hardcode_direct_GCJ=yes # is this really true???
16407         ;;
16408         siemens)
16409           ## LD is ld it makes a PLAMLIB
16410           ## CC just makes a GrossModule.
16411           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16412           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16413           hardcode_direct_GCJ=no
16414         ;;
16415         motorola)
16416           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16417           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16418         ;;
16419       esac
16420       runpath_var='LD_RUN_PATH'
16421       hardcode_shlibpath_var_GCJ=no
16422       ;;
16423
16424     sysv4.3*)
16425       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16426       hardcode_shlibpath_var_GCJ=no
16427       export_dynamic_flag_spec_GCJ='-Bexport'
16428       ;;
16429
16430     sysv4*MP*)
16431       if test -d /usr/nec; then
16432         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16433         hardcode_shlibpath_var_GCJ=no
16434         runpath_var=LD_RUN_PATH
16435         hardcode_runpath_var=yes
16436         ld_shlibs_GCJ=yes
16437       fi
16438       ;;
16439
16440     sysv4.2uw2*)
16441       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16442       hardcode_direct_GCJ=yes
16443       hardcode_minus_L_GCJ=no
16444       hardcode_shlibpath_var_GCJ=no
16445       hardcode_runpath_var=yes
16446       runpath_var=LD_RUN_PATH
16447       ;;
16448
16449    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16450       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16451       if test "$GCC" = yes; then
16452         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16453       else
16454         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455       fi
16456       runpath_var='LD_RUN_PATH'
16457       hardcode_shlibpath_var_GCJ=no
16458       ;;
16459
16460     sysv5*)
16461       no_undefined_flag_GCJ=' -z text'
16462       # $CC -shared without GNU ld will not create a library from C++
16463       # object files and a static libstdc++, better avoid it by now
16464       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16466                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16467       hardcode_libdir_flag_spec_GCJ=
16468       hardcode_shlibpath_var_GCJ=no
16469       runpath_var='LD_RUN_PATH'
16470       ;;
16471
16472     uts4*)
16473       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16475       hardcode_shlibpath_var_GCJ=no
16476       ;;
16477
16478     *)
16479       ld_shlibs_GCJ=no
16480       ;;
16481     esac
16482   fi
16483
16484 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16485 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16486 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16487
16488 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16489 if test "$GCC" = yes; then
16490   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16491 fi
16492
16493 #
16494 # Do we need to explicitly link libc?
16495 #
16496 case "x$archive_cmds_need_lc_GCJ" in
16497 x|xyes)
16498   # Assume -lc should be added
16499   archive_cmds_need_lc_GCJ=yes
16500
16501   if test "$enable_shared" = yes && test "$GCC" = yes; then
16502     case $archive_cmds_GCJ in
16503     *'~'*)
16504       # FIXME: we may have to deal with multi-command sequences.
16505       ;;
16506     '$CC '*)
16507       # Test whether the compiler implicitly links with -lc since on some
16508       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16509       # to ld, don't add -lc before -lgcc.
16510       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16511 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16512       $rm conftest*
16513       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16514
16515       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16516   (eval $ac_compile) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); } 2>conftest.err; then
16520         soname=conftest
16521         lib=conftest
16522         libobjs=conftest.$ac_objext
16523         deplibs=
16524         wl=$lt_prog_compiler_wl_GCJ
16525         compiler_flags=-v
16526         linker_flags=-v
16527         verstring=
16528         output_objdir=.
16529         libname=conftest
16530         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16531         allow_undefined_flag_GCJ=
16532         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16533   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16534   ac_status=$?
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); }
16537         then
16538           archive_cmds_need_lc_GCJ=no
16539         else
16540           archive_cmds_need_lc_GCJ=yes
16541         fi
16542         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16543       else
16544         cat conftest.err 1>&5
16545       fi
16546       $rm conftest*
16547       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16548 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16549       ;;
16550     esac
16551   fi
16552   ;;
16553 esac
16554
16555 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16557 library_names_spec=
16558 libname_spec='lib$name'
16559 soname_spec=
16560 shrext_cmds=".so"
16561 postinstall_cmds=
16562 postuninstall_cmds=
16563 finish_cmds=
16564 finish_eval=
16565 shlibpath_var=
16566 shlibpath_overrides_runpath=unknown
16567 version_type=none
16568 dynamic_linker="$host_os ld.so"
16569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16570 if test "$GCC" = yes; then
16571   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16572   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16573     # if the path contains ";" then we assume it to be the separator
16574     # otherwise default to the standard path separator (i.e. ":") - it is
16575     # assumed that no part of a normal pathname contains ";" but that should
16576     # okay in the real world where ";" in dirpaths is itself problematic.
16577     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16578   else
16579     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16580   fi
16581 else
16582   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16583 fi
16584 need_lib_prefix=unknown
16585 hardcode_into_libs=no
16586
16587 # when you set need_version to no, make sure it does not cause -set_version
16588 # flags to be left without arguments
16589 need_version=unknown
16590
16591 case $host_os in
16592 aix3*)
16593   version_type=linux
16594   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16595   shlibpath_var=LIBPATH
16596
16597   # AIX 3 has no versioning support, so we append a major version to the name.
16598   soname_spec='${libname}${release}${shared_ext}$major'
16599   ;;
16600
16601 aix4* | aix5*)
16602   version_type=linux
16603   need_lib_prefix=no
16604   need_version=no
16605   hardcode_into_libs=yes
16606   if test "$host_cpu" = ia64; then
16607     # AIX 5 supports IA64
16608     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16609     shlibpath_var=LD_LIBRARY_PATH
16610   else
16611     # With GCC up to 2.95.x, collect2 would create an import file
16612     # for dependence libraries.  The import file would start with
16613     # the line `#! .'.  This would cause the generated library to
16614     # depend on `.', always an invalid library.  This was fixed in
16615     # development snapshots of GCC prior to 3.0.
16616     case $host_os in
16617       aix4 | aix4.[01] | aix4.[01].*)
16618       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16619            echo ' yes '
16620            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16621         :
16622       else
16623         can_build_shared=no
16624       fi
16625       ;;
16626     esac
16627     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16628     # soname into executable. Probably we can add versioning support to
16629     # collect2, so additional links can be useful in future.
16630     if test "$aix_use_runtimelinking" = yes; then
16631       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16632       # instead of lib<name>.a to let people know that these are not
16633       # typical AIX shared libraries.
16634       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635     else
16636       # We preserve .a as extension for shared libraries through AIX4.2
16637       # and later when we are not doing run time linking.
16638       library_names_spec='${libname}${release}.a $libname.a'
16639       soname_spec='${libname}${release}${shared_ext}$major'
16640     fi
16641     shlibpath_var=LIBPATH
16642   fi
16643   ;;
16644
16645 amigaos*)
16646   library_names_spec='$libname.ixlibrary $libname.a'
16647   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16648   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'
16649   ;;
16650
16651 beos*)
16652   library_names_spec='${libname}${shared_ext}'
16653   dynamic_linker="$host_os ld.so"
16654   shlibpath_var=LIBRARY_PATH
16655   ;;
16656
16657 bsdi4*)
16658   version_type=linux
16659   need_version=no
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16663   shlibpath_var=LD_LIBRARY_PATH
16664   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16665   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16666   # the default ld.so.conf also contains /usr/contrib/lib and
16667   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16668   # libtool to hard-code these into programs
16669   ;;
16670
16671 cygwin* | mingw* | pw32*)
16672   version_type=windows
16673   shrext_cmds=".dll"
16674   need_version=no
16675   need_lib_prefix=no
16676
16677   case $GCC,$host_os in
16678   yes,cygwin* | yes,mingw* | yes,pw32*)
16679     library_names_spec='$libname.dll.a'
16680     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16681     postinstall_cmds='base_file=`basename \${file}`~
16682       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16683       dldir=$destdir/`dirname \$dlpath`~
16684       test -d \$dldir || mkdir -p \$dldir~
16685       $install_prog $dir/$dlname \$dldir/$dlname'
16686     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16687       dlpath=$dir/\$dldll~
16688        $rm \$dlpath'
16689     shlibpath_overrides_runpath=yes
16690
16691     case $host_os in
16692     cygwin*)
16693       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16694       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16695       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16696       ;;
16697     mingw*)
16698       # MinGW DLLs use traditional 'lib' prefix
16699       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16700       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16701       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16702         # It is most probably a Windows format PATH printed by
16703         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16704         # path with ; separators, and with drive letters. We can handle the
16705         # drive letters (cygwin fileutils understands them), so leave them,
16706         # especially as we might pass files found there to a mingw objdump,
16707         # which wouldn't understand a cygwinified path. Ahh.
16708         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16709       else
16710         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16711       fi
16712       ;;
16713     pw32*)
16714       # pw32 DLLs use 'pw' prefix rather than 'lib'
16715       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16716       ;;
16717     esac
16718     ;;
16719
16720   *)
16721     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16722     ;;
16723   esac
16724   dynamic_linker='Win32 ld.exe'
16725   # FIXME: first we should search . and the directory the executable is in
16726   shlibpath_var=PATH
16727   ;;
16728
16729 darwin* | rhapsody*)
16730   dynamic_linker="$host_os dyld"
16731   version_type=darwin
16732   need_lib_prefix=no
16733   need_version=no
16734   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16735   soname_spec='${libname}${release}${major}$shared_ext'
16736   shlibpath_overrides_runpath=yes
16737   shlibpath_var=DYLD_LIBRARY_PATH
16738   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16739   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16740   if test "$GCC" = yes; then
16741     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"`
16742   else
16743     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16744   fi
16745   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16746   ;;
16747
16748 dgux*)
16749   version_type=linux
16750   need_lib_prefix=no
16751   need_version=no
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16753   soname_spec='${libname}${release}${shared_ext}$major'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   ;;
16756
16757 freebsd1*)
16758   dynamic_linker=no
16759   ;;
16760
16761 kfreebsd*-gnu)
16762   version_type=linux
16763   need_lib_prefix=no
16764   need_version=no
16765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16766   soname_spec='${libname}${release}${shared_ext}$major'
16767   shlibpath_var=LD_LIBRARY_PATH
16768   shlibpath_overrides_runpath=no
16769   hardcode_into_libs=yes
16770   dynamic_linker='GNU ld.so'
16771   ;;
16772
16773 freebsd*)
16774   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16775   version_type=freebsd-$objformat
16776   case $version_type in
16777     freebsd-elf*)
16778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16779       need_version=no
16780       need_lib_prefix=no
16781       ;;
16782     freebsd-*)
16783       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16784       need_version=yes
16785       ;;
16786   esac
16787   shlibpath_var=LD_LIBRARY_PATH
16788   case $host_os in
16789   freebsd2*)
16790     shlibpath_overrides_runpath=yes
16791     ;;
16792   freebsd3.01* | freebsdelf3.01*)
16793     shlibpath_overrides_runpath=yes
16794     hardcode_into_libs=yes
16795     ;;
16796   *) # from 3.2 on
16797     shlibpath_overrides_runpath=no
16798     hardcode_into_libs=yes
16799     ;;
16800   esac
16801   ;;
16802
16803 gnu*)
16804   version_type=linux
16805   need_lib_prefix=no
16806   need_version=no
16807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16808   soname_spec='${libname}${release}${shared_ext}$major'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   hardcode_into_libs=yes
16811   ;;
16812
16813 hpux9* | hpux10* | hpux11*)
16814   # Give a soname corresponding to the major version so that dld.sl refuses to
16815   # link against other versions.
16816   version_type=sunos
16817   need_lib_prefix=no
16818   need_version=no
16819   case "$host_cpu" in
16820   ia64*)
16821     shrext_cmds='.so'
16822     hardcode_into_libs=yes
16823     dynamic_linker="$host_os dld.so"
16824     shlibpath_var=LD_LIBRARY_PATH
16825     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827     soname_spec='${libname}${release}${shared_ext}$major'
16828     if test "X$HPUX_IA64_MODE" = X32; then
16829       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16830     else
16831       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16832     fi
16833     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16834     ;;
16835    hppa*64*)
16836      shrext_cmds='.sl'
16837      hardcode_into_libs=yes
16838      dynamic_linker="$host_os dld.sl"
16839      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16840      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16841      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842      soname_spec='${libname}${release}${shared_ext}$major'
16843      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16844      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16845      ;;
16846    *)
16847     shrext_cmds='.sl'
16848     dynamic_linker="$host_os dld.sl"
16849     shlibpath_var=SHLIB_PATH
16850     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852     soname_spec='${libname}${release}${shared_ext}$major'
16853     ;;
16854   esac
16855   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16856   postinstall_cmds='chmod 555 $lib'
16857   ;;
16858
16859 irix5* | irix6* | nonstopux*)
16860   case $host_os in
16861     nonstopux*) version_type=nonstopux ;;
16862     *)
16863         if test "$lt_cv_prog_gnu_ld" = yes; then
16864                 version_type=linux
16865         else
16866                 version_type=irix
16867         fi ;;
16868   esac
16869   need_lib_prefix=no
16870   need_version=no
16871   soname_spec='${libname}${release}${shared_ext}$major'
16872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16873   case $host_os in
16874   irix5* | nonstopux*)
16875     libsuff= shlibsuff=
16876     ;;
16877   *)
16878     case $LD in # libtool.m4 will add one of these switches to LD
16879     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16880       libsuff= shlibsuff= libmagic=32-bit;;
16881     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16882       libsuff=32 shlibsuff=N32 libmagic=N32;;
16883     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16884       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16885     *) libsuff= shlibsuff= libmagic=never-match;;
16886     esac
16887     ;;
16888   esac
16889   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16890   shlibpath_overrides_runpath=no
16891   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16892   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16893   hardcode_into_libs=yes
16894   ;;
16895
16896 # No shared lib support for Linux oldld, aout, or coff.
16897 linux*oldld* | linux*aout* | linux*coff*)
16898   dynamic_linker=no
16899   ;;
16900
16901 # This must be Linux ELF.
16902 linux*)
16903   version_type=linux
16904   need_lib_prefix=no
16905   need_version=no
16906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907   soname_spec='${libname}${release}${shared_ext}$major'
16908   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16909   shlibpath_var=LD_LIBRARY_PATH
16910   shlibpath_overrides_runpath=no
16911   # This implies no fast_install, which is unacceptable.
16912   # Some rework will be needed to allow for fast_install
16913   # before this can be enabled.
16914   hardcode_into_libs=yes
16915
16916   # Append ld.so.conf contents to the search path
16917   if test -f /etc/ld.so.conf; then
16918     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16919     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16920   fi
16921
16922   # We used to test for /lib/ld.so.1 and disable shared libraries on
16923   # powerpc, because MkLinux only supported shared libraries with the
16924   # GNU dynamic linker.  Since this was broken with cross compilers,
16925   # most powerpc-linux boxes support dynamic linking these days and
16926   # people can always --disable-shared, the test was removed, and we
16927   # assume the GNU/Linux dynamic linker is in use.
16928   dynamic_linker='GNU/Linux ld.so'
16929   ;;
16930
16931 netbsdelf*-gnu)
16932   version_type=linux
16933   need_lib_prefix=no
16934   need_version=no
16935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16936   soname_spec='${libname}${release}${shared_ext}$major'
16937   shlibpath_var=LD_LIBRARY_PATH
16938   shlibpath_overrides_runpath=no
16939   hardcode_into_libs=yes
16940   dynamic_linker='NetBSD ld.elf_so'
16941   ;;
16942
16943 knetbsd*-gnu)
16944   version_type=linux
16945   need_lib_prefix=no
16946   need_version=no
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16948   soname_spec='${libname}${release}${shared_ext}$major'
16949   shlibpath_var=LD_LIBRARY_PATH
16950   shlibpath_overrides_runpath=no
16951   hardcode_into_libs=yes
16952   dynamic_linker='GNU ld.so'
16953   ;;
16954
16955 netbsd*)
16956   version_type=sunos
16957   need_lib_prefix=no
16958   need_version=no
16959   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16961     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16962     dynamic_linker='NetBSD (a.out) ld.so'
16963   else
16964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16965     soname_spec='${libname}${release}${shared_ext}$major'
16966     dynamic_linker='NetBSD ld.elf_so'
16967   fi
16968   shlibpath_var=LD_LIBRARY_PATH
16969   shlibpath_overrides_runpath=yes
16970   hardcode_into_libs=yes
16971   ;;
16972
16973 newsos6)
16974   version_type=linux
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   shlibpath_var=LD_LIBRARY_PATH
16977   shlibpath_overrides_runpath=yes
16978   ;;
16979
16980 nto-qnx*)
16981   version_type=linux
16982   need_lib_prefix=no
16983   need_version=no
16984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16985   soname_spec='${libname}${release}${shared_ext}$major'
16986   shlibpath_var=LD_LIBRARY_PATH
16987   shlibpath_overrides_runpath=yes
16988   ;;
16989
16990 openbsd*)
16991   version_type=sunos
16992   need_lib_prefix=no
16993   need_version=yes
16994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16995   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16996   shlibpath_var=LD_LIBRARY_PATH
16997   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16998     case $host_os in
16999       openbsd2.[89] | openbsd2.[89].*)
17000         shlibpath_overrides_runpath=no
17001         ;;
17002       *)
17003         shlibpath_overrides_runpath=yes
17004         ;;
17005       esac
17006   else
17007     shlibpath_overrides_runpath=yes
17008   fi
17009   ;;
17010
17011 os2*)
17012   libname_spec='$name'
17013   shrext_cmds=".dll"
17014   need_lib_prefix=no
17015   library_names_spec='$libname${shared_ext} $libname.a'
17016   dynamic_linker='OS/2 ld.exe'
17017   shlibpath_var=LIBPATH
17018   ;;
17019
17020 osf3* | osf4* | osf5*)
17021   version_type=osf
17022   need_lib_prefix=no
17023   need_version=no
17024   soname_spec='${libname}${release}${shared_ext}$major'
17025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026   shlibpath_var=LD_LIBRARY_PATH
17027   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17028   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17029   ;;
17030
17031 sco3.2v5*)
17032   version_type=osf
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035   shlibpath_var=LD_LIBRARY_PATH
17036   ;;
17037
17038 solaris*)
17039   version_type=linux
17040   need_lib_prefix=no
17041   need_version=no
17042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043   soname_spec='${libname}${release}${shared_ext}$major'
17044   shlibpath_var=LD_LIBRARY_PATH
17045   shlibpath_overrides_runpath=yes
17046   hardcode_into_libs=yes
17047   # ldd complains unless libraries are executable
17048   postinstall_cmds='chmod +x $lib'
17049   ;;
17050
17051 sunos4*)
17052   version_type=sunos
17053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17054   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17055   shlibpath_var=LD_LIBRARY_PATH
17056   shlibpath_overrides_runpath=yes
17057   if test "$with_gnu_ld" = yes; then
17058     need_lib_prefix=no
17059   fi
17060   need_version=yes
17061   ;;
17062
17063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17064   version_type=linux
17065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066   soname_spec='${libname}${release}${shared_ext}$major'
17067   shlibpath_var=LD_LIBRARY_PATH
17068   case $host_vendor in
17069     sni)
17070       shlibpath_overrides_runpath=no
17071       need_lib_prefix=no
17072       export_dynamic_flag_spec='${wl}-Blargedynsym'
17073       runpath_var=LD_RUN_PATH
17074       ;;
17075     siemens)
17076       need_lib_prefix=no
17077       ;;
17078     motorola)
17079       need_lib_prefix=no
17080       need_version=no
17081       shlibpath_overrides_runpath=no
17082       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17083       ;;
17084   esac
17085   ;;
17086
17087 sysv4*MP*)
17088   if test -d /usr/nec ;then
17089     version_type=linux
17090     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17091     soname_spec='$libname${shared_ext}.$major'
17092     shlibpath_var=LD_LIBRARY_PATH
17093   fi
17094   ;;
17095
17096 uts4*)
17097   version_type=linux
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099   soname_spec='${libname}${release}${shared_ext}$major'
17100   shlibpath_var=LD_LIBRARY_PATH
17101   ;;
17102
17103 *)
17104   dynamic_linker=no
17105   ;;
17106 esac
17107 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17108 echo "${ECHO_T}$dynamic_linker" >&6
17109 test "$dynamic_linker" = no && can_build_shared=no
17110
17111 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17112 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17113 hardcode_action_GCJ=
17114 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17115    test -n "$runpath_var GCJ" || \
17116    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17117
17118   # We can hardcode non-existant directories.
17119   if test "$hardcode_direct_GCJ" != no &&
17120      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17121      # have to relink, otherwise we might link with an installed library
17122      # when we should be linking with a yet-to-be-installed one
17123      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17124      test "$hardcode_minus_L_GCJ" != no; then
17125     # Linking always hardcodes the temporary library directory.
17126     hardcode_action_GCJ=relink
17127   else
17128     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17129     hardcode_action_GCJ=immediate
17130   fi
17131 else
17132   # We cannot hardcode anything, or else we can only hardcode existing
17133   # directories.
17134   hardcode_action_GCJ=unsupported
17135 fi
17136 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17137 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17138
17139 if test "$hardcode_action_GCJ" = relink; then
17140   # Fast installation is not supported
17141   enable_fast_install=no
17142 elif test "$shlibpath_overrides_runpath" = yes ||
17143      test "$enable_shared" = no; then
17144   # Fast installation is not necessary
17145   enable_fast_install=needless
17146 fi
17147
17148 striplib=
17149 old_striplib=
17150 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17151 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17152 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17153   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17154   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17155   echo "$as_me:$LINENO: result: yes" >&5
17156 echo "${ECHO_T}yes" >&6
17157 else
17158 # FIXME - insert some real tests, host_os isn't really good enough
17159   case $host_os in
17160    darwin*)
17161        if test -n "$STRIP" ; then
17162          striplib="$STRIP -x"
17163          echo "$as_me:$LINENO: result: yes" >&5
17164 echo "${ECHO_T}yes" >&6
17165        else
17166   echo "$as_me:$LINENO: result: no" >&5
17167 echo "${ECHO_T}no" >&6
17168 fi
17169        ;;
17170    *)
17171   echo "$as_me:$LINENO: result: no" >&5
17172 echo "${ECHO_T}no" >&6
17173     ;;
17174   esac
17175 fi
17176
17177 if test "x$enable_dlopen" != xyes; then
17178   enable_dlopen=unknown
17179   enable_dlopen_self=unknown
17180   enable_dlopen_self_static=unknown
17181 else
17182   lt_cv_dlopen=no
17183   lt_cv_dlopen_libs=
17184
17185   case $host_os in
17186   beos*)
17187     lt_cv_dlopen="load_add_on"
17188     lt_cv_dlopen_libs=
17189     lt_cv_dlopen_self=yes
17190     ;;
17191
17192   mingw* | pw32*)
17193     lt_cv_dlopen="LoadLibrary"
17194     lt_cv_dlopen_libs=
17195    ;;
17196
17197   cygwin*)
17198     lt_cv_dlopen="dlopen"
17199     lt_cv_dlopen_libs=
17200    ;;
17201
17202   darwin*)
17203   # if libdl is installed we need to link against it
17204     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   ac_check_lib_save_LIBS=$LIBS
17210 LIBS="-ldl  $LIBS"
17211 cat >conftest.$ac_ext <<_ACEOF
17212 #line $LINENO "configure"
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218
17219 /* Override any gcc2 internal prototype to avoid an error.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 /* We use char because int might match the return type of a gcc2
17224    builtin and then its argument prototype would still apply.  */
17225 char dlopen ();
17226 int
17227 main ()
17228 {
17229 dlopen ();
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236   (eval $ac_link) 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } &&
17240          { ac_try='test -s conftest$ac_exeext'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; }; then
17246   ac_cv_lib_dl_dlopen=yes
17247 else
17248   echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 ac_cv_lib_dl_dlopen=no
17252 fi
17253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17254 LIBS=$ac_check_lib_save_LIBS
17255 fi
17256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17258 if test $ac_cv_lib_dl_dlopen = yes; then
17259   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17260 else
17261
17262     lt_cv_dlopen="dyld"
17263     lt_cv_dlopen_libs=
17264     lt_cv_dlopen_self=yes
17265
17266 fi
17267
17268    ;;
17269
17270   *)
17271     echo "$as_me:$LINENO: checking for shl_load" >&5
17272 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17273 if test "${ac_cv_func_shl_load+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 #line $LINENO "configure"
17278 /* confdefs.h.  */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h.  */
17283 /* System header to define __stub macros and hopefully few prototypes,
17284     which can conflict with char shl_load (); below.
17285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17286     <limits.h> exists even on freestanding compilers.  */
17287 #ifdef __STDC__
17288 # include <limits.h>
17289 #else
17290 # include <assert.h>
17291 #endif
17292 /* Override any gcc2 internal prototype to avoid an error.  */
17293 #ifdef __cplusplus
17294 extern "C"
17295 {
17296 #endif
17297 /* We use char because int might match the return type of a gcc2
17298    builtin and then its argument prototype would still apply.  */
17299 char shl_load ();
17300 /* The GNU C library defines this for functions which it implements
17301     to always fail with ENOSYS.  Some functions are actually named
17302     something starting with __ and the normal name is an alias.  */
17303 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17304 choke me
17305 #else
17306 char (*f) () = shl_load;
17307 #endif
17308 #ifdef __cplusplus
17309 }
17310 #endif
17311
17312 int
17313 main ()
17314 {
17315 return f != shl_load;
17316   ;
17317   return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17322   (eval $ac_link) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); } &&
17326          { ac_try='test -s conftest$ac_exeext'
17327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328   (eval $ac_try) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); }; }; then
17332   ac_cv_func_shl_load=yes
17333 else
17334   echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337 ac_cv_func_shl_load=no
17338 fi
17339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17340 fi
17341 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17342 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17343 if test $ac_cv_func_shl_load = yes; then
17344   lt_cv_dlopen="shl_load"
17345 else
17346   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17347 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17348 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17349   echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351   ac_check_lib_save_LIBS=$LIBS
17352 LIBS="-ldld  $LIBS"
17353 cat >conftest.$ac_ext <<_ACEOF
17354 #line $LINENO "configure"
17355 /* confdefs.h.  */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h.  */
17360
17361 /* Override any gcc2 internal prototype to avoid an error.  */
17362 #ifdef __cplusplus
17363 extern "C"
17364 #endif
17365 /* We use char because int might match the return type of a gcc2
17366    builtin and then its argument prototype would still apply.  */
17367 char shl_load ();
17368 int
17369 main ()
17370 {
17371 shl_load ();
17372   ;
17373   return 0;
17374 }
17375 _ACEOF
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17378   (eval $ac_link) 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); } &&
17382          { ac_try='test -s conftest$ac_exeext'
17383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384   (eval $ac_try) 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; }; then
17388   ac_cv_lib_dld_shl_load=yes
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 ac_cv_lib_dld_shl_load=no
17394 fi
17395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17396 LIBS=$ac_check_lib_save_LIBS
17397 fi
17398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17400 if test $ac_cv_lib_dld_shl_load = yes; then
17401   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17402 else
17403   echo "$as_me:$LINENO: checking for dlopen" >&5
17404 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17405 if test "${ac_cv_func_dlopen+set}" = set; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   cat >conftest.$ac_ext <<_ACEOF
17409 #line $LINENO "configure"
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 /* System header to define __stub macros and hopefully few prototypes,
17416     which can conflict with char dlopen (); below.
17417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17418     <limits.h> exists even on freestanding compilers.  */
17419 #ifdef __STDC__
17420 # include <limits.h>
17421 #else
17422 # include <assert.h>
17423 #endif
17424 /* Override any gcc2 internal prototype to avoid an error.  */
17425 #ifdef __cplusplus
17426 extern "C"
17427 {
17428 #endif
17429 /* We use char because int might match the return type of a gcc2
17430    builtin and then its argument prototype would still apply.  */
17431 char dlopen ();
17432 /* The GNU C library defines this for functions which it implements
17433     to always fail with ENOSYS.  Some functions are actually named
17434     something starting with __ and the normal name is an alias.  */
17435 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17436 choke me
17437 #else
17438 char (*f) () = dlopen;
17439 #endif
17440 #ifdef __cplusplus
17441 }
17442 #endif
17443
17444 int
17445 main ()
17446 {
17447 return f != dlopen;
17448   ;
17449   return 0;
17450 }
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454   (eval $ac_link) 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } &&
17458          { ac_try='test -s conftest$ac_exeext'
17459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460   (eval $ac_try) 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; }; then
17464   ac_cv_func_dlopen=yes
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 ac_cv_func_dlopen=no
17470 fi
17471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17472 fi
17473 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17474 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17475 if test $ac_cv_func_dlopen = yes; then
17476   lt_cv_dlopen="dlopen"
17477 else
17478   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17481   echo $ECHO_N "(cached) $ECHO_C" >&6
17482 else
17483   ac_check_lib_save_LIBS=$LIBS
17484 LIBS="-ldl  $LIBS"
17485 cat >conftest.$ac_ext <<_ACEOF
17486 #line $LINENO "configure"
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492
17493 /* Override any gcc2 internal prototype to avoid an error.  */
17494 #ifdef __cplusplus
17495 extern "C"
17496 #endif
17497 /* We use char because int might match the return type of a gcc2
17498    builtin and then its argument prototype would still apply.  */
17499 char dlopen ();
17500 int
17501 main ()
17502 {
17503 dlopen ();
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510   (eval $ac_link) 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); } &&
17514          { ac_try='test -s conftest$ac_exeext'
17515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516   (eval $ac_try) 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; }; then
17520   ac_cv_lib_dl_dlopen=yes
17521 else
17522   echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 ac_cv_lib_dl_dlopen=no
17526 fi
17527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17528 LIBS=$ac_check_lib_save_LIBS
17529 fi
17530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17532 if test $ac_cv_lib_dl_dlopen = yes; then
17533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17534 else
17535   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17536 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   ac_check_lib_save_LIBS=$LIBS
17541 LIBS="-lsvld  $LIBS"
17542 cat >conftest.$ac_ext <<_ACEOF
17543 #line $LINENO "configure"
17544 /* confdefs.h.  */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h.  */
17549
17550 /* Override any gcc2 internal prototype to avoid an error.  */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 /* We use char because int might match the return type of a gcc2
17555    builtin and then its argument prototype would still apply.  */
17556 char dlopen ();
17557 int
17558 main ()
17559 {
17560 dlopen ();
17561   ;
17562   return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext conftest$ac_exeext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17567   (eval $ac_link) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); } &&
17571          { ac_try='test -s conftest$ac_exeext'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577   ac_cv_lib_svld_dlopen=yes
17578 else
17579   echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ac_cv_lib_svld_dlopen=no
17583 fi
17584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17585 LIBS=$ac_check_lib_save_LIBS
17586 fi
17587 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17588 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17589 if test $ac_cv_lib_svld_dlopen = yes; then
17590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17591 else
17592   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17593 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17594 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17595   echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17597   ac_check_lib_save_LIBS=$LIBS
17598 LIBS="-ldld  $LIBS"
17599 cat >conftest.$ac_ext <<_ACEOF
17600 #line $LINENO "configure"
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606
17607 /* Override any gcc2 internal prototype to avoid an error.  */
17608 #ifdef __cplusplus
17609 extern "C"
17610 #endif
17611 /* We use char because int might match the return type of a gcc2
17612    builtin and then its argument prototype would still apply.  */
17613 char dld_link ();
17614 int
17615 main ()
17616 {
17617 dld_link ();
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624   (eval $ac_link) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); } &&
17628          { ac_try='test -s conftest$ac_exeext'
17629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630   (eval $ac_try) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; }; then
17634   ac_cv_lib_dld_dld_link=yes
17635 else
17636   echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 ac_cv_lib_dld_dld_link=no
17640 fi
17641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17642 LIBS=$ac_check_lib_save_LIBS
17643 fi
17644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17646 if test $ac_cv_lib_dld_dld_link = yes; then
17647   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17648 fi
17649
17650
17651 fi
17652
17653
17654 fi
17655
17656
17657 fi
17658
17659
17660 fi
17661
17662
17663 fi
17664
17665     ;;
17666   esac
17667
17668   if test "x$lt_cv_dlopen" != xno; then
17669     enable_dlopen=yes
17670   else
17671     enable_dlopen=no
17672   fi
17673
17674   case $lt_cv_dlopen in
17675   dlopen)
17676     save_CPPFLAGS="$CPPFLAGS"
17677     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17678
17679     save_LDFLAGS="$LDFLAGS"
17680     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17681
17682     save_LIBS="$LIBS"
17683     LIBS="$lt_cv_dlopen_libs $LIBS"
17684
17685     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17687 if test "${lt_cv_dlopen_self+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690           if test "$cross_compiling" = yes; then :
17691   lt_cv_dlopen_self=cross
17692 else
17693   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17694   lt_status=$lt_dlunknown
17695   cat > conftest.$ac_ext <<EOF
17696 #line 17696 "configure"
17697 #include "confdefs.h"
17698
17699 #if HAVE_DLFCN_H
17700 #include <dlfcn.h>
17701 #endif
17702
17703 #include <stdio.h>
17704
17705 #ifdef RTLD_GLOBAL
17706 #  define LT_DLGLOBAL           RTLD_GLOBAL
17707 #else
17708 #  ifdef DL_GLOBAL
17709 #    define LT_DLGLOBAL         DL_GLOBAL
17710 #  else
17711 #    define LT_DLGLOBAL         0
17712 #  endif
17713 #endif
17714
17715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17716    find out it does not work in some platform. */
17717 #ifndef LT_DLLAZY_OR_NOW
17718 #  ifdef RTLD_LAZY
17719 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17720 #  else
17721 #    ifdef DL_LAZY
17722 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17723 #    else
17724 #      ifdef RTLD_NOW
17725 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17726 #      else
17727 #        ifdef DL_NOW
17728 #          define LT_DLLAZY_OR_NOW      DL_NOW
17729 #        else
17730 #          define LT_DLLAZY_OR_NOW      0
17731 #        endif
17732 #      endif
17733 #    endif
17734 #  endif
17735 #endif
17736
17737 #ifdef __cplusplus
17738 extern "C" void exit (int);
17739 #endif
17740
17741 void fnord() { int i=42;}
17742 int main ()
17743 {
17744   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17745   int status = $lt_dlunknown;
17746
17747   if (self)
17748     {
17749       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17750       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17751       /* dlclose (self); */
17752     }
17753
17754     exit (status);
17755 }
17756 EOF
17757   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17758   (eval $ac_link) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17762     (./conftest; exit; ) 2>/dev/null
17763     lt_status=$?
17764     case x$lt_status in
17765       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17766       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17767       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17768     esac
17769   else :
17770     # compilation failed
17771     lt_cv_dlopen_self=no
17772   fi
17773 fi
17774 rm -fr conftest*
17775
17776
17777 fi
17778 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17780
17781     if test "x$lt_cv_dlopen_self" = xyes; then
17782       LDFLAGS="$LDFLAGS $link_static_flag"
17783       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17785 if test "${lt_cv_dlopen_self_static+set}" = set; then
17786   echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788           if test "$cross_compiling" = yes; then :
17789   lt_cv_dlopen_self_static=cross
17790 else
17791   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17792   lt_status=$lt_dlunknown
17793   cat > conftest.$ac_ext <<EOF
17794 #line 17794 "configure"
17795 #include "confdefs.h"
17796
17797 #if HAVE_DLFCN_H
17798 #include <dlfcn.h>
17799 #endif
17800
17801 #include <stdio.h>
17802
17803 #ifdef RTLD_GLOBAL
17804 #  define LT_DLGLOBAL           RTLD_GLOBAL
17805 #else
17806 #  ifdef DL_GLOBAL
17807 #    define LT_DLGLOBAL         DL_GLOBAL
17808 #  else
17809 #    define LT_DLGLOBAL         0
17810 #  endif
17811 #endif
17812
17813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17814    find out it does not work in some platform. */
17815 #ifndef LT_DLLAZY_OR_NOW
17816 #  ifdef RTLD_LAZY
17817 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17818 #  else
17819 #    ifdef DL_LAZY
17820 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17821 #    else
17822 #      ifdef RTLD_NOW
17823 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17824 #      else
17825 #        ifdef DL_NOW
17826 #          define LT_DLLAZY_OR_NOW      DL_NOW
17827 #        else
17828 #          define LT_DLLAZY_OR_NOW      0
17829 #        endif
17830 #      endif
17831 #    endif
17832 #  endif
17833 #endif
17834
17835 #ifdef __cplusplus
17836 extern "C" void exit (int);
17837 #endif
17838
17839 void fnord() { int i=42;}
17840 int main ()
17841 {
17842   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17843   int status = $lt_dlunknown;
17844
17845   if (self)
17846     {
17847       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17848       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17849       /* dlclose (self); */
17850     }
17851
17852     exit (status);
17853 }
17854 EOF
17855   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856   (eval $ac_link) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17860     (./conftest; exit; ) 2>/dev/null
17861     lt_status=$?
17862     case x$lt_status in
17863       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17864       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17865       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17866     esac
17867   else :
17868     # compilation failed
17869     lt_cv_dlopen_self_static=no
17870   fi
17871 fi
17872 rm -fr conftest*
17873
17874
17875 fi
17876 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17877 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17878     fi
17879
17880     CPPFLAGS="$save_CPPFLAGS"
17881     LDFLAGS="$save_LDFLAGS"
17882     LIBS="$save_LIBS"
17883     ;;
17884   esac
17885
17886   case $lt_cv_dlopen_self in
17887   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17888   *) enable_dlopen_self=unknown ;;
17889   esac
17890
17891   case $lt_cv_dlopen_self_static in
17892   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17893   *) enable_dlopen_self_static=unknown ;;
17894   esac
17895 fi
17896
17897
17898 # The else clause should only fire when bootstrapping the
17899 # libtool distribution, otherwise you forgot to ship ltmain.sh
17900 # with your package, and you will get complaints that there are
17901 # no rules to generate ltmain.sh.
17902 if test -f "$ltmain"; then
17903   # See if we are running on zsh, and set the options which allow our commands through
17904   # without removal of \ escapes.
17905   if test -n "${ZSH_VERSION+set}" ; then
17906     setopt NO_GLOB_SUBST
17907   fi
17908   # Now quote all the things that may contain metacharacters while being
17909   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17910   # variables and quote the copies for generation of the libtool script.
17911   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17912     SED SHELL STRIP \
17913     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17914     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17915     deplibs_check_method reload_flag reload_cmds need_locks \
17916     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17917     lt_cv_sys_global_symbol_to_c_name_address \
17918     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17919     old_postinstall_cmds old_postuninstall_cmds \
17920     compiler_GCJ \
17921     CC_GCJ \
17922     LD_GCJ \
17923     lt_prog_compiler_wl_GCJ \
17924     lt_prog_compiler_pic_GCJ \
17925     lt_prog_compiler_static_GCJ \
17926     lt_prog_compiler_no_builtin_flag_GCJ \
17927     export_dynamic_flag_spec_GCJ \
17928     thread_safe_flag_spec_GCJ \
17929     whole_archive_flag_spec_GCJ \
17930     enable_shared_with_static_runtimes_GCJ \
17931     old_archive_cmds_GCJ \
17932     old_archive_from_new_cmds_GCJ \
17933     predep_objects_GCJ \
17934     postdep_objects_GCJ \
17935     predeps_GCJ \
17936     postdeps_GCJ \
17937     compiler_lib_search_path_GCJ \
17938     archive_cmds_GCJ \
17939     archive_expsym_cmds_GCJ \
17940     postinstall_cmds_GCJ \
17941     postuninstall_cmds_GCJ \
17942     old_archive_from_expsyms_cmds_GCJ \
17943     allow_undefined_flag_GCJ \
17944     no_undefined_flag_GCJ \
17945     export_symbols_cmds_GCJ \
17946     hardcode_libdir_flag_spec_GCJ \
17947     hardcode_libdir_flag_spec_ld_GCJ \
17948     hardcode_libdir_separator_GCJ \
17949     hardcode_automatic_GCJ \
17950     module_cmds_GCJ \
17951     module_expsym_cmds_GCJ \
17952     lt_cv_prog_compiler_c_o_GCJ \
17953     exclude_expsyms_GCJ \
17954     include_expsyms_GCJ; do
17955
17956     case $var in
17957     old_archive_cmds_GCJ | \
17958     old_archive_from_new_cmds_GCJ | \
17959     archive_cmds_GCJ | \
17960     archive_expsym_cmds_GCJ | \
17961     module_cmds_GCJ | \
17962     module_expsym_cmds_GCJ | \
17963     old_archive_from_expsyms_cmds_GCJ | \
17964     export_symbols_cmds_GCJ | \
17965     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17966     postinstall_cmds | postuninstall_cmds | \
17967     old_postinstall_cmds | old_postuninstall_cmds | \
17968     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17969       # Double-quote double-evaled strings.
17970       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17971       ;;
17972     *)
17973       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17974       ;;
17975     esac
17976   done
17977
17978   case $lt_echo in
17979   *'\$0 --fallback-echo"')
17980     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17981     ;;
17982   esac
17983
17984 cfgfile="$ofile"
17985
17986   cat <<__EOF__ >> "$cfgfile"
17987 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17988
17989 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17990
17991 # Shell to use when invoking shell scripts.
17992 SHELL=$lt_SHELL
17993
17994 # Whether or not to build shared libraries.
17995 build_libtool_libs=$enable_shared
17996
17997 # Whether or not to build static libraries.
17998 build_old_libs=$enable_static
17999
18000 # Whether or not to add -lc for building shared libraries.
18001 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18002
18003 # Whether or not to disallow shared libs when runtime libs are static
18004 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18005
18006 # Whether or not to optimize for fast installation.
18007 fast_install=$enable_fast_install
18008
18009 # The host system.
18010 host_alias=$host_alias
18011 host=$host
18012
18013 # An echo program that does not interpret backslashes.
18014 echo=$lt_echo
18015
18016 # The archiver.
18017 AR=$lt_AR
18018 AR_FLAGS=$lt_AR_FLAGS
18019
18020 # A C compiler.
18021 LTCC=$lt_LTCC
18022
18023 # A language-specific compiler.
18024 CC=$lt_compiler_GCJ
18025
18026 # Is the compiler the GNU C compiler?
18027 with_gcc=$GCC_GCJ
18028
18029 # An ERE matcher.
18030 EGREP=$lt_EGREP
18031
18032 # The linker used to build libraries.
18033 LD=$lt_LD_GCJ
18034
18035 # Whether we need hard or soft links.
18036 LN_S=$lt_LN_S
18037
18038 # A BSD-compatible nm program.
18039 NM=$lt_NM
18040
18041 # A symbol stripping program
18042 STRIP=$lt_STRIP
18043
18044 # Used to examine libraries when file_magic_cmd begins "file"
18045 MAGIC_CMD=$MAGIC_CMD
18046
18047 # Used on cygwin: DLL creation program.
18048 DLLTOOL="$DLLTOOL"
18049
18050 # Used on cygwin: object dumper.
18051 OBJDUMP="$OBJDUMP"
18052
18053 # Used on cygwin: assembler.
18054 AS="$AS"
18055
18056 # The name of the directory that contains temporary libtool files.
18057 objdir=$objdir
18058
18059 # How to create reloadable object files.
18060 reload_flag=$lt_reload_flag
18061 reload_cmds=$lt_reload_cmds
18062
18063 # How to pass a linker flag through the compiler.
18064 wl=$lt_lt_prog_compiler_wl_GCJ
18065
18066 # Object file suffix (normally "o").
18067 objext="$ac_objext"
18068
18069 # Old archive suffix (normally "a").
18070 libext="$libext"
18071
18072 # Shared library suffix (normally ".so").
18073 shrext_cmds='$shrext_cmds'
18074
18075 # Executable file suffix (normally "").
18076 exeext="$exeext"
18077
18078 # Additional compiler flags for building library objects.
18079 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18080 pic_mode=$pic_mode
18081
18082 # What is the maximum length of a command?
18083 max_cmd_len=$lt_cv_sys_max_cmd_len
18084
18085 # Does compiler simultaneously support -c and -o options?
18086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18087
18088 # Must we lock files when doing compilation ?
18089 need_locks=$lt_need_locks
18090
18091 # Do we need the lib prefix for modules?
18092 need_lib_prefix=$need_lib_prefix
18093
18094 # Do we need a version for libraries?
18095 need_version=$need_version
18096
18097 # Whether dlopen is supported.
18098 dlopen_support=$enable_dlopen
18099
18100 # Whether dlopen of programs is supported.
18101 dlopen_self=$enable_dlopen_self
18102
18103 # Whether dlopen of statically linked programs is supported.
18104 dlopen_self_static=$enable_dlopen_self_static
18105
18106 # Compiler flag to prevent dynamic linking.
18107 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18108
18109 # Compiler flag to turn off builtin functions.
18110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18111
18112 # Compiler flag to allow reflexive dlopens.
18113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18114
18115 # Compiler flag to generate shared objects directly from archives.
18116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18117
18118 # Compiler flag to generate thread-safe objects.
18119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18120
18121 # Library versioning type.
18122 version_type=$version_type
18123
18124 # Format of library name prefix.
18125 libname_spec=$lt_libname_spec
18126
18127 # List of archive names.  First name is the real one, the rest are links.
18128 # The last name is the one that the linker finds with -lNAME.
18129 library_names_spec=$lt_library_names_spec
18130
18131 # The coded name of the library, if different from the real name.
18132 soname_spec=$lt_soname_spec
18133
18134 # Commands used to build and install an old-style archive.
18135 RANLIB=$lt_RANLIB
18136 old_archive_cmds=$lt_old_archive_cmds_GCJ
18137 old_postinstall_cmds=$lt_old_postinstall_cmds
18138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18139
18140 # Create an old-style archive from a shared archive.
18141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18142
18143 # Create a temporary old-style archive to link instead of a shared archive.
18144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18145
18146 # Commands used to build and install a shared archive.
18147 archive_cmds=$lt_archive_cmds_GCJ
18148 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18149 postinstall_cmds=$lt_postinstall_cmds
18150 postuninstall_cmds=$lt_postuninstall_cmds
18151
18152 # Commands used to build a loadable module (assumed same as above if empty)
18153 module_cmds=$lt_module_cmds_GCJ
18154 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18155
18156 # Commands to strip libraries.
18157 old_striplib=$lt_old_striplib
18158 striplib=$lt_striplib
18159
18160 # Dependencies to place before the objects being linked to create a
18161 # shared library.
18162 predep_objects=$lt_predep_objects_GCJ
18163
18164 # Dependencies to place after the objects being linked to create a
18165 # shared library.
18166 postdep_objects=$lt_postdep_objects_GCJ
18167
18168 # Dependencies to place before the objects being linked to create a
18169 # shared library.
18170 predeps=$lt_predeps_GCJ
18171
18172 # Dependencies to place after the objects being linked to create a
18173 # shared library.
18174 postdeps=$lt_postdeps_GCJ
18175
18176 # The library search path used internally by the compiler when linking
18177 # a shared library.
18178 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18179
18180 # Method to check whether dependent libraries are shared objects.
18181 deplibs_check_method=$lt_deplibs_check_method
18182
18183 # Command to use when deplibs_check_method == file_magic.
18184 file_magic_cmd=$lt_file_magic_cmd
18185
18186 # Flag that allows shared libraries with undefined symbols to be built.
18187 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18188
18189 # Flag that forces no undefined symbols.
18190 no_undefined_flag=$lt_no_undefined_flag_GCJ
18191
18192 # Commands used to finish a libtool library installation in a directory.
18193 finish_cmds=$lt_finish_cmds
18194
18195 # Same as above, but a single script fragment to be evaled but not shown.
18196 finish_eval=$lt_finish_eval
18197
18198 # Take the output of nm and produce a listing of raw symbols and C names.
18199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18200
18201 # Transform the output of nm in a proper C declaration
18202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18203
18204 # Transform the output of nm in a C name address pair
18205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18206
18207 # This is the shared library runtime path variable.
18208 runpath_var=$runpath_var
18209
18210 # This is the shared library path variable.
18211 shlibpath_var=$shlibpath_var
18212
18213 # Is shlibpath searched before the hard-coded library search path?
18214 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18215
18216 # How to hardcode a shared library path into an executable.
18217 hardcode_action=$hardcode_action_GCJ
18218
18219 # Whether we should hardcode library paths into libraries.
18220 hardcode_into_libs=$hardcode_into_libs
18221
18222 # Flag to hardcode \$libdir into a binary during linking.
18223 # This must work even if \$libdir does not exist.
18224 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18225
18226 # If ld is used when linking, flag to hardcode \$libdir into
18227 # a binary during linking. This must work even if \$libdir does
18228 # not exist.
18229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18230
18231 # Whether we need a single -rpath flag with a separated argument.
18232 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18233
18234 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18235 # resulting binary.
18236 hardcode_direct=$hardcode_direct_GCJ
18237
18238 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18239 # resulting binary.
18240 hardcode_minus_L=$hardcode_minus_L_GCJ
18241
18242 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18243 # the resulting binary.
18244 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18245
18246 # Set to yes if building a shared library automatically hardcodes DIR into the library
18247 # and all subsequent libraries and executables linked against it.
18248 hardcode_automatic=$hardcode_automatic_GCJ
18249
18250 # Variables whose values should be saved in libtool wrapper scripts and
18251 # restored at relink time.
18252 variables_saved_for_relink="$variables_saved_for_relink"
18253
18254 # Whether libtool must link a program against all its dependency libraries.
18255 link_all_deplibs=$link_all_deplibs_GCJ
18256
18257 # Compile-time system search path for libraries
18258 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18259
18260 # Run-time system search path for libraries
18261 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18262
18263 # Fix the shell variable \$srcfile for the compiler.
18264 fix_srcfile_path="$fix_srcfile_path_GCJ"
18265
18266 # Set to yes if exported symbols are required.
18267 always_export_symbols=$always_export_symbols_GCJ
18268
18269 # The commands to list exported symbols.
18270 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18271
18272 # The commands to extract the exported symbol list from a shared archive.
18273 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18274
18275 # Symbols that should not be listed in the preloaded symbols.
18276 exclude_expsyms=$lt_exclude_expsyms_GCJ
18277
18278 # Symbols that must always be exported.
18279 include_expsyms=$lt_include_expsyms_GCJ
18280
18281 # ### END LIBTOOL TAG CONFIG: $tagname
18282
18283 __EOF__
18284
18285
18286 else
18287   # If there is no Makefile yet, we rely on a make rule to execute
18288   # `config.status --recheck' to rerun these tests and create the
18289   # libtool script then.
18290   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18291   if test -f "$ltmain_in"; then
18292     test -f Makefile && make "$ltmain"
18293   fi
18294 fi
18295
18296
18297 ac_ext=c
18298 ac_cpp='$CPP $CPPFLAGS'
18299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18302
18303 CC="$lt_save_CC"
18304
18305         else
18306           tagname=""
18307         fi
18308         ;;
18309
18310       RC)
18311
18312
18313
18314 # Source file extension for RC test sources.
18315 ac_ext=rc
18316
18317 # Object file extension for compiled RC test sources.
18318 objext=o
18319 objext_RC=$objext
18320
18321 # Code to be used in simple compile tests
18322 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18323
18324 # Code to be used in simple link tests
18325 lt_simple_link_test_code="$lt_simple_compile_test_code"
18326
18327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18328
18329 # If no C compiler was specified, use CC.
18330 LTCC=${LTCC-"$CC"}
18331
18332 # Allow CC to be a program name with arguments.
18333 compiler=$CC
18334
18335
18336 # Allow CC to be a program name with arguments.
18337 lt_save_CC="$CC"
18338 CC=${RC-"windres"}
18339 compiler=$CC
18340 compiler_RC=$CC
18341 lt_cv_prog_compiler_c_o_RC=yes
18342
18343 # The else clause should only fire when bootstrapping the
18344 # libtool distribution, otherwise you forgot to ship ltmain.sh
18345 # with your package, and you will get complaints that there are
18346 # no rules to generate ltmain.sh.
18347 if test -f "$ltmain"; then
18348   # See if we are running on zsh, and set the options which allow our commands through
18349   # without removal of \ escapes.
18350   if test -n "${ZSH_VERSION+set}" ; then
18351     setopt NO_GLOB_SUBST
18352   fi
18353   # Now quote all the things that may contain metacharacters while being
18354   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18355   # variables and quote the copies for generation of the libtool script.
18356   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18357     SED SHELL STRIP \
18358     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18359     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18360     deplibs_check_method reload_flag reload_cmds need_locks \
18361     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18362     lt_cv_sys_global_symbol_to_c_name_address \
18363     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18364     old_postinstall_cmds old_postuninstall_cmds \
18365     compiler_RC \
18366     CC_RC \
18367     LD_RC \
18368     lt_prog_compiler_wl_RC \
18369     lt_prog_compiler_pic_RC \
18370     lt_prog_compiler_static_RC \
18371     lt_prog_compiler_no_builtin_flag_RC \
18372     export_dynamic_flag_spec_RC \
18373     thread_safe_flag_spec_RC \
18374     whole_archive_flag_spec_RC \
18375     enable_shared_with_static_runtimes_RC \
18376     old_archive_cmds_RC \
18377     old_archive_from_new_cmds_RC \
18378     predep_objects_RC \
18379     postdep_objects_RC \
18380     predeps_RC \
18381     postdeps_RC \
18382     compiler_lib_search_path_RC \
18383     archive_cmds_RC \
18384     archive_expsym_cmds_RC \
18385     postinstall_cmds_RC \
18386     postuninstall_cmds_RC \
18387     old_archive_from_expsyms_cmds_RC \
18388     allow_undefined_flag_RC \
18389     no_undefined_flag_RC \
18390     export_symbols_cmds_RC \
18391     hardcode_libdir_flag_spec_RC \
18392     hardcode_libdir_flag_spec_ld_RC \
18393     hardcode_libdir_separator_RC \
18394     hardcode_automatic_RC \
18395     module_cmds_RC \
18396     module_expsym_cmds_RC \
18397     lt_cv_prog_compiler_c_o_RC \
18398     exclude_expsyms_RC \
18399     include_expsyms_RC; do
18400
18401     case $var in
18402     old_archive_cmds_RC | \
18403     old_archive_from_new_cmds_RC | \
18404     archive_cmds_RC | \
18405     archive_expsym_cmds_RC | \
18406     module_cmds_RC | \
18407     module_expsym_cmds_RC | \
18408     old_archive_from_expsyms_cmds_RC | \
18409     export_symbols_cmds_RC | \
18410     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18411     postinstall_cmds | postuninstall_cmds | \
18412     old_postinstall_cmds | old_postuninstall_cmds | \
18413     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18414       # Double-quote double-evaled strings.
18415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18416       ;;
18417     *)
18418       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18419       ;;
18420     esac
18421   done
18422
18423   case $lt_echo in
18424   *'\$0 --fallback-echo"')
18425     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18426     ;;
18427   esac
18428
18429 cfgfile="$ofile"
18430
18431   cat <<__EOF__ >> "$cfgfile"
18432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18433
18434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18435
18436 # Shell to use when invoking shell scripts.
18437 SHELL=$lt_SHELL
18438
18439 # Whether or not to build shared libraries.
18440 build_libtool_libs=$enable_shared
18441
18442 # Whether or not to build static libraries.
18443 build_old_libs=$enable_static
18444
18445 # Whether or not to add -lc for building shared libraries.
18446 build_libtool_need_lc=$archive_cmds_need_lc_RC
18447
18448 # Whether or not to disallow shared libs when runtime libs are static
18449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18450
18451 # Whether or not to optimize for fast installation.
18452 fast_install=$enable_fast_install
18453
18454 # The host system.
18455 host_alias=$host_alias
18456 host=$host
18457
18458 # An echo program that does not interpret backslashes.
18459 echo=$lt_echo
18460
18461 # The archiver.
18462 AR=$lt_AR
18463 AR_FLAGS=$lt_AR_FLAGS
18464
18465 # A C compiler.
18466 LTCC=$lt_LTCC
18467
18468 # A language-specific compiler.
18469 CC=$lt_compiler_RC
18470
18471 # Is the compiler the GNU C compiler?
18472 with_gcc=$GCC_RC
18473
18474 # An ERE matcher.
18475 EGREP=$lt_EGREP
18476
18477 # The linker used to build libraries.
18478 LD=$lt_LD_RC
18479
18480 # Whether we need hard or soft links.
18481 LN_S=$lt_LN_S
18482
18483 # A BSD-compatible nm program.
18484 NM=$lt_NM
18485
18486 # A symbol stripping program
18487 STRIP=$lt_STRIP
18488
18489 # Used to examine libraries when file_magic_cmd begins "file"
18490 MAGIC_CMD=$MAGIC_CMD
18491
18492 # Used on cygwin: DLL creation program.
18493 DLLTOOL="$DLLTOOL"
18494
18495 # Used on cygwin: object dumper.
18496 OBJDUMP="$OBJDUMP"
18497
18498 # Used on cygwin: assembler.
18499 AS="$AS"
18500
18501 # The name of the directory that contains temporary libtool files.
18502 objdir=$objdir
18503
18504 # How to create reloadable object files.
18505 reload_flag=$lt_reload_flag
18506 reload_cmds=$lt_reload_cmds
18507
18508 # How to pass a linker flag through the compiler.
18509 wl=$lt_lt_prog_compiler_wl_RC
18510
18511 # Object file suffix (normally "o").
18512 objext="$ac_objext"
18513
18514 # Old archive suffix (normally "a").
18515 libext="$libext"
18516
18517 # Shared library suffix (normally ".so").
18518 shrext_cmds='$shrext_cmds'
18519
18520 # Executable file suffix (normally "").
18521 exeext="$exeext"
18522
18523 # Additional compiler flags for building library objects.
18524 pic_flag=$lt_lt_prog_compiler_pic_RC
18525 pic_mode=$pic_mode
18526
18527 # What is the maximum length of a command?
18528 max_cmd_len=$lt_cv_sys_max_cmd_len
18529
18530 # Does compiler simultaneously support -c and -o options?
18531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18532
18533 # Must we lock files when doing compilation ?
18534 need_locks=$lt_need_locks
18535
18536 # Do we need the lib prefix for modules?
18537 need_lib_prefix=$need_lib_prefix
18538
18539 # Do we need a version for libraries?
18540 need_version=$need_version
18541
18542 # Whether dlopen is supported.
18543 dlopen_support=$enable_dlopen
18544
18545 # Whether dlopen of programs is supported.
18546 dlopen_self=$enable_dlopen_self
18547
18548 # Whether dlopen of statically linked programs is supported.
18549 dlopen_self_static=$enable_dlopen_self_static
18550
18551 # Compiler flag to prevent dynamic linking.
18552 link_static_flag=$lt_lt_prog_compiler_static_RC
18553
18554 # Compiler flag to turn off builtin functions.
18555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18556
18557 # Compiler flag to allow reflexive dlopens.
18558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18559
18560 # Compiler flag to generate shared objects directly from archives.
18561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18562
18563 # Compiler flag to generate thread-safe objects.
18564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18565
18566 # Library versioning type.
18567 version_type=$version_type
18568
18569 # Format of library name prefix.
18570 libname_spec=$lt_libname_spec
18571
18572 # List of archive names.  First name is the real one, the rest are links.
18573 # The last name is the one that the linker finds with -lNAME.
18574 library_names_spec=$lt_library_names_spec
18575
18576 # The coded name of the library, if different from the real name.
18577 soname_spec=$lt_soname_spec
18578
18579 # Commands used to build and install an old-style archive.
18580 RANLIB=$lt_RANLIB
18581 old_archive_cmds=$lt_old_archive_cmds_RC
18582 old_postinstall_cmds=$lt_old_postinstall_cmds
18583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18584
18585 # Create an old-style archive from a shared archive.
18586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18587
18588 # Create a temporary old-style archive to link instead of a shared archive.
18589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18590
18591 # Commands used to build and install a shared archive.
18592 archive_cmds=$lt_archive_cmds_RC
18593 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18594 postinstall_cmds=$lt_postinstall_cmds
18595 postuninstall_cmds=$lt_postuninstall_cmds
18596
18597 # Commands used to build a loadable module (assumed same as above if empty)
18598 module_cmds=$lt_module_cmds_RC
18599 module_expsym_cmds=$lt_module_expsym_cmds_RC
18600
18601 # Commands to strip libraries.
18602 old_striplib=$lt_old_striplib
18603 striplib=$lt_striplib
18604
18605 # Dependencies to place before the objects being linked to create a
18606 # shared library.
18607 predep_objects=$lt_predep_objects_RC
18608
18609 # Dependencies to place after the objects being linked to create a
18610 # shared library.
18611 postdep_objects=$lt_postdep_objects_RC
18612
18613 # Dependencies to place before the objects being linked to create a
18614 # shared library.
18615 predeps=$lt_predeps_RC
18616
18617 # Dependencies to place after the objects being linked to create a
18618 # shared library.
18619 postdeps=$lt_postdeps_RC
18620
18621 # The library search path used internally by the compiler when linking
18622 # a shared library.
18623 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18624
18625 # Method to check whether dependent libraries are shared objects.
18626 deplibs_check_method=$lt_deplibs_check_method
18627
18628 # Command to use when deplibs_check_method == file_magic.
18629 file_magic_cmd=$lt_file_magic_cmd
18630
18631 # Flag that allows shared libraries with undefined symbols to be built.
18632 allow_undefined_flag=$lt_allow_undefined_flag_RC
18633
18634 # Flag that forces no undefined symbols.
18635 no_undefined_flag=$lt_no_undefined_flag_RC
18636
18637 # Commands used to finish a libtool library installation in a directory.
18638 finish_cmds=$lt_finish_cmds
18639
18640 # Same as above, but a single script fragment to be evaled but not shown.
18641 finish_eval=$lt_finish_eval
18642
18643 # Take the output of nm and produce a listing of raw symbols and C names.
18644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18645
18646 # Transform the output of nm in a proper C declaration
18647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18648
18649 # Transform the output of nm in a C name address pair
18650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18651
18652 # This is the shared library runtime path variable.
18653 runpath_var=$runpath_var
18654
18655 # This is the shared library path variable.
18656 shlibpath_var=$shlibpath_var
18657
18658 # Is shlibpath searched before the hard-coded library search path?
18659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18660
18661 # How to hardcode a shared library path into an executable.
18662 hardcode_action=$hardcode_action_RC
18663
18664 # Whether we should hardcode library paths into libraries.
18665 hardcode_into_libs=$hardcode_into_libs
18666
18667 # Flag to hardcode \$libdir into a binary during linking.
18668 # This must work even if \$libdir does not exist.
18669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18670
18671 # If ld is used when linking, flag to hardcode \$libdir into
18672 # a binary during linking. This must work even if \$libdir does
18673 # not exist.
18674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18675
18676 # Whether we need a single -rpath flag with a separated argument.
18677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18678
18679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18680 # resulting binary.
18681 hardcode_direct=$hardcode_direct_RC
18682
18683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18684 # resulting binary.
18685 hardcode_minus_L=$hardcode_minus_L_RC
18686
18687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18688 # the resulting binary.
18689 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18690
18691 # Set to yes if building a shared library automatically hardcodes DIR into the library
18692 # and all subsequent libraries and executables linked against it.
18693 hardcode_automatic=$hardcode_automatic_RC
18694
18695 # Variables whose values should be saved in libtool wrapper scripts and
18696 # restored at relink time.
18697 variables_saved_for_relink="$variables_saved_for_relink"
18698
18699 # Whether libtool must link a program against all its dependency libraries.
18700 link_all_deplibs=$link_all_deplibs_RC
18701
18702 # Compile-time system search path for libraries
18703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18704
18705 # Run-time system search path for libraries
18706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18707
18708 # Fix the shell variable \$srcfile for the compiler.
18709 fix_srcfile_path="$fix_srcfile_path_RC"
18710
18711 # Set to yes if exported symbols are required.
18712 always_export_symbols=$always_export_symbols_RC
18713
18714 # The commands to list exported symbols.
18715 export_symbols_cmds=$lt_export_symbols_cmds_RC
18716
18717 # The commands to extract the exported symbol list from a shared archive.
18718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18719
18720 # Symbols that should not be listed in the preloaded symbols.
18721 exclude_expsyms=$lt_exclude_expsyms_RC
18722
18723 # Symbols that must always be exported.
18724 include_expsyms=$lt_include_expsyms_RC
18725
18726 # ### END LIBTOOL TAG CONFIG: $tagname
18727
18728 __EOF__
18729
18730
18731 else
18732   # If there is no Makefile yet, we rely on a make rule to execute
18733   # `config.status --recheck' to rerun these tests and create the
18734   # libtool script then.
18735   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18736   if test -f "$ltmain_in"; then
18737     test -f Makefile && make "$ltmain"
18738   fi
18739 fi
18740
18741
18742 ac_ext=c
18743 ac_cpp='$CPP $CPPFLAGS'
18744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18747
18748 CC="$lt_save_CC"
18749
18750         ;;
18751
18752       *)
18753         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18754 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18755    { (exit 1); exit 1; }; }
18756         ;;
18757       esac
18758
18759       # Append the new tag name to the list of available tags.
18760       if test -n "$tagname" ; then
18761       available_tags="$available_tags $tagname"
18762     fi
18763     fi
18764   done
18765   IFS="$lt_save_ifs"
18766
18767   # Now substitute the updated list of available tags.
18768   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18769     mv "${ofile}T" "$ofile"
18770     chmod +x "$ofile"
18771   else
18772     rm -f "${ofile}T"
18773     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18774 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18775    { (exit 1); exit 1; }; }
18776   fi
18777 fi
18778
18779
18780
18781 # This can be used to rebuild libtool when needed
18782 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18783
18784 # Always use our own libtool.
18785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18786
18787 # Prevent multiple expansion
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800 # Check whether --with-system-libtool or --without-system-libtool was given.
18801 if test "${with_system_libtool+set}" = set; then
18802   withval="$with_system_libtool"
18803    # Extract the first word of "libtool", so it can be a program name with args.
18804 set dummy libtool; ac_word=$2
18805 echo "$as_me:$LINENO: checking for $ac_word" >&5
18806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18807 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   case $LIBTOOL in
18811   [\\/]* | ?:[\\/]*)
18812   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18813   ;;
18814   *)
18815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18816 as_dummy="$PATH:/usr/local/bin"
18817 for as_dir in $as_dummy
18818 do
18819   IFS=$as_save_IFS
18820   test -z "$as_dir" && as_dir=.
18821   for ac_exec_ext in '' $ac_executable_extensions; do
18822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18823     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18825     break 2
18826   fi
18827 done
18828 done
18829
18830   ;;
18831 esac
18832 fi
18833 LIBTOOL=$ac_cv_path_LIBTOOL
18834
18835 if test -n "$LIBTOOL"; then
18836   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18837 echo "${ECHO_T}$LIBTOOL" >&6
18838 else
18839   echo "$as_me:$LINENO: result: no" >&5
18840 echo "${ECHO_T}no" >&6
18841 fi
18842
18843 else
18844
18845   LIBTOOL="`pwd`/libtool"
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860 fi;
18861
18862
18863
18864 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18865 if test "${enable_strict_dependencies+set}" = set; then
18866   enableval="$enable_strict_dependencies"
18867
18868 fi;
18869
18870 logdir='${localstatedir}/log/radius'
18871 echo "$as_me:$LINENO: checking logdir" >&5
18872 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18873
18874 # Check whether --with-logdir or --without-logdir was given.
18875 if test "${with_logdir+set}" = set; then
18876   withval="$with_logdir"
18877    case "$withval" in
18878     no)
18879         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18880 echo "$as_me: error: Need logdir" >&2;}
18881    { (exit 1); exit 1; }; }
18882         ;;
18883     yes)
18884         ;;
18885     *)
18886         logdir="$withval"
18887         ;;
18888   esac
18889
18890 fi;
18891
18892 echo "$as_me:$LINENO: result: $logdir" >&5
18893 echo "${ECHO_T}$logdir" >&6
18894
18895 radacctdir='${logdir}/radacct'
18896 echo "$as_me:$LINENO: checking radacctdir" >&5
18897 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18898
18899 # Check whether --with-radacctdir or --without-radacctdir was given.
18900 if test "${with_radacctdir+set}" = set; then
18901   withval="$with_radacctdir"
18902    case "$withval" in
18903     no)
18904         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18905 echo "$as_me: error: Need radacctdir" >&2;}
18906    { (exit 1); exit 1; }; }
18907         ;;
18908     yes)
18909         ;;
18910     *)
18911         radacctdir="$withval"
18912         ;;
18913   esac
18914
18915 fi;
18916
18917 echo "$as_me:$LINENO: result: $radacctdir" >&5
18918 echo "${ECHO_T}$radacctdir" >&6
18919
18920 raddbdir='${sysconfdir}/raddb'
18921 echo "$as_me:$LINENO: checking raddbdir" >&5
18922 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18923
18924 # Check whether --with-raddbdir or --without-raddbdir was given.
18925 if test "${with_raddbdir+set}" = set; then
18926   withval="$with_raddbdir"
18927    case "$withval" in
18928     no)
18929         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18930 echo "$as_me: error: Need raddbdir" >&2;}
18931    { (exit 1); exit 1; }; }
18932         ;;
18933     yes)
18934         ;;
18935     *)
18936         raddbdir="$withval"
18937         ;;
18938   esac
18939
18940 fi;
18941
18942 echo "$as_me:$LINENO: result: $raddbdir" >&5
18943 echo "${ECHO_T}$raddbdir" >&6
18944
18945 ASCEND_BINARY=yes
18946
18947 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18948 if test "${with_ascend_binary+set}" = set; then
18949   withval="$with_ascend_binary"
18950    case "$withval" in
18951     yes)
18952         ;;
18953     *)
18954         ASCEND_BINARY=""
18955   esac
18956
18957 fi;
18958 if test "X$ASCEND_BINARY" = "Xyes"; then
18959
18960 cat >>confdefs.h <<\_ACEOF
18961 #define ASCEND_BINARY
18962 _ACEOF
18963
18964 fi
18965
18966 WITH_THREADS=yes
18967
18968 # Check whether --with-threads or --without-threads was given.
18969 if test "${with_threads+set}" = set; then
18970   withval="$with_threads"
18971    case "$withval" in
18972     yes)
18973         ;;
18974     *)
18975         WITH_THREADS=""
18976   esac
18977
18978 fi;
18979
18980 WITH_SNMP=yes
18981
18982 # Check whether --with-snmp or --without-snmp was given.
18983 if test "${with_snmp+set}" = set; then
18984   withval="$with_snmp"
18985    case "$withval" in
18986     yes)
18987         ;;
18988     *)
18989         WITH_SNMP=no
18990   esac
18991
18992 fi;
18993
18994 rad_enable_largefiles=no
18995
18996 # Check whether --with-large-files or --without-large-files was given.
18997 if test "${with_large_files+set}" = set; then
18998   withval="$with_large_files"
18999    case "$withval" in
19000     yes)
19001         rad_enable_largefiles=yes
19002         ;;
19003     *)
19004         ;;
19005   esac
19006
19007 fi;
19008
19009
19010
19011 STATIC_MODULES=
19012
19013 # Check whether --with-static_modules or --without-static_modules was given.
19014 if test "${with_static_modules+set}" = set; then
19015   withval="$with_static_modules"
19016
19017   for i in $withval; do
19018     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19019   done
19020
19021 fi;
19022
19023 # Check whether --enable-developer or --disable-developer was given.
19024 if test "${enable_developer+set}" = set; then
19025   enableval="$enable_developer"
19026    case "$enableval" in
19027     no)
19028         developer=no
19029         ;;
19030     *)
19031         developer=yes
19032   esac
19033
19034 fi;
19035
19036 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19037     developer="yes"
19038 fi
19039
19040 EXPERIMENTAL=
19041
19042 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19043 if test "${with_experimental_modules+set}" = set; then
19044   withval="$with_experimental_modules"
19045    case "$withval" in
19046     yes)
19047         EXPERIMENTAL=yes
19048         ;;
19049     *)
19050   esac
19051
19052 fi;
19053
19054
19055 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19056 if test "${with_openssl_includes+set}" = set; then
19057   withval="$with_openssl_includes"
19058    case "$withval" in
19059     *) OPENSSL_INCLUDE_DIR="$withval"
19060         ;;
19061   esac
19062
19063 fi;
19064
19065
19066 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19067 if test "${with_openssl_libraries+set}" = set; then
19068   withval="$with_openssl_libraries"
19069    case "$withval" in
19070     *) OPENSSL_LIB_DIR="$withval"
19071         ;;
19072   esac
19073
19074 fi;
19075
19076
19077
19078 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19079 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19080   withval="$with_rlm_FOO_lib_dir"
19081    case "$withval" in
19082     *)
19083         ;;
19084   esac
19085
19086 fi;
19087
19088
19089 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19090 if test "${with_rlm_FOO_include_dir+set}" = set; then
19091   withval="$with_rlm_FOO_include_dir"
19092    case "$withval" in
19093     *)
19094         ;;
19095   esac
19096
19097 fi;
19098
19099
19100 WITH_UDPFROMTO=no
19101
19102 # Check whether --with-udpfromto or --without-udpfromto was given.
19103 if test "${with_udpfromto+set}" = set; then
19104   withval="$with_udpfromto"
19105    case "$withval" in
19106     yes)
19107         WITH_UDPFROMTO=yes
19108         ;;
19109     *)
19110         WITH_UDPFROMTO=no
19111   esac
19112
19113 fi;
19114
19115 if test "x$WITH_UDPFROMTO" = "xyes"; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define WITH_UDPFROMTO
19119 _ACEOF
19120
19121 fi
19122
19123
19124 CHECKRAD=checkrad.pl
19125 # Extract the first word of "perl", so it can be a program name with args.
19126 set dummy perl; ac_word=$2
19127 echo "$as_me:$LINENO: checking for $ac_word" >&5
19128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19129 if test "${ac_cv_path_PERL+set}" = set; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   case $PERL in
19133   [\\/]* | ?:[\\/]*)
19134   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19135   ;;
19136   *)
19137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19139 do
19140   IFS=$as_save_IFS
19141   test -z "$as_dir" && as_dir=.
19142   for ac_exec_ext in '' $ac_executable_extensions; do
19143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19144     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19146     break 2
19147   fi
19148 done
19149 done
19150
19151   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19152   ;;
19153 esac
19154 fi
19155 PERL=$ac_cv_path_PERL
19156
19157 if test -n "$PERL"; then
19158   echo "$as_me:$LINENO: result: $PERL" >&5
19159 echo "${ECHO_T}$PERL" >&6
19160 else
19161   echo "$as_me:$LINENO: result: no" >&5
19162 echo "${ECHO_T}no" >&6
19163 fi
19164
19165 if test "x$ac_cv_path_PERL" = "x"; then
19166   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19167 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19168 fi
19169 # Extract the first word of "snmpget", so it can be a program name with args.
19170 set dummy snmpget; ac_word=$2
19171 echo "$as_me:$LINENO: checking for $ac_word" >&5
19172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19173 if test "${ac_cv_path_SNMPGET+set}" = set; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176   case $SNMPGET in
19177   [\\/]* | ?:[\\/]*)
19178   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19179   ;;
19180   *)
19181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19183 do
19184   IFS=$as_save_IFS
19185   test -z "$as_dir" && as_dir=.
19186   for ac_exec_ext in '' $ac_executable_extensions; do
19187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19188     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19190     break 2
19191   fi
19192 done
19193 done
19194
19195   ;;
19196 esac
19197 fi
19198 SNMPGET=$ac_cv_path_SNMPGET
19199
19200 if test -n "$SNMPGET"; then
19201   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19202 echo "${ECHO_T}$SNMPGET" >&6
19203 else
19204   echo "$as_me:$LINENO: result: no" >&5
19205 echo "${ECHO_T}no" >&6
19206 fi
19207
19208 if test "x$ac_cv_path_SNMPGET" = "x"; then
19209   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19210 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19211 fi
19212
19213 # Extract the first word of "snmpwalk", so it can be a program name with args.
19214 set dummy snmpwalk; ac_word=$2
19215 echo "$as_me:$LINENO: checking for $ac_word" >&5
19216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19217 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19218   echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220   case $SNMPWALK in
19221   [\\/]* | ?:[\\/]*)
19222   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19223   ;;
19224   *)
19225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19226 for as_dir in $PATH
19227 do
19228   IFS=$as_save_IFS
19229   test -z "$as_dir" && as_dir=.
19230   for ac_exec_ext in '' $ac_executable_extensions; do
19231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19232     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19234     break 2
19235   fi
19236 done
19237 done
19238
19239   ;;
19240 esac
19241 fi
19242 SNMPWALK=$ac_cv_path_SNMPWALK
19243
19244 if test -n "$SNMPWALK"; then
19245   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19246 echo "${ECHO_T}$SNMPWALK" >&6
19247 else
19248   echo "$as_me:$LINENO: result: no" >&5
19249 echo "${ECHO_T}no" >&6
19250 fi
19251
19252 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19253   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19254 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19255 fi
19256
19257 # Extract the first word of "rusers", so it can be a program name with args.
19258 set dummy rusers; ac_word=$2
19259 echo "$as_me:$LINENO: checking for $ac_word" >&5
19260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19261 if test "${ac_cv_path_RUSERS+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   case $RUSERS in
19265   [\\/]* | ?:[\\/]*)
19266   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19267   ;;
19268   *)
19269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270 for as_dir in $PATH
19271 do
19272   IFS=$as_save_IFS
19273   test -z "$as_dir" && as_dir=.
19274   for ac_exec_ext in '' $ac_executable_extensions; do
19275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19276     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19278     break 2
19279   fi
19280 done
19281 done
19282
19283   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19284   ;;
19285 esac
19286 fi
19287 RUSERS=$ac_cv_path_RUSERS
19288
19289 if test -n "$RUSERS"; then
19290   echo "$as_me:$LINENO: result: $RUSERS" >&5
19291 echo "${ECHO_T}$RUSERS" >&6
19292 else
19293   echo "$as_me:$LINENO: result: no" >&5
19294 echo "${ECHO_T}no" >&6
19295 fi
19296
19297
19298 missing_dir=`cd $ac_aux_dir && pwd`
19299 echo "$as_me:$LINENO: checking for working aclocal" >&5
19300 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19301 # Run test in a subshell; some versions of sh will print an error if
19302 # an executable is not found, even if stderr is redirected.
19303 # Redirect stdin to placate older versions of autoconf.  Sigh.
19304 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19305    ACLOCAL=aclocal
19306    echo "$as_me:$LINENO: result: found" >&5
19307 echo "${ECHO_T}found" >&6
19308 else
19309    ACLOCAL="$missing_dir/missing aclocal"
19310    echo "$as_me:$LINENO: result: missing" >&5
19311 echo "${ECHO_T}missing" >&6
19312 fi
19313
19314 echo "$as_me:$LINENO: checking for working autoconf" >&5
19315 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19316 # Run test in a subshell; some versions of sh will print an error if
19317 # an executable is not found, even if stderr is redirected.
19318 # Redirect stdin to placate older versions of autoconf.  Sigh.
19319 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19320    AUTOCONF=autoconf
19321    echo "$as_me:$LINENO: result: found" >&5
19322 echo "${ECHO_T}found" >&6
19323 else
19324    AUTOCONF="$missing_dir/missing autoconf"
19325    echo "$as_me:$LINENO: result: missing" >&5
19326 echo "${ECHO_T}missing" >&6
19327 fi
19328
19329 echo "$as_me:$LINENO: checking for working autoheader" >&5
19330 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19331 # Run test in a subshell; some versions of sh will print an error if
19332 # an executable is not found, even if stderr is redirected.
19333 # Redirect stdin to placate older versions of autoconf.  Sigh.
19334 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19335    AUTOHEADER=autoheader
19336    echo "$as_me:$LINENO: result: found" >&5
19337 echo "${ECHO_T}found" >&6
19338 else
19339    AUTOHEADER="$missing_dir/missing autoheader"
19340    echo "$as_me:$LINENO: result: missing" >&5
19341 echo "${ECHO_T}missing" >&6
19342 fi
19343
19344
19345 # Extract the first word of "locate", so it can be a program name with args.
19346 set dummy locate; ac_word=$2
19347 echo "$as_me:$LINENO: checking for $ac_word" >&5
19348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19349 if test "${ac_cv_path_LOCATE+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   case $LOCATE in
19353   [\\/]* | ?:[\\/]*)
19354   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19355   ;;
19356   *)
19357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19358 for as_dir in $PATH
19359 do
19360   IFS=$as_save_IFS
19361   test -z "$as_dir" && as_dir=.
19362   for ac_exec_ext in '' $ac_executable_extensions; do
19363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19364     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19366     break 2
19367   fi
19368 done
19369 done
19370
19371   ;;
19372 esac
19373 fi
19374 LOCATE=$ac_cv_path_LOCATE
19375
19376 if test -n "$LOCATE"; then
19377   echo "$as_me:$LINENO: result: $LOCATE" >&5
19378 echo "${ECHO_T}$LOCATE" >&6
19379 else
19380   echo "$as_me:$LINENO: result: no" >&5
19381 echo "${ECHO_T}no" >&6
19382 fi
19383
19384 # Extract the first word of "dirname", so it can be a program name with args.
19385 set dummy dirname; ac_word=$2
19386 echo "$as_me:$LINENO: checking for $ac_word" >&5
19387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19388 if test "${ac_cv_path_DIRNAME+set}" = set; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391   case $DIRNAME in
19392   [\\/]* | ?:[\\/]*)
19393   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19394   ;;
19395   *)
19396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397 for as_dir in $PATH
19398 do
19399   IFS=$as_save_IFS
19400   test -z "$as_dir" && as_dir=.
19401   for ac_exec_ext in '' $ac_executable_extensions; do
19402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19403     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19405     break 2
19406   fi
19407 done
19408 done
19409
19410   ;;
19411 esac
19412 fi
19413 DIRNAME=$ac_cv_path_DIRNAME
19414
19415 if test -n "$DIRNAME"; then
19416   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19417 echo "${ECHO_T}$DIRNAME" >&6
19418 else
19419   echo "$as_me:$LINENO: result: no" >&5
19420 echo "${ECHO_T}no" >&6
19421 fi
19422
19423 # Extract the first word of "grep", so it can be a program name with args.
19424 set dummy grep; ac_word=$2
19425 echo "$as_me:$LINENO: checking for $ac_word" >&5
19426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19427 if test "${ac_cv_path_GREP+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   case $GREP in
19431   [\\/]* | ?:[\\/]*)
19432   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19433   ;;
19434   *)
19435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19436 for as_dir in $PATH
19437 do
19438   IFS=$as_save_IFS
19439   test -z "$as_dir" && as_dir=.
19440   for ac_exec_ext in '' $ac_executable_extensions; do
19441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19442     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19444     break 2
19445   fi
19446 done
19447 done
19448
19449   ;;
19450 esac
19451 fi
19452 GREP=$ac_cv_path_GREP
19453
19454 if test -n "$GREP"; then
19455   echo "$as_me:$LINENO: result: $GREP" >&5
19456 echo "${ECHO_T}$GREP" >&6
19457 else
19458   echo "$as_me:$LINENO: result: no" >&5
19459 echo "${ECHO_T}no" >&6
19460 fi
19461
19462
19463
19464 old_CFLAGS=$CFLAGS
19465 if test "x$WITH_THREADS" = "xyes"; then
19466   if test $ac_cv_prog_suncc = "yes"; then
19467     CFLAGS="$CFLAGS -mt"
19468   fi
19469
19470
19471 for ac_header in pthread.h
19472 do
19473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19475   echo "$as_me:$LINENO: checking for $ac_header" >&5
19476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19478   echo $ECHO_N "(cached) $ECHO_C" >&6
19479 fi
19480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19482 else
19483   # Is the header compilable?
19484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19486 cat >conftest.$ac_ext <<_ACEOF
19487 #line $LINENO "configure"
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 $ac_includes_default
19494 #include <$ac_header>
19495 _ACEOF
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498   (eval $ac_compile) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); } &&
19502          { ac_try='test -s conftest.$ac_objext'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; }; then
19508   ac_header_compiler=yes
19509 else
19510   echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ac_header_compiler=no
19514 fi
19515 rm -f conftest.$ac_objext conftest.$ac_ext
19516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19517 echo "${ECHO_T}$ac_header_compiler" >&6
19518
19519 # Is the header present?
19520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19522 cat >conftest.$ac_ext <<_ACEOF
19523 #line $LINENO "configure"
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 #include <$ac_header>
19530 _ACEOF
19531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19533   ac_status=$?
19534   grep -v '^ *+' conftest.er1 >conftest.err
19535   rm -f conftest.er1
19536   cat conftest.err >&5
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } >/dev/null; then
19539   if test -s conftest.err; then
19540     ac_cpp_err=$ac_c_preproc_warn_flag
19541   else
19542     ac_cpp_err=
19543   fi
19544 else
19545   ac_cpp_err=yes
19546 fi
19547 if test -z "$ac_cpp_err"; then
19548   ac_header_preproc=yes
19549 else
19550   echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553   ac_header_preproc=no
19554 fi
19555 rm -f conftest.err conftest.$ac_ext
19556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19557 echo "${ECHO_T}$ac_header_preproc" >&6
19558
19559 # So?  What about this header?
19560 case $ac_header_compiler:$ac_header_preproc in
19561   yes:no )
19562     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19566     (
19567       cat <<\_ASBOX
19568 ## ------------------------------------ ##
19569 ## Report this to bug-autoconf@gnu.org. ##
19570 ## ------------------------------------ ##
19571 _ASBOX
19572     ) |
19573       sed "s/^/$as_me: WARNING:     /" >&2
19574     ;;
19575   no:yes )
19576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19578     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19582     (
19583       cat <<\_ASBOX
19584 ## ------------------------------------ ##
19585 ## Report this to bug-autoconf@gnu.org. ##
19586 ## ------------------------------------ ##
19587 _ASBOX
19588     ) |
19589       sed "s/^/$as_me: WARNING:     /" >&2
19590     ;;
19591 esac
19592 echo "$as_me:$LINENO: checking for $ac_header" >&5
19593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597   eval "$as_ac_Header=$ac_header_preproc"
19598 fi
19599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19601
19602 fi
19603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19604   cat >>confdefs.h <<_ACEOF
19605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19606 _ACEOF
19607
19608 else
19609    WITH_THREADS="no"
19610 fi
19611
19612 done
19613
19614
19615   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19616 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19617 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19618   echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620   ac_check_lib_save_LIBS=$LIBS
19621 LIBS="-lpthread  $LIBS"
19622 cat >conftest.$ac_ext <<_ACEOF
19623 #line $LINENO "configure"
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629
19630 /* Override any gcc2 internal prototype to avoid an error.  */
19631 #ifdef __cplusplus
19632 extern "C"
19633 #endif
19634 /* We use char because int might match the return type of a gcc2
19635    builtin and then its argument prototype would still apply.  */
19636 char pthread_create ();
19637 int
19638 main ()
19639 {
19640 pthread_create ();
19641   ;
19642   return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19647   (eval $ac_link) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } &&
19651          { ac_try='test -s conftest$ac_exeext'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; }; then
19657   ac_cv_lib_pthread_pthread_create=yes
19658 else
19659   echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19661
19662 ac_cv_lib_pthread_pthread_create=no
19663 fi
19664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_lib_save_LIBS
19666 fi
19667 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19668 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19669 if test $ac_cv_lib_pthread_pthread_create = yes; then
19670    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19671                   LIBS="$LIBS -lpthread"
19672 else
19673   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19674 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19675 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   ac_check_lib_save_LIBS=$LIBS
19679 LIBS="-lc_r  $LIBS"
19680 cat >conftest.$ac_ext <<_ACEOF
19681 #line $LINENO "configure"
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688 /* Override any gcc2 internal prototype to avoid an error.  */
19689 #ifdef __cplusplus
19690 extern "C"
19691 #endif
19692 /* We use char because int might match the return type of a gcc2
19693    builtin and then its argument prototype would still apply.  */
19694 char pthread_create ();
19695 int
19696 main ()
19697 {
19698 pthread_create ();
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705   (eval $ac_link) 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } &&
19709          { ac_try='test -s conftest$ac_exeext'
19710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711   (eval $ac_try) 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; }; then
19715   ac_cv_lib_c_r_pthread_create=yes
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720 ac_cv_lib_c_r_pthread_create=no
19721 fi
19722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19724 fi
19725 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19726 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19727 if test $ac_cv_lib_c_r_pthread_create = yes; then
19728    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19729 else
19730    WITH_THREADS="no"
19731
19732 fi
19733
19734
19735 fi
19736
19737 fi
19738
19739 if test "x$WITH_THREADS" != "xyes"; then
19740   CFLAGS=$old_CFLAGS
19741   ac_cv_header_pthread_h="no"
19742   WITH_THREADS=no
19743 else
19744
19745   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19746 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19747 if test "${ac_cv_search_sem_init+set}" = set; then
19748   echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750   ac_func_search_save_LIBS=$LIBS
19751 ac_cv_search_sem_init=no
19752 cat >conftest.$ac_ext <<_ACEOF
19753 #line $LINENO "configure"
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759
19760 /* Override any gcc2 internal prototype to avoid an error.  */
19761 #ifdef __cplusplus
19762 extern "C"
19763 #endif
19764 /* We use char because int might match the return type of a gcc2
19765    builtin and then its argument prototype would still apply.  */
19766 char sem_init ();
19767 int
19768 main ()
19769 {
19770 sem_init ();
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777   (eval $ac_link) 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } &&
19781          { ac_try='test -s conftest$ac_exeext'
19782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783   (eval $ac_try) 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); }; }; then
19787   ac_cv_search_sem_init="none required"
19788 else
19789   echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 fi
19793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19794 if test "$ac_cv_search_sem_init" = no; then
19795   for ac_lib in pthread sem posix4 rt; do
19796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19797     cat >conftest.$ac_ext <<_ACEOF
19798 #line $LINENO "configure"
19799 /* confdefs.h.  */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h.  */
19804
19805 /* Override any gcc2 internal prototype to avoid an error.  */
19806 #ifdef __cplusplus
19807 extern "C"
19808 #endif
19809 /* We use char because int might match the return type of a gcc2
19810    builtin and then its argument prototype would still apply.  */
19811 char sem_init ();
19812 int
19813 main ()
19814 {
19815 sem_init ();
19816   ;
19817   return 0;
19818 }
19819 _ACEOF
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19822   (eval $ac_link) 2>&5
19823   ac_status=$?
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); } &&
19826          { ac_try='test -s conftest$ac_exeext'
19827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828   (eval $ac_try) 2>&5
19829   ac_status=$?
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); }; }; then
19832   ac_cv_search_sem_init="-l$ac_lib"
19833 break
19834 else
19835   echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 fi
19839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19840   done
19841 fi
19842 LIBS=$ac_func_search_save_LIBS
19843 fi
19844 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19845 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19846 if test "$ac_cv_search_sem_init" != no; then
19847   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19848
19849 else
19850   { { echo "$as_me:$LINENO: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
19851 echo "$as_me: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
19852    { (exit 1); exit 1; }; }
19853
19854 fi
19855
19856 fi
19857
19858
19859 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19860 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19861 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19862   echo $ECHO_N "(cached) $ECHO_C" >&6
19863 else
19864   ac_check_lib_save_LIBS=$LIBS
19865 LIBS="-lsocket  $LIBS"
19866 cat >conftest.$ac_ext <<_ACEOF
19867 #line $LINENO "configure"
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873
19874 /* Override any gcc2 internal prototype to avoid an error.  */
19875 #ifdef __cplusplus
19876 extern "C"
19877 #endif
19878 /* We use char because int might match the return type of a gcc2
19879    builtin and then its argument prototype would still apply.  */
19880 char getsockname ();
19881 int
19882 main ()
19883 {
19884 getsockname ();
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19891   (eval $ac_link) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -s conftest$ac_exeext'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; }; then
19901   ac_cv_lib_socket_getsockname=yes
19902 else
19903   echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906 ac_cv_lib_socket_getsockname=no
19907 fi
19908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19910 fi
19911 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19912 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19913 if test $ac_cv_lib_socket_getsockname = yes; then
19914   cat >>confdefs.h <<_ACEOF
19915 #define HAVE_LIBSOCKET 1
19916 _ACEOF
19917
19918   LIBS="-lsocket $LIBS"
19919
19920 fi
19921
19922
19923
19924 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19925 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19926 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19927   echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929   ac_check_lib_save_LIBS=$LIBS
19930 LIBS="-lresolv  $LIBS"
19931 cat >conftest.$ac_ext <<_ACEOF
19932 #line $LINENO "configure"
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938
19939 /* Override any gcc2 internal prototype to avoid an error.  */
19940 #ifdef __cplusplus
19941 extern "C"
19942 #endif
19943 /* We use char because int might match the return type of a gcc2
19944    builtin and then its argument prototype would still apply.  */
19945 char inet_aton ();
19946 int
19947 main ()
19948 {
19949 inet_aton ();
19950   ;
19951   return 0;
19952 }
19953 _ACEOF
19954 rm -f conftest.$ac_objext conftest$ac_exeext
19955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19956   (eval $ac_link) 2>&5
19957   ac_status=$?
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } &&
19960          { ac_try='test -s conftest$ac_exeext'
19961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962   (eval $ac_try) 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); }; }; then
19966   ac_cv_lib_resolv_inet_aton=yes
19967 else
19968   echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971 ac_cv_lib_resolv_inet_aton=no
19972 fi
19973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19975 fi
19976 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19977 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19978 if test $ac_cv_lib_resolv_inet_aton = yes; then
19979   cat >>confdefs.h <<_ACEOF
19980 #define HAVE_LIBRESOLV 1
19981 _ACEOF
19982
19983   LIBS="-lresolv $LIBS"
19984
19985 fi
19986
19987
19988
19989 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19990 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19991 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19992   echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994   ac_check_lib_save_LIBS=$LIBS
19995 LIBS="-lnsl  $LIBS"
19996 cat >conftest.$ac_ext <<_ACEOF
19997 #line $LINENO "configure"
19998 /* confdefs.h.  */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h.  */
20003
20004 /* Override any gcc2 internal prototype to avoid an error.  */
20005 #ifdef __cplusplus
20006 extern "C"
20007 #endif
20008 /* We use char because int might match the return type of a gcc2
20009    builtin and then its argument prototype would still apply.  */
20010 char inet_ntoa ();
20011 int
20012 main ()
20013 {
20014 inet_ntoa ();
20015   ;
20016   return 0;
20017 }
20018 _ACEOF
20019 rm -f conftest.$ac_objext conftest$ac_exeext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021   (eval $ac_link) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } &&
20025          { ac_try='test -s conftest$ac_exeext'
20026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027   (eval $ac_try) 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; }; then
20031   ac_cv_lib_nsl_inet_ntoa=yes
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 ac_cv_lib_nsl_inet_ntoa=no
20037 fi
20038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20040 fi
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20042 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20043 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20044   cat >>confdefs.h <<_ACEOF
20045 #define HAVE_LIBNSL 1
20046 _ACEOF
20047
20048   LIBS="-lnsl $LIBS"
20049
20050 fi
20051
20052
20053
20054 case "$host" in
20055 *-interix*)
20056         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20057         ;;
20058 esac
20059
20060
20061
20062
20063
20064
20065 ac_header_dirent=no
20066 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20067   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20068 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20069 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   cat >conftest.$ac_ext <<_ACEOF
20074 #line $LINENO "configure"
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20080 #include <sys/types.h>
20081 #include <$ac_hdr>
20082
20083 int
20084 main ()
20085 {
20086 if ((DIR *) 0)
20087 return 0;
20088   ;
20089   return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094   (eval $ac_compile) 2>&5
20095   ac_status=$?
20096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097   (exit $ac_status); } &&
20098          { ac_try='test -s conftest.$ac_objext'
20099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100   (eval $ac_try) 2>&5
20101   ac_status=$?
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); }; }; then
20104   eval "$as_ac_Header=yes"
20105 else
20106   echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20108
20109 eval "$as_ac_Header=no"
20110 fi
20111 rm -f conftest.$ac_objext conftest.$ac_ext
20112 fi
20113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20116   cat >>confdefs.h <<_ACEOF
20117 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20118 _ACEOF
20119
20120 ac_header_dirent=$ac_hdr; break
20121 fi
20122
20123 done
20124 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20125 if test $ac_header_dirent = dirent.h; then
20126   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20128 if test "${ac_cv_search_opendir+set}" = set; then
20129   echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20131   ac_func_search_save_LIBS=$LIBS
20132 ac_cv_search_opendir=no
20133 cat >conftest.$ac_ext <<_ACEOF
20134 #line $LINENO "configure"
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140
20141 /* Override any gcc2 internal prototype to avoid an error.  */
20142 #ifdef __cplusplus
20143 extern "C"
20144 #endif
20145 /* We use char because int might match the return type of a gcc2
20146    builtin and then its argument prototype would still apply.  */
20147 char opendir ();
20148 int
20149 main ()
20150 {
20151 opendir ();
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158   (eval $ac_link) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); } &&
20162          { ac_try='test -s conftest$ac_exeext'
20163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164   (eval $ac_try) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; }; then
20168   ac_cv_search_opendir="none required"
20169 else
20170   echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173 fi
20174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20175 if test "$ac_cv_search_opendir" = no; then
20176   for ac_lib in dir; do
20177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20178     cat >conftest.$ac_ext <<_ACEOF
20179 #line $LINENO "configure"
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185
20186 /* Override any gcc2 internal prototype to avoid an error.  */
20187 #ifdef __cplusplus
20188 extern "C"
20189 #endif
20190 /* We use char because int might match the return type of a gcc2
20191    builtin and then its argument prototype would still apply.  */
20192 char opendir ();
20193 int
20194 main ()
20195 {
20196 opendir ();
20197   ;
20198   return 0;
20199 }
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203   (eval $ac_link) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } &&
20207          { ac_try='test -s conftest$ac_exeext'
20208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209   (eval $ac_try) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_cv_search_opendir="-l$ac_lib"
20214 break
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 fi
20220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20221   done
20222 fi
20223 LIBS=$ac_func_search_save_LIBS
20224 fi
20225 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20226 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20227 if test "$ac_cv_search_opendir" != no; then
20228   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20229
20230 fi
20231
20232 else
20233   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20234 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20235 if test "${ac_cv_search_opendir+set}" = set; then
20236   echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238   ac_func_search_save_LIBS=$LIBS
20239 ac_cv_search_opendir=no
20240 cat >conftest.$ac_ext <<_ACEOF
20241 #line $LINENO "configure"
20242 /* confdefs.h.  */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h.  */
20247
20248 /* Override any gcc2 internal prototype to avoid an error.  */
20249 #ifdef __cplusplus
20250 extern "C"
20251 #endif
20252 /* We use char because int might match the return type of a gcc2
20253    builtin and then its argument prototype would still apply.  */
20254 char opendir ();
20255 int
20256 main ()
20257 {
20258 opendir ();
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20265   (eval $ac_link) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); } &&
20269          { ac_try='test -s conftest$ac_exeext'
20270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271   (eval $ac_try) 2>&5
20272   ac_status=$?
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); }; }; then
20275   ac_cv_search_opendir="none required"
20276 else
20277   echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20279
20280 fi
20281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20282 if test "$ac_cv_search_opendir" = no; then
20283   for ac_lib in x; do
20284     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20285     cat >conftest.$ac_ext <<_ACEOF
20286 #line $LINENO "configure"
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292
20293 /* Override any gcc2 internal prototype to avoid an error.  */
20294 #ifdef __cplusplus
20295 extern "C"
20296 #endif
20297 /* We use char because int might match the return type of a gcc2
20298    builtin and then its argument prototype would still apply.  */
20299 char opendir ();
20300 int
20301 main ()
20302 {
20303 opendir ();
20304   ;
20305   return 0;
20306 }
20307 _ACEOF
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20310   (eval $ac_link) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); } &&
20314          { ac_try='test -s conftest$ac_exeext'
20315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316   (eval $ac_try) 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; }; then
20320   ac_cv_search_opendir="-l$ac_lib"
20321 break
20322 else
20323   echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 fi
20327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20328   done
20329 fi
20330 LIBS=$ac_func_search_save_LIBS
20331 fi
20332 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20333 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20334 if test "$ac_cv_search_opendir" != no; then
20335   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20336
20337 fi
20338
20339 fi
20340
20341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20343 if test "${ac_cv_header_stdc+set}" = set; then
20344   echo $ECHO_N "(cached) $ECHO_C" >&6
20345 else
20346   cat >conftest.$ac_ext <<_ACEOF
20347 #line $LINENO "configure"
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353 #include <stdlib.h>
20354 #include <stdarg.h>
20355 #include <string.h>
20356 #include <float.h>
20357
20358 int
20359 main ()
20360 {
20361
20362   ;
20363   return 0;
20364 }
20365 _ACEOF
20366 rm -f conftest.$ac_objext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20368   (eval $ac_compile) 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -s conftest.$ac_objext'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ac_cv_header_stdc=yes
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 ac_cv_header_stdc=no
20384 fi
20385 rm -f conftest.$ac_objext conftest.$ac_ext
20386
20387 if test $ac_cv_header_stdc = yes; then
20388   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20389   cat >conftest.$ac_ext <<_ACEOF
20390 #line $LINENO "configure"
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 #include <string.h>
20397
20398 _ACEOF
20399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20400   $EGREP "memchr" >/dev/null 2>&1; then
20401   :
20402 else
20403   ac_cv_header_stdc=no
20404 fi
20405 rm -f conftest*
20406
20407 fi
20408
20409 if test $ac_cv_header_stdc = yes; then
20410   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20411   cat >conftest.$ac_ext <<_ACEOF
20412 #line $LINENO "configure"
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418 #include <stdlib.h>
20419
20420 _ACEOF
20421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20422   $EGREP "free" >/dev/null 2>&1; then
20423   :
20424 else
20425   ac_cv_header_stdc=no
20426 fi
20427 rm -f conftest*
20428
20429 fi
20430
20431 if test $ac_cv_header_stdc = yes; then
20432   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20433   if test "$cross_compiling" = yes; then
20434   :
20435 else
20436   cat >conftest.$ac_ext <<_ACEOF
20437 #line $LINENO "configure"
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 #include <ctype.h>
20444 #if ((' ' & 0x0FF) == 0x020)
20445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20447 #else
20448 # define ISLOWER(c) \
20449                    (('a' <= (c) && (c) <= 'i') \
20450                      || ('j' <= (c) && (c) <= 'r') \
20451                      || ('s' <= (c) && (c) <= 'z'))
20452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20453 #endif
20454
20455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20456 int
20457 main ()
20458 {
20459   int i;
20460   for (i = 0; i < 256; i++)
20461     if (XOR (islower (i), ISLOWER (i))
20462         || toupper (i) != TOUPPER (i))
20463       exit(2);
20464   exit (0);
20465 }
20466 _ACEOF
20467 rm -f conftest$ac_exeext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20469   (eval $ac_link) 2>&5
20470   ac_status=$?
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; }; then
20478   :
20479 else
20480   echo "$as_me: program exited with status $ac_status" >&5
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 ( exit $ac_status )
20485 ac_cv_header_stdc=no
20486 fi
20487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20488 fi
20489 fi
20490 fi
20491 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20493 if test $ac_cv_header_stdc = yes; then
20494
20495 cat >>confdefs.h <<\_ACEOF
20496 #define STDC_HEADERS 1
20497 _ACEOF
20498
20499 fi
20500
20501 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20502 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20503 if test "${ac_cv_header_time+set}" = set; then
20504   echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506   cat >conftest.$ac_ext <<_ACEOF
20507 #line $LINENO "configure"
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 #include <sys/types.h>
20514 #include <sys/time.h>
20515 #include <time.h>
20516
20517 int
20518 main ()
20519 {
20520 if ((struct tm *) 0)
20521 return 0;
20522   ;
20523   return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20528   (eval $ac_compile) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } &&
20532          { ac_try='test -s conftest.$ac_objext'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; }; then
20538   ac_cv_header_time=yes
20539 else
20540   echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543 ac_cv_header_time=no
20544 fi
20545 rm -f conftest.$ac_objext conftest.$ac_ext
20546 fi
20547 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20548 echo "${ECHO_T}$ac_cv_header_time" >&6
20549 if test $ac_cv_header_time = yes; then
20550
20551 cat >>confdefs.h <<\_ACEOF
20552 #define TIME_WITH_SYS_TIME 1
20553 _ACEOF
20554
20555 fi
20556
20557 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20558 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20559 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20560   echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562   cat >conftest.$ac_ext <<_ACEOF
20563 #line $LINENO "configure"
20564 /* confdefs.h.  */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h.  */
20569 #include <sys/types.h>
20570 #include <sys/wait.h>
20571 #ifndef WEXITSTATUS
20572 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20573 #endif
20574 #ifndef WIFEXITED
20575 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20576 #endif
20577
20578 int
20579 main ()
20580 {
20581   int s;
20582   wait (&s);
20583   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590   (eval $ac_compile) 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -s conftest.$ac_objext'
20595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596   (eval $ac_try) 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); }; }; then
20600   ac_cv_header_sys_wait_h=yes
20601 else
20602   echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 ac_cv_header_sys_wait_h=no
20606 fi
20607 rm -f conftest.$ac_objext conftest.$ac_ext
20608 fi
20609 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20610 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20611 if test $ac_cv_header_sys_wait_h = yes; then
20612
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_SYS_WAIT_H 1
20615 _ACEOF
20616
20617 fi
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648 for ac_header in \
20649         unistd.h \
20650         crypt.h \
20651         errno.h \
20652         resource.h \
20653         getopt.h \
20654         malloc.h \
20655         utmp.h \
20656         utmpx.h \
20657         signal.h \
20658         sys/select.h \
20659         syslog.h \
20660         inttypes.h \
20661         stdint.h \
20662         stdio.h \
20663         netdb.h \
20664         semaphore.h \
20665         arpa/inet.h \
20666         netinet/in.h \
20667         sys/types.h \
20668         sys/socket.h \
20669         sys/time.h \
20670         sys/wait.h \
20671         sys/security.h \
20672         fcntl.h \
20673         sys/fcntl.h \
20674         prot.h \
20675         sia.h \
20676         siad.h
20677
20678 do
20679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20681   echo "$as_me:$LINENO: checking for $ac_header" >&5
20682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20684   echo $ECHO_N "(cached) $ECHO_C" >&6
20685 fi
20686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20688 else
20689   # Is the header compilable?
20690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20692 cat >conftest.$ac_ext <<_ACEOF
20693 #line $LINENO "configure"
20694 /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699 $ac_includes_default
20700 #include <$ac_header>
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704   (eval $ac_compile) 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); } &&
20708          { ac_try='test -s conftest.$ac_objext'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; }; then
20714   ac_header_compiler=yes
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ac_header_compiler=no
20720 fi
20721 rm -f conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6
20724
20725 # Is the header present?
20726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20729 #line $LINENO "configure"
20730 /* confdefs.h.  */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h.  */
20735 #include <$ac_header>
20736 _ACEOF
20737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20739   ac_status=$?
20740   grep -v '^ *+' conftest.er1 >conftest.err
20741   rm -f conftest.er1
20742   cat conftest.err >&5
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } >/dev/null; then
20745   if test -s conftest.err; then
20746     ac_cpp_err=$ac_c_preproc_warn_flag
20747   else
20748     ac_cpp_err=
20749   fi
20750 else
20751   ac_cpp_err=yes
20752 fi
20753 if test -z "$ac_cpp_err"; then
20754   ac_header_preproc=yes
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759   ac_header_preproc=no
20760 fi
20761 rm -f conftest.err conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20763 echo "${ECHO_T}$ac_header_preproc" >&6
20764
20765 # So?  What about this header?
20766 case $ac_header_compiler:$ac_header_preproc in
20767   yes:no )
20768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20772     (
20773       cat <<\_ASBOX
20774 ## ------------------------------------ ##
20775 ## Report this to bug-autoconf@gnu.org. ##
20776 ## ------------------------------------ ##
20777 _ASBOX
20778     ) |
20779       sed "s/^/$as_me: WARNING:     /" >&2
20780     ;;
20781   no:yes )
20782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20784     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20788     (
20789       cat <<\_ASBOX
20790 ## ------------------------------------ ##
20791 ## Report this to bug-autoconf@gnu.org. ##
20792 ## ------------------------------------ ##
20793 _ASBOX
20794     ) |
20795       sed "s/^/$as_me: WARNING:     /" >&2
20796     ;;
20797 esac
20798 echo "$as_me:$LINENO: checking for $ac_header" >&5
20799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20801   echo $ECHO_N "(cached) $ECHO_C" >&6
20802 else
20803   eval "$as_ac_Header=$ac_header_preproc"
20804 fi
20805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20807
20808 fi
20809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810   cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20812 _ACEOF
20813
20814 fi
20815
20816 done
20817
20818
20819 REGEX=no
20820 if test "${ac_cv_header_regex_h+set}" = set; then
20821   echo "$as_me:$LINENO: checking for regex.h" >&5
20822 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20823 if test "${ac_cv_header_regex_h+set}" = set; then
20824   echo $ECHO_N "(cached) $ECHO_C" >&6
20825 fi
20826 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20827 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20828 else
20829   # Is the header compilable?
20830 echo "$as_me:$LINENO: checking regex.h usability" >&5
20831 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20832 cat >conftest.$ac_ext <<_ACEOF
20833 #line $LINENO "configure"
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 $ac_includes_default
20840 #include <regex.h>
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20844   (eval $ac_compile) 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } &&
20848          { ac_try='test -s conftest.$ac_objext'
20849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850   (eval $ac_try) 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); }; }; then
20854   ac_header_compiler=yes
20855 else
20856   echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ac_header_compiler=no
20860 fi
20861 rm -f conftest.$ac_objext conftest.$ac_ext
20862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20863 echo "${ECHO_T}$ac_header_compiler" >&6
20864
20865 # Is the header present?
20866 echo "$as_me:$LINENO: checking regex.h presence" >&5
20867 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20869 #line $LINENO "configure"
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #include <regex.h>
20876 _ACEOF
20877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } >/dev/null; then
20885   if test -s conftest.err; then
20886     ac_cpp_err=$ac_c_preproc_warn_flag
20887   else
20888     ac_cpp_err=
20889   fi
20890 else
20891   ac_cpp_err=yes
20892 fi
20893 if test -z "$ac_cpp_err"; then
20894   ac_header_preproc=yes
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899   ac_header_preproc=no
20900 fi
20901 rm -f conftest.err conftest.$ac_ext
20902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20903 echo "${ECHO_T}$ac_header_preproc" >&6
20904
20905 # So?  What about this header?
20906 case $ac_header_compiler:$ac_header_preproc in
20907   yes:no )
20908     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20909 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20910     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20911 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20912     (
20913       cat <<\_ASBOX
20914 ## ------------------------------------ ##
20915 ## Report this to bug-autoconf@gnu.org. ##
20916 ## ------------------------------------ ##
20917 _ASBOX
20918     ) |
20919       sed "s/^/$as_me: WARNING:     /" >&2
20920     ;;
20921   no:yes )
20922     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20923 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20924     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20925 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20926     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20927 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20928     (
20929       cat <<\_ASBOX
20930 ## ------------------------------------ ##
20931 ## Report this to bug-autoconf@gnu.org. ##
20932 ## ------------------------------------ ##
20933 _ASBOX
20934     ) |
20935       sed "s/^/$as_me: WARNING:     /" >&2
20936     ;;
20937 esac
20938 echo "$as_me:$LINENO: checking for regex.h" >&5
20939 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20940 if test "${ac_cv_header_regex_h+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   ac_cv_header_regex_h=$ac_header_preproc
20944 fi
20945 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20946 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20947
20948 fi
20949 if test $ac_cv_header_regex_h = yes; then
20950
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_REGEX_H
20953 _ACEOF
20954
20955 fi
20956
20957
20958 if test "x$ac_cv_header_regex_h" = "xyes"; then
20959   REGEX_EXTENDED=no
20960   REGEX=yes
20961   cat >conftest.$ac_ext <<_ACEOF
20962 #line $LINENO "configure"
20963 /* confdefs.h.  */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h.  */
20968 #include <regex.h>
20969      #ifdef REG_EXTENDED
20970        yes
20971      #endif
20972
20973 _ACEOF
20974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20975   $EGREP "yes" >/dev/null 2>&1; then
20976
20977 cat >>confdefs.h <<\_ACEOF
20978 #define HAVE_REG_EXTENDED
20979 _ACEOF
20980  REGEX_EXTENDED=yes
20981 fi
20982 rm -f conftest*
20983
20984 fi
20985
20986
20987
20988 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20989 then
20990
20991 cat >>confdefs.h <<\_ACEOF
20992 #define OSFC2
20993 _ACEOF
20994
20995 fi
20996
20997 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
20998 then
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define OSFSIA
21002 _ACEOF
21003
21004 fi
21005
21006 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21007 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21008
21009
21010 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21011 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21012 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21013
21014 smart_include=
21015 smart_include_dir=
21016
21017   old_CFLAGS="$CFLAGS"
21018   cat >conftest.$ac_ext <<_ACEOF
21019 #line $LINENO "configure"
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025
21026                   #include <openssl/ssl.h>
21027 int
21028 main ()
21029 {
21030  int a = 1;
21031   ;
21032   return 0;
21033 }
21034 _ACEOF
21035 rm -f conftest.$ac_objext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21037   (eval $ac_compile) 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } &&
21041          { ac_try='test -s conftest.$ac_objext'
21042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043   (eval $ac_try) 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; }; then
21047   smart_include=" "
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052 smart_include=
21053 fi
21054 rm -f conftest.$ac_objext conftest.$ac_ext
21055
21056   if test "x$smart_include" = "x"; then
21057
21058
21059 if test "x$LOCATE" != "x"; then
21060         DIRS=
21061   file=openssl/ssl.h
21062
21063   for x in `${LOCATE} $file 2>/dev/null`; do
21064                                         base=`echo $x | sed "s%/${file}%%"`
21065     if test "x$x" = "x$base"; then
21066       continue;
21067     fi
21068
21069     dir=`${DIRNAME} $x 2>/dev/null`
21070                 exclude=`echo ${dir} | ${GREP} /home`
21071     if test "x$exclude" != "x"; then
21072       continue
21073     fi
21074
21075                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21076     if test "x$already" = "x"; then
21077       DIRS="$DIRS $dir"
21078     fi
21079   done
21080 fi
21081
21082 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21083
21084
21085     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21086       CFLAGS="$old_CFLAGS -I$try"
21087
21088       cat >conftest.$ac_ext <<_ACEOF
21089 #line $LINENO "configure"
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095
21096                        #include <openssl/ssl.h>
21097 int
21098 main ()
21099 {
21100  int a = 1;
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107   (eval $ac_compile) 2>&5
21108   ac_status=$?
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); } &&
21111          { ac_try='test -s conftest.$ac_objext'
21112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113   (eval $ac_try) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; }; then
21117   smart_include="-I$try"
21118 else
21119   echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122 smart_include=
21123 fi
21124 rm -f conftest.$ac_objext conftest.$ac_ext
21125
21126       if test "x$smart_include" != "x"; then
21127         break;
21128       fi
21129     done
21130     CFLAGS="$old_CFLAGS"
21131   fi
21132
21133         if test "x$smart_include" != "x"; then
21134     echo "$as_me:$LINENO: result: yes" >&5
21135 echo "${ECHO_T}yes" >&6
21136     eval "ac_cv_header_$ac_safe=yes"
21137     CFLAGS="$old_CFLAGS $smart_include"
21138     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21139   else
21140     echo "$as_me:$LINENO: result: no" >&5
21141 echo "${ECHO_T}no" >&6
21142 fi
21143
21144 OPENSSL_INCLUDE=
21145 OPENSSL_LIBS=
21146 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21147
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_OPENSSL_SSL_H
21150 _ACEOF
21151
21152   old_CPPFLAGS="$CPPFLAGS"
21153   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21154       CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21155   fi
21156
21157
21158
21159
21160 for ac_header in \
21161           openssl/err.h \
21162           openssl/crypto.h \
21163           openssl/rand.h \
21164           openssl/engine.h
21165
21166 do
21167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21169   echo "$as_me:$LINENO: checking for $ac_header" >&5
21170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21172   echo $ECHO_N "(cached) $ECHO_C" >&6
21173 fi
21174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21176 else
21177   # Is the header compilable?
21178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21180 cat >conftest.$ac_ext <<_ACEOF
21181 #line $LINENO "configure"
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187 $ac_includes_default
21188 #include <$ac_header>
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21192   (eval $ac_compile) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } &&
21196          { ac_try='test -s conftest.$ac_objext'
21197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; }; then
21202   ac_header_compiler=yes
21203 else
21204   echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 ac_header_compiler=no
21208 fi
21209 rm -f conftest.$ac_objext conftest.$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21211 echo "${ECHO_T}$ac_header_compiler" >&6
21212
21213 # Is the header present?
21214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21216 cat >conftest.$ac_ext <<_ACEOF
21217 #line $LINENO "configure"
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 #include <$ac_header>
21224 _ACEOF
21225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } >/dev/null; then
21233   if test -s conftest.err; then
21234     ac_cpp_err=$ac_c_preproc_warn_flag
21235   else
21236     ac_cpp_err=
21237   fi
21238 else
21239   ac_cpp_err=yes
21240 fi
21241 if test -z "$ac_cpp_err"; then
21242   ac_header_preproc=yes
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247   ac_header_preproc=no
21248 fi
21249 rm -f conftest.err conftest.$ac_ext
21250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6
21252
21253 # So?  What about this header?
21254 case $ac_header_compiler:$ac_header_preproc in
21255   yes:no )
21256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21260     (
21261       cat <<\_ASBOX
21262 ## ------------------------------------ ##
21263 ## Report this to bug-autoconf@gnu.org. ##
21264 ## ------------------------------------ ##
21265 _ASBOX
21266     ) |
21267       sed "s/^/$as_me: WARNING:     /" >&2
21268     ;;
21269   no:yes )
21270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21272     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21276     (
21277       cat <<\_ASBOX
21278 ## ------------------------------------ ##
21279 ## Report this to bug-autoconf@gnu.org. ##
21280 ## ------------------------------------ ##
21281 _ASBOX
21282     ) |
21283       sed "s/^/$as_me: WARNING:     /" >&2
21284     ;;
21285 esac
21286 echo "$as_me:$LINENO: checking for $ac_header" >&5
21287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21289   echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291   eval "$as_ac_Header=$ac_header_preproc"
21292 fi
21293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21295
21296 fi
21297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21298   cat >>confdefs.h <<_ACEOF
21299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21300 _ACEOF
21301
21302 fi
21303
21304 done
21305
21306   CPPFLAGS="$old_CPPFLAGS"
21307
21308   echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21309 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21310        old_CPPFLAGS=$CPPFLAGS
21311        old_LIBS="$LIBS"
21312        if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21313            CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
21314            fi
21315        cat >conftest.$ac_ext <<_ACEOF
21316 #line $LINENO "configure"
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 #include <openssl/crypto.h>
21323        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21324         yes
21325        #endif
21326
21327 _ACEOF
21328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21329   $EGREP "yes" >/dev/null 2>&1; then
21330   goodssl="yes"
21331 fi
21332 rm -f conftest*
21333
21334            if test "x$goodssl" != "xyes"; then
21335              echo "$as_me:$LINENO: result: no" >&5
21336 echo "${ECHO_T}no" >&6
21337              OPENSSL_INCLUDE=
21338              OPENSSL_LIBS=
21339            else
21340              echo "$as_me:$LINENO: result: yes" >&5
21341 echo "${ECHO_T}yes" >&6
21342
21343              # Look for the OpenSSL libraries.
21344              smart_try_dir=$OPENSSL_LIB_DIR
21345
21346
21347 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
21348 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
21349 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21350 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
21351
21352 smart_lib=
21353 smart_lib_dir=
21354
21355   old_LIBS="$LIBS"
21356   LIBS="$LIBS -lcrypto"
21357   cat >conftest.$ac_ext <<_ACEOF
21358 #line $LINENO "configure"
21359 /* confdefs.h.  */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h.  */
21364 extern char DH_new();
21365 int
21366 main ()
21367 {
21368  DH_new()
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21375   (eval $ac_link) 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); } &&
21379          { ac_try='test -s conftest$ac_exeext'
21380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381   (eval $ac_try) 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; }; then
21385   smart_lib="-lcrypto"
21386 else
21387   echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390 fi
21391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21392
21393   if test "x$smart_lib" = "x"; then
21394
21395
21396 if test "x$LOCATE" != "x"; then
21397         DIRS=
21398   file=libcrypto${libltdl_cv_shlibext}
21399
21400   for x in `${LOCATE} $file 2>/dev/null`; do
21401                                         base=`echo $x | sed "s%/${file}%%"`
21402     if test "x$x" = "x$base"; then
21403       continue;
21404     fi
21405
21406     dir=`${DIRNAME} $x 2>/dev/null`
21407                 exclude=`echo ${dir} | ${GREP} /home`
21408     if test "x$exclude" != "x"; then
21409       continue
21410     fi
21411
21412                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21413     if test "x$already" = "x"; then
21414       DIRS="$DIRS $dir"
21415     fi
21416   done
21417 fi
21418
21419 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21420
21421
21422
21423 if test "x$LOCATE" != "x"; then
21424         DIRS=
21425   file=libcrypto.a
21426
21427   for x in `${LOCATE} $file 2>/dev/null`; do
21428                                         base=`echo $x | sed "s%/${file}%%"`
21429     if test "x$x" = "x$base"; then
21430       continue;
21431     fi
21432
21433     dir=`${DIRNAME} $x 2>/dev/null`
21434                 exclude=`echo ${dir} | ${GREP} /home`
21435     if test "x$exclude" != "x"; then
21436       continue
21437     fi
21438
21439                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21440     if test "x$already" = "x"; then
21441       DIRS="$DIRS $dir"
21442     fi
21443   done
21444 fi
21445
21446 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21447
21448
21449     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21450       LIBS="$old_LIBS -L$try -lcrypto"
21451
21452       cat >conftest.$ac_ext <<_ACEOF
21453 #line $LINENO "configure"
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459 extern char DH_new();
21460 int
21461 main ()
21462 {
21463  DH_new()
21464   ;
21465   return 0;
21466 }
21467 _ACEOF
21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21470   (eval $ac_link) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); } &&
21474          { ac_try='test -s conftest$ac_exeext'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; }; then
21480   smart_lib="-L$try -lcrypto"
21481 else
21482   echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 fi
21486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21487       if test "x$smart_lib" != "x"; then
21488         break;
21489       fi
21490     done
21491     LIBS="$old_LIBS"
21492   fi
21493
21494         if test "x$smart_lib" != "x"; then
21495     echo "$as_me:$LINENO: result: yes" >&5
21496 echo "${ECHO_T}yes" >&6
21497     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21498     LIBS="$old_LIBS $smart_lib"
21499     SMART_LIBS="$SMART_LIBS $smart_lib"
21500   else
21501     echo "$as_me:$LINENO: result: no" >&5
21502 echo "${ECHO_T}no" >&6
21503 fi
21504
21505              if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
21506
21507
21508 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
21509 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
21510 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21511 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
21512
21513 smart_lib=
21514 smart_lib_dir=
21515
21516   old_LIBS="$LIBS"
21517   LIBS="$LIBS -lssl"
21518   cat >conftest.$ac_ext <<_ACEOF
21519 #line $LINENO "configure"
21520 /* confdefs.h.  */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h.  */
21525 extern char SSL_new();
21526 int
21527 main ()
21528 {
21529  SSL_new()
21530   ;
21531   return 0;
21532 }
21533 _ACEOF
21534 rm -f conftest.$ac_objext conftest$ac_exeext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21536   (eval $ac_link) 2>&5
21537   ac_status=$?
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); } &&
21540          { ac_try='test -s conftest$ac_exeext'
21541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542   (eval $ac_try) 2>&5
21543   ac_status=$?
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); }; }; then
21546   smart_lib="-lssl"
21547 else
21548   echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551 fi
21552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21553
21554   if test "x$smart_lib" = "x"; then
21555
21556
21557 if test "x$LOCATE" != "x"; then
21558         DIRS=
21559   file=libssl${libltdl_cv_shlibext}
21560
21561   for x in `${LOCATE} $file 2>/dev/null`; do
21562                                         base=`echo $x | sed "s%/${file}%%"`
21563     if test "x$x" = "x$base"; then
21564       continue;
21565     fi
21566
21567     dir=`${DIRNAME} $x 2>/dev/null`
21568                 exclude=`echo ${dir} | ${GREP} /home`
21569     if test "x$exclude" != "x"; then
21570       continue
21571     fi
21572
21573                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21574     if test "x$already" = "x"; then
21575       DIRS="$DIRS $dir"
21576     fi
21577   done
21578 fi
21579
21580 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21581
21582
21583
21584 if test "x$LOCATE" != "x"; then
21585         DIRS=
21586   file=libssl.a
21587
21588   for x in `${LOCATE} $file 2>/dev/null`; do
21589                                         base=`echo $x | sed "s%/${file}%%"`
21590     if test "x$x" = "x$base"; then
21591       continue;
21592     fi
21593
21594     dir=`${DIRNAME} $x 2>/dev/null`
21595                 exclude=`echo ${dir} | ${GREP} /home`
21596     if test "x$exclude" != "x"; then
21597       continue
21598     fi
21599
21600                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21601     if test "x$already" = "x"; then
21602       DIRS="$DIRS $dir"
21603     fi
21604   done
21605 fi
21606
21607 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21608
21609
21610     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21611       LIBS="$old_LIBS -L$try -lssl"
21612
21613       cat >conftest.$ac_ext <<_ACEOF
21614 #line $LINENO "configure"
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 extern char SSL_new();
21621 int
21622 main ()
21623 {
21624  SSL_new()
21625   ;
21626   return 0;
21627 }
21628 _ACEOF
21629 rm -f conftest.$ac_objext conftest$ac_exeext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21631   (eval $ac_link) 2>&5
21632   ac_status=$?
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } &&
21635          { ac_try='test -s conftest$ac_exeext'
21636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637   (eval $ac_try) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); }; }; then
21641   smart_lib="-L$try -lssl"
21642 else
21643   echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 fi
21647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21648       if test "x$smart_lib" != "x"; then
21649         break;
21650       fi
21651     done
21652     LIBS="$old_LIBS"
21653   fi
21654
21655         if test "x$smart_lib" != "x"; then
21656     echo "$as_me:$LINENO: result: yes" >&5
21657 echo "${ECHO_T}yes" >&6
21658     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21659     LIBS="$old_LIBS $smart_lib"
21660     SMART_LIBS="$SMART_LIBS $smart_lib"
21661   else
21662     echo "$as_me:$LINENO: result: no" >&5
21663 echo "${ECHO_T}no" >&6
21664 fi
21665
21666                if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21667                  if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21668                    OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21669                  fi
21670                  if test "x$OPENSSL_LIB_DIR" != "x"; then
21671                    OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21672                  fi
21673                  OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21674                else
21675                  OPENSSL_INCLUDE=
21676                  OPENSSL_LIBS=
21677                fi
21678              fi
21679            fi
21680        CPPFLAGS=$old_CPPFLAGS
21681        LIBS="$old_LIBS"
21682 fi
21683
21684
21685 export OPENSSL_LIBS
21686
21687
21688 echo "$as_me:$LINENO: checking for off_t" >&5
21689 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21690 if test "${ac_cv_type_off_t+set}" = set; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693   cat >conftest.$ac_ext <<_ACEOF
21694 #line $LINENO "configure"
21695 /* confdefs.h.  */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h.  */
21700 $ac_includes_default
21701 int
21702 main ()
21703 {
21704 if ((off_t *) 0)
21705   return 0;
21706 if (sizeof (off_t))
21707   return 0;
21708   ;
21709   return 0;
21710 }
21711 _ACEOF
21712 rm -f conftest.$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714   (eval $ac_compile) 2>&5
21715   ac_status=$?
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } &&
21718          { ac_try='test -s conftest.$ac_objext'
21719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720   (eval $ac_try) 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; }; then
21724   ac_cv_type_off_t=yes
21725 else
21726   echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 ac_cv_type_off_t=no
21730 fi
21731 rm -f conftest.$ac_objext conftest.$ac_ext
21732 fi
21733 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21734 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21735 if test $ac_cv_type_off_t = yes; then
21736   :
21737 else
21738
21739 cat >>confdefs.h <<_ACEOF
21740 #define off_t long
21741 _ACEOF
21742
21743 fi
21744
21745 echo "$as_me:$LINENO: checking for pid_t" >&5
21746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21747 if test "${ac_cv_type_pid_t+set}" = set; then
21748   echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750   cat >conftest.$ac_ext <<_ACEOF
21751 #line $LINENO "configure"
21752 /* confdefs.h.  */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h.  */
21757 $ac_includes_default
21758 int
21759 main ()
21760 {
21761 if ((pid_t *) 0)
21762   return 0;
21763 if (sizeof (pid_t))
21764   return 0;
21765   ;
21766   return 0;
21767 }
21768 _ACEOF
21769 rm -f conftest.$ac_objext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21771   (eval $ac_compile) 2>&5
21772   ac_status=$?
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } &&
21775          { ac_try='test -s conftest.$ac_objext'
21776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777   (eval $ac_try) 2>&5
21778   ac_status=$?
21779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780   (exit $ac_status); }; }; then
21781   ac_cv_type_pid_t=yes
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786 ac_cv_type_pid_t=no
21787 fi
21788 rm -f conftest.$ac_objext conftest.$ac_ext
21789 fi
21790 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21791 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21792 if test $ac_cv_type_pid_t = yes; then
21793   :
21794 else
21795
21796 cat >>confdefs.h <<_ACEOF
21797 #define pid_t int
21798 _ACEOF
21799
21800 fi
21801
21802 echo "$as_me:$LINENO: checking for size_t" >&5
21803 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21804 if test "${ac_cv_type_size_t+set}" = set; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807   cat >conftest.$ac_ext <<_ACEOF
21808 #line $LINENO "configure"
21809 /* confdefs.h.  */
21810 _ACEOF
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h.  */
21814 $ac_includes_default
21815 int
21816 main ()
21817 {
21818 if ((size_t *) 0)
21819   return 0;
21820 if (sizeof (size_t))
21821   return 0;
21822   ;
21823   return 0;
21824 }
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828   (eval $ac_compile) 2>&5
21829   ac_status=$?
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } &&
21832          { ac_try='test -s conftest.$ac_objext'
21833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834   (eval $ac_try) 2>&5
21835   ac_status=$?
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); }; }; then
21838   ac_cv_type_size_t=yes
21839 else
21840   echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843 ac_cv_type_size_t=no
21844 fi
21845 rm -f conftest.$ac_objext conftest.$ac_ext
21846 fi
21847 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21848 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21849 if test $ac_cv_type_size_t = yes; then
21850   :
21851 else
21852
21853 cat >>confdefs.h <<_ACEOF
21854 #define size_t unsigned
21855 _ACEOF
21856
21857 fi
21858
21859 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21860 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21861 if test "${ac_cv_type_uid_t+set}" = set; then
21862   echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864   cat >conftest.$ac_ext <<_ACEOF
21865 #line $LINENO "configure"
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 #include <sys/types.h>
21872
21873 _ACEOF
21874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21875   $EGREP "uid_t" >/dev/null 2>&1; then
21876   ac_cv_type_uid_t=yes
21877 else
21878   ac_cv_type_uid_t=no
21879 fi
21880 rm -f conftest*
21881
21882 fi
21883 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21884 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21885 if test $ac_cv_type_uid_t = no; then
21886
21887 cat >>confdefs.h <<\_ACEOF
21888 #define uid_t int
21889 _ACEOF
21890
21891
21892 cat >>confdefs.h <<\_ACEOF
21893 #define gid_t int
21894 _ACEOF
21895
21896 fi
21897
21898
21899
21900   echo "$as_me:$LINENO: checking for socklen_t" >&5
21901 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21902 if test "${ac_cv_type_socklen_t+set}" = set; then
21903   echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21905    ac_cv_type_socklen_t=no
21906       cat >conftest.$ac_ext <<_ACEOF
21907 #line $LINENO "configure"
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913 #ifdef HAVE_SYS_TYPES_H
21914 #include <sys/types.h>
21915 #endif
21916 #ifdef HAVE_SYS_SOCKET_H
21917 #include <sys/socket.h>
21918 #endif
21919
21920 int
21921 main ()
21922 {
21923 socklen_t foo
21924   ;
21925   return 0;
21926 }
21927 _ACEOF
21928 rm -f conftest.$ac_objext
21929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21930   (eval $ac_compile) 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } &&
21934          { ac_try='test -s conftest.$ac_objext'
21935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936   (eval $ac_try) 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); }; }; then
21940   ac_cv_type_socklen_t=yes
21941 else
21942   echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945 fi
21946 rm -f conftest.$ac_objext conftest.$ac_ext
21947
21948
21949 fi
21950 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21951 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21952
21953   if test "$ac_cv_type_socklen_t" != "yes"; then
21954
21955 cat >>confdefs.h <<\_ACEOF
21956 #define socklen_t int
21957 _ACEOF
21958
21959   fi
21960
21961
21962
21963   echo "$as_me:$LINENO: checking for uint8_t" >&5
21964 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21965 if test "${ac_cv_type_uint8_t+set}" = set; then
21966   echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968    ac_cv_type_uint8_t=no
21969       cat >conftest.$ac_ext <<_ACEOF
21970 #line $LINENO "configure"
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 #ifdef HAVE_INTTYPES_H
21977 #include <inttypes.h>
21978 #endif
21979 #ifdef HAVE_STDINT_H
21980 #include <stdint.h>
21981 #endif
21982
21983 int
21984 main ()
21985 {
21986 uint8_t foo
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993   (eval $ac_compile) 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); } &&
21997          { ac_try='test -s conftest.$ac_objext'
21998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999   (eval $ac_try) 2>&5
22000   ac_status=$?
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); }; }; then
22003   ac_cv_type_uint8_t=yes
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008 fi
22009 rm -f conftest.$ac_objext conftest.$ac_ext
22010
22011
22012 fi
22013 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22014 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22015
22016   if test "$ac_cv_type_uint8_t" != "yes"; then
22017
22018 cat >>confdefs.h <<\_ACEOF
22019 #define uint8_t unsigned char
22020 _ACEOF
22021
22022   fi
22023
22024
22025
22026   echo "$as_me:$LINENO: checking for uint16_t" >&5
22027 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22028 if test "${ac_cv_type_uint16_t+set}" = set; then
22029   echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031    ac_cv_type_uint16_t=no
22032       cat >conftest.$ac_ext <<_ACEOF
22033 #line $LINENO "configure"
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 #ifdef HAVE_INTTYPES_H
22040 #include <inttypes.h>
22041 #endif
22042 #ifdef HAVE_STDINT_H
22043 #include <stdint.h>
22044 #endif
22045
22046 int
22047 main ()
22048 {
22049 uint16_t foo
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22056   (eval $ac_compile) 2>&5
22057   ac_status=$?
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); } &&
22060          { ac_try='test -s conftest.$ac_objext'
22061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062   (eval $ac_try) 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; }; then
22066   ac_cv_type_uint16_t=yes
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071 fi
22072 rm -f conftest.$ac_objext conftest.$ac_ext
22073
22074
22075 fi
22076 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22077 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22078
22079   if test "$ac_cv_type_uint16_t" != "yes"; then
22080
22081 cat >>confdefs.h <<\_ACEOF
22082 #define uint16_t unsigned short
22083 _ACEOF
22084
22085   fi
22086
22087
22088
22089   echo "$as_me:$LINENO: checking for uint32_t" >&5
22090 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22091 if test "${ac_cv_type_uint32_t+set}" = set; then
22092   echo $ECHO_N "(cached) $ECHO_C" >&6
22093 else
22094    ac_cv_type_uint32_t=no
22095       cat >conftest.$ac_ext <<_ACEOF
22096 #line $LINENO "configure"
22097 /* confdefs.h.  */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h.  */
22102 #ifdef HAVE_INTTYPES_H
22103 #include <inttypes.h>
22104 #endif
22105 #ifdef HAVE_STDINT_H
22106 #include <stdint.h>
22107 #endif
22108
22109 int
22110 main ()
22111 {
22112 uint32_t foo
22113   ;
22114   return 0;
22115 }
22116 _ACEOF
22117 rm -f conftest.$ac_objext
22118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22119   (eval $ac_compile) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); } &&
22123          { ac_try='test -s conftest.$ac_objext'
22124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125   (eval $ac_try) 2>&5
22126   ac_status=$?
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); }; }; then
22129   ac_cv_type_uint32_t=yes
22130 else
22131   echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134 fi
22135 rm -f conftest.$ac_objext conftest.$ac_ext
22136
22137
22138 fi
22139 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22140 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22141
22142   if test "$ac_cv_type_uint32_t" != "yes"; then
22143
22144 cat >>confdefs.h <<\_ACEOF
22145 #define uint32_t unsigned int
22146 _ACEOF
22147
22148   fi
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174 for ac_func in \
22175         getopt_long \
22176         lockf \
22177         strsignal \
22178         sigaction \
22179         sigprocmask \
22180         pthread_sigmask \
22181         snprintf \
22182         vsnprintf \
22183         setsid \
22184         strncasecmp \
22185         strcasecmp \
22186         localtime_r \
22187         ctime_r \
22188         gmtime_r \
22189         strsep \
22190         inet_aton \
22191         inet_pton \
22192         inet_ntop \
22193         gethostname \
22194         setlinebuf \
22195         setvbuf \
22196         getusershell \
22197         initgroups
22198
22199 do
22200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22201 echo "$as_me:$LINENO: checking for $ac_func" >&5
22202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22203 if eval "test \"\${$as_ac_var+set}\" = set"; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206   cat >conftest.$ac_ext <<_ACEOF
22207 #line $LINENO "configure"
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213 /* System header to define __stub macros and hopefully few prototypes,
22214     which can conflict with char $ac_func (); below.
22215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216     <limits.h> exists even on freestanding compilers.  */
22217 #ifdef __STDC__
22218 # include <limits.h>
22219 #else
22220 # include <assert.h>
22221 #endif
22222 /* Override any gcc2 internal prototype to avoid an error.  */
22223 #ifdef __cplusplus
22224 extern "C"
22225 {
22226 #endif
22227 /* We use char because int might match the return type of a gcc2
22228    builtin and then its argument prototype would still apply.  */
22229 char $ac_func ();
22230 /* The GNU C library defines this for functions which it implements
22231     to always fail with ENOSYS.  Some functions are actually named
22232     something starting with __ and the normal name is an alias.  */
22233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22234 choke me
22235 #else
22236 char (*f) () = $ac_func;
22237 #endif
22238 #ifdef __cplusplus
22239 }
22240 #endif
22241
22242 int
22243 main ()
22244 {
22245 return f != $ac_func;
22246   ;
22247   return 0;
22248 }
22249 _ACEOF
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22252   (eval $ac_link) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); } &&
22256          { ac_try='test -s conftest$ac_exeext'
22257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258   (eval $ac_try) 2>&5
22259   ac_status=$?
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); }; }; then
22262   eval "$as_ac_var=yes"
22263 else
22264   echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22266
22267 eval "$as_ac_var=no"
22268 fi
22269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22270 fi
22271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22273 if test `eval echo '${'$as_ac_var'}'` = yes; then
22274   cat >>confdefs.h <<_ACEOF
22275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22276 _ACEOF
22277
22278 fi
22279 done
22280
22281 for ac_func in \
22282         crypt \
22283         strncasecmp \
22284         strcasecmp \
22285         inet_aton \
22286         gethostname \
22287         setlinebuf \
22288         getusershell \
22289         endusershell
22290
22291 do
22292 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22293 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22294 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22295   echo $ECHO_N "(cached) $ECHO_C" >&6
22296 else
22297   cat >conftest.$ac_ext <<_ACEOF
22298 #line $LINENO "configure"
22299 /* confdefs.h.  */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h.  */
22304
22305 #include <stdio.h>
22306 #include <string.h>
22307 #ifdef HAVE_UNISTD_H
22308 #include <unistd.h>
22309 #endif
22310 #ifdef HAVE_CRYPT_H
22311 #include <crypt.h>
22312 #endif
22313 #ifdef HAVE_ERRNO_H
22314 #include <errno.h>
22315 #endif
22316 #ifdef HAVE_RESOURCE_H
22317 #include <resource.h>
22318 #endif
22319 #ifdef HAVE_GETOPT_H
22320 #include <getopt.h>
22321 #endif
22322 #ifdef HAVE_MALLOC_H
22323 #include <malloc.h>
22324 #endif
22325 #ifdef HAVE_UTMP_H
22326 #include <utmp.h>
22327 #endif
22328 #ifdef HAVE_UTMPX_H
22329 #include <utmpx.h>
22330 #endif
22331 #ifdef HAVE_SYS_SELECT_H
22332 #include <sys/select.h>
22333 #endif
22334 #ifdef HAVE_DLFCN_H
22335 #include <dlfcn.h>
22336 #endif
22337 #ifdef HAVE_REGEX_H
22338 #include <regex.h>
22339 #endif
22340 #ifdef HAVE_SYSLOG_H
22341 #include <syslog.h>
22342 #endif
22343 #ifdef HAVE_INTTYPES_H
22344 #include <inttypes.h>
22345 #endif
22346 #ifdef HAVE_STDINT_H
22347 #include <stdint.h>
22348 #endif
22349 #ifdef HAVE_ARPA_INET_H
22350 #include <arpa/inet.h>
22351 #endif
22352
22353 int
22354 main ()
22355 {
22356 char *(*pfn) = (char *(*)) $ac_func
22357   ;
22358   return 0;
22359 }
22360 _ACEOF
22361 rm -f conftest.$ac_objext
22362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363   (eval $ac_compile) 2>&5
22364   ac_status=$?
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } &&
22367          { ac_try='test -s conftest.$ac_objext'
22368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369   (eval $ac_try) 2>&5
22370   ac_status=$?
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); }; }; then
22373   eval "radius_cv_decl_needed_$ac_func=no"
22374 else
22375   echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 eval "radius_cv_decl_needed_$ac_func=yes"
22379 fi
22380 rm -f conftest.$ac_objext conftest.$ac_ext
22381 fi
22382
22383 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22384   echo "$as_me:$LINENO: result: yes" >&5
22385 echo "${ECHO_T}yes" >&6
22386   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22387   cat >>confdefs.h <<_ACEOF
22388 #define $radius_tr_decl 1
22389 _ACEOF
22390
22391 else
22392   echo "$as_me:$LINENO: result: no" >&5
22393 echo "${ECHO_T}no" >&6
22394 fi
22395
22396 done
22397
22398
22399 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22400 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22401 if test "${ac_cv_type_signal+set}" = set; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   cat >conftest.$ac_ext <<_ACEOF
22405 #line $LINENO "configure"
22406 /* confdefs.h.  */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h.  */
22411 #include <sys/types.h>
22412 #include <signal.h>
22413 #ifdef signal
22414 # undef signal
22415 #endif
22416 #ifdef __cplusplus
22417 extern "C" void (*signal (int, void (*)(int)))(int);
22418 #else
22419 void (*signal ()) ();
22420 #endif
22421
22422 int
22423 main ()
22424 {
22425 int i;
22426   ;
22427   return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22432   (eval $ac_compile) 2>&5
22433   ac_status=$?
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); } &&
22436          { ac_try='test -s conftest.$ac_objext'
22437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438   (eval $ac_try) 2>&5
22439   ac_status=$?
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); }; }; then
22442   ac_cv_type_signal=void
22443 else
22444   echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22446
22447 ac_cv_type_signal=int
22448 fi
22449 rm -f conftest.$ac_objext conftest.$ac_ext
22450 fi
22451 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22452 echo "${ECHO_T}$ac_cv_type_signal" >&6
22453
22454 cat >>confdefs.h <<_ACEOF
22455 #define RETSIGTYPE $ac_cv_type_signal
22456 _ACEOF
22457
22458
22459
22460 if test "x$ac_cv_header_utmpx_h" = "xyes"
22461 then
22462
22463   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22464 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22465
22466
22467   cat >conftest.$ac_ext <<_ACEOF
22468 #line $LINENO "configure"
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474
22475 #include <utmpx.h>
22476 #ifndef offsetof
22477 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22478 #endif
22479
22480 int
22481 main ()
22482 {
22483  int foo = offsetof(struct utmpx, ut_xtime)
22484   ;
22485   return 0;
22486 }
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22490   (eval $ac_compile) 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); } &&
22494          { ac_try='test -s conftest.$ac_objext'
22495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496   (eval $ac_try) 2>&5
22497   ac_status=$?
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); }; }; then
22500   has_element=" "
22501 else
22502   echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505 has_element=
22506 fi
22507 rm -f conftest.$ac_objext conftest.$ac_ext
22508
22509   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22510   if test "x$has_element" != "x"; then
22511     echo "$as_me:$LINENO: result: yes" >&5
22512 echo "${ECHO_T}yes" >&6
22513     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22514   else
22515     echo "$as_me:$LINENO: result: no" >&5
22516 echo "${ECHO_T}no" >&6
22517     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22518  fi
22519
22520  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22521  then
22522
22523 cat >>confdefs.h <<\_ACEOF
22524 #define ut_xtime ut_tv.tv_sec
22525 _ACEOF
22526
22527  fi
22528 fi
22529
22530
22531   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22532 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22533
22534
22535   cat >conftest.$ac_ext <<_ACEOF
22536 #line $LINENO "configure"
22537 /* confdefs.h.  */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h.  */
22542
22543 #include <netinet/in.h>
22544 #ifndef offsetof
22545 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22546 #endif
22547
22548 int
22549 main ()
22550 {
22551  int foo = offsetof(struct in_pktinfo, ipi_addr)
22552   ;
22553   return 0;
22554 }
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558   (eval $ac_compile) 2>&5
22559   ac_status=$?
22560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561   (exit $ac_status); } &&
22562          { ac_try='test -s conftest.$ac_objext'
22563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564   (eval $ac_try) 2>&5
22565   ac_status=$?
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); }; }; then
22568   has_element=" "
22569 else
22570   echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22572
22573 has_element=
22574 fi
22575 rm -f conftest.$ac_objext conftest.$ac_ext
22576
22577   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22578   if test "x$has_element" != "x"; then
22579     echo "$as_me:$LINENO: result: yes" >&5
22580 echo "${ECHO_T}yes" >&6
22581     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22582   else
22583     echo "$as_me:$LINENO: result: no" >&5
22584 echo "${ECHO_T}no" >&6
22585     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22586  fi
22587
22588 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22589 then
22590
22591 cat >>confdefs.h <<\_ACEOF
22592 #define HAVE_IP_PKTINFO
22593 _ACEOF
22594
22595 fi
22596
22597
22598 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22599 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22600 if test "${ac_cv_c_const+set}" = set; then
22601   echo $ECHO_N "(cached) $ECHO_C" >&6
22602 else
22603   cat >conftest.$ac_ext <<_ACEOF
22604 #line $LINENO "configure"
22605 /* confdefs.h.  */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h.  */
22610
22611 int
22612 main ()
22613 {
22614 /* FIXME: Include the comments suggested by Paul. */
22615 #ifndef __cplusplus
22616   /* Ultrix mips cc rejects this.  */
22617   typedef int charset[2];
22618   const charset x;
22619   /* SunOS 4.1.1 cc rejects this.  */
22620   char const *const *ccp;
22621   char **p;
22622   /* NEC SVR4.0.2 mips cc rejects this.  */
22623   struct point {int x, y;};
22624   static struct point const zero = {0,0};
22625   /* AIX XL C 1.02.0.0 rejects this.
22626      It does not let you subtract one const X* pointer from another in
22627      an arm of an if-expression whose if-part is not a constant
22628      expression */
22629   const char *g = "string";
22630   ccp = &g + (g ? g-g : 0);
22631   /* HPUX 7.0 cc rejects these. */
22632   ++ccp;
22633   p = (char**) ccp;
22634   ccp = (char const *const *) p;
22635   { /* SCO 3.2v4 cc rejects this.  */
22636     char *t;
22637     char const *s = 0 ? (char *) 0 : (char const *) 0;
22638
22639     *t++ = 0;
22640   }
22641   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22642     int x[] = {25, 17};
22643     const int *foo = &x[0];
22644     ++foo;
22645   }
22646   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22647     typedef const int *iptr;
22648     iptr p = 0;
22649     ++p;
22650   }
22651   { /* AIX XL C 1.02.0.0 rejects this saying
22652        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22653     struct s { int j; const int *ap[3]; };
22654     struct s *b; b->j = 5;
22655   }
22656   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22657     const int foo = 10;
22658   }
22659 #endif
22660
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667   (eval $ac_compile) 2>&5
22668   ac_status=$?
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); } &&
22671          { ac_try='test -s conftest.$ac_objext'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }; then
22677   ac_cv_c_const=yes
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682 ac_cv_c_const=no
22683 fi
22684 rm -f conftest.$ac_objext conftest.$ac_ext
22685 fi
22686 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22687 echo "${ECHO_T}$ac_cv_c_const" >&6
22688 if test $ac_cv_c_const = no; then
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define const
22692 _ACEOF
22693
22694 fi
22695
22696
22697 echo "$as_me:$LINENO: checking type of OS" >&5
22698 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22699 OS=`uname -s`
22700 echo "$as_me:$LINENO: result: $OS" >&5
22701 echo "${ECHO_T}$OS" >&6
22702 if test "$OS" = "OS/2"; then
22703         LIBPREFIX=
22704 else
22705         LIBPREFIX=lib
22706 fi
22707
22708
22709 if test "x$GCC" = "xyes"; then
22710     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22711 fi
22712
22713 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22714 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22715 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22716   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22717   CFLAGS="$CFLAGS $devflags"
22718   INSTALLSTRIP=""
22719   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22720 echo "${ECHO_T}yes.  Using $devflags" >&6
22721 else
22722   devflags=""
22723   CFLAGS="$CFLAGS -DNDEBUG"
22724   INSTALLSTRIP="-s"
22725   echo "$as_me:$LINENO: result: no." >&5
22726 echo "${ECHO_T}no." >&6
22727 fi
22728
22729
22730 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22731 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22732 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22733   echo $ECHO_N "(cached) $ECHO_C" >&6
22734 else
22735   ac_check_lib_save_LIBS=$LIBS
22736 LIBS="-lcrypt  $LIBS"
22737 cat >conftest.$ac_ext <<_ACEOF
22738 #line $LINENO "configure"
22739 /* confdefs.h.  */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h.  */
22744
22745 /* Override any gcc2 internal prototype to avoid an error.  */
22746 #ifdef __cplusplus
22747 extern "C"
22748 #endif
22749 /* We use char because int might match the return type of a gcc2
22750    builtin and then its argument prototype would still apply.  */
22751 char crypt ();
22752 int
22753 main ()
22754 {
22755 crypt ();
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest.$ac_objext conftest$ac_exeext
22761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22762   (eval $ac_link) 2>&5
22763   ac_status=$?
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); } &&
22766          { ac_try='test -s conftest$ac_exeext'
22767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768   (eval $ac_try) 2>&5
22769   ac_status=$?
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); }; }; then
22772   ac_cv_lib_crypt_crypt=yes
22773 else
22774   echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22776
22777 ac_cv_lib_crypt_crypt=no
22778 fi
22779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22780 LIBS=$ac_check_lib_save_LIBS
22781 fi
22782 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22783 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22784 if test $ac_cv_lib_crypt_crypt = yes; then
22785   CRYPTLIB="-lcrypt"
22786
22787 fi
22788
22789 if test "$CRYPTLIB" != ""; then
22790
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_CRYPT
22793 _ACEOF
22794
22795 else
22796   echo "$as_me:$LINENO: checking for crypt" >&5
22797 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22798 if test "${ac_cv_func_crypt+set}" = set; then
22799   echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801   cat >conftest.$ac_ext <<_ACEOF
22802 #line $LINENO "configure"
22803 /* confdefs.h.  */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h.  */
22808 /* System header to define __stub macros and hopefully few prototypes,
22809     which can conflict with char crypt (); below.
22810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22811     <limits.h> exists even on freestanding compilers.  */
22812 #ifdef __STDC__
22813 # include <limits.h>
22814 #else
22815 # include <assert.h>
22816 #endif
22817 /* Override any gcc2 internal prototype to avoid an error.  */
22818 #ifdef __cplusplus
22819 extern "C"
22820 {
22821 #endif
22822 /* We use char because int might match the return type of a gcc2
22823    builtin and then its argument prototype would still apply.  */
22824 char crypt ();
22825 /* The GNU C library defines this for functions which it implements
22826     to always fail with ENOSYS.  Some functions are actually named
22827     something starting with __ and the normal name is an alias.  */
22828 #if defined (__stub_crypt) || defined (__stub___crypt)
22829 choke me
22830 #else
22831 char (*f) () = crypt;
22832 #endif
22833 #ifdef __cplusplus
22834 }
22835 #endif
22836
22837 int
22838 main ()
22839 {
22840 return f != crypt;
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 rm -f conftest.$ac_objext conftest$ac_exeext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22847   (eval $ac_link) 2>&5
22848   ac_status=$?
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } &&
22851          { ac_try='test -s conftest$ac_exeext'
22852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853   (eval $ac_try) 2>&5
22854   ac_status=$?
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); }; }; then
22857   ac_cv_func_crypt=yes
22858 else
22859   echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22861
22862 ac_cv_func_crypt=no
22863 fi
22864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22865 fi
22866 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22867 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22868 if test $ac_cv_func_crypt = yes; then
22869
22870 cat >>confdefs.h <<\_ACEOF
22871 #define HAVE_CRYPT
22872 _ACEOF
22873
22874 fi
22875
22876 fi
22877
22878 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22879 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22880 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22881   echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22883   ac_check_lib_save_LIBS=$LIBS
22884 LIBS="-lcipher  $LIBS"
22885 cat >conftest.$ac_ext <<_ACEOF
22886 #line $LINENO "configure"
22887 /* confdefs.h.  */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h.  */
22892
22893 /* Override any gcc2 internal prototype to avoid an error.  */
22894 #ifdef __cplusplus
22895 extern "C"
22896 #endif
22897 /* We use char because int might match the return type of a gcc2
22898    builtin and then its argument prototype would still apply.  */
22899 char setkey ();
22900 int
22901 main ()
22902 {
22903 setkey ();
22904   ;
22905   return 0;
22906 }
22907 _ACEOF
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22910   (eval $ac_link) 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); } &&
22914          { ac_try='test -s conftest$ac_exeext'
22915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916   (eval $ac_try) 2>&5
22917   ac_status=$?
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); }; }; then
22920   ac_cv_lib_cipher_setkey=yes
22921 else
22922   echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22924
22925 ac_cv_lib_cipher_setkey=no
22926 fi
22927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22928 LIBS=$ac_check_lib_save_LIBS
22929 fi
22930 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22931 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22932 if test $ac_cv_lib_cipher_setkey = yes; then
22933   CRYPTLIB="${CRYPTLIB} -lcipher"
22934
22935 fi
22936
22937
22938
22939 if test "x$WITH_SNMP" = "xyes"; then
22940
22941
22942
22943
22944 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22945 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22946
22947 cat >conftest.$ac_ext <<_ACEOF
22948 #line $LINENO "configure"
22949 /* confdefs.h.  */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h.  */
22954
22955 #ifdef HAVE_SYS_TYPES_H
22956 #include <sys/types.h>
22957 #endif
22958 #ifdef HAVE_STDINT_H
22959 #include <stdint.h>
22960 #endif
22961 #ifdef HAVE_STDIO_H
22962 #include <stdio.h>
22963 #endif
22964 #ifdef HAVE_NETDB_H
22965 #include <netdb.h>
22966 #endif
22967 #ifdef HAVE_UNISTD_H
22968 #include <unistd.h>
22969 #endif
22970 #include <ucd-snmp/ucd-snmp-config.h>
22971 #include <ucd-snmp/asn1.h>
22972 #include <ucd-snmp/snmp.h>
22973 #include <ucd-snmp/snmp_impl.h>
22974 int
22975 main ()
22976 {
22977  int a = 1;
22978   ;
22979   return 0;
22980 }
22981 _ACEOF
22982 rm -f conftest.$ac_objext
22983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22984   (eval $ac_compile) 2>&5
22985   ac_status=$?
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); } &&
22988          { ac_try='test -s conftest.$ac_objext'
22989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990   (eval $ac_try) 2>&5
22991   ac_status=$?
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); }; }; then
22994   SNMP_INCLUDE="";ucdsnmp=yes
22995 else
22996   echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22998
22999 ucdsnmp=
23000 fi
23001 rm -f conftest.$ac_objext conftest.$ac_ext
23002
23003 if test "x$ucdsnmp" = "x"; then
23004   old_CFLAGS="$CFLAGS"
23005   for try in /usr/include /usr/local/include $snmp_include_dir; do
23006     CFLAGS="$old_CFLAGS -I$try"
23007     cat >conftest.$ac_ext <<_ACEOF
23008 #line $LINENO "configure"
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014
23015 #ifdef HAVE_SYS_TYPES_H
23016 #include <sys/types.h>
23017 #endif
23018 #ifdef HAVE_STDINT_H
23019 #include <stdint.h>
23020 #endif
23021 #ifdef HAVE_STDIO_H
23022 #include <stdio.h>
23023 #endif
23024 #ifdef HAVE_NETDB_H
23025 #include <netdb.h>
23026 #endif
23027 #ifdef HAVE_UNISTD_H
23028 #include <unistd.h>
23029 #endif
23030 #include <ucd-snmp/ucd-snmp-config.h>
23031 #include <ucd-snmp/asn1.h>
23032 #include <ucd-snmp/snmp.h>
23033 #include <ucd-snmp/snmp_impl.h>
23034 int
23035 main ()
23036 {
23037  int a = 1;
23038   ;
23039   return 0;
23040 }
23041 _ACEOF
23042 rm -f conftest.$ac_objext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23044   (eval $ac_compile) 2>&5
23045   ac_status=$?
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); } &&
23048          { ac_try='test -s conftest.$ac_objext'
23049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050   (eval $ac_try) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }; }; then
23054   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23055 else
23056   echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23058
23059 ucdsnmp=
23060 fi
23061 rm -f conftest.$ac_objext conftest.$ac_ext
23062     if test "x$ucdsnmp" != "x"; then
23063       break;
23064     fi
23065   done
23066   CFLAGS="$old_CFLAGS"
23067 fi
23068
23069 if test "x$ucdsnmp" = "x"; then
23070   old_CFLAGS="$CFLAGS"
23071   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23072     CFLAGS="$old_CFLAGS -I$try"
23073 cat >conftest.$ac_ext <<_ACEOF
23074 #line $LINENO "configure"
23075 /* confdefs.h.  */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h.  */
23080
23081 #ifdef HAVE_SYS_TYPES_H
23082 #include <sys/types.h>
23083 #endif
23084 #ifdef HAVE_STDINT_H
23085 #include <stdint.h>
23086 #endif
23087 #ifdef HAVE_STDIO_H
23088 #include <stdio.h>
23089 #endif
23090 #ifdef HAVE_NETDB_H
23091 #include <netdb.h>
23092 #endif
23093 #ifdef HAVE_UNISTD_H
23094 #include <unistd.h>
23095 #endif
23096 #include <asn1.h>
23097 #include <snmp.h>
23098 #include <snmp_impl.h>
23099 int
23100 main ()
23101 {
23102  int a = 1;
23103   ;
23104   return 0;
23105 }
23106 _ACEOF
23107 rm -f conftest.$ac_objext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23109   (eval $ac_compile) 2>&5
23110   ac_status=$?
23111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112   (exit $ac_status); } &&
23113          { ac_try='test -s conftest.$ac_objext'
23114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115   (eval $ac_try) 2>&5
23116   ac_status=$?
23117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118   (exit $ac_status); }; }; then
23119   SNMP_INCLUDE="";ucdsnmp=no
23120 else
23121   echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23123
23124 ucdsnmp=
23125 fi
23126 rm -f conftest.$ac_objext conftest.$ac_ext
23127     if test "x$ucdsnmp" != "x"; then
23128       break;
23129     fi
23130   done
23131   CFLAGS="$old_CFLAGS"
23132 fi
23133
23134 if test "x$ucdsnmp" = "x"; then
23135   old_CFLAGS="$CFLAGS"
23136   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23137     CFLAGS="$old_CFLAGS -I$try"
23138     cat >conftest.$ac_ext <<_ACEOF
23139 #line $LINENO "configure"
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145
23146 #ifdef HAVE_SYS_TYPES_H
23147 #include <sys/types.h>
23148 #endif
23149 #ifdef HAVE_STDINT_H
23150 #include <stdint.h>
23151 #endif
23152 #ifdef HAVE_STDIO_H
23153 #include <stdio.h>
23154 #endif
23155 #ifdef HAVE_NETDB_H
23156 #include <netdb.h>
23157 #endif
23158 #ifdef HAVE_UNISTD_H
23159 #include <unistd.h>
23160 #endif
23161 #include <asn1.h>
23162 #include <snmp.h>
23163 #include <snmp_impl.h>
23164 int
23165 main ()
23166 {
23167  int a = 1;
23168   ;
23169   return 0;
23170 }
23171 _ACEOF
23172 rm -f conftest.$ac_objext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23174   (eval $ac_compile) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } &&
23178          { ac_try='test -s conftest.$ac_objext'
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   SNMP_INCLUDE="-I$try";ucdsnmp=no
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ucdsnmp=
23190 fi
23191 rm -f conftest.$ac_objext conftest.$ac_ext
23192     if test "x$ucdsnmp" != "x"; then
23193       break;
23194     fi
23195   done
23196   CFLAGS="$old_CFLAGS"
23197 fi
23198
23199 if test "x$ucdsnmp" = "x"; then
23200   echo "$as_me:$LINENO: result: no" >&5
23201 echo "${ECHO_T}no" >&6
23202 else
23203   if test "x$ucdsnmp" = "xyes"; then
23204     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23205 echo "${ECHO_T}(ucd-snmp)yes" >&6
23206
23207 cat >>confdefs.h <<\_ACEOF
23208 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
23209 _ACEOF
23210
23211   else
23212     echo "$as_me:$LINENO: result: yes" >&5
23213 echo "${ECHO_T}yes" >&6
23214
23215 cat >>confdefs.h <<\_ACEOF
23216 #define HAVE_ASN1_SNMP_SNMPIMPL_H
23217 _ACEOF
23218
23219   fi
23220   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23221 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23222
23223   old_LIBS="$LIBS"
23224   LIBS="$old_LIBS -lsnmp"
23225   cat >conftest.$ac_ext <<_ACEOF
23226 #line $LINENO "configure"
23227 /* confdefs.h.  */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h.  */
23232 extern char snmp_build_var_op();
23233 int
23234 main ()
23235 {
23236  snmp_build_var_op()
23237   ;
23238   return 0;
23239 }
23240 _ACEOF
23241 rm -f conftest.$ac_objext conftest$ac_exeext
23242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23243   (eval $ac_link) 2>&5
23244   ac_status=$?
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); } &&
23247          { ac_try='test -s conftest$ac_exeext'
23248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249   (eval $ac_try) 2>&5
23250   ac_status=$?
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); }; }; then
23253   SNMP_LIBS="-lsnmp"
23254 else
23255   echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23257
23258 SNMP_LIBS=
23259 fi
23260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23261
23262   if test "x$SNMP_LIBS" = "x"; then
23263     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23264       LIBS="$old_LIBS -L$try -lsnmp"
23265       cat >conftest.$ac_ext <<_ACEOF
23266 #line $LINENO "configure"
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 extern char snmp_build_var_op();
23273 int
23274 main ()
23275 {
23276  snmp_build_var_op()
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283   (eval $ac_link) 2>&5
23284   ac_status=$?
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); } &&
23287          { ac_try='test -s conftest$ac_exeext'
23288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289   (eval $ac_try) 2>&5
23290   ac_status=$?
23291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292   (exit $ac_status); }; }; then
23293   SNMP_LIBS="-L$try -lsnmp"
23294 else
23295   echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297
23298 SNMP_LIBS=
23299 fi
23300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23301       if test "x$SNMP_LIBS" != "x"; then
23302         break;
23303       fi
23304       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23305       cat >conftest.$ac_ext <<_ACEOF
23306 #line $LINENO "configure"
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312 extern char snmp_build_var_op();
23313 int
23314 main ()
23315 {
23316  snmp_build_var_op()
23317   ;
23318   return 0;
23319 }
23320 _ACEOF
23321 rm -f conftest.$ac_objext conftest$ac_exeext
23322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23323   (eval $ac_link) 2>&5
23324   ac_status=$?
23325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326   (exit $ac_status); } &&
23327          { ac_try='test -s conftest$ac_exeext'
23328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329   (eval $ac_try) 2>&5
23330   ac_status=$?
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); }; }; then
23333   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23334 else
23335   echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23337
23338 SNMP_LIBS=
23339 fi
23340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23341       if test "x$SNMP_LIBS" != "x"; then
23342         break;
23343       fi
23344       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23345       cat >conftest.$ac_ext <<_ACEOF
23346 #line $LINENO "configure"
23347 /* confdefs.h.  */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h.  */
23352 extern char snmp_build_var_op();
23353 int
23354 main ()
23355 {
23356  snmp_build_var_op()
23357   ;
23358   return 0;
23359 }
23360 _ACEOF
23361 rm -f conftest.$ac_objext conftest$ac_exeext
23362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23363   (eval $ac_link) 2>&5
23364   ac_status=$?
23365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); } &&
23367          { ac_try='test -s conftest$ac_exeext'
23368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369   (eval $ac_try) 2>&5
23370   ac_status=$?
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); }; }; then
23373   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23374 else
23375   echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23377
23378 SNMP_LIBS=
23379 fi
23380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23381       if test "x$SNMP_LIBS" != "x"; then
23382         break;
23383       fi
23384     done
23385   fi
23386   LIBS="$old_LIBS"
23387
23388           CFLAGS="$old_CFLAGS"
23389   if test "x$SNMP_LIBS" = "x"; then
23390     echo "$as_me:$LINENO: result: no" >&5
23391 echo "${ECHO_T}no" >&6
23392     SNMP_INCLUDE=
23393   else
23394     echo "$as_me:$LINENO: result: yes" >&5
23395 echo "${ECHO_T}yes" >&6
23396
23397 cat >>confdefs.h <<\_ACEOF
23398 #define WITH_SNMP
23399 _ACEOF
23400
23401
23402 cat >>confdefs.h <<\_ACEOF
23403 #define HAVE_LIBSNMP
23404 _ACEOF
23405
23406   fi
23407 fi
23408
23409 fi
23410
23411
23412 cat >>confdefs.h <<\_ACEOF
23413 #define GNUSTYLE 1
23414 _ACEOF
23415
23416
23417 cat >>confdefs.h <<\_ACEOF
23418 #define SYSVSTYLE 2
23419 _ACEOF
23420
23421
23422 cat >>confdefs.h <<\_ACEOF
23423 #define BSDSTYLE 3
23424 _ACEOF
23425
23426 gethostbyaddrrstyle=""
23427 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23428 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23429 case "$host" in
23430 *-freebsd*)
23431
23432 cat >>confdefs.h <<\_ACEOF
23433 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23434 _ACEOF
23435
23436         gethostbyaddrrstyle=BSD
23437         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23438 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23439         ;;
23440 esac
23441 if test "x$gethostbyaddrrstyle" = "x"; then
23442         cat >conftest.$ac_ext <<_ACEOF
23443 #line $LINENO "configure"
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449
23450 #include <stdio.h>
23451 #include <netdb.h>
23452
23453 int
23454 main ()
23455 {
23456  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23463   (eval $ac_link) 2>&5
23464   ac_status=$?
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); } &&
23467          { ac_try='test -s conftest$ac_exeext'
23468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469   (eval $ac_try) 2>&5
23470   ac_status=$?
23471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); }; }; then
23473
23474
23475 cat >>confdefs.h <<\_ACEOF
23476 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23477 _ACEOF
23478
23479         gethostbyaddrrstyle=GNU
23480
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485 fi
23486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23487 fi
23488 if test "x$gethostbyaddrrstyle" = "x"; then
23489         cat >conftest.$ac_ext <<_ACEOF
23490 #line $LINENO "configure"
23491 /* confdefs.h.  */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h.  */
23496
23497 #include <stdio.h>
23498 #include <netdb.h>
23499
23500 int
23501 main ()
23502 {
23503  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23504   ;
23505   return 0;
23506 }
23507 _ACEOF
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510   (eval $ac_link) 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } &&
23514          { ac_try='test -s conftest$ac_exeext'
23515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516   (eval $ac_try) 2>&5
23517   ac_status=$?
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); }; }; then
23520
23521
23522 cat >>confdefs.h <<\_ACEOF
23523 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23524 _ACEOF
23525
23526                 gethostbyaddrrstyle=SYSV
23527
23528 else
23529   echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23531
23532 fi
23533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23534 fi
23535 if test "x$gethostbyaddrrstyle" = "x"; then
23536         cat >conftest.$ac_ext <<_ACEOF
23537 #line $LINENO "configure"
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543
23544 #include <stdio.h>
23545 #include <netdb.h>
23546
23547 int
23548 main ()
23549 {
23550  gethostbyaddr(NULL, 0, 0)
23551   ;
23552   return 0;
23553 }
23554 _ACEOF
23555 rm -f conftest.$ac_objext conftest$ac_exeext
23556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557   (eval $ac_link) 2>&5
23558   ac_status=$?
23559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); } &&
23561          { ac_try='test -s conftest$ac_exeext'
23562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563   (eval $ac_try) 2>&5
23564   ac_status=$?
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); }; }; then
23567
23568
23569 cat >>confdefs.h <<\_ACEOF
23570 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23571 _ACEOF
23572
23573                 gethostbyaddrrstyle=BSD
23574
23575 else
23576   echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23578
23579 fi
23580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23581 fi
23582
23583 if test "x$gethostbyaddrrstyle" = "x"; then
23584         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23585 echo "${ECHO_T}none!  It must not exist, here." >&6
23586 else
23587         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23588 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23589 fi
23590
23591 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23592         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23593 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23594 fi
23595
23596 gethostbynamerstyle=""
23597 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23598 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23599 cat >conftest.$ac_ext <<_ACEOF
23600 #line $LINENO "configure"
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606
23607 #include <stdio.h>
23608 #include <netdb.h>
23609
23610 int
23611 main ()
23612 {
23613  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23614   ;
23615   return 0;
23616 }
23617 _ACEOF
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23620   (eval $ac_link) 2>&5
23621   ac_status=$?
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } &&
23624          { ac_try='test -s conftest$ac_exeext'
23625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626   (eval $ac_try) 2>&5
23627   ac_status=$?
23628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629   (exit $ac_status); }; }; then
23630
23631
23632 cat >>confdefs.h <<\_ACEOF
23633 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23634 _ACEOF
23635
23636         gethostbynamerstyle=GNU
23637
23638 else
23639   echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23641
23642 fi
23643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23644 if test "x$gethostbynamerstyle" = "x"; then
23645         cat >conftest.$ac_ext <<_ACEOF
23646 #line $LINENO "configure"
23647 /* confdefs.h.  */
23648 _ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h.  */
23652
23653 #include <stdio.h>
23654 #include <netdb.h>
23655
23656 int
23657 main ()
23658 {
23659  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 rm -f conftest.$ac_objext conftest$ac_exeext
23665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23666   (eval $ac_link) 2>&5
23667   ac_status=$?
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } &&
23670          { ac_try='test -s conftest$ac_exeext'
23671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672   (eval $ac_try) 2>&5
23673   ac_status=$?
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); }; }; then
23676
23677
23678 cat >>confdefs.h <<\_ACEOF
23679 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23680 _ACEOF
23681
23682                 gethostbynamerstyle=SYSV
23683
23684 else
23685   echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688 fi
23689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23690 fi
23691 if test "x$gethostbynamerstyle" = "x"; then
23692         cat >conftest.$ac_ext <<_ACEOF
23693 #line $LINENO "configure"
23694 /* confdefs.h.  */
23695 _ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h.  */
23699
23700 #include <stdio.h>
23701 #include <netdb.h>
23702
23703 int
23704 main ()
23705 {
23706  gethostbyname(NULL)
23707   ;
23708   return 0;
23709 }
23710 _ACEOF
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23713   (eval $ac_link) 2>&5
23714   ac_status=$?
23715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716   (exit $ac_status); } &&
23717          { ac_try='test -s conftest$ac_exeext'
23718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719   (eval $ac_try) 2>&5
23720   ac_status=$?
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); }; }; then
23723
23724
23725 cat >>confdefs.h <<\_ACEOF
23726 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23727 _ACEOF
23728
23729                 gethostbynamerstyle=BSD
23730
23731 else
23732   echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23734
23735 fi
23736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23737 fi
23738
23739 if test "x$gethostbynamerstyle" = "x"; then
23740         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23741 echo "${ECHO_T}none!  It must not exist, here." >&6
23742 else
23743         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23744 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23745 fi
23746
23747 if test "x$gethostbynamerstyle" = "xBSD"; then
23748         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23749 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23750 fi
23751
23752
23753 cat >>confdefs.h <<\_ACEOF
23754 #define POSIXSTYLE 1
23755 _ACEOF
23756
23757
23758 cat >>confdefs.h <<\_ACEOF
23759 #define SOLARISSTYLE 2
23760 _ACEOF
23761
23762 ctimerstyle=""
23763 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23764 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23765 cat >conftest.$ac_ext <<_ACEOF
23766 #line $LINENO "configure"
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772
23773 #include <time.h>
23774
23775 int
23776 main ()
23777 {
23778  ctime_r(NULL, NULL, 0)
23779   ;
23780   return 0;
23781 }
23782 _ACEOF
23783 rm -f conftest.$ac_objext conftest$ac_exeext
23784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23785   (eval $ac_link) 2>&5
23786   ac_status=$?
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } &&
23789          { ac_try='test -s conftest$ac_exeext'
23790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791   (eval $ac_try) 2>&5
23792   ac_status=$?
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); }; }; then
23795
23796
23797 cat >>confdefs.h <<\_ACEOF
23798 #define CTIMERSTYLE SOLARISSTYLE
23799 _ACEOF
23800
23801         ctimerstyle="SOLARIS"
23802
23803 else
23804   echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23806
23807 fi
23808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23809 if test "x$ctimerstyle" = "x"; then
23810         cat >conftest.$ac_ext <<_ACEOF
23811 #line $LINENO "configure"
23812 /* confdefs.h.  */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h.  */
23817
23818 #include <time.h>
23819
23820 int
23821 main ()
23822 {
23823  ctime_r(NULL, NULL)
23824   ;
23825   return 0;
23826 }
23827 _ACEOF
23828 rm -f conftest.$ac_objext conftest$ac_exeext
23829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23830   (eval $ac_link) 2>&5
23831   ac_status=$?
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); } &&
23834          { ac_try='test -s conftest$ac_exeext'
23835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23836   (eval $ac_try) 2>&5
23837   ac_status=$?
23838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); }; }; then
23840
23841
23842 cat >>confdefs.h <<\_ACEOF
23843 #define CTIMERSTYLE POSIXSTYLE
23844 _ACEOF
23845
23846                 ctimerstyle="POSIX"
23847
23848 else
23849   echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 fi
23853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23854 fi
23855
23856 if test "x$ctimerstyle" = "x"; then
23857         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23858 echo "${ECHO_T}none!  It must not exist, here." >&6
23859 else
23860         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23861 echo "${ECHO_T}${ctimerstyle}-style" >&6
23862 fi
23863
23864 HOSTINFO=$host
23865
23866
23867
23868 top_builddir=`pwd`
23869 export top_builddir
23870 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23871 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23872
23873
23874
23875 if test "x$INCLTDL" != "x";then
23876   INCLTDL='-I${top_builddir}/''libltdl'
23877 fi
23878
23879
23880
23881 mysubdirs=
23882 if test "x$EXPERIMENTAL" = "xyes"; then
23883   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23884     mysubdirs=`echo $bar`
23885 else
23886         for bar in `cat src/modules/stable`; do
23887     if test -f src/modules/$bar/configure; then
23888       mysubdirs="$mysubdirs src/modules/$bar"
23889     fi
23890   done
23891 fi
23892
23893 MODULES=
23894 if test "x$EXPERIMENTAL" = "xyes"; then
23895   for foo in `ls -1 src/modules | grep rlm_`; do
23896     MODULES="$MODULES $foo"
23897   done
23898 else
23899             for foo in `cat src/modules/stable`; do
23900     MODULES="$MODULES $foo"
23901    done
23902 fi
23903
23904
23905
23906 subdirs="$subdirs $mysubdirs"
23907
23908
23909
23910
23911           ac_config_commands="$ac_config_commands stamp-h"
23912
23913           ac_config_commands="$ac_config_commands build-radpaths-h"
23914
23915           ac_config_commands="$ac_config_commands main-chmod"
23916
23917           ac_config_commands="$ac_config_commands scripts-chmod"
23918
23919
23920
23921
23922
23923 USE_SHARED_LIBS=$enable_shared
23924
23925 USE_STATIC_LIBS=$enable_static
23926
23927
23928
23929
23930
23931 export CFLAGS LIBS
23932
23933                                                                                                                                             ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
23934 cat >confcache <<\_ACEOF
23935 # This file is a shell script that caches the results of configure
23936 # tests run on this system so they can be shared between configure
23937 # scripts and configure runs, see configure's option --config-cache.
23938 # It is not useful on other systems.  If it contains results you don't
23939 # want to keep, you may remove or edit it.
23940 #
23941 # config.status only pays attention to the cache file if you give it
23942 # the --recheck option to rerun configure.
23943 #
23944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23946 # following values.
23947
23948 _ACEOF
23949
23950 # The following way of writing the cache mishandles newlines in values,
23951 # but we know of no workaround that is simple, portable, and efficient.
23952 # So, don't put newlines in cache variables' values.
23953 # Ultrix sh set writes to stderr and can't be redirected directly,
23954 # and sets the high bit in the cache file unless we assign to the vars.
23955 {
23956   (set) 2>&1 |
23957     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23958     *ac_space=\ *)
23959       # `set' does not quote correctly, so add quotes (double-quote
23960       # substitution turns \\\\ into \\, and sed turns \\ into \).
23961       sed -n \
23962         "s/'/'\\\\''/g;
23963           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23964       ;;
23965     *)
23966       # `set' quotes correctly as required by POSIX, so do not add quotes.
23967       sed -n \
23968         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23969       ;;
23970     esac;
23971 } |
23972   sed '
23973      t clear
23974      : clear
23975      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23976      t end
23977      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23978      : end' >>confcache
23979 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23980   if test -w $cache_file; then
23981     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23982     cat confcache >$cache_file
23983   else
23984     echo "not updating unwritable cache $cache_file"
23985   fi
23986 fi
23987 rm -f confcache
23988
23989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23990 # Let make expand exec_prefix.
23991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23992
23993 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23994 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23995 # trailing colons and then remove the whole line if VPATH becomes empty
23996 # (actually we leave an empty line to preserve line numbers).
23997 if test "x$srcdir" = x.; then
23998   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23999 s/:*\$(srcdir):*/:/;
24000 s/:*\${srcdir}:*/:/;
24001 s/:*@srcdir@:*/:/;
24002 s/^\([^=]*=[    ]*\):*/\1/;
24003 s/:*$//;
24004 s/^[^=]*=[      ]*$//;
24005 }'
24006 fi
24007
24008 DEFS=-DHAVE_CONFIG_H
24009
24010 ac_libobjs=
24011 ac_ltlibobjs=
24012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24013   # 1. Remove the extension, and $U if already installed.
24014   ac_i=`echo "$ac_i" |
24015          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24016   # 2. Add them.
24017   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24018   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24019 done
24020 LIBOBJS=$ac_libobjs
24021
24022 LTLIBOBJS=$ac_ltlibobjs
24023
24024
24025
24026 : ${CONFIG_STATUS=./config.status}
24027 ac_clean_files_save=$ac_clean_files
24028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24029 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24030 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24031 cat >$CONFIG_STATUS <<_ACEOF
24032 #! $SHELL
24033 # Generated by $as_me.
24034 # Run this file to recreate the current configuration.
24035 # Compiler output produced by configure, useful for debugging
24036 # configure, is in config.log if it exists.
24037
24038 debug=false
24039 ac_cs_recheck=false
24040 ac_cs_silent=false
24041 SHELL=\${CONFIG_SHELL-$SHELL}
24042 _ACEOF
24043
24044 cat >>$CONFIG_STATUS <<\_ACEOF
24045 ## --------------------- ##
24046 ## M4sh Initialization.  ##
24047 ## --------------------- ##
24048
24049 # Be Bourne compatible
24050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24051   emulate sh
24052   NULLCMD=:
24053   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24054   # is contrary to our usage.  Disable this feature.
24055   alias -g '${1+"$@"}'='"$@"'
24056 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24057   set -o posix
24058 fi
24059
24060 # Support unset when possible.
24061 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24062   as_unset=unset
24063 else
24064   as_unset=false
24065 fi
24066
24067
24068 # Work around bugs in pre-3.0 UWIN ksh.
24069 $as_unset ENV MAIL MAILPATH
24070 PS1='$ '
24071 PS2='> '
24072 PS4='+ '
24073
24074 # NLS nuisances.
24075 for as_var in \
24076   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24077   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24078   LC_TELEPHONE LC_TIME
24079 do
24080   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
24081     eval $as_var=C; export $as_var
24082   else
24083     $as_unset $as_var
24084   fi
24085 done
24086
24087 # Required to use basename.
24088 if expr a : '\(a\)' >/dev/null 2>&1; then
24089   as_expr=expr
24090 else
24091   as_expr=false
24092 fi
24093
24094 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24095   as_basename=basename
24096 else
24097   as_basename=false
24098 fi
24099
24100
24101 # Name of the executable.
24102 as_me=`$as_basename "$0" ||
24103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24104          X"$0" : 'X\(//\)$' \| \
24105          X"$0" : 'X\(/\)$' \| \
24106          .     : '\(.\)' 2>/dev/null ||
24107 echo X/"$0" |
24108     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24109           /^X\/\(\/\/\)$/{ s//\1/; q; }
24110           /^X\/\(\/\).*/{ s//\1/; q; }
24111           s/.*/./; q'`
24112
24113
24114 # PATH needs CR, and LINENO needs CR and PATH.
24115 # Avoid depending upon Character Ranges.
24116 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24119 as_cr_digits='0123456789'
24120 as_cr_alnum=$as_cr_Letters$as_cr_digits
24121
24122 # The user is always right.
24123 if test "${PATH_SEPARATOR+set}" != set; then
24124   echo "#! /bin/sh" >conf$$.sh
24125   echo  "exit 0"   >>conf$$.sh
24126   chmod +x conf$$.sh
24127   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24128     PATH_SEPARATOR=';'
24129   else
24130     PATH_SEPARATOR=:
24131   fi
24132   rm -f conf$$.sh
24133 fi
24134
24135
24136   as_lineno_1=$LINENO
24137   as_lineno_2=$LINENO
24138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24139   test "x$as_lineno_1" != "x$as_lineno_2" &&
24140   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24141   # Find who we are.  Look in the path if we contain no path at all
24142   # relative or not.
24143   case $0 in
24144     *[\\/]* ) as_myself=$0 ;;
24145     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24146 for as_dir in $PATH
24147 do
24148   IFS=$as_save_IFS
24149   test -z "$as_dir" && as_dir=.
24150   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24151 done
24152
24153        ;;
24154   esac
24155   # We did not find ourselves, most probably we were run as `sh COMMAND'
24156   # in which case we are not to be found in the path.
24157   if test "x$as_myself" = x; then
24158     as_myself=$0
24159   fi
24160   if test ! -f "$as_myself"; then
24161     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24162 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24163    { (exit 1); exit 1; }; }
24164   fi
24165   case $CONFIG_SHELL in
24166   '')
24167     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24168 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24169 do
24170   IFS=$as_save_IFS
24171   test -z "$as_dir" && as_dir=.
24172   for as_base in sh bash ksh sh5; do
24173          case $as_dir in
24174          /*)
24175            if ("$as_dir/$as_base" -c '
24176   as_lineno_1=$LINENO
24177   as_lineno_2=$LINENO
24178   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24179   test "x$as_lineno_1" != "x$as_lineno_2" &&
24180   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24181              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24182              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24183              CONFIG_SHELL=$as_dir/$as_base
24184              export CONFIG_SHELL
24185              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24186            fi;;
24187          esac
24188        done
24189 done
24190 ;;
24191   esac
24192
24193   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24194   # uniformly replaced by the line number.  The first 'sed' inserts a
24195   # line-number line before each line; the second 'sed' does the real
24196   # work.  The second script uses 'N' to pair each line-number line
24197   # with the numbered line, and appends trailing '-' during
24198   # substitution so that $LINENO is not a special case at line end.
24199   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24200   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24201   sed '=' <$as_myself |
24202     sed '
24203       N
24204       s,$,-,
24205       : loop
24206       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24207       t loop
24208       s,-$,,
24209       s,^['$as_cr_digits']*\n,,
24210     ' >$as_me.lineno &&
24211   chmod +x $as_me.lineno ||
24212     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24213 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24214    { (exit 1); exit 1; }; }
24215
24216   # Don't try to exec as it changes $[0], causing all sort of problems
24217   # (the dirname of $[0] is not the place where we might find the
24218   # original and so on.  Autoconf is especially sensible to this).
24219   . ./$as_me.lineno
24220   # Exit status is that of the last command.
24221   exit
24222 }
24223
24224
24225 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24226   *c*,-n*) ECHO_N= ECHO_C='
24227 ' ECHO_T='      ' ;;
24228   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24229   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24230 esac
24231
24232 if expr a : '\(a\)' >/dev/null 2>&1; then
24233   as_expr=expr
24234 else
24235   as_expr=false
24236 fi
24237
24238 rm -f conf$$ conf$$.exe conf$$.file
24239 echo >conf$$.file
24240 if ln -s conf$$.file conf$$ 2>/dev/null; then
24241   # We could just check for DJGPP; but this test a) works b) is more generic
24242   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24243   if test -f conf$$.exe; then
24244     # Don't use ln at all; we don't have any links
24245     as_ln_s='cp -p'
24246   else
24247     as_ln_s='ln -s'
24248   fi
24249 elif ln conf$$.file conf$$ 2>/dev/null; then
24250   as_ln_s=ln
24251 else
24252   as_ln_s='cp -p'
24253 fi
24254 rm -f conf$$ conf$$.exe conf$$.file
24255
24256 if mkdir -p . 2>/dev/null; then
24257   as_mkdir_p=:
24258 else
24259   as_mkdir_p=false
24260 fi
24261
24262 as_executable_p="test -f"
24263
24264 # Sed expression to map a string onto a valid CPP name.
24265 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24266
24267 # Sed expression to map a string onto a valid variable name.
24268 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24269
24270
24271 # IFS
24272 # We need space, tab and new line, in precisely that order.
24273 as_nl='
24274 '
24275 IFS="   $as_nl"
24276
24277 # CDPATH.
24278 $as_unset CDPATH
24279
24280 exec 6>&1
24281
24282 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24283 # report actual input values of CONFIG_FILES etc. instead of their
24284 # values after options handling.  Logging --version etc. is OK.
24285 exec 5>>config.log
24286 {
24287   echo
24288   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24289 ## Running $as_me. ##
24290 _ASBOX
24291 } >&5
24292 cat >&5 <<_CSEOF
24293
24294 This file was extended by $as_me, which was
24295 generated by GNU Autoconf 2.57.  Invocation command line was
24296
24297   CONFIG_FILES    = $CONFIG_FILES
24298   CONFIG_HEADERS  = $CONFIG_HEADERS
24299   CONFIG_LINKS    = $CONFIG_LINKS
24300   CONFIG_COMMANDS = $CONFIG_COMMANDS
24301   $ $0 $@
24302
24303 _CSEOF
24304 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24305 echo >&5
24306 _ACEOF
24307
24308 # Files that config.status was made for.
24309 if test -n "$ac_config_files"; then
24310   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24311 fi
24312
24313 if test -n "$ac_config_headers"; then
24314   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24315 fi
24316
24317 if test -n "$ac_config_links"; then
24318   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24319 fi
24320
24321 if test -n "$ac_config_commands"; then
24322   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24323 fi
24324
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24326
24327 ac_cs_usage="\
24328 \`$as_me' instantiates files from templates according to the
24329 current configuration.
24330
24331 Usage: $0 [OPTIONS] [FILE]...
24332
24333   -h, --help       print this help, then exit
24334   -V, --version    print version number, then exit
24335   -q, --quiet      do not print progress messages
24336   -d, --debug      don't remove temporary files
24337       --recheck    update $as_me by reconfiguring in the same conditions
24338   --file=FILE[:TEMPLATE]
24339                    instantiate the configuration file FILE
24340   --header=FILE[:TEMPLATE]
24341                    instantiate the configuration header FILE
24342
24343 Configuration files:
24344 $config_files
24345
24346 Configuration headers:
24347 $config_headers
24348
24349 Configuration commands:
24350 $config_commands
24351
24352 Report bugs to <bug-autoconf@gnu.org>."
24353 _ACEOF
24354
24355 cat >>$CONFIG_STATUS <<_ACEOF
24356 ac_cs_version="\\
24357 config.status
24358 configured by $0, generated by GNU Autoconf 2.57,
24359   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24360
24361 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24362 Free Software Foundation, Inc.
24363 This config.status script is free software; the Free Software Foundation
24364 gives unlimited permission to copy, distribute and modify it."
24365 srcdir=$srcdir
24366 _ACEOF
24367
24368 cat >>$CONFIG_STATUS <<\_ACEOF
24369 # If no file are specified by the user, then we need to provide default
24370 # value.  By we need to know if files were specified by the user.
24371 ac_need_defaults=:
24372 while test $# != 0
24373 do
24374   case $1 in
24375   --*=*)
24376     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24377     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24378     ac_shift=:
24379     ;;
24380   -*)
24381     ac_option=$1
24382     ac_optarg=$2
24383     ac_shift=shift
24384     ;;
24385   *) # This is not an option, so the user has probably given explicit
24386      # arguments.
24387      ac_option=$1
24388      ac_need_defaults=false;;
24389   esac
24390
24391   case $ac_option in
24392   # Handling of the options.
24393 _ACEOF
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24396     ac_cs_recheck=: ;;
24397   --version | --vers* | -V )
24398     echo "$ac_cs_version"; exit 0 ;;
24399   --he | --h)
24400     # Conflict between --help and --header
24401     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24402 Try \`$0 --help' for more information." >&5
24403 echo "$as_me: error: ambiguous option: $1
24404 Try \`$0 --help' for more information." >&2;}
24405    { (exit 1); exit 1; }; };;
24406   --help | --hel | -h )
24407     echo "$ac_cs_usage"; exit 0 ;;
24408   --debug | --d* | -d )
24409     debug=: ;;
24410   --file | --fil | --fi | --f )
24411     $ac_shift
24412     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24413     ac_need_defaults=false;;
24414   --header | --heade | --head | --hea )
24415     $ac_shift
24416     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24417     ac_need_defaults=false;;
24418   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24419   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24420     ac_cs_silent=: ;;
24421
24422   # This is an error.
24423   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24424 Try \`$0 --help' for more information." >&5
24425 echo "$as_me: error: unrecognized option: $1
24426 Try \`$0 --help' for more information." >&2;}
24427    { (exit 1); exit 1; }; } ;;
24428
24429   *) ac_config_targets="$ac_config_targets $1" ;;
24430
24431   esac
24432   shift
24433 done
24434
24435 ac_configure_extra_args=
24436
24437 if $ac_cs_silent; then
24438   exec 6>/dev/null
24439   ac_configure_extra_args="$ac_configure_extra_args --silent"
24440 fi
24441
24442 _ACEOF
24443 cat >>$CONFIG_STATUS <<_ACEOF
24444 if \$ac_cs_recheck; then
24445   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24446   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24447 fi
24448
24449 _ACEOF
24450
24451
24452
24453
24454
24455 cat >>$CONFIG_STATUS <<\_ACEOF
24456 for ac_config_target in $ac_config_targets
24457 do
24458   case "$ac_config_target" in
24459   # Handling of arguments.
24460   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24461   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24462   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24463   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24464   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24465   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24466   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24467   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24468   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24469   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24470   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24471   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24472   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24473   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24474   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
24475   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
24476   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
24477   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
24478   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24479   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24480 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24481    { (exit 1); exit 1; }; };;
24482   esac
24483 done
24484
24485 # If the user did not use the arguments to specify the items to instantiate,
24486 # then the envvar interface is used.  Set only those that are not.
24487 # We use the long form for the default assignment because of an extremely
24488 # bizarre bug on SunOS 4.1.3.
24489 if $ac_need_defaults; then
24490   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24491   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24492   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24493 fi
24494
24495 # Have a temporary directory for convenience.  Make it in the build tree
24496 # simply because there is no reason to put it here, and in addition,
24497 # creating and moving files from /tmp can sometimes cause problems.
24498 # Create a temporary directory, and hook for its removal unless debugging.
24499 $debug ||
24500 {
24501   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24502   trap '{ (exit 1); exit 1; }' 1 2 13 15
24503 }
24504
24505 # Create a (secure) tmp directory for tmp files.
24506
24507 {
24508   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24509   test -n "$tmp" && test -d "$tmp"
24510 }  ||
24511 {
24512   tmp=./confstat$$-$RANDOM
24513   (umask 077 && mkdir $tmp)
24514 } ||
24515 {
24516    echo "$me: cannot create a temporary directory in ." >&2
24517    { (exit 1); exit 1; }
24518 }
24519
24520 _ACEOF
24521
24522 cat >>$CONFIG_STATUS <<_ACEOF
24523
24524 #
24525 # CONFIG_FILES section.
24526 #
24527
24528 # No need to generate the scripts if there are no CONFIG_FILES.
24529 # This happens for instance when ./config.status config.h
24530 if test -n "\$CONFIG_FILES"; then
24531   # Protect against being on the right side of a sed subst in config.status.
24532   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24533    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24534 s,@SHELL@,$SHELL,;t t
24535 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24536 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24537 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24538 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24539 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24540 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24541 s,@exec_prefix@,$exec_prefix,;t t
24542 s,@prefix@,$prefix,;t t
24543 s,@program_transform_name@,$program_transform_name,;t t
24544 s,@bindir@,$bindir,;t t
24545 s,@sbindir@,$sbindir,;t t
24546 s,@libexecdir@,$libexecdir,;t t
24547 s,@datadir@,$datadir,;t t
24548 s,@sysconfdir@,$sysconfdir,;t t
24549 s,@sharedstatedir@,$sharedstatedir,;t t
24550 s,@localstatedir@,$localstatedir,;t t
24551 s,@libdir@,$libdir,;t t
24552 s,@includedir@,$includedir,;t t
24553 s,@oldincludedir@,$oldincludedir,;t t
24554 s,@infodir@,$infodir,;t t
24555 s,@mandir@,$mandir,;t t
24556 s,@build_alias@,$build_alias,;t t
24557 s,@host_alias@,$host_alias,;t t
24558 s,@target_alias@,$target_alias,;t t
24559 s,@DEFS@,$DEFS,;t t
24560 s,@ECHO_C@,$ECHO_C,;t t
24561 s,@ECHO_N@,$ECHO_N,;t t
24562 s,@ECHO_T@,$ECHO_T,;t t
24563 s,@LIBS@,$LIBS,;t t
24564 s,@CC@,$CC,;t t
24565 s,@CFLAGS@,$CFLAGS,;t t
24566 s,@LDFLAGS@,$LDFLAGS,;t t
24567 s,@CPPFLAGS@,$CPPFLAGS,;t t
24568 s,@ac_ct_CC@,$ac_ct_CC,;t t
24569 s,@EXEEXT@,$EXEEXT,;t t
24570 s,@OBJEXT@,$OBJEXT,;t t
24571 s,@CPP@,$CPP,;t t
24572 s,@EGREP@,$EGREP,;t t
24573 s,@RANLIB@,$RANLIB,;t t
24574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24575 s,@abs_top_builddir@,$abs_top_builddir,;t t
24576 s,@GMAKE@,$GMAKE,;t t
24577 s,@MAKE@,$MAKE,;t t
24578 s,@subdirs@,$subdirs,;t t
24579 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
24580 s,@LIBTOOL@,$LIBTOOL,;t t
24581 s,@build@,$build,;t t
24582 s,@build_cpu@,$build_cpu,;t t
24583 s,@build_vendor@,$build_vendor,;t t
24584 s,@build_os@,$build_os,;t t
24585 s,@host@,$host,;t t
24586 s,@host_cpu@,$host_cpu,;t t
24587 s,@host_vendor@,$host_vendor,;t t
24588 s,@host_os@,$host_os,;t t
24589 s,@LN_S@,$LN_S,;t t
24590 s,@ECHO@,$ECHO,;t t
24591 s,@AR@,$AR,;t t
24592 s,@ac_ct_AR@,$ac_ct_AR,;t t
24593 s,@STRIP@,$STRIP,;t t
24594 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24595 s,@CXX@,$CXX,;t t
24596 s,@CXXFLAGS@,$CXXFLAGS,;t t
24597 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24598 s,@CXXCPP@,$CXXCPP,;t t
24599 s,@F77@,$F77,;t t
24600 s,@FFLAGS@,$FFLAGS,;t t
24601 s,@ac_ct_F77@,$ac_ct_F77,;t t
24602 s,@logdir@,$logdir,;t t
24603 s,@radacctdir@,$radacctdir,;t t
24604 s,@raddbdir@,$raddbdir,;t t
24605 s,@PERL@,$PERL,;t t
24606 s,@SNMPGET@,$SNMPGET,;t t
24607 s,@SNMPWALK@,$SNMPWALK,;t t
24608 s,@RUSERS@,$RUSERS,;t t
24609 s,@ACLOCAL@,$ACLOCAL,;t t
24610 s,@AUTOCONF@,$AUTOCONF,;t t
24611 s,@AUTOHEADER@,$AUTOHEADER,;t t
24612 s,@LOCATE@,$LOCATE,;t t
24613 s,@DIRNAME@,$DIRNAME,;t t
24614 s,@GREP@,$GREP,;t t
24615 s,@REGEX@,$REGEX,;t t
24616 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24617 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24618 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24619 s,@LIBPREFIX@,$LIBPREFIX,;t t
24620 s,@CRYPTLIB@,$CRYPTLIB,;t t
24621 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24622 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24623 s,@HOSTINFO@,$HOSTINFO,;t t
24624 s,@LIBLTDL@,$LIBLTDL,;t t
24625 s,@INCLTDL@,$INCLTDL,;t t
24626 s,@MODULES@,$MODULES,;t t
24627 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24628 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24629 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24630 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24631 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24632 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24633 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24634 s,@LIBOBJS@,$LIBOBJS,;t t
24635 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24636 CEOF
24637
24638 _ACEOF
24639
24640   cat >>$CONFIG_STATUS <<\_ACEOF
24641   # Split the substitutions into bite-sized pieces for seds with
24642   # small command number limits, like on Digital OSF/1 and HP-UX.
24643   ac_max_sed_lines=48
24644   ac_sed_frag=1 # Number of current file.
24645   ac_beg=1 # First line for current file.
24646   ac_end=$ac_max_sed_lines # Line after last line for current file.
24647   ac_more_lines=:
24648   ac_sed_cmds=
24649   while $ac_more_lines; do
24650     if test $ac_beg -gt 1; then
24651       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24652     else
24653       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24654     fi
24655     if test ! -s $tmp/subs.frag; then
24656       ac_more_lines=false
24657     else
24658       # The purpose of the label and of the branching condition is to
24659       # speed up the sed processing (if there are no `@' at all, there
24660       # is no need to browse any of the substitutions).
24661       # These are the two extra sed commands mentioned above.
24662       (echo ':t
24663   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24664       if test -z "$ac_sed_cmds"; then
24665         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24666       else
24667         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24668       fi
24669       ac_sed_frag=`expr $ac_sed_frag + 1`
24670       ac_beg=$ac_end
24671       ac_end=`expr $ac_end + $ac_max_sed_lines`
24672     fi
24673   done
24674   if test -z "$ac_sed_cmds"; then
24675     ac_sed_cmds=cat
24676   fi
24677 fi # test -n "$CONFIG_FILES"
24678
24679 _ACEOF
24680 cat >>$CONFIG_STATUS <<\_ACEOF
24681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24682   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24683   case $ac_file in
24684   - | *:- | *:-:* ) # input from stdin
24685         cat >$tmp/stdin
24686         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24687         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24688   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24689         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24690   * )   ac_file_in=$ac_file.in ;;
24691   esac
24692
24693   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24694   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24696          X"$ac_file" : 'X\(//\)[^/]' \| \
24697          X"$ac_file" : 'X\(//\)$' \| \
24698          X"$ac_file" : 'X\(/\)' \| \
24699          .     : '\(.\)' 2>/dev/null ||
24700 echo X"$ac_file" |
24701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24703           /^X\(\/\/\)$/{ s//\1/; q; }
24704           /^X\(\/\).*/{ s//\1/; q; }
24705           s/.*/./; q'`
24706   { if $as_mkdir_p; then
24707     mkdir -p "$ac_dir"
24708   else
24709     as_dir="$ac_dir"
24710     as_dirs=
24711     while test ! -d "$as_dir"; do
24712       as_dirs="$as_dir $as_dirs"
24713       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24715          X"$as_dir" : 'X\(//\)[^/]' \| \
24716          X"$as_dir" : 'X\(//\)$' \| \
24717          X"$as_dir" : 'X\(/\)' \| \
24718          .     : '\(.\)' 2>/dev/null ||
24719 echo X"$as_dir" |
24720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24722           /^X\(\/\/\)$/{ s//\1/; q; }
24723           /^X\(\/\).*/{ s//\1/; q; }
24724           s/.*/./; q'`
24725     done
24726     test ! -n "$as_dirs" || mkdir $as_dirs
24727   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24729    { (exit 1); exit 1; }; }; }
24730
24731   ac_builddir=.
24732
24733 if test "$ac_dir" != .; then
24734   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24735   # A "../" for each directory in $ac_dir_suffix.
24736   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24737 else
24738   ac_dir_suffix= ac_top_builddir=
24739 fi
24740
24741 case $srcdir in
24742   .)  # No --srcdir option.  We are building in place.
24743     ac_srcdir=.
24744     if test -z "$ac_top_builddir"; then
24745        ac_top_srcdir=.
24746     else
24747        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24748     fi ;;
24749   [\\/]* | ?:[\\/]* )  # Absolute path.
24750     ac_srcdir=$srcdir$ac_dir_suffix;
24751     ac_top_srcdir=$srcdir ;;
24752   *) # Relative path.
24753     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24754     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24755 esac
24756 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24757 # absolute.
24758 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24759 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24760 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24761 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24762
24763
24764
24765   if test x"$ac_file" != x-; then
24766     { echo "$as_me:$LINENO: creating $ac_file" >&5
24767 echo "$as_me: creating $ac_file" >&6;}
24768     rm -f "$ac_file"
24769   fi
24770   # Let's still pretend it is `configure' which instantiates (i.e., don't
24771   # use $as_me), people would be surprised to read:
24772   #    /* config.h.  Generated by config.status.  */
24773   if test x"$ac_file" = x-; then
24774     configure_input=
24775   else
24776     configure_input="$ac_file.  "
24777   fi
24778   configure_input=$configure_input"Generated from `echo $ac_file_in |
24779                                      sed 's,.*/,,'` by configure."
24780
24781   # First look for the input files in the build tree, otherwise in the
24782   # src tree.
24783   ac_file_inputs=`IFS=:
24784     for f in $ac_file_in; do
24785       case $f in
24786       -) echo $tmp/stdin ;;
24787       [\\/$]*)
24788          # Absolute (can't be DOS-style, as IFS=:)
24789          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24790 echo "$as_me: error: cannot find input file: $f" >&2;}
24791    { (exit 1); exit 1; }; }
24792          echo $f;;
24793       *) # Relative
24794          if test -f "$f"; then
24795            # Build tree
24796            echo $f
24797          elif test -f "$srcdir/$f"; then
24798            # Source tree
24799            echo $srcdir/$f
24800          else
24801            # /dev/null tree
24802            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24803 echo "$as_me: error: cannot find input file: $f" >&2;}
24804    { (exit 1); exit 1; }; }
24805          fi;;
24806       esac
24807     done` || { (exit 1); exit 1; }
24808 _ACEOF
24809 cat >>$CONFIG_STATUS <<_ACEOF
24810   sed "$ac_vpsub
24811 $extrasub
24812 _ACEOF
24813 cat >>$CONFIG_STATUS <<\_ACEOF
24814 :t
24815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24816 s,@configure_input@,$configure_input,;t t
24817 s,@srcdir@,$ac_srcdir,;t t
24818 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24819 s,@top_srcdir@,$ac_top_srcdir,;t t
24820 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24821 s,@builddir@,$ac_builddir,;t t
24822 s,@abs_builddir@,$ac_abs_builddir,;t t
24823 s,@top_builddir@,$ac_top_builddir,;t t
24824 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24825 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24826   rm -f $tmp/stdin
24827   if test x"$ac_file" != x-; then
24828     mv $tmp/out $ac_file
24829   else
24830     cat $tmp/out
24831     rm -f $tmp/out
24832   fi
24833
24834 done
24835 _ACEOF
24836 cat >>$CONFIG_STATUS <<\_ACEOF
24837
24838 #
24839 # CONFIG_HEADER section.
24840 #
24841
24842 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24843 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24844 #
24845 # ac_d sets the value in "#define NAME VALUE" lines.
24846 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24847 ac_dB='[        ].*$,\1#\2'
24848 ac_dC=' '
24849 ac_dD=',;t'
24850 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24851 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24852 ac_uB='$,\1#\2define\3'
24853 ac_uC=' '
24854 ac_uD=',;t'
24855
24856 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24857   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24858   case $ac_file in
24859   - | *:- | *:-:* ) # input from stdin
24860         cat >$tmp/stdin
24861         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24862         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24863   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24864         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24865   * )   ac_file_in=$ac_file.in ;;
24866   esac
24867
24868   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24869 echo "$as_me: creating $ac_file" >&6;}
24870
24871   # First look for the input files in the build tree, otherwise in the
24872   # src tree.
24873   ac_file_inputs=`IFS=:
24874     for f in $ac_file_in; do
24875       case $f in
24876       -) echo $tmp/stdin ;;
24877       [\\/$]*)
24878          # Absolute (can't be DOS-style, as IFS=:)
24879          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24880 echo "$as_me: error: cannot find input file: $f" >&2;}
24881    { (exit 1); exit 1; }; }
24882          echo $f;;
24883       *) # Relative
24884          if test -f "$f"; then
24885            # Build tree
24886            echo $f
24887          elif test -f "$srcdir/$f"; then
24888            # Source tree
24889            echo $srcdir/$f
24890          else
24891            # /dev/null tree
24892            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24893 echo "$as_me: error: cannot find input file: $f" >&2;}
24894    { (exit 1); exit 1; }; }
24895          fi;;
24896       esac
24897     done` || { (exit 1); exit 1; }
24898   # Remove the trailing spaces.
24899   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24900
24901 _ACEOF
24902
24903 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24904 # `conftest.undefs', that substitutes the proper values into
24905 # config.h.in to produce config.h.  The first handles `#define'
24906 # templates, and the second `#undef' templates.
24907 # And first: Protect against being on the right side of a sed subst in
24908 # config.status.  Protect against being in an unquoted here document
24909 # in config.status.
24910 rm -f conftest.defines conftest.undefs
24911 # Using a here document instead of a string reduces the quoting nightmare.
24912 # Putting comments in sed scripts is not portable.
24913 #
24914 # `end' is used to avoid that the second main sed command (meant for
24915 # 0-ary CPP macros) applies to n-ary macro definitions.
24916 # See the Autoconf documentation for `clear'.
24917 cat >confdef2sed.sed <<\_ACEOF
24918 s/[\\&,]/\\&/g
24919 s,[\\$`],\\&,g
24920 t clear
24921 : clear
24922 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24923 t end
24924 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24925 : end
24926 _ACEOF
24927 # If some macros were called several times there might be several times
24928 # the same #defines, which is useless.  Nevertheless, we may not want to
24929 # sort them, since we want the *last* AC-DEFINE to be honored.
24930 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24931 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24932 rm -f confdef2sed.sed
24933
24934 # This sed command replaces #undef with comments.  This is necessary, for
24935 # example, in the case of _POSIX_SOURCE, which is predefined and required
24936 # on some systems where configure will not decide to define it.
24937 cat >>conftest.undefs <<\_ACEOF
24938 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24939 _ACEOF
24940
24941 # Break up conftest.defines because some shells have a limit on the size
24942 # of here documents, and old seds have small limits too (100 cmds).
24943 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24944 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24945 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24946 echo '  :' >>$CONFIG_STATUS
24947 rm -f conftest.tail
24948 while grep . conftest.defines >/dev/null
24949 do
24950   # Write a limited-size here document to $tmp/defines.sed.
24951   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24952   # Speed up: don't consider the non `#define' lines.
24953   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24954   # Work around the forget-to-reset-the-flag bug.
24955   echo 't clr' >>$CONFIG_STATUS
24956   echo ': clr' >>$CONFIG_STATUS
24957   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24958   echo 'CEOF
24959   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24960   rm -f $tmp/in
24961   mv $tmp/out $tmp/in
24962 ' >>$CONFIG_STATUS
24963   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24964   rm -f conftest.defines
24965   mv conftest.tail conftest.defines
24966 done
24967 rm -f conftest.defines
24968 echo '  fi # grep' >>$CONFIG_STATUS
24969 echo >>$CONFIG_STATUS
24970
24971 # Break up conftest.undefs because some shells have a limit on the size
24972 # of here documents, and old seds have small limits too (100 cmds).
24973 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24974 rm -f conftest.tail
24975 while grep . conftest.undefs >/dev/null
24976 do
24977   # Write a limited-size here document to $tmp/undefs.sed.
24978   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24979   # Speed up: don't consider the non `#undef'
24980   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24981   # Work around the forget-to-reset-the-flag bug.
24982   echo 't clr' >>$CONFIG_STATUS
24983   echo ': clr' >>$CONFIG_STATUS
24984   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24985   echo 'CEOF
24986   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24987   rm -f $tmp/in
24988   mv $tmp/out $tmp/in
24989 ' >>$CONFIG_STATUS
24990   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24991   rm -f conftest.undefs
24992   mv conftest.tail conftest.undefs
24993 done
24994 rm -f conftest.undefs
24995
24996 cat >>$CONFIG_STATUS <<\_ACEOF
24997   # Let's still pretend it is `configure' which instantiates (i.e., don't
24998   # use $as_me), people would be surprised to read:
24999   #    /* config.h.  Generated by config.status.  */
25000   if test x"$ac_file" = x-; then
25001     echo "/* Generated by configure.  */" >$tmp/config.h
25002   else
25003     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25004   fi
25005   cat $tmp/in >>$tmp/config.h
25006   rm -f $tmp/in
25007   if test x"$ac_file" != x-; then
25008     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25009       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25010 echo "$as_me: $ac_file is unchanged" >&6;}
25011     else
25012       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25014          X"$ac_file" : 'X\(//\)[^/]' \| \
25015          X"$ac_file" : 'X\(//\)$' \| \
25016          X"$ac_file" : 'X\(/\)' \| \
25017          .     : '\(.\)' 2>/dev/null ||
25018 echo X"$ac_file" |
25019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25020           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25021           /^X\(\/\/\)$/{ s//\1/; q; }
25022           /^X\(\/\).*/{ s//\1/; q; }
25023           s/.*/./; q'`
25024       { if $as_mkdir_p; then
25025     mkdir -p "$ac_dir"
25026   else
25027     as_dir="$ac_dir"
25028     as_dirs=
25029     while test ! -d "$as_dir"; do
25030       as_dirs="$as_dir $as_dirs"
25031       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25033          X"$as_dir" : 'X\(//\)[^/]' \| \
25034          X"$as_dir" : 'X\(//\)$' \| \
25035          X"$as_dir" : 'X\(/\)' \| \
25036          .     : '\(.\)' 2>/dev/null ||
25037 echo X"$as_dir" |
25038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25039           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25040           /^X\(\/\/\)$/{ s//\1/; q; }
25041           /^X\(\/\).*/{ s//\1/; q; }
25042           s/.*/./; q'`
25043     done
25044     test ! -n "$as_dirs" || mkdir $as_dirs
25045   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25046 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25047    { (exit 1); exit 1; }; }; }
25048
25049       rm -f $ac_file
25050       mv $tmp/config.h $ac_file
25051     fi
25052   else
25053     cat $tmp/config.h
25054     rm -f $tmp/config.h
25055   fi
25056 done
25057 _ACEOF
25058 cat >>$CONFIG_STATUS <<\_ACEOF
25059
25060 #
25061 # CONFIG_COMMANDS section.
25062 #
25063 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25064   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25065   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25066   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25067 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25068          X"$ac_dest" : 'X\(//\)[^/]' \| \
25069          X"$ac_dest" : 'X\(//\)$' \| \
25070          X"$ac_dest" : 'X\(/\)' \| \
25071          .     : '\(.\)' 2>/dev/null ||
25072 echo X"$ac_dest" |
25073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25075           /^X\(\/\/\)$/{ s//\1/; q; }
25076           /^X\(\/\).*/{ s//\1/; q; }
25077           s/.*/./; q'`
25078   ac_builddir=.
25079
25080 if test "$ac_dir" != .; then
25081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25082   # A "../" for each directory in $ac_dir_suffix.
25083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25084 else
25085   ac_dir_suffix= ac_top_builddir=
25086 fi
25087
25088 case $srcdir in
25089   .)  # No --srcdir option.  We are building in place.
25090     ac_srcdir=.
25091     if test -z "$ac_top_builddir"; then
25092        ac_top_srcdir=.
25093     else
25094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25095     fi ;;
25096   [\\/]* | ?:[\\/]* )  # Absolute path.
25097     ac_srcdir=$srcdir$ac_dir_suffix;
25098     ac_top_srcdir=$srcdir ;;
25099   *) # Relative path.
25100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25102 esac
25103 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25104 # absolute.
25105 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25106 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25107 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25108 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25109
25110
25111   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25112 echo "$as_me: executing $ac_dest commands" >&6;}
25113   case $ac_dest in
25114     stamp-h ) echo timestamp > src/include/stamp-h ;;
25115     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25116     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
25117     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25118   esac
25119 done
25120 _ACEOF
25121
25122 cat >>$CONFIG_STATUS <<\_ACEOF
25123
25124 { (exit 0); exit 0; }
25125 _ACEOF
25126 chmod +x $CONFIG_STATUS
25127 ac_clean_files=$ac_clean_files_save
25128
25129
25130 # configure is writing to config.log, and then calls config.status.
25131 # config.status does its own redirection, appending to config.log.
25132 # Unfortunately, on DOS this fails, as config.log is still kept open
25133 # by configure, so config.status won't be able to write to it; its
25134 # output is simply discarded.  So we exec the FD to /dev/null,
25135 # effectively closing config.log, so it can be properly (re)opened and
25136 # appended to by config.status.  When coming back to configure, we
25137 # need to make the FD available again.
25138 if test "$no_create" != yes; then
25139   ac_cs_success=:
25140   ac_config_status_args=
25141   test "$silent" = yes &&
25142     ac_config_status_args="$ac_config_status_args --quiet"
25143   exec 5>/dev/null
25144   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25145   exec 5>>config.log
25146   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25147   # would make configure fail if this is the last instruction.
25148   $ac_cs_success || { (exit 1); exit 1; }
25149 fi
25150
25151 #
25152 # CONFIG_SUBDIRS section.
25153 #
25154 if test "$no_recursion" != yes; then
25155
25156   # Remove --cache-file and --srcdir arguments so they do not pile up.
25157   ac_sub_configure_args=
25158   ac_prev=
25159   for ac_arg in $ac_configure_args; do
25160     if test -n "$ac_prev"; then
25161       ac_prev=
25162       continue
25163     fi
25164     case $ac_arg in
25165     -cache-file | --cache-file | --cache-fil | --cache-fi \
25166     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25167       ac_prev=cache_file ;;
25168     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25169     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25170     | --c=*)
25171       ;;
25172     --config-cache | -C)
25173       ;;
25174     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25175       ac_prev=srcdir ;;
25176     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25177       ;;
25178     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25179       ac_prev=prefix ;;
25180     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25181       ;;
25182     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25183     esac
25184   done
25185
25186   # Always prepend --prefix to ensure using the same prefix
25187   # in subdir configurations.
25188   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25189
25190   ac_popdir=`pwd`
25191   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25192
25193     # Do not complain, so a configure script can configure whichever
25194     # parts of a large source tree are present.
25195     test -d $srcdir/$ac_dir || continue
25196
25197     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25198 echo "$as_me: configuring in $ac_dir" >&6;}
25199     { if $as_mkdir_p; then
25200     mkdir -p "$ac_dir"
25201   else
25202     as_dir="$ac_dir"
25203     as_dirs=
25204     while test ! -d "$as_dir"; do
25205       as_dirs="$as_dir $as_dirs"
25206       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25208          X"$as_dir" : 'X\(//\)[^/]' \| \
25209          X"$as_dir" : 'X\(//\)$' \| \
25210          X"$as_dir" : 'X\(/\)' \| \
25211          .     : '\(.\)' 2>/dev/null ||
25212 echo X"$as_dir" |
25213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25215           /^X\(\/\/\)$/{ s//\1/; q; }
25216           /^X\(\/\).*/{ s//\1/; q; }
25217           s/.*/./; q'`
25218     done
25219     test ! -n "$as_dirs" || mkdir $as_dirs
25220   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25222    { (exit 1); exit 1; }; }; }
25223
25224     ac_builddir=.
25225
25226 if test "$ac_dir" != .; then
25227   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25228   # A "../" for each directory in $ac_dir_suffix.
25229   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25230 else
25231   ac_dir_suffix= ac_top_builddir=
25232 fi
25233
25234 case $srcdir in
25235   .)  # No --srcdir option.  We are building in place.
25236     ac_srcdir=.
25237     if test -z "$ac_top_builddir"; then
25238        ac_top_srcdir=.
25239     else
25240        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25241     fi ;;
25242   [\\/]* | ?:[\\/]* )  # Absolute path.
25243     ac_srcdir=$srcdir$ac_dir_suffix;
25244     ac_top_srcdir=$srcdir ;;
25245   *) # Relative path.
25246     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25247     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25248 esac
25249 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25250 # absolute.
25251 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25252 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25253 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25254 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25255
25256
25257     cd $ac_dir
25258
25259     # Check for guested configure; otherwise get Cygnus style configure.
25260     if test -f $ac_srcdir/configure.gnu; then
25261       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25262     elif test -f $ac_srcdir/configure; then
25263       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25264     elif test -f $ac_srcdir/configure.in; then
25265       ac_sub_configure=$ac_configure
25266     else
25267       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25268 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25269       ac_sub_configure=
25270     fi
25271
25272     # The recursion is here.
25273     if test -n "$ac_sub_configure"; then
25274       # Make the cache file name correct relative to the subdirectory.
25275       case $cache_file in
25276       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25277       *) # Relative path.
25278         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25279       esac
25280
25281       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25282 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25283       # The eval makes quoting arguments work.
25284       eval $ac_sub_configure $ac_sub_configure_args \
25285            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25286         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25287 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25288    { (exit 1); exit 1; }; }
25289     fi
25290
25291     cd $ac_popdir
25292   done
25293 fi
25294