Rerun autogen.sh (skipping libtoolize) with autoconf 2.59.
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.207 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="src/main/radiusd.c"
430 ac_subdirs_all="$ac_subdirs_all 'libltdl'"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
469 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'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures this package to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018
1019   cat <<\_ACEOF
1020
1021 Optional Features:
1022   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1023   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1024   --disable-largefile     omit support for large files
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1033   --enable-developer               Enables features of interest to developers.
1034
1035 Optional Packages:
1036   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1037   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1038   --with-system-libtool              try to use libtool installed in your system default=use our own
1039   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1040   --with-pic              try to use only PIC/non-PIC objects [default=use
1041                           both]
1042   --with-tags[=TAGS]
1043                           include additional configurations [automatic]
1044   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1045   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1046   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1047   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1048   --with-threads          Use threads, if available.  (default=yes)
1049   --with-snmp             Compile in SNMP support. (default=yes)
1050   --with-large-files      Compile in large (2G+) file support. (default=no)
1051   --with-static-modules=QUOTED-MODULE-LIST
1052   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1053   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1054   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1055   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1056   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1057   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CPP         C preprocessor
1067   CXX         C++ compiler command
1068   CXXFLAGS    C++ compiler flags
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 _ACEOF
1077 fi
1078
1079 if test "$ac_init_help" = "recursive"; then
1080   # If there are subdirs, report their specific --help.
1081   ac_popdir=`pwd`
1082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083     test -d $ac_dir || continue
1084     ac_builddir=.
1085
1086 if test "$ac_dir" != .; then
1087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088   # A "../" for each directory in $ac_dir_suffix.
1089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 else
1091   ac_dir_suffix= ac_top_builddir=
1092 fi
1093
1094 case $srcdir in
1095   .)  # No --srcdir option.  We are building in place.
1096     ac_srcdir=.
1097     if test -z "$ac_top_builddir"; then
1098        ac_top_srcdir=.
1099     else
1100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101     fi ;;
1102   [\\/]* | ?:[\\/]* )  # Absolute path.
1103     ac_srcdir=$srcdir$ac_dir_suffix;
1104     ac_top_srcdir=$srcdir ;;
1105   *) # Relative path.
1106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 esac
1109
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1112 case `pwd` in
1113 .) ac_abs_builddir="$ac_dir";;
1114 *)
1115   case "$ac_dir" in
1116   .) ac_abs_builddir=`pwd`;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *)
1124   case ${ac_top_builddir}. in
1125   .) ac_abs_top_builddir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1132 *)
1133   case $ac_srcdir in
1134   .) ac_abs_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *)
1142   case $ac_top_srcdir in
1143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146   esac;;
1147 esac
1148
1149     cd $ac_dir
1150     # Check for guested configure; otherwise get Cygnus style configure.
1151     if test -f $ac_srcdir/configure.gnu; then
1152       echo
1153       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1154     elif test -f $ac_srcdir/configure; then
1155       echo
1156       $SHELL $ac_srcdir/configure  --help=recursive
1157     elif test -f $ac_srcdir/configure.ac ||
1158            test -f $ac_srcdir/configure.in; then
1159       echo
1160       $ac_configure --help
1161     else
1162       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163     fi
1164     cd "$ac_popdir"
1165   done
1166 fi
1167
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1170   cat <<\_ACEOF
1171
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1175 _ACEOF
1176   exit 0
1177 fi
1178 exec 5>config.log
1179 cat >&5 <<_ACEOF
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1182
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59.  Invocation command line was
1185
1186   $ $0 $@
1187
1188 _ACEOF
1189 {
1190 cat <<_ASUNAME
1191 ## --------- ##
1192 ## Platform. ##
1193 ## --------- ##
1194
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203
1204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211
1212 _ASUNAME
1213
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 for as_dir in $PATH
1216 do
1217   IFS=$as_save_IFS
1218   test -z "$as_dir" && as_dir=.
1219   echo "PATH: $as_dir"
1220 done
1221
1222 } >&5
1223
1224 cat >&5 <<_ACEOF
1225
1226
1227 ## ----------- ##
1228 ## Core tests. ##
1229 ## ----------- ##
1230
1231 _ACEOF
1232
1233
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_configure_args=
1240 ac_configure_args0=
1241 ac_configure_args1=
1242 ac_sep=
1243 ac_must_keep_next=false
1244 for ac_pass in 1 2
1245 do
1246   for ac_arg
1247   do
1248     case $ac_arg in
1249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251     | -silent | --silent | --silen | --sile | --sil)
1252       continue ;;
1253     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255     esac
1256     case $ac_pass in
1257     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258     2)
1259       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260       if test $ac_must_keep_next = true; then
1261         ac_must_keep_next=false # Got value, back to normal.
1262       else
1263         case $ac_arg in
1264           *=* | --config-cache | -C | -disable-* | --disable-* \
1265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267           | -with-* | --with-* | -without-* | --without-* | --x)
1268             case "$ac_configure_args0 " in
1269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270             esac
1271             ;;
1272           -* ) ac_must_keep_next=true ;;
1273         esac
1274       fi
1275       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276       # Get rid of the leading space.
1277       ac_sep=" "
1278       ;;
1279     esac
1280   done
1281 done
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log.  We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291   # Save into config.log some information that might help in debugging.
1292   {
1293     echo
1294
1295     cat <<\_ASBOX
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1299 _ASBOX
1300     echo
1301     # The following way of writing the cache mishandles newlines in values,
1302 {
1303   (set) 2>&1 |
1304     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305     *ac_space=\ *)
1306       sed -n \
1307         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309       ;;
1310     *)
1311       sed -n \
1312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313       ;;
1314     esac;
1315 }
1316     echo
1317
1318     cat <<\_ASBOX
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1322 _ASBOX
1323     echo
1324     for ac_var in $ac_subst_vars
1325     do
1326       eval ac_val=$`echo $ac_var`
1327       echo "$ac_var='"'"'$ac_val'"'"'"
1328     done | sort
1329     echo
1330
1331     if test -n "$ac_subst_files"; then
1332       cat <<\_ASBOX
1333 ## ------------- ##
1334 ## Output files. ##
1335 ## ------------- ##
1336 _ASBOX
1337       echo
1338       for ac_var in $ac_subst_files
1339       do
1340         eval ac_val=$`echo $ac_var`
1341         echo "$ac_var='"'"'$ac_val'"'"'"
1342       done | sort
1343       echo
1344     fi
1345
1346     if test -s confdefs.h; then
1347       cat <<\_ASBOX
1348 ## ----------- ##
1349 ## confdefs.h. ##
1350 ## ----------- ##
1351 _ASBOX
1352       echo
1353       sed "/^$/d" confdefs.h | sort
1354       echo
1355     fi
1356     test "$ac_signal" != 0 &&
1357       echo "$as_me: caught signal $ac_signal"
1358     echo "$as_me: exit $exit_status"
1359   } >&5
1360   rm -f core *.core &&
1361   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362     exit $exit_status
1363      ' 0
1364 for ac_signal in 1 2 13 15; do
1365   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 done
1367 ac_signal=0
1368
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 echo >confdefs.h
1373
1374 # Predefined preprocessor variables.
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 _ACEOF
1399
1400
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404   if test "x$prefix" != xNONE; then
1405     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406   else
1407     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408   fi
1409 fi
1410 for ac_site_file in $CONFIG_SITE; do
1411   if test -r "$ac_site_file"; then
1412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414     sed 's/^/| /' "$ac_site_file" >&5
1415     . "$ac_site_file"
1416   fi
1417 done
1418
1419 if test -r "$cache_file"; then
1420   # Some versions of bash will fail to source /dev/null (special
1421   # files actually), so we avoid doing that.
1422   if test -f "$cache_file"; then
1423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1425     case $cache_file in
1426       [\\/]* | ?:[\\/]* ) . $cache_file;;
1427       *)                      . ./$cache_file;;
1428     esac
1429   fi
1430 else
1431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1433   >$cache_file
1434 fi
1435
1436 # Check that the precious variables saved in the cache have kept the same
1437 # value.
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442   eval ac_new_set=\$ac_env_${ac_var}_set
1443   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444   eval ac_new_val="\$ac_env_${ac_var}_value"
1445   case $ac_old_set,$ac_new_set in
1446     set,)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,set)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,);;
1455     *)
1456       if test "x$ac_old_val" != "x$ac_new_val"; then
1457         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1460 echo "$as_me:   former value:  $ac_old_val" >&2;}
1461         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1462 echo "$as_me:   current value: $ac_new_val" >&2;}
1463         ac_cache_corrupted=:
1464       fi;;
1465   esac
1466   # Pass precious variables to config.status.
1467   if test "$ac_new_set" = set; then
1468     case $ac_new_val in
1469     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     *) ac_arg=$ac_var=$ac_new_val ;;
1472     esac
1473     case " $ac_configure_args " in
1474       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1475       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476     esac
1477   fi
1478 done
1479 if $ac_cache_corrupted; then
1480   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484    { (exit 1); exit 1; }; }
1485 fi
1486
1487 ac_ext=c
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1512
1513
1514 RADIUSD_MAJOR_VERSION=1
1515 RADIUSD_MINOR_VERSION=1.0-pre0
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }; then
2031   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032   case $ac_file in
2033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035        break;;
2036   esac
2037 done
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2054 ac_objext=$OBJEXT
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h.  */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h.  */
2066
2067 int
2068 main ()
2069 {
2070 #ifndef __GNUC__
2071        choke me
2072 #endif
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080   (eval $ac_compile) 2>conftest.er1
2081   ac_status=$?
2082   grep -v '^ *+' conftest.er1 >conftest.err
2083   rm -f conftest.er1
2084   cat conftest.err >&5
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; } &&
2093          { ac_try='test -s conftest.$ac_objext'
2094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095   (eval $ac_try) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; }; then
2099   ac_compiler_gnu=yes
2100 else
2101   echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2103
2104 ac_compiler_gnu=no
2105 fi
2106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2108
2109 fi
2110 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2111 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2112 GCC=`test $ac_compiler_gnu = yes && echo yes`
2113 ac_test_CFLAGS=${CFLAGS+set}
2114 ac_save_CFLAGS=$CFLAGS
2115 CFLAGS="-g"
2116 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2117 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2118 if test "${ac_cv_prog_cc_g+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 rm -f conftest.$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138   (eval $ac_compile) 2>conftest.er1
2139   ac_status=$?
2140   grep -v '^ *+' conftest.er1 >conftest.err
2141   rm -f conftest.er1
2142   cat conftest.err >&5
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); } &&
2145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147   (eval $ac_try) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; } &&
2151          { ac_try='test -s conftest.$ac_objext'
2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; }; then
2157   ac_cv_prog_cc_g=yes
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_cv_prog_cc_g=no
2163 fi
2164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2168 if test "$ac_test_CFLAGS" = set; then
2169   CFLAGS=$ac_save_CFLAGS
2170 elif test $ac_cv_prog_cc_g = yes; then
2171   if test "$GCC" = yes; then
2172     CFLAGS="-g -O2"
2173   else
2174     CFLAGS="-g"
2175   fi
2176 else
2177   if test "$GCC" = yes; then
2178     CFLAGS="-O2"
2179   else
2180     CFLAGS=
2181   fi
2182 fi
2183 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2184 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2185 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   ac_cv_prog_cc_stdc=no
2189 ac_save_CC=$CC
2190 cat >conftest.$ac_ext <<_ACEOF
2191 /* confdefs.h.  */
2192 _ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h.  */
2196 #include <stdarg.h>
2197 #include <stdio.h>
2198 #include <sys/types.h>
2199 #include <sys/stat.h>
2200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2201 struct buf { int x; };
2202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2203 static char *e (p, i)
2204      char **p;
2205      int i;
2206 {
2207   return p[i];
2208 }
2209 static char *f (char * (*g) (char **, int), char **p, ...)
2210 {
2211   char *s;
2212   va_list v;
2213   va_start (v,p);
2214   s = g (p, va_arg (v,int));
2215   va_end (v);
2216   return s;
2217 }
2218
2219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2220    function prototypes and stuff, but not '\xHH' hex character constants.
2221    These don't provoke an error unfortunately, instead are silently treated
2222    as 'x'.  The following induces an error, until -std1 is added to get
2223    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2224    array size at least.  It's necessary to write '\x00'==0 to get something
2225    that's true only with -std1.  */
2226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227
2228 int test (int i, double x);
2229 struct s1 {int (*f) (int a);};
2230 struct s2 {int (*f) (double a);};
2231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2232 int argc;
2233 char **argv;
2234 int
2235 main ()
2236 {
2237 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 # Don't try gcc -ansi; that turns off useful extensions and
2243 # breaks some systems' header files.
2244 # AIX                   -qlanglvl=ansi
2245 # Ultrix and OSF/1      -std1
2246 # HP-UX 10.20 and later -Ae
2247 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2248 # SVR4                  -Xc -D__EXTENSIONS__
2249 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250 do
2251   CC="$ac_save_CC $ac_arg"
2252   rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>conftest.er1
2255   ac_status=$?
2256   grep -v '^ *+' conftest.er1 >conftest.err
2257   rm -f conftest.er1
2258   cat conftest.err >&5
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); } &&
2261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263   (eval $ac_try) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   ac_cv_prog_cc_stdc=$ac_arg
2274 break
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 fi
2280 rm -f conftest.err conftest.$ac_objext
2281 done
2282 rm -f conftest.$ac_ext conftest.$ac_objext
2283 CC=$ac_save_CC
2284
2285 fi
2286
2287 case "x$ac_cv_prog_cc_stdc" in
2288   x|xno)
2289     echo "$as_me:$LINENO: result: none needed" >&5
2290 echo "${ECHO_T}none needed" >&6 ;;
2291   *)
2292     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2293 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2294     CC="$CC $ac_cv_prog_cc_stdc" ;;
2295 esac
2296
2297 # Some people use a C++ compiler to compile C.  Since we use `exit',
2298 # in C++ we need to declare it.  In case someone uses the same compiler
2299 # for both compiling C and C++ we need to have the C++ compiler decide
2300 # the declaration of exit, since it's the most demanding environment.
2301 cat >conftest.$ac_ext <<_ACEOF
2302 #ifndef __cplusplus
2303   choke me
2304 #endif
2305 _ACEOF
2306 rm -f conftest.$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308   (eval $ac_compile) 2>conftest.er1
2309   ac_status=$?
2310   grep -v '^ *+' conftest.er1 >conftest.err
2311   rm -f conftest.er1
2312   cat conftest.err >&5
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 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   for ac_declaration in \
2328    '' \
2329    'extern "C" void std::exit (int) throw (); using std::exit;' \
2330    'extern "C" void std::exit (int); using std::exit;' \
2331    'extern "C" void exit (int) throw ();' \
2332    'extern "C" void exit (int);' \
2333    'void exit (int);'
2334 do
2335   cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341 $ac_declaration
2342 #include <stdlib.h>
2343 int
2344 main ()
2345 {
2346 exit (42);
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>conftest.er1
2354   ac_status=$?
2355   grep -v '^ *+' conftest.er1 >conftest.err
2356   rm -f conftest.er1
2357   cat conftest.err >&5
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; } &&
2366          { ac_try='test -s conftest.$ac_objext'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; }; then
2372   :
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 continue
2378 fi
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380   cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386 $ac_declaration
2387 int
2388 main ()
2389 {
2390 exit (42);
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>conftest.er1
2398   ac_status=$?
2399   grep -v '^ *+' conftest.er1 >conftest.err
2400   rm -f conftest.er1
2401   cat conftest.err >&5
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   break
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 fi
2422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423 done
2424 rm -f conftest*
2425 if test -n "$ac_declaration"; then
2426   echo '#ifdef __cplusplus' >>confdefs.h
2427   echo $ac_declaration      >>confdefs.h
2428   echo '#endif'             >>confdefs.h
2429 fi
2430
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 fi
2436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2451 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2452 # On Suns, sometimes $CPP names a directory.
2453 if test -n "$CPP" && test -d "$CPP"; then
2454   CPP=
2455 fi
2456 if test -z "$CPP"; then
2457   if test "${ac_cv_prog_CPP+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460       # Double quotes because CPP needs to be expanded
2461     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2462     do
2463       ac_preproc_ok=false
2464 for ac_c_preproc_warn_flag in '' yes
2465 do
2466   # Use a header file that comes with gcc, so configuring glibc
2467   # with a fresh cross-compiler works.
2468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469   # <limits.h> exists even on freestanding compilers.
2470   # On the NeXT, cc -E runs the code through the compiler's parser,
2471   # not just through cpp. "Syntax error" is here to catch this case.
2472   cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478 #ifdef __STDC__
2479 # include <limits.h>
2480 #else
2481 # include <assert.h>
2482 #endif
2483                      Syntax error
2484 _ACEOF
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487   ac_status=$?
2488   grep -v '^ *+' conftest.er1 >conftest.err
2489   rm -f conftest.er1
2490   cat conftest.err >&5
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); } >/dev/null; then
2493   if test -s conftest.err; then
2494     ac_cpp_err=$ac_c_preproc_warn_flag
2495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2496   else
2497     ac_cpp_err=
2498   fi
2499 else
2500   ac_cpp_err=yes
2501 fi
2502 if test -z "$ac_cpp_err"; then
2503   :
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508   # Broken: fails on valid input.
2509 continue
2510 fi
2511 rm -f conftest.err conftest.$ac_ext
2512
2513   # OK, works on sane cases.  Now check whether non-existent headers
2514   # can be detected and how.
2515   cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h.  */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h.  */
2521 #include <ac_nonexistent.h>
2522 _ACEOF
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525   ac_status=$?
2526   grep -v '^ *+' conftest.er1 >conftest.err
2527   rm -f conftest.er1
2528   cat conftest.err >&5
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } >/dev/null; then
2531   if test -s conftest.err; then
2532     ac_cpp_err=$ac_c_preproc_warn_flag
2533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2534   else
2535     ac_cpp_err=
2536   fi
2537 else
2538   ac_cpp_err=yes
2539 fi
2540 if test -z "$ac_cpp_err"; then
2541   # Broken: success on invalid input.
2542 continue
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547   # Passes both tests.
2548 ac_preproc_ok=:
2549 break
2550 fi
2551 rm -f conftest.err conftest.$ac_ext
2552
2553 done
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2557   break
2558 fi
2559
2560     done
2561     ac_cv_prog_CPP=$CPP
2562
2563 fi
2564   CPP=$ac_cv_prog_CPP
2565 else
2566   ac_cv_prog_CPP=$CPP
2567 fi
2568 echo "$as_me:$LINENO: result: $CPP" >&5
2569 echo "${ECHO_T}$CPP" >&6
2570 ac_preproc_ok=false
2571 for ac_c_preproc_warn_flag in '' yes
2572 do
2573   # Use a header file that comes with gcc, so configuring glibc
2574   # with a fresh cross-compiler works.
2575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576   # <limits.h> exists even on freestanding compilers.
2577   # On the NeXT, cc -E runs the code through the compiler's parser,
2578   # not just through cpp. "Syntax error" is here to catch this case.
2579   cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585 #ifdef __STDC__
2586 # include <limits.h>
2587 #else
2588 # include <assert.h>
2589 #endif
2590                      Syntax error
2591 _ACEOF
2592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2594   ac_status=$?
2595   grep -v '^ *+' conftest.er1 >conftest.err
2596   rm -f conftest.er1
2597   cat conftest.err >&5
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } >/dev/null; then
2600   if test -s conftest.err; then
2601     ac_cpp_err=$ac_c_preproc_warn_flag
2602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2603   else
2604     ac_cpp_err=
2605   fi
2606 else
2607   ac_cpp_err=yes
2608 fi
2609 if test -z "$ac_cpp_err"; then
2610   :
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615   # Broken: fails on valid input.
2616 continue
2617 fi
2618 rm -f conftest.err conftest.$ac_ext
2619
2620   # OK, works on sane cases.  Now check whether non-existent headers
2621   # can be detected and how.
2622   cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 #include <ac_nonexistent.h>
2629 _ACEOF
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2632   ac_status=$?
2633   grep -v '^ *+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } >/dev/null; then
2638   if test -s conftest.err; then
2639     ac_cpp_err=$ac_c_preproc_warn_flag
2640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2641   else
2642     ac_cpp_err=
2643   fi
2644 else
2645   ac_cpp_err=yes
2646 fi
2647 if test -z "$ac_cpp_err"; then
2648   # Broken: success on invalid input.
2649 continue
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654   # Passes both tests.
2655 ac_preproc_ok=:
2656 break
2657 fi
2658 rm -f conftest.err conftest.$ac_ext
2659
2660 done
2661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2662 rm -f conftest.err conftest.$ac_ext
2663 if $ac_preproc_ok; then
2664   :
2665 else
2666   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2669 See \`config.log' for more details." >&2;}
2670    { (exit 1); exit 1; }; }
2671 fi
2672
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678
2679
2680 echo "$as_me:$LINENO: checking for egrep" >&5
2681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2682 if test "${ac_cv_prog_egrep+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2686     then ac_cv_prog_egrep='grep -E'
2687     else ac_cv_prog_egrep='egrep'
2688     fi
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2691 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2692  EGREP=$ac_cv_prog_egrep
2693
2694
2695
2696 echo "$as_me:$LINENO: checking for AIX" >&5
2697 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704 #ifdef _AIX
2705   yes
2706 #endif
2707
2708 _ACEOF
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710   $EGREP "yes" >/dev/null 2>&1; then
2711   echo "$as_me:$LINENO: result: yes" >&5
2712 echo "${ECHO_T}yes" >&6
2713 cat >>confdefs.h <<\_ACEOF
2714 #define _ALL_SOURCE 1
2715 _ACEOF
2716
2717 else
2718   echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2720 fi
2721 rm -f conftest*
2722
2723
2724
2725 if test $ac_cv_c_compiler_gnu = yes; then
2726     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2727 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2728 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731     ac_pattern="Autoconf.*'x'"
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <sgtty.h>
2739 Autoconf TIOCGETP
2740 _ACEOF
2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2742   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2743   ac_cv_prog_gcc_traditional=yes
2744 else
2745   ac_cv_prog_gcc_traditional=no
2746 fi
2747 rm -f conftest*
2748
2749
2750   if test $ac_cv_prog_gcc_traditional = no; then
2751     cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <termio.h>
2758 Autoconf TCGETA
2759 _ACEOF
2760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2761   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2762   ac_cv_prog_gcc_traditional=yes
2763 fi
2764 rm -f conftest*
2765
2766   fi
2767 fi
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2769 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2770   if test $ac_cv_prog_gcc_traditional = yes; then
2771     CC="$CC -traditional"
2772   fi
2773 fi
2774
2775 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2776 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2777 if test "${ac_cv_prog_suncc+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   cat > conftest.c <<EOF
2781 #ifdef __SUNPRO_C
2782   yes;
2783 #endif
2784 EOF
2785 if { ac_try='${CC-cc} -E conftest.c'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2791   ac_cv_prog_suncc=yes
2792 else
2793   ac_cv_prog_suncc=no
2794 fi
2795 fi
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2797 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2798 if test -n "$ac_tool_prefix"; then
2799   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_RANLIB+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$RANLIB"; then
2807   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822
2823 fi
2824 fi
2825 RANLIB=$ac_cv_prog_RANLIB
2826 if test -n "$RANLIB"; then
2827   echo "$as_me:$LINENO: result: $RANLIB" >&5
2828 echo "${ECHO_T}$RANLIB" >&6
2829 else
2830   echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834 fi
2835 if test -z "$ac_cv_prog_RANLIB"; then
2836   ac_ct_RANLIB=$RANLIB
2837   # Extract the first word of "ranlib", so it can be a program name with args.
2838 set dummy ranlib; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$ac_ct_RANLIB"; then
2845   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_ac_ct_RANLIB="ranlib"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860
2861   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2862 fi
2863 fi
2864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2865 if test -n "$ac_ct_RANLIB"; then
2866   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2867 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2868 else
2869   echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873   RANLIB=$ac_ct_RANLIB
2874 else
2875   RANLIB="$ac_cv_prog_RANLIB"
2876 fi
2877
2878
2879 abs_top_builddir=`pwd`
2880
2881
2882 # Check whether --enable-largefile or --disable-largefile was given.
2883 if test "${enable_largefile+set}" = set; then
2884   enableval="$enable_largefile"
2885
2886 fi;
2887 if test "$enable_largefile" != no; then
2888
2889   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2890 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2891 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   ac_cv_sys_largefile_CC=no
2895      if test "$GCC" != yes; then
2896        ac_save_CC=$CC
2897        while :; do
2898          # IRIX 6.2 and later do not support large files by default,
2899          # so use the C compiler's -n32 option if that helps.
2900          cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h.  */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h.  */
2906 #include <sys/types.h>
2907  /* Check that off_t can represent 2**63 - 1 correctly.
2908     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2909     since some C++ compilers masquerading as C compilers
2910     incorrectly reject 9223372036854775807.  */
2911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2912   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2913                        && LARGE_OFF_T % 2147483647 == 1)
2914                       ? 1 : -1];
2915 int
2916 main ()
2917 {
2918
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923          rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925   (eval $ac_compile) 2>conftest.er1
2926   ac_status=$?
2927   grep -v '^ *+' conftest.er1 >conftest.err
2928   rm -f conftest.er1
2929   cat conftest.err >&5
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); } &&
2932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; } &&
2938          { ac_try='test -s conftest.$ac_objext'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; }; then
2944   break
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 fi
2950 rm -f conftest.err conftest.$ac_objext
2951          CC="$CC -n32"
2952          rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954   (eval $ac_compile) 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } &&
2961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   ac_cv_sys_largefile_CC=' -n32'; break
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 fi
2979 rm -f conftest.err conftest.$ac_objext
2980          break
2981        done
2982        CC=$ac_save_CC
2983        rm -f conftest.$ac_ext
2984     fi
2985 fi
2986 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2987 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2988   if test "$ac_cv_sys_largefile_CC" != no; then
2989     CC=$CC$ac_cv_sys_largefile_CC
2990   fi
2991
2992   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2993 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2994 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   while :; do
2998   ac_cv_sys_file_offset_bits=no
2999   cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005 #include <sys/types.h>
3006  /* Check that off_t can represent 2**63 - 1 correctly.
3007     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3008     since some C++ compilers masquerading as C compilers
3009     incorrectly reject 9223372036854775807.  */
3010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3011   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3012                        && LARGE_OFF_T % 2147483647 == 1)
3013                       ? 1 : -1];
3014 int
3015 main ()
3016 {
3017
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033   (eval $ac_try) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; }; then
3043   break
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 fi
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050   cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056 #define _FILE_OFFSET_BITS 64
3057 #include <sys/types.h>
3058  /* Check that off_t can represent 2**63 - 1 correctly.
3059     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3060     since some C++ compilers masquerading as C compilers
3061     incorrectly reject 9223372036854775807.  */
3062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3063   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3064                        && LARGE_OFF_T % 2147483647 == 1)
3065                       ? 1 : -1];
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091   (eval $ac_try) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; }; then
3095   ac_cv_sys_file_offset_bits=64; break
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 fi
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102   break
3103 done
3104 fi
3105 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3106 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3107 if test "$ac_cv_sys_file_offset_bits" != no; then
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3111 _ACEOF
3112
3113 fi
3114 rm -f conftest*
3115   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3116 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3117 if test "${ac_cv_sys_large_files+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   while :; do
3121   ac_cv_sys_large_files=no
3122   cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 #include <sys/types.h>
3129  /* Check that off_t can represent 2**63 - 1 correctly.
3130     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3131     since some C++ compilers masquerading as C compilers
3132     incorrectly reject 9223372036854775807.  */
3133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3134   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3135                        && LARGE_OFF_T % 2147483647 == 1)
3136                       ? 1 : -1];
3137 int
3138 main ()
3139 {
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147   (eval $ac_compile) 2>conftest.er1
3148   ac_status=$?
3149   grep -v '^ *+' conftest.er1 >conftest.err
3150   rm -f conftest.er1
3151   cat conftest.err >&5
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } &&
3154          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156   (eval $ac_try) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162   (eval $ac_try) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   break
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 fi
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #define _LARGE_FILES 1
3180 #include <sys/types.h>
3181  /* Check that off_t can represent 2**63 - 1 correctly.
3182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3183     since some C++ compilers masquerading as C compilers
3184     incorrectly reject 9223372036854775807.  */
3185 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3187                        && LARGE_OFF_T % 2147483647 == 1)
3188                       ? 1 : -1];
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199   (eval $ac_compile) 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } &&
3206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; } &&
3212          { ac_try='test -s conftest.$ac_objext'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; }; then
3218   ac_cv_sys_large_files=1; break
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 fi
3224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3225   break
3226 done
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3229 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3230 if test "$ac_cv_sys_large_files" != no; then
3231
3232 cat >>confdefs.h <<_ACEOF
3233 #define _LARGE_FILES $ac_cv_sys_large_files
3234 _ACEOF
3235
3236 fi
3237 rm -f conftest*
3238 fi
3239
3240
3241 PACKAGE=freeradius
3242
3243 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3244 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3245 if test "${ac_cv_c_bigendian+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   # See if sys/param.h defines the BYTE_ORDER macro.
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #include <sys/types.h>
3256 #include <sys/param.h>
3257
3258 int
3259 main ()
3260 {
3261 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3262  bogus endian macros
3263 #endif
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271   (eval $ac_compile) 2>conftest.er1
3272   ac_status=$?
3273   grep -v '^ *+' conftest.er1 >conftest.err
3274   rm -f conftest.er1
3275   cat conftest.err >&5
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); } &&
3278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280   (eval $ac_try) 2>&5
3281   ac_status=$?
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); }; } &&
3284          { ac_try='test -s conftest.$ac_objext'
3285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286   (eval $ac_try) 2>&5
3287   ac_status=$?
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); }; }; then
3290   # It does; now see whether it defined to BIG_ENDIAN or not.
3291 cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 #include <sys/types.h>
3298 #include <sys/param.h>
3299
3300 int
3301 main ()
3302 {
3303 #if BYTE_ORDER != BIG_ENDIAN
3304  not big endian
3305 #endif
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313   (eval $ac_compile) 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } &&
3320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); }; } &&
3326          { ac_try='test -s conftest.$ac_objext'
3327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328   (eval $ac_try) 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; }; then
3332   ac_cv_c_bigendian=yes
3333 else
3334   echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 ac_cv_c_bigendian=no
3338 fi
3339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 # It does not; compile a test program.
3345 if test "$cross_compiling" = yes; then
3346   # try to guess the endianness by grepping values into an object file
3347   ac_cv_c_bigendian=unknown
3348   cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3355 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3357 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3358 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3360 int
3361 main ()
3362 {
3363  _ascii (); _ebcdic ();
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370   (eval $ac_compile) 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; } &&
3383          { ac_try='test -s conftest.$ac_objext'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3390   ac_cv_c_bigendian=yes
3391 fi
3392 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3393   if test "$ac_cv_c_bigendian" = unknown; then
3394     ac_cv_c_bigendian=no
3395   else
3396     # finding both strings is unlikely to happen, but who knows?
3397     ac_cv_c_bigendian=unknown
3398   fi
3399 fi
3400 else
3401   echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404 fi
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406 else
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 int
3414 main ()
3415 {
3416   /* Are we little or big endian?  From Harbison&Steele.  */
3417   union
3418   {
3419     long l;
3420     char c[sizeof (long)];
3421   } u;
3422   u.l = 1;
3423   exit (u.c[sizeof (long) - 1] == 1);
3424 }
3425 _ACEOF
3426 rm -f conftest$ac_exeext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3428   (eval $ac_link) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; }; then
3437   ac_cv_c_bigendian=no
3438 else
3439   echo "$as_me: program exited with status $ac_status" >&5
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 ( exit $ac_status )
3444 ac_cv_c_bigendian=yes
3445 fi
3446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3447 fi
3448 fi
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3452 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3453 case $ac_cv_c_bigendian in
3454   yes)
3455
3456 cat >>confdefs.h <<\_ACEOF
3457 #define WORDS_BIGENDIAN 1
3458 _ACEOF
3459  ;;
3460   no)
3461      ;;
3462   *)
3463     { { echo "$as_me:$LINENO: error: unknown endianness
3464 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3465 echo "$as_me: error: unknown endianness
3466 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3467    { (exit 1); exit 1; }; } ;;
3468 esac
3469
3470
3471 # Extract the first word of "gmake", so it can be a program name with args.
3472 set dummy gmake; ac_word=$2
3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_GMAKE+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   if test -n "$GMAKE"; then
3479   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486   for ac_exec_ext in '' $ac_executable_extensions; do
3487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488     ac_cv_prog_GMAKE="yes"
3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493 done
3494
3495   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3496 fi
3497 fi
3498 GMAKE=$ac_cv_prog_GMAKE
3499 if test -n "$GMAKE"; then
3500   echo "$as_me:$LINENO: result: $GMAKE" >&5
3501 echo "${ECHO_T}$GMAKE" >&6
3502 else
3503   echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3505 fi
3506
3507 if test $GMAKE = no; then
3508   # Extract the first word of "make", so it can be a program name with args.
3509 set dummy make; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_MAKE+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   case $MAKE in
3516   [\\/]* | ?:[\\/]*)
3517   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3518   ;;
3519   *)
3520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525   for ac_exec_ext in '' $ac_executable_extensions; do
3526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532 done
3533
3534   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3535   ;;
3536 esac
3537 fi
3538 MAKE=$ac_cv_path_MAKE
3539
3540 if test -n "$MAKE"; then
3541   echo "$as_me:$LINENO: result: $MAKE" >&5
3542 echo "${ECHO_T}$MAKE" >&6
3543 else
3544   echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548 else
3549   # Extract the first word of "gmake", so it can be a program name with args.
3550 set dummy gmake; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_MAKE+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   case $MAKE in
3557   [\\/]* | ?:[\\/]*)
3558   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3559   ;;
3560   *)
3561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3576   ;;
3577 esac
3578 fi
3579 MAKE=$ac_cv_path_MAKE
3580
3581 if test -n "$MAKE"; then
3582   echo "$as_me:$LINENO: result: $MAKE" >&5
3583 echo "${ECHO_T}$MAKE" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 fi
3590 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3591 if test -z "$makever"; then
3592   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3593                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3594 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3595                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3596    { (exit 1); exit 1; }; }
3597 fi
3598
3599   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3600 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3601 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   ac_check_lib_save_LIBS=$LIBS
3605 LIBS="-lltdl  $LIBS"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612
3613 /* Override any gcc2 internal prototype to avoid an error.  */
3614 #ifdef __cplusplus
3615 extern "C"
3616 #endif
3617 /* We use char because int might match the return type of a gcc2
3618    builtin and then its argument prototype would still apply.  */
3619 char lt_dlinit ();
3620 int
3621 main ()
3622 {
3623 lt_dlinit ();
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3630   (eval $ac_link) 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } &&
3637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639   (eval $ac_try) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }; } &&
3643          { ac_try='test -s conftest$ac_exeext'
3644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645   (eval $ac_try) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; }; then
3649   ac_cv_lib_ltdl_lt_dlinit=yes
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_cv_lib_ltdl_lt_dlinit=no
3655 fi
3656 rm -f conftest.err conftest.$ac_objext \
3657       conftest$ac_exeext conftest.$ac_ext
3658 LIBS=$ac_check_lib_save_LIBS
3659 fi
3660 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3661 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3662 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3663   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3664 else
3665   if test x"$enable_ltdl_install" = xno; then
3666      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3667 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3668    else
3669      enable_ltdl_install=yes
3670    fi
3671
3672 fi
3673
3674   if test x"$enable_ltdl_install" = x"yes"; then
3675     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3676     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3677     LTDLINCL='-I${top_srcdir}/''libltdl'
3678   else
3679     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3680     LIBLTDL="-lltdl"
3681     LTDLINCL=
3682   fi
3683   # For backwards non-gettext consistent compatibility...
3684   INCLTDL="$LTDLINCL"
3685
3686 ac_aux_dir=
3687 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3688   if test -f $ac_dir/install-sh; then
3689     ac_aux_dir=$ac_dir
3690     ac_install_sh="$ac_aux_dir/install-sh -c"
3691     break
3692   elif test -f $ac_dir/install.sh; then
3693     ac_aux_dir=$ac_dir
3694     ac_install_sh="$ac_aux_dir/install.sh -c"
3695     break
3696   elif test -f $ac_dir/shtool; then
3697     ac_aux_dir=$ac_dir
3698     ac_install_sh="$ac_aux_dir/shtool install -c"
3699     break
3700   fi
3701 done
3702 if test -z "$ac_aux_dir"; then
3703   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3704 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3705    { (exit 1); exit 1; }; }
3706 fi
3707 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3708 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3709 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3710
3711
3712    LIBLTDLPATH=
3713    if test x"$enable_ltdl_install" = x"yes"; then
3714
3715
3716 subdirs="$subdirs 'libltdl'"
3717
3718      LIBLTDLPATH=libltdl
3719     fi
3720
3721
3722
3723 # Check whether --enable-shared or --disable-shared was given.
3724 if test "${enable_shared+set}" = set; then
3725   enableval="$enable_shared"
3726   p=${PACKAGE-default}
3727     case $enableval in
3728     yes) enable_shared=yes ;;
3729     no) enable_shared=no ;;
3730     *)
3731       enable_shared=no
3732       # Look at the argument we got.  We use all the common list separators.
3733       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734       for pkg in $enableval; do
3735         IFS="$lt_save_ifs"
3736         if test "X$pkg" = "X$p"; then
3737           enable_shared=yes
3738         fi
3739       done
3740       IFS="$lt_save_ifs"
3741       ;;
3742     esac
3743 else
3744   enable_shared=yes
3745 fi;
3746
3747 # Check whether --enable-static or --disable-static was given.
3748 if test "${enable_static+set}" = set; then
3749   enableval="$enable_static"
3750   p=${PACKAGE-default}
3751     case $enableval in
3752     yes) enable_static=yes ;;
3753     no) enable_static=no ;;
3754     *)
3755      enable_static=no
3756       # Look at the argument we got.  We use all the common list separators.
3757       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758       for pkg in $enableval; do
3759         IFS="$lt_save_ifs"
3760         if test "X$pkg" = "X$p"; then
3761           enable_static=yes
3762         fi
3763       done
3764       IFS="$lt_save_ifs"
3765       ;;
3766     esac
3767 else
3768   enable_static=yes
3769 fi;
3770
3771 # Check whether --enable-fast-install or --disable-fast-install was given.
3772 if test "${enable_fast_install+set}" = set; then
3773   enableval="$enable_fast_install"
3774   p=${PACKAGE-default}
3775     case $enableval in
3776     yes) enable_fast_install=yes ;;
3777     no) enable_fast_install=no ;;
3778     *)
3779       enable_fast_install=no
3780       # Look at the argument we got.  We use all the common list separators.
3781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782       for pkg in $enableval; do
3783         IFS="$lt_save_ifs"
3784         if test "X$pkg" = "X$p"; then
3785           enable_fast_install=yes
3786         fi
3787       done
3788       IFS="$lt_save_ifs"
3789       ;;
3790     esac
3791 else
3792   enable_fast_install=yes
3793 fi;
3794
3795 # Make sure we can run config.sub.
3796 $ac_config_sub sun4 >/dev/null 2>&1 ||
3797   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3798 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3799    { (exit 1); exit 1; }; }
3800
3801 echo "$as_me:$LINENO: checking build system type" >&5
3802 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3803 if test "${ac_cv_build+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   ac_cv_build_alias=$build_alias
3807 test -z "$ac_cv_build_alias" &&
3808   ac_cv_build_alias=`$ac_config_guess`
3809 test -z "$ac_cv_build_alias" &&
3810   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3811 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3812    { (exit 1); exit 1; }; }
3813 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3814   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3815 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3816    { (exit 1); exit 1; }; }
3817
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3820 echo "${ECHO_T}$ac_cv_build" >&6
3821 build=$ac_cv_build
3822 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3823 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3824 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3825
3826
3827 echo "$as_me:$LINENO: checking host system type" >&5
3828 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3829 if test "${ac_cv_host+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   ac_cv_host_alias=$host_alias
3833 test -z "$ac_cv_host_alias" &&
3834   ac_cv_host_alias=$ac_cv_build_alias
3835 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3836   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3837 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3838    { (exit 1); exit 1; }; }
3839
3840 fi
3841 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3842 echo "${ECHO_T}$ac_cv_host" >&6
3843 host=$ac_cv_host
3844 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3845 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3846 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3847
3848
3849 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3851 if test "${lt_cv_path_SED+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   # Loop through the user's path and test for sed and gsed.
3855 # Then use that list of sed's as ones to test for truncation.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for lt_ac_prog in sed gsed; do
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3864         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3865       fi
3866     done
3867   done
3868 done
3869 lt_ac_max=0
3870 lt_ac_count=0
3871 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3872 # along with /bin/sed that truncates output.
3873 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3874   test ! -f $lt_ac_sed && break
3875   cat /dev/null > conftest.in
3876   lt_ac_count=0
3877   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3878   # Check for GNU sed and select it if it is found.
3879   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3880     lt_cv_path_SED=$lt_ac_sed
3881     break
3882   fi
3883   while true; do
3884     cat conftest.in conftest.in >conftest.tmp
3885     mv conftest.tmp conftest.in
3886     cp conftest.in conftest.nl
3887     echo >>conftest.nl
3888     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3889     cmp -s conftest.out conftest.nl || break
3890     # 10000 chars as input seems more than enough
3891     test $lt_ac_count -gt 10 && break
3892     lt_ac_count=`expr $lt_ac_count + 1`
3893     if test $lt_ac_count -gt $lt_ac_max; then
3894       lt_ac_max=$lt_ac_count
3895       lt_cv_path_SED=$lt_ac_sed
3896     fi
3897   done
3898 done
3899 SED=$lt_cv_path_SED
3900
3901 fi
3902
3903 echo "$as_me:$LINENO: result: $SED" >&5
3904 echo "${ECHO_T}$SED" >&6
3905
3906
3907 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3908 if test "${with_gnu_ld+set}" = set; then
3909   withval="$with_gnu_ld"
3910   test "$withval" = no || with_gnu_ld=yes
3911 else
3912   with_gnu_ld=no
3913 fi;
3914 ac_prog=ld
3915 if test "$GCC" = yes; then
3916   # Check if gcc -print-prog-name=ld gives a path.
3917   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3918 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3919   case $host in
3920   *-*-mingw*)
3921     # gcc leaves a trailing carriage return which upsets mingw
3922     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3923   *)
3924     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3925   esac
3926   case $ac_prog in
3927     # Accept absolute paths.
3928     [\\/]* | ?:[\\/]*)
3929       re_direlt='/[^/][^/]*/\.\./'
3930       # Canonicalize the pathname of ld
3931       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3932       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3933         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3934       done
3935       test -z "$LD" && LD="$ac_prog"
3936       ;;
3937   "")
3938     # If it fails, then pretend we aren't using GCC.
3939     ac_prog=ld
3940     ;;
3941   *)
3942     # If it is relative, then search for the first ld in PATH.
3943     with_gnu_ld=unknown
3944     ;;
3945   esac
3946 elif test "$with_gnu_ld" = yes; then
3947   echo "$as_me:$LINENO: checking for GNU ld" >&5
3948 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3949 else
3950   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3951 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3952 fi
3953 if test "${lt_cv_path_LD+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -z "$LD"; then
3957   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3958   for ac_dir in $PATH; do
3959     IFS="$lt_save_ifs"
3960     test -z "$ac_dir" && ac_dir=.
3961     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3962       lt_cv_path_LD="$ac_dir/$ac_prog"
3963       # Check to see if the program is GNU ld.  I'd rather use --version,
3964       # but apparently some GNU ld's only accept -v.
3965       # Break only if it was the GNU/non-GNU ld that we prefer.
3966       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3967       *GNU* | *'with BFD'*)
3968         test "$with_gnu_ld" != no && break
3969         ;;
3970       *)
3971         test "$with_gnu_ld" != yes && break
3972         ;;
3973       esac
3974     fi
3975   done
3976   IFS="$lt_save_ifs"
3977 else
3978   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3979 fi
3980 fi
3981
3982 LD="$lt_cv_path_LD"
3983 if test -n "$LD"; then
3984   echo "$as_me:$LINENO: result: $LD" >&5
3985 echo "${ECHO_T}$LD" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3991 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3992    { (exit 1); exit 1; }; }
3993 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3994 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3995 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3999 case `$LD -v 2>&1 </dev/null` in
4000 *GNU* | *'with BFD'*)
4001   lt_cv_prog_gnu_ld=yes
4002   ;;
4003 *)
4004   lt_cv_prog_gnu_ld=no
4005   ;;
4006 esac
4007 fi
4008 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4009 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4010 with_gnu_ld=$lt_cv_prog_gnu_ld
4011
4012
4013 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4014 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4015 if test "${lt_cv_ld_reload_flag+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   lt_cv_ld_reload_flag='-r'
4019 fi
4020 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4021 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4022 reload_flag=$lt_cv_ld_reload_flag
4023 case $reload_flag in
4024 "" | " "*) ;;
4025 *) reload_flag=" $reload_flag" ;;
4026 esac
4027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4028
4029 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4030 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4031 if test "${lt_cv_path_NM+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   if test -n "$NM"; then
4035   # Let the user override the test.
4036   lt_cv_path_NM="$NM"
4037 else
4038   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4039   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4040     IFS="$lt_save_ifs"
4041     test -z "$ac_dir" && ac_dir=.
4042     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4043     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4044       # Check to see if the nm accepts a BSD-compat flag.
4045       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4046       #   nm: unknown option "B" ignored
4047       # Tru64's nm complains that /dev/null is an invalid object file
4048       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4049       */dev/null* | *'Invalid file or object type'*)
4050         lt_cv_path_NM="$tmp_nm -B"
4051         break
4052         ;;
4053       *)
4054         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4055         */dev/null*)
4056           lt_cv_path_NM="$tmp_nm -p"
4057           break
4058           ;;
4059         *)
4060           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4061           continue # so that we can try to find one that supports BSD flags
4062           ;;
4063         esac
4064       esac
4065     fi
4066   done
4067   IFS="$lt_save_ifs"
4068   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4069 fi
4070 fi
4071 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4072 echo "${ECHO_T}$lt_cv_path_NM" >&6
4073 NM="$lt_cv_path_NM"
4074
4075 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4077 LN_S=$as_ln_s
4078 if test "$LN_S" = "ln -s"; then
4079   echo "$as_me:$LINENO: result: yes" >&5
4080 echo "${ECHO_T}yes" >&6
4081 else
4082   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4083 echo "${ECHO_T}no, using $LN_S" >&6
4084 fi
4085
4086 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4087 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4088 if test "${lt_cv_deplibs_check_method+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   lt_cv_file_magic_cmd='$MAGIC_CMD'
4092 lt_cv_file_magic_test_file=
4093 lt_cv_deplibs_check_method='unknown'
4094 # Need to set the preceding variable on all platforms that support
4095 # interlibrary dependencies.
4096 # 'none' -- dependencies not supported.
4097 # `unknown' -- same as none, but documents that we really don't know.
4098 # 'pass_all' -- all dependencies passed with no checks.
4099 # 'test_compile' -- check by making test program.
4100 # 'file_magic [[regex]]' -- check by looking for files in library path
4101 # which responds to the $file_magic_cmd with a given extended regex.
4102 # If you have `file' or equivalent on your system and you're not sure
4103 # whether `pass_all' will *always* work, you probably want this one.
4104
4105 case $host_os in
4106 aix4* | aix5*)
4107   lt_cv_deplibs_check_method=pass_all
4108   ;;
4109
4110 beos*)
4111   lt_cv_deplibs_check_method=pass_all
4112   ;;
4113
4114 bsdi4*)
4115   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4116   lt_cv_file_magic_cmd='/usr/bin/file -L'
4117   lt_cv_file_magic_test_file=/shlib/libc.so
4118   ;;
4119
4120 cygwin*)
4121   # func_win32_libid is a shell function defined in ltmain.sh
4122   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4123   lt_cv_file_magic_cmd='func_win32_libid'
4124   ;;
4125
4126 mingw* | pw32*)
4127   # Base MSYS/MinGW do not provide the 'file' command needed by
4128   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4129   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4130   lt_cv_file_magic_cmd='$OBJDUMP -f'
4131   ;;
4132
4133 darwin* | rhapsody*)
4134   lt_cv_deplibs_check_method=pass_all
4135   ;;
4136
4137 freebsd* | kfreebsd*-gnu)
4138   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4139     case $host_cpu in
4140     i*86 )
4141       # Not sure whether the presence of OpenBSD here was a mistake.
4142       # Let's accept both of them until this is cleared up.
4143       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4144       lt_cv_file_magic_cmd=/usr/bin/file
4145       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4146       ;;
4147     esac
4148   else
4149     lt_cv_deplibs_check_method=pass_all
4150   fi
4151   ;;
4152
4153 gnu*)
4154   lt_cv_deplibs_check_method=pass_all
4155   ;;
4156
4157 hpux10.20* | hpux11*)
4158   lt_cv_file_magic_cmd=/usr/bin/file
4159   case "$host_cpu" in
4160   ia64*)
4161     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4162     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4163     ;;
4164   hppa*64*)
4165     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]'
4166     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4167     ;;
4168   *)
4169     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4170     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4171     ;;
4172   esac
4173   ;;
4174
4175 irix5* | irix6* | nonstopux*)
4176   case $LD in
4177   *-32|*"-32 ") libmagic=32-bit;;
4178   *-n32|*"-n32 ") libmagic=N32;;
4179   *-64|*"-64 ") libmagic=64-bit;;
4180   *) libmagic=never-match;;
4181   esac
4182   lt_cv_deplibs_check_method=pass_all
4183   ;;
4184
4185 # This must be Linux ELF.
4186 linux*)
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4191   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4193   else
4194     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4195   fi
4196   ;;
4197
4198 newos6*)
4199   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200   lt_cv_file_magic_cmd=/usr/bin/file
4201   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4202   ;;
4203
4204 nto-qnx*)
4205   lt_cv_deplibs_check_method=unknown
4206   ;;
4207
4208 openbsd*)
4209   lt_cv_file_magic_cmd=/usr/bin/file
4210   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4211   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4212     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4213   else
4214     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4215   fi
4216   ;;
4217
4218 osf3* | osf4* | osf5*)
4219   lt_cv_deplibs_check_method=pass_all
4220   ;;
4221
4222 sco3.2v5*)
4223   lt_cv_deplibs_check_method=pass_all
4224   ;;
4225
4226 solaris*)
4227   lt_cv_deplibs_check_method=pass_all
4228   ;;
4229
4230 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4231   case $host_vendor in
4232   motorola)
4233     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]'
4234     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4235     ;;
4236   ncr)
4237     lt_cv_deplibs_check_method=pass_all
4238     ;;
4239   sequent)
4240     lt_cv_file_magic_cmd='/bin/file'
4241     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4242     ;;
4243   sni)
4244     lt_cv_file_magic_cmd='/bin/file'
4245     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4246     lt_cv_file_magic_test_file=/lib/libc.so
4247     ;;
4248   siemens)
4249     lt_cv_deplibs_check_method=pass_all
4250     ;;
4251   esac
4252   ;;
4253
4254 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4255   lt_cv_deplibs_check_method=pass_all
4256   ;;
4257 esac
4258
4259 fi
4260 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4261 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4262 file_magic_cmd=$lt_cv_file_magic_cmd
4263 deplibs_check_method=$lt_cv_deplibs_check_method
4264 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4265
4266
4267
4268
4269 # If no C compiler was specified, use CC.
4270 LTCC=${LTCC-"$CC"}
4271
4272 # Allow CC to be a program name with arguments.
4273 compiler=$CC
4274
4275 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4276 if test "${enable_libtool_lock+set}" = set; then
4277   enableval="$enable_libtool_lock"
4278
4279 fi;
4280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4281
4282 # Some flags need to be propagated to the compiler or linker for good
4283 # libtool support.
4284 case $host in
4285 ia64-*-hpux*)
4286   # Find out which ABI we are using.
4287   echo 'int i;' > conftest.$ac_ext
4288   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289   (eval $ac_compile) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; then
4293     case `/usr/bin/file conftest.$ac_objext` in
4294     *ELF-32*)
4295       HPUX_IA64_MODE="32"
4296       ;;
4297     *ELF-64*)
4298       HPUX_IA64_MODE="64"
4299       ;;
4300     esac
4301   fi
4302   rm -rf conftest*
4303   ;;
4304 *-*-irix6*)
4305   # Find out which ABI we are using.
4306   echo '#line 4306 "configure"' > conftest.$ac_ext
4307   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308   (eval $ac_compile) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; then
4312    if test "$lt_cv_prog_gnu_ld" = yes; then
4313     case `/usr/bin/file conftest.$ac_objext` in
4314     *32-bit*)
4315       LD="${LD-ld} -melf32bsmip"
4316       ;;
4317     *N32*)
4318       LD="${LD-ld} -melf32bmipn32"
4319       ;;
4320     *64-bit*)
4321       LD="${LD-ld} -melf64bmip"
4322       ;;
4323     esac
4324    else
4325     case `/usr/bin/file conftest.$ac_objext` in
4326     *32-bit*)
4327       LD="${LD-ld} -32"
4328       ;;
4329     *N32*)
4330       LD="${LD-ld} -n32"
4331       ;;
4332     *64-bit*)
4333       LD="${LD-ld} -64"
4334       ;;
4335     esac
4336    fi
4337   fi
4338   rm -rf conftest*
4339   ;;
4340
4341 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4342   # Find out which ABI we are using.
4343   echo 'int i;' > conftest.$ac_ext
4344   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; then
4349     case "`/usr/bin/file conftest.o`" in
4350     *32-bit*)
4351       case $host in
4352         x86_64-*linux*)
4353           LD="${LD-ld} -m elf_i386"
4354           ;;
4355         ppc64-*linux*|powerpc64-*linux*)
4356           LD="${LD-ld} -m elf32ppclinux"
4357           ;;
4358         s390x-*linux*)
4359           LD="${LD-ld} -m elf_s390"
4360           ;;
4361         sparc64-*linux*)
4362           LD="${LD-ld} -m elf32_sparc"
4363           ;;
4364       esac
4365       ;;
4366     *64-bit*)
4367       case $host in
4368         x86_64-*linux*)
4369           LD="${LD-ld} -m elf_x86_64"
4370           ;;
4371         ppc*-*linux*|powerpc*-*linux*)
4372           LD="${LD-ld} -m elf64ppc"
4373           ;;
4374         s390*-*linux*)
4375           LD="${LD-ld} -m elf64_s390"
4376           ;;
4377         sparc*-*linux*)
4378           LD="${LD-ld} -m elf64_sparc"
4379           ;;
4380       esac
4381       ;;
4382     esac
4383   fi
4384   rm -rf conftest*
4385   ;;
4386
4387 *-*-sco3.2v5*)
4388   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4389   SAVE_CFLAGS="$CFLAGS"
4390   CFLAGS="$CFLAGS -belf"
4391   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4392 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4393 if test "${lt_cv_cc_needs_belf+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402      cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408
4409 int
4410 main ()
4411 {
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4419   (eval $ac_link) 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } &&
4426          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428   (eval $ac_try) 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }; } &&
4432          { ac_try='test -s conftest$ac_exeext'
4433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434   (eval $ac_try) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438   lt_cv_cc_needs_belf=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 lt_cv_cc_needs_belf=no
4444 fi
4445 rm -f conftest.err conftest.$ac_objext \
4446       conftest$ac_exeext conftest.$ac_ext
4447      ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453 fi
4454 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4455 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4456   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4457     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4458     CFLAGS="$SAVE_CFLAGS"
4459   fi
4460   ;;
4461
4462 esac
4463
4464 need_locks="$enable_libtool_lock"
4465
4466
4467 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4468 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4469 if test "${ac_cv_header_stdc+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478 #include <stdlib.h>
4479 #include <stdarg.h>
4480 #include <string.h>
4481 #include <float.h>
4482
4483 int
4484 main ()
4485 {
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493   (eval $ac_compile) 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } &&
4500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; } &&
4506          { ac_try='test -s conftest.$ac_objext'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   ac_cv_header_stdc=yes
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 ac_cv_header_stdc=no
4518 fi
4519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4520
4521 if test $ac_cv_header_stdc = yes; then
4522   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4523   cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 #include <string.h>
4530
4531 _ACEOF
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533   $EGREP "memchr" >/dev/null 2>&1; then
4534   :
4535 else
4536   ac_cv_header_stdc=no
4537 fi
4538 rm -f conftest*
4539
4540 fi
4541
4542 if test $ac_cv_header_stdc = yes; then
4543   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4544   cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 #include <stdlib.h>
4551
4552 _ACEOF
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554   $EGREP "free" >/dev/null 2>&1; then
4555   :
4556 else
4557   ac_cv_header_stdc=no
4558 fi
4559 rm -f conftest*
4560
4561 fi
4562
4563 if test $ac_cv_header_stdc = yes; then
4564   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565   if test "$cross_compiling" = yes; then
4566   :
4567 else
4568   cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 #include <ctype.h>
4575 #if ((' ' & 0x0FF) == 0x020)
4576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4578 #else
4579 # define ISLOWER(c) \
4580                    (('a' <= (c) && (c) <= 'i') \
4581                      || ('j' <= (c) && (c) <= 'r') \
4582                      || ('s' <= (c) && (c) <= 'z'))
4583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4584 #endif
4585
4586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4587 int
4588 main ()
4589 {
4590   int i;
4591   for (i = 0; i < 256; i++)
4592     if (XOR (islower (i), ISLOWER (i))
4593         || toupper (i) != TOUPPER (i))
4594       exit(2);
4595   exit (0);
4596 }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600   (eval $ac_link) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; }; then
4609   :
4610 else
4611   echo "$as_me: program exited with status $ac_status" >&5
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 ( exit $ac_status )
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 fi
4621 fi
4622 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4623 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4624 if test $ac_cv_header_stdc = yes; then
4625
4626 cat >>confdefs.h <<\_ACEOF
4627 #define STDC_HEADERS 1
4628 _ACEOF
4629
4630 fi
4631
4632 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4643                   inttypes.h stdint.h unistd.h
4644 do
4645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646 echo "$as_me:$LINENO: checking for $ac_header" >&5
4647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 $ac_includes_default
4658
4659 #include <$ac_header>
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663   (eval $ac_compile) 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest.$ac_objext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   eval "$as_ac_Header=yes"
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 eval "$as_ac_Header=no"
4688 fi
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4694   cat >>confdefs.h <<_ACEOF
4695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 _ACEOF
4697
4698 fi
4699
4700 done
4701
4702
4703
4704 for ac_header in dlfcn.h
4705 do
4706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4708   echo "$as_me:$LINENO: checking for $ac_header" >&5
4709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 fi
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4715 else
4716   # Is the header compilable?
4717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 $ac_includes_default
4726 #include <$ac_header>
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730   (eval $ac_compile) 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } &&
4737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; } &&
4743          { ac_try='test -s conftest.$ac_objext'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; }; then
4749   ac_header_compiler=yes
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_header_compiler=no
4755 fi
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4758 echo "${ECHO_T}$ac_header_compiler" >&6
4759
4760 # Is the header present?
4761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 #include <$ac_header>
4770 _ACEOF
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } >/dev/null; then
4779   if test -s conftest.err; then
4780     ac_cpp_err=$ac_c_preproc_warn_flag
4781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4782   else
4783     ac_cpp_err=
4784   fi
4785 else
4786   ac_cpp_err=yes
4787 fi
4788 if test -z "$ac_cpp_err"; then
4789   ac_header_preproc=yes
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794   ac_header_preproc=no
4795 fi
4796 rm -f conftest.err conftest.$ac_ext
4797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4798 echo "${ECHO_T}$ac_header_preproc" >&6
4799
4800 # So?  What about this header?
4801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4802   yes:no: )
4803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4807     ac_header_preproc=yes
4808     ;;
4809   no:yes:* )
4810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4822     (
4823       cat <<\_ASBOX
4824 ## ------------------------------------------ ##
4825 ## Report this to the AC_PACKAGE_NAME lists.  ##
4826 ## ------------------------------------------ ##
4827 _ASBOX
4828     ) |
4829       sed "s/^/$as_me: WARNING:     /" >&2
4830     ;;
4831 esac
4832 echo "$as_me:$LINENO: checking for $ac_header" >&5
4833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   eval "$as_ac_Header=\$ac_header_preproc"
4838 fi
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4841
4842 fi
4843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4844   cat >>confdefs.h <<_ACEOF
4845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 _ACEOF
4847
4848 fi
4849
4850 done
4851
4852 ac_ext=cc
4853 ac_cpp='$CXXCPP $CPPFLAGS'
4854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4857 if test -n "$ac_tool_prefix"; then
4858   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4859   do
4860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862 echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864 if test "${ac_cv_prog_CXX+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$CXX"; then
4868   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883
4884 fi
4885 fi
4886 CXX=$ac_cv_prog_CXX
4887 if test -n "$CXX"; then
4888   echo "$as_me:$LINENO: result: $CXX" >&5
4889 echo "${ECHO_T}$CXX" >&6
4890 else
4891   echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893 fi
4894
4895     test -n "$CXX" && break
4896   done
4897 fi
4898 if test -z "$CXX"; then
4899   ac_ct_CXX=$CXX
4900   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4901 do
4902   # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$ac_ct_CXX"; then
4910   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919     ac_cv_prog_ac_ct_CXX="$ac_prog"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925
4926 fi
4927 fi
4928 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4929 if test -n "$ac_ct_CXX"; then
4930   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4931 echo "${ECHO_T}$ac_ct_CXX" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937   test -n "$ac_ct_CXX" && break
4938 done
4939 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4940
4941   CXX=$ac_ct_CXX
4942 fi
4943
4944
4945 # Provide some information about the compiler.
4946 echo "$as_me:$LINENO:" \
4947      "checking for C++ compiler version" >&5
4948 ac_compiler=`set X $ac_compile; echo $2`
4949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4950   (eval $ac_compiler --version </dev/null >&5) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }
4954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4955   (eval $ac_compiler -v </dev/null >&5) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }
4959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4960   (eval $ac_compiler -V </dev/null >&5) 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }
4964
4965 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4966 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4967 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4968   echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970   cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976
4977 int
4978 main ()
4979 {
4980 #ifndef __GNUC__
4981        choke me
4982 #endif
4983
4984   ;
4985   return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990   (eval $ac_compile) 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; } &&
5003          { ac_try='test -s conftest.$ac_objext'
5004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005   (eval $ac_try) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   ac_compiler_gnu=yes
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_compiler_gnu=no
5015 fi
5016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5018
5019 fi
5020 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5021 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5022 GXX=`test $ac_compiler_gnu = yes && echo yes`
5023 ac_test_CXXFLAGS=${CXXFLAGS+set}
5024 ac_save_CXXFLAGS=$CXXFLAGS
5025 CXXFLAGS="-g"
5026 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5027 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5028 if test "${ac_cv_prog_cxx_g+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037
5038 int
5039 main ()
5040 {
5041
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048   (eval $ac_compile) 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } &&
5055          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; } &&
5061          { ac_try='test -s conftest.$ac_objext'
5062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063   (eval $ac_try) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }; }; then
5067   ac_cv_prog_cxx_g=yes
5068 else
5069   echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_cv_prog_cxx_g=no
5073 fi
5074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5075 fi
5076 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5077 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5078 if test "$ac_test_CXXFLAGS" = set; then
5079   CXXFLAGS=$ac_save_CXXFLAGS
5080 elif test $ac_cv_prog_cxx_g = yes; then
5081   if test "$GXX" = yes; then
5082     CXXFLAGS="-g -O2"
5083   else
5084     CXXFLAGS="-g"
5085   fi
5086 else
5087   if test "$GXX" = yes; then
5088     CXXFLAGS="-O2"
5089   else
5090     CXXFLAGS=
5091   fi
5092 fi
5093 for ac_declaration in \
5094    '' \
5095    'extern "C" void std::exit (int) throw (); using std::exit;' \
5096    'extern "C" void std::exit (int); using std::exit;' \
5097    'extern "C" void exit (int) throw ();' \
5098    'extern "C" void exit (int);' \
5099    'void exit (int);'
5100 do
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 $ac_declaration
5108 #include <stdlib.h>
5109 int
5110 main ()
5111 {
5112 exit (42);
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119   (eval $ac_compile) 2>conftest.er1
5120   ac_status=$?
5121   grep -v '^ *+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } &&
5126          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; } &&
5132          { ac_try='test -s conftest.$ac_objext'
5133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134   (eval $ac_try) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); }; }; then
5138   :
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 continue
5144 fi
5145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146   cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 $ac_declaration
5153 int
5154 main ()
5155 {
5156 exit (42);
5157   ;
5158   return 0;
5159 }
5160 _ACEOF
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163   (eval $ac_compile) 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } &&
5170          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172   (eval $ac_try) 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }; } &&
5176          { ac_try='test -s conftest.$ac_objext'
5177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178   (eval $ac_try) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; }; then
5182   break
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 fi
5188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189 done
5190 rm -f conftest*
5191 if test -n "$ac_declaration"; then
5192   echo '#ifdef __cplusplus' >>confdefs.h
5193   echo $ac_declaration      >>confdefs.h
5194   echo '#endif'             >>confdefs.h
5195 fi
5196
5197 ac_ext=cc
5198 ac_cpp='$CXXCPP $CPPFLAGS'
5199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5202
5203 ac_ext=cc
5204 ac_cpp='$CXXCPP $CPPFLAGS'
5205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5209 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5210 if test -z "$CXXCPP"; then
5211   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214       # Double quotes because CXXCPP needs to be expanded
5215     for CXXCPP in "$CXX -E" "/lib/cpp"
5216     do
5217       ac_preproc_ok=false
5218 for ac_cxx_preproc_warn_flag in '' yes
5219 do
5220   # Use a header file that comes with gcc, so configuring glibc
5221   # with a fresh cross-compiler works.
5222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223   # <limits.h> exists even on freestanding compilers.
5224   # On the NeXT, cc -E runs the code through the compiler's parser,
5225   # not just through cpp. "Syntax error" is here to catch this case.
5226   cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237                      Syntax error
5238 _ACEOF
5239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5241   ac_status=$?
5242   grep -v '^ *+' conftest.er1 >conftest.err
5243   rm -f conftest.er1
5244   cat conftest.err >&5
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); } >/dev/null; then
5247   if test -s conftest.err; then
5248     ac_cpp_err=$ac_cxx_preproc_warn_flag
5249     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5250   else
5251     ac_cpp_err=
5252   fi
5253 else
5254   ac_cpp_err=yes
5255 fi
5256 if test -z "$ac_cpp_err"; then
5257   :
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262   # Broken: fails on valid input.
5263 continue
5264 fi
5265 rm -f conftest.err conftest.$ac_ext
5266
5267   # OK, works on sane cases.  Now check whether non-existent headers
5268   # can be detected and how.
5269   cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 #include <ac_nonexistent.h>
5276 _ACEOF
5277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5279   ac_status=$?
5280   grep -v '^ *+' conftest.er1 >conftest.err
5281   rm -f conftest.er1
5282   cat conftest.err >&5
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); } >/dev/null; then
5285   if test -s conftest.err; then
5286     ac_cpp_err=$ac_cxx_preproc_warn_flag
5287     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5288   else
5289     ac_cpp_err=
5290   fi
5291 else
5292   ac_cpp_err=yes
5293 fi
5294 if test -z "$ac_cpp_err"; then
5295   # Broken: success on invalid input.
5296 continue
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301   # Passes both tests.
5302 ac_preproc_ok=:
5303 break
5304 fi
5305 rm -f conftest.err conftest.$ac_ext
5306
5307 done
5308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5309 rm -f conftest.err conftest.$ac_ext
5310 if $ac_preproc_ok; then
5311   break
5312 fi
5313
5314     done
5315     ac_cv_prog_CXXCPP=$CXXCPP
5316
5317 fi
5318   CXXCPP=$ac_cv_prog_CXXCPP
5319 else
5320   ac_cv_prog_CXXCPP=$CXXCPP
5321 fi
5322 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5323 echo "${ECHO_T}$CXXCPP" >&6
5324 ac_preproc_ok=false
5325 for ac_cxx_preproc_warn_flag in '' yes
5326 do
5327   # Use a header file that comes with gcc, so configuring glibc
5328   # with a fresh cross-compiler works.
5329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330   # <limits.h> exists even on freestanding compilers.
5331   # On the NeXT, cc -E runs the code through the compiler's parser,
5332   # not just through cpp. "Syntax error" is here to catch this case.
5333   cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339 #ifdef __STDC__
5340 # include <limits.h>
5341 #else
5342 # include <assert.h>
5343 #endif
5344                      Syntax error
5345 _ACEOF
5346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5348   ac_status=$?
5349   grep -v '^ *+' conftest.er1 >conftest.err
5350   rm -f conftest.er1
5351   cat conftest.err >&5
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); } >/dev/null; then
5354   if test -s conftest.err; then
5355     ac_cpp_err=$ac_cxx_preproc_warn_flag
5356     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5357   else
5358     ac_cpp_err=
5359   fi
5360 else
5361   ac_cpp_err=yes
5362 fi
5363 if test -z "$ac_cpp_err"; then
5364   :
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369   # Broken: fails on valid input.
5370 continue
5371 fi
5372 rm -f conftest.err conftest.$ac_ext
5373
5374   # OK, works on sane cases.  Now check whether non-existent headers
5375   # can be detected and how.
5376   cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h.  */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h.  */
5382 #include <ac_nonexistent.h>
5383 _ACEOF
5384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } >/dev/null; then
5392   if test -s conftest.err; then
5393     ac_cpp_err=$ac_cxx_preproc_warn_flag
5394     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5395   else
5396     ac_cpp_err=
5397   fi
5398 else
5399   ac_cpp_err=yes
5400 fi
5401 if test -z "$ac_cpp_err"; then
5402   # Broken: success on invalid input.
5403 continue
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408   # Passes both tests.
5409 ac_preproc_ok=:
5410 break
5411 fi
5412 rm -f conftest.err conftest.$ac_ext
5413
5414 done
5415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416 rm -f conftest.err conftest.$ac_ext
5417 if $ac_preproc_ok; then
5418   :
5419 else
5420   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5421 See \`config.log' for more details." >&5
5422 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5423 See \`config.log' for more details." >&2;}
5424    { (exit 1); exit 1; }; }
5425 fi
5426
5427 ac_ext=cc
5428 ac_cpp='$CXXCPP $CPPFLAGS'
5429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5432
5433
5434 ac_ext=f
5435 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5436 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5438 if test -n "$ac_tool_prefix"; then
5439   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5440   do
5441     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5443 echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445 if test "${ac_cv_prog_F77+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   if test -n "$F77"; then
5449   ac_cv_prog_F77="$F77" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456   for ac_exec_ext in '' $ac_executable_extensions; do
5457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463 done
5464
5465 fi
5466 fi
5467 F77=$ac_cv_prog_F77
5468 if test -n "$F77"; then
5469   echo "$as_me:$LINENO: result: $F77" >&5
5470 echo "${ECHO_T}$F77" >&6
5471 else
5472   echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6
5474 fi
5475
5476     test -n "$F77" && break
5477   done
5478 fi
5479 if test -z "$F77"; then
5480   ac_ct_F77=$F77
5481   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5482 do
5483   # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   if test -n "$ac_ct_F77"; then
5491   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498   for ac_exec_ext in '' $ac_executable_extensions; do
5499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_prog_ac_ct_F77="$ac_prog"
5501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505 done
5506
5507 fi
5508 fi
5509 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5510 if test -n "$ac_ct_F77"; then
5511   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5512 echo "${ECHO_T}$ac_ct_F77" >&6
5513 else
5514   echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5516 fi
5517
5518   test -n "$ac_ct_F77" && break
5519 done
5520
5521   F77=$ac_ct_F77
5522 fi
5523
5524
5525 # Provide some information about the compiler.
5526 echo "$as_me:5526:" \
5527      "checking for Fortran 77 compiler version" >&5
5528 ac_compiler=`set X $ac_compile; echo $2`
5529 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5530   (eval $ac_compiler --version </dev/null >&5) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }
5534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5535   (eval $ac_compiler -v </dev/null >&5) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }
5539 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5540   (eval $ac_compiler -V </dev/null >&5) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }
5544 rm -f a.out
5545
5546 # If we don't use `.F' as extension, the preprocessor is not run on the
5547 # input file.  (Note that this only needs to work for GNU compilers.)
5548 ac_save_ext=$ac_ext
5549 ac_ext=F
5550 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5551 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5552 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   cat >conftest.$ac_ext <<_ACEOF
5556       program main
5557 #ifndef __GNUC__
5558        choke me
5559 #endif
5560
5561       end
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565   (eval $ac_compile) 2>conftest.er1
5566   ac_status=$?
5567   grep -v '^ *+' conftest.er1 >conftest.err
5568   rm -f conftest.er1
5569   cat conftest.err >&5
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } &&
5572          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; } &&
5578          { ac_try='test -s conftest.$ac_objext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   ac_compiler_gnu=yes
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 ac_compiler_gnu=no
5590 fi
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5593
5594 fi
5595 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5596 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5597 ac_ext=$ac_save_ext
5598 ac_test_FFLAGS=${FFLAGS+set}
5599 ac_save_FFLAGS=$FFLAGS
5600 FFLAGS=
5601 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5602 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5603 if test "${ac_cv_prog_f77_g+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   FFLAGS=-g
5607 cat >conftest.$ac_ext <<_ACEOF
5608       program main
5609
5610       end
5611 _ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614   (eval $ac_compile) 2>conftest.er1
5615   ac_status=$?
5616   grep -v '^ *+' conftest.er1 >conftest.err
5617   rm -f conftest.er1
5618   cat conftest.err >&5
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } &&
5621          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; } &&
5627          { ac_try='test -s conftest.$ac_objext'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_cv_prog_f77_g=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cv_prog_f77_g=no
5639 fi
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641
5642 fi
5643 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5644 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5645 if test "$ac_test_FFLAGS" = set; then
5646   FFLAGS=$ac_save_FFLAGS
5647 elif test $ac_cv_prog_f77_g = yes; then
5648   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5649     FFLAGS="-g -O2"
5650   else
5651     FFLAGS="-g"
5652   fi
5653 else
5654   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5655     FFLAGS="-O2"
5656   else
5657     FFLAGS=
5658   fi
5659 fi
5660
5661 G77=`test $ac_compiler_gnu = yes && echo yes`
5662 ac_ext=c
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5667
5668
5669
5670 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5671
5672 # find the maximum length of command line arguments
5673 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5674 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5675 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678     i=0
5679   teststring="ABCD"
5680
5681   case $build_os in
5682   msdosdjgpp*)
5683     # On DJGPP, this test can blow up pretty badly due to problems in libc
5684     # (any single argument exceeding 2000 bytes causes a buffer overrun
5685     # during glob expansion).  Even if it were fixed, the result of this
5686     # check would be larger than it should be.
5687     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5688     ;;
5689
5690   gnu*)
5691     # Under GNU Hurd, this test is not required because there is
5692     # no limit to the length of command line arguments.
5693     # Libtool will interpret -1 as no limit whatsoever
5694     lt_cv_sys_max_cmd_len=-1;
5695     ;;
5696
5697   cygwin* | mingw*)
5698     # On Win9x/ME, this test blows up -- it succeeds, but takes
5699     # about 5 minutes as the teststring grows exponentially.
5700     # Worse, since 9x/ME are not pre-emptively multitasking,
5701     # you end up with a "frozen" computer, even though with patience
5702     # the test eventually succeeds (with a max line length of 256k).
5703     # Instead, let's just punt: use the minimum linelength reported by
5704     # all of the supported platforms: 8192 (on NT/2K/XP).
5705     lt_cv_sys_max_cmd_len=8192;
5706     ;;
5707
5708   amigaos*)
5709     # On AmigaOS with pdksh, this test takes hours, literally.
5710     # So we just punt and use a minimum line length of 8192.
5711     lt_cv_sys_max_cmd_len=8192;
5712     ;;
5713
5714  *)
5715     # If test is not a shell built-in, we'll probably end up computing a
5716     # maximum length that is only half of the actual maximum length, but
5717     # we can't tell.
5718     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5719                = "XX$teststring") >/dev/null 2>&1 &&
5720             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5721             lt_cv_sys_max_cmd_len=$new_result &&
5722             test $i != 17 # 1/2 MB should be enough
5723     do
5724       i=`expr $i + 1`
5725       teststring=$teststring$teststring
5726     done
5727     teststring=
5728     # Add a significant safety factor because C++ compilers can tack on massive
5729     # amounts of additional arguments before passing them to the linker.
5730     # It appears as though 1/2 is a usable value.
5731     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5732     ;;
5733   esac
5734
5735 fi
5736
5737 if test -n $lt_cv_sys_max_cmd_len ; then
5738   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5739 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5740 else
5741   echo "$as_me:$LINENO: result: none" >&5
5742 echo "${ECHO_T}none" >&6
5743 fi
5744
5745
5746
5747
5748 # Check for command to grab the raw symbol name followed by C symbol from nm.
5749 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5750 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5751 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754
5755 # These are sane defaults that work on at least a few old systems.
5756 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5757
5758 # Character class describing NM global symbol codes.
5759 symcode='[BCDEGRST]'
5760
5761 # Regexp to match symbols that can be accessed directly from C.
5762 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5763
5764 # Transform the above into a raw symbol and a C symbol.
5765 symxfrm='\1 \2\3 \3'
5766
5767 # Transform an extracted symbol line into a proper C declaration
5768 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5769
5770 # Transform an extracted symbol line into symbol name and symbol address
5771 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'"
5772
5773 # Define system-specific variables.
5774 case $host_os in
5775 aix*)
5776   symcode='[BCDT]'
5777   ;;
5778 cygwin* | mingw* | pw32*)
5779   symcode='[ABCDGISTW]'
5780   ;;
5781 hpux*) # Its linker distinguishes data from code symbols
5782   if test "$host_cpu" = ia64; then
5783     symcode='[ABCDEGRST]'
5784   fi
5785   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5786   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'"
5787   ;;
5788 irix* | nonstopux*)
5789   symcode='[BCDEGRST]'
5790   ;;
5791 osf*)
5792   symcode='[BCDEGQRST]'
5793   ;;
5794 solaris* | sysv5*)
5795   symcode='[BDRT]'
5796   ;;
5797 sysv4)
5798   symcode='[DFNSTU]'
5799   ;;
5800 esac
5801
5802 # Handle CRLF in mingw tool chain
5803 opt_cr=
5804 case $build_os in
5805 mingw*)
5806   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5807   ;;
5808 esac
5809
5810 # If we're using GNU nm, then use its standard symbol codes.
5811 case `$NM -V 2>&1` in
5812 *GNU* | *'with BFD'*)
5813   symcode='[ABCDGIRSTW]' ;;
5814 esac
5815
5816 # Try without a prefix undercore, then with it.
5817 for ac_symprfx in "" "_"; do
5818
5819   # Write the raw and C identifiers.
5820   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5821
5822   # Check to see that the pipe works correctly.
5823   pipe_works=no
5824
5825   rm -f conftest*
5826   cat > conftest.$ac_ext <<EOF
5827 #ifdef __cplusplus
5828 extern "C" {
5829 #endif
5830 char nm_test_var;
5831 void nm_test_func(){}
5832 #ifdef __cplusplus
5833 }
5834 #endif
5835 int main(){nm_test_var='a';nm_test_func();return(0);}
5836 EOF
5837
5838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839   (eval $ac_compile) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; then
5843     # Now try to grab the symbols.
5844     nlist=conftest.nm
5845     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } && test -s "$nlist"; then
5850       # Try sorting and uniquifying the output.
5851       if sort "$nlist" | uniq > "$nlist"T; then
5852         mv -f "$nlist"T "$nlist"
5853       else
5854         rm -f "$nlist"T
5855       fi
5856
5857       # Make sure that we snagged all the symbols we need.
5858       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5859         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5860           cat <<EOF > conftest.$ac_ext
5861 #ifdef __cplusplus
5862 extern "C" {
5863 #endif
5864
5865 EOF
5866           # Now generate the symbol file.
5867           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5868
5869           cat <<EOF >> conftest.$ac_ext
5870 #if defined (__STDC__) && __STDC__
5871 # define lt_ptr_t void *
5872 #else
5873 # define lt_ptr_t char *
5874 # define const
5875 #endif
5876
5877 /* The mapping between symbol names and symbols. */
5878 const struct {
5879   const char *name;
5880   lt_ptr_t address;
5881 }
5882 lt_preloaded_symbols[] =
5883 {
5884 EOF
5885           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5886           cat <<\EOF >> conftest.$ac_ext
5887   {0, (lt_ptr_t) 0}
5888 };
5889
5890 #ifdef __cplusplus
5891 }
5892 #endif
5893 EOF
5894           # Now try linking the two files.
5895           mv conftest.$ac_objext conftstm.$ac_objext
5896           lt_save_LIBS="$LIBS"
5897           lt_save_CFLAGS="$CFLAGS"
5898           LIBS="conftstm.$ac_objext"
5899           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901   (eval $ac_link) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5905             pipe_works=yes
5906           fi
5907           LIBS="$lt_save_LIBS"
5908           CFLAGS="$lt_save_CFLAGS"
5909         else
5910           echo "cannot find nm_test_func in $nlist" >&5
5911         fi
5912       else
5913         echo "cannot find nm_test_var in $nlist" >&5
5914       fi
5915     else
5916       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5917     fi
5918   else
5919     echo "$progname: failed program was:" >&5
5920     cat conftest.$ac_ext >&5
5921   fi
5922   rm -f conftest* conftst*
5923
5924   # Do not use the global_symbol_pipe unless it works.
5925   if test "$pipe_works" = yes; then
5926     break
5927   else
5928     lt_cv_sys_global_symbol_pipe=
5929   fi
5930 done
5931
5932 fi
5933
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935   lt_cv_sys_global_symbol_to_cdecl=
5936 fi
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938   echo "$as_me:$LINENO: result: failed" >&5
5939 echo "${ECHO_T}failed" >&6
5940 else
5941   echo "$as_me:$LINENO: result: ok" >&5
5942 echo "${ECHO_T}ok" >&6
5943 fi
5944
5945 echo "$as_me:$LINENO: checking for objdir" >&5
5946 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5947 if test "${lt_cv_objdir+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   rm -f .libs 2>/dev/null
5951 mkdir .libs 2>/dev/null
5952 if test -d .libs; then
5953   lt_cv_objdir=.libs
5954 else
5955   # MS-DOS does not allow filenames that begin with a dot.
5956   lt_cv_objdir=_libs
5957 fi
5958 rmdir .libs 2>/dev/null
5959 fi
5960 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5961 echo "${ECHO_T}$lt_cv_objdir" >&6
5962 objdir=$lt_cv_objdir
5963
5964
5965
5966
5967
5968 case $host_os in
5969 aix3*)
5970   # AIX sometimes has problems with the GCC collect2 program.  For some
5971   # reason, if we set the COLLECT_NAMES environment variable, the problems
5972   # vanish in a puff of smoke.
5973   if test "X${COLLECT_NAMES+set}" != Xset; then
5974     COLLECT_NAMES=
5975     export COLLECT_NAMES
5976   fi
5977   ;;
5978 esac
5979
5980 # Sed substitution that helps us do robust quoting.  It backslashifies
5981 # metacharacters that are still active within double-quoted strings.
5982 Xsed='sed -e s/^X//'
5983 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5984
5985 # Same as above, but do not quote variable references.
5986 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5987
5988 # Sed substitution to delay expansion of an escaped shell variable in a
5989 # double_quote_subst'ed string.
5990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5991
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5994
5995 # Constants:
5996 rm="rm -f"
5997
5998 # Global variables:
5999 default_ofile=libtool
6000 can_build_shared=yes
6001
6002 # All known linkers require a `.a' archive for static linking (except M$VC,
6003 # which needs '.lib').
6004 libext=a
6005 ltmain="$ac_aux_dir/ltmain.sh"
6006 ofile="$default_ofile"
6007 with_gnu_ld="$lt_cv_prog_gnu_ld"
6008
6009 if test -n "$ac_tool_prefix"; then
6010   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ar; ac_word=$2
6012 echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6014 if test "${ac_cv_prog_AR+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   if test -n "$AR"; then
6018   ac_cv_prog_AR="$AR" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025   for ac_exec_ext in '' $ac_executable_extensions; do
6026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027     ac_cv_prog_AR="${ac_tool_prefix}ar"
6028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032 done
6033
6034 fi
6035 fi
6036 AR=$ac_cv_prog_AR
6037 if test -n "$AR"; then
6038   echo "$as_me:$LINENO: result: $AR" >&5
6039 echo "${ECHO_T}$AR" >&6
6040 else
6041   echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6043 fi
6044
6045 fi
6046 if test -z "$ac_cv_prog_AR"; then
6047   ac_ct_AR=$AR
6048   # Extract the first word of "ar", so it can be a program name with args.
6049 set dummy ar; ac_word=$2
6050 echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   if test -n "$ac_ct_AR"; then
6056   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_ac_ct_AR="ar"
6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071
6072   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6073 fi
6074 fi
6075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6078 echo "${ECHO_T}$ac_ct_AR" >&6
6079 else
6080   echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6082 fi
6083
6084   AR=$ac_ct_AR
6085 else
6086   AR="$ac_cv_prog_AR"
6087 fi
6088
6089 if test -n "$ac_tool_prefix"; then
6090   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   if test -n "$RANLIB"; then
6098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113
6114 fi
6115 fi
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118   echo "$as_me:$LINENO: result: $RANLIB" >&5
6119 echo "${ECHO_T}$RANLIB" >&6
6120 else
6121   echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6
6123 fi
6124
6125 fi
6126 if test -z "$ac_cv_prog_RANLIB"; then
6127   ac_ct_RANLIB=$RANLIB
6128   # Extract the first word of "ranlib", so it can be a program name with args.
6129 set dummy ranlib; ac_word=$2
6130 echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   if test -n "$ac_ct_RANLIB"; then
6136   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143   for ac_exec_ext in '' $ac_executable_extensions; do
6144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145     ac_cv_prog_ac_ct_RANLIB="ranlib"
6146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150 done
6151
6152   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6153 fi
6154 fi
6155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6156 if test -n "$ac_ct_RANLIB"; then
6157   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6159 else
6160   echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6162 fi
6163
6164   RANLIB=$ac_ct_RANLIB
6165 else
6166   RANLIB="$ac_cv_prog_RANLIB"
6167 fi
6168
6169 if test -n "$ac_tool_prefix"; then
6170   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}strip; ac_word=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_prog_STRIP+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   if test -n "$STRIP"; then
6178   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185   for ac_exec_ext in '' $ac_executable_extensions; do
6186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192 done
6193
6194 fi
6195 fi
6196 STRIP=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198   echo "$as_me:$LINENO: result: $STRIP" >&5
6199 echo "${ECHO_T}$STRIP" >&6
6200 else
6201   echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6
6203 fi
6204
6205 fi
6206 if test -z "$ac_cv_prog_STRIP"; then
6207   ac_ct_STRIP=$STRIP
6208   # Extract the first word of "strip", so it can be a program name with args.
6209 set dummy strip; ac_word=$2
6210 echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   if test -n "$ac_ct_STRIP"; then
6216   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223   for ac_exec_ext in '' $ac_executable_extensions; do
6224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225     ac_cv_prog_ac_ct_STRIP="strip"
6226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230 done
6231
6232   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6233 fi
6234 fi
6235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6236 if test -n "$ac_ct_STRIP"; then
6237   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6238 echo "${ECHO_T}$ac_ct_STRIP" >&6
6239 else
6240   echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6
6242 fi
6243
6244   STRIP=$ac_ct_STRIP
6245 else
6246   STRIP="$ac_cv_prog_STRIP"
6247 fi
6248
6249
6250 old_CC="$CC"
6251 old_CFLAGS="$CFLAGS"
6252
6253 # Set sane defaults for various variables
6254 test -z "$AR" && AR=ar
6255 test -z "$AR_FLAGS" && AR_FLAGS=cru
6256 test -z "$AS" && AS=as
6257 test -z "$CC" && CC=cc
6258 test -z "$LTCC" && LTCC=$CC
6259 test -z "$DLLTOOL" && DLLTOOL=dlltool
6260 test -z "$LD" && LD=ld
6261 test -z "$LN_S" && LN_S="ln -s"
6262 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6263 test -z "$NM" && NM=nm
6264 test -z "$SED" && SED=sed
6265 test -z "$OBJDUMP" && OBJDUMP=objdump
6266 test -z "$RANLIB" && RANLIB=:
6267 test -z "$STRIP" && STRIP=:
6268 test -z "$ac_objext" && ac_objext=o
6269
6270 # Determine commands to create old-style static archives.
6271 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6272 old_postinstall_cmds='chmod 644 $oldlib'
6273 old_postuninstall_cmds=
6274
6275 if test -n "$RANLIB"; then
6276   case $host_os in
6277   openbsd*)
6278     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6279     ;;
6280   *)
6281     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6282     ;;
6283   esac
6284   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6285 fi
6286
6287 # Only perform the check for file, if the check method requires it
6288 case $deplibs_check_method in
6289 file_magic*)
6290   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6291     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6292 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   case $MAGIC_CMD in
6297 [\\/*] |  ?:[\\/]*)
6298   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6299   ;;
6300 *)
6301   lt_save_MAGIC_CMD="$MAGIC_CMD"
6302   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6304   for ac_dir in $ac_dummy; do
6305     IFS="$lt_save_ifs"
6306     test -z "$ac_dir" && ac_dir=.
6307     if test -f $ac_dir/${ac_tool_prefix}file; then
6308       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6309       if test -n "$file_magic_test_file"; then
6310         case $deplibs_check_method in
6311         "file_magic "*)
6312           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6313           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6315             $EGREP "$file_magic_regex" > /dev/null; then
6316             :
6317           else
6318             cat <<EOF 1>&2
6319
6320 *** Warning: the command libtool uses to detect shared libraries,
6321 *** $file_magic_cmd, produces output that libtool cannot recognize.
6322 *** The result is that libtool may fail to recognize shared libraries
6323 *** as such.  This will affect the creation of libtool libraries that
6324 *** depend on shared libraries, but programs linked with such libtool
6325 *** libraries will work regardless of this problem.  Nevertheless, you
6326 *** may want to report the problem to your system manager and/or to
6327 *** bug-libtool@gnu.org
6328
6329 EOF
6330           fi ;;
6331         esac
6332       fi
6333       break
6334     fi
6335   done
6336   IFS="$lt_save_ifs"
6337   MAGIC_CMD="$lt_save_MAGIC_CMD"
6338   ;;
6339 esac
6340 fi
6341
6342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6343 if test -n "$MAGIC_CMD"; then
6344   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6345 echo "${ECHO_T}$MAGIC_CMD" >&6
6346 else
6347   echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6
6349 fi
6350
6351 if test -z "$lt_cv_path_MAGIC_CMD"; then
6352   if test -n "$ac_tool_prefix"; then
6353     echo "$as_me:$LINENO: checking for file" >&5
6354 echo $ECHO_N "checking for file... $ECHO_C" >&6
6355 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   case $MAGIC_CMD in
6359 [\\/*] |  ?:[\\/]*)
6360   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6361   ;;
6362 *)
6363   lt_save_MAGIC_CMD="$MAGIC_CMD"
6364   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6365   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6366   for ac_dir in $ac_dummy; do
6367     IFS="$lt_save_ifs"
6368     test -z "$ac_dir" && ac_dir=.
6369     if test -f $ac_dir/file; then
6370       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6371       if test -n "$file_magic_test_file"; then
6372         case $deplibs_check_method in
6373         "file_magic "*)
6374           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6375           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6376           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6377             $EGREP "$file_magic_regex" > /dev/null; then
6378             :
6379           else
6380             cat <<EOF 1>&2
6381
6382 *** Warning: the command libtool uses to detect shared libraries,
6383 *** $file_magic_cmd, produces output that libtool cannot recognize.
6384 *** The result is that libtool may fail to recognize shared libraries
6385 *** as such.  This will affect the creation of libtool libraries that
6386 *** depend on shared libraries, but programs linked with such libtool
6387 *** libraries will work regardless of this problem.  Nevertheless, you
6388 *** may want to report the problem to your system manager and/or to
6389 *** bug-libtool@gnu.org
6390
6391 EOF
6392           fi ;;
6393         esac
6394       fi
6395       break
6396     fi
6397   done
6398   IFS="$lt_save_ifs"
6399   MAGIC_CMD="$lt_save_MAGIC_CMD"
6400   ;;
6401 esac
6402 fi
6403
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if test -n "$MAGIC_CMD"; then
6406   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6407 echo "${ECHO_T}$MAGIC_CMD" >&6
6408 else
6409   echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6411 fi
6412
6413   else
6414     MAGIC_CMD=:
6415   fi
6416 fi
6417
6418   fi
6419   ;;
6420 esac
6421
6422 enable_dlopen=yes
6423 enable_win32_dll=no
6424
6425 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6426 if test "${enable_libtool_lock+set}" = set; then
6427   enableval="$enable_libtool_lock"
6428
6429 fi;
6430 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6431
6432
6433 # Check whether --with-pic or --without-pic was given.
6434 if test "${with_pic+set}" = set; then
6435   withval="$with_pic"
6436   pic_mode="$withval"
6437 else
6438   pic_mode=default
6439 fi;
6440 test -z "$pic_mode" && pic_mode=default
6441
6442 # Use C for the default configuration in the libtool script
6443 tagname=
6444 lt_save_CC="$CC"
6445 ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450
6451
6452 # Source file extension for C test sources.
6453 ac_ext=c
6454
6455 # Object file extension for compiled C test sources.
6456 objext=o
6457 objext=$objext
6458
6459 # Code to be used in simple compile tests
6460 lt_simple_compile_test_code="int some_variable = 0;\n"
6461
6462 # Code to be used in simple link tests
6463 lt_simple_link_test_code='int main(){return(0);}\n'
6464
6465
6466 # If no C compiler was specified, use CC.
6467 LTCC=${LTCC-"$CC"}
6468
6469 # Allow CC to be a program name with arguments.
6470 compiler=$CC
6471
6472
6473 #
6474 # Check for any special shared library compilation flags.
6475 #
6476 lt_prog_cc_shlib=
6477 if test "$GCC" = no; then
6478   case $host_os in
6479   sco3.2v5*)
6480     lt_prog_cc_shlib='-belf'
6481     ;;
6482   esac
6483 fi
6484 if test -n "$lt_prog_cc_shlib"; then
6485   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6486 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6487   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6488   else
6489     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6490 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6491     lt_cv_prog_cc_can_build_shared=no
6492   fi
6493 fi
6494
6495
6496 #
6497 # Check to make sure the static flag actually works.
6498 #
6499 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6500 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6501 if test "${lt_prog_compiler_static_works+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   lt_prog_compiler_static_works=no
6505    save_LDFLAGS="$LDFLAGS"
6506    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6507    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6508    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6509      # The compiler can only warn and ignore the option if not recognized
6510      # So say no if there are warnings
6511      if test -s conftest.err; then
6512        # Append any errors to the config.log.
6513        cat conftest.err 1>&5
6514      else
6515        lt_prog_compiler_static_works=yes
6516      fi
6517    fi
6518    $rm conftest*
6519    LDFLAGS="$save_LDFLAGS"
6520
6521 fi
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6524
6525 if test x"$lt_prog_compiler_static_works" = xyes; then
6526     :
6527 else
6528     lt_prog_compiler_static=
6529 fi
6530
6531
6532
6533
6534 lt_prog_compiler_no_builtin_flag=
6535
6536 if test "$GCC" = yes; then
6537   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6538
6539
6540 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6541 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   lt_cv_prog_compiler_rtti_exceptions=no
6546   ac_outfile=conftest.$ac_objext
6547    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6548    lt_compiler_flag="-fno-rtti -fno-exceptions"
6549    # Insert the option either (1) after the last *FLAGS variable, or
6550    # (2) before a word containing "conftest.", or (3) at the end.
6551    # Note that $ac_compile itself does not contain backslashes and begins
6552    # with a dollar sign (not a hyphen), so the echo should work correctly.
6553    # The option is referenced via a variable to avoid confusing sed.
6554    lt_compile=`echo "$ac_compile" | $SED \
6555    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6557    -e 's:$: $lt_compiler_flag:'`
6558    (eval echo "\"\$as_me:6558: $lt_compile\"" >&5)
6559    (eval "$lt_compile" 2>conftest.err)
6560    ac_status=$?
6561    cat conftest.err >&5
6562    echo "$as_me:6562: \$? = $ac_status" >&5
6563    if (exit $ac_status) && test -s "$ac_outfile"; then
6564      # The compiler can only warn and ignore the option if not recognized
6565      # So say no if there are warnings
6566      if test ! -s conftest.err; then
6567        lt_cv_prog_compiler_rtti_exceptions=yes
6568      fi
6569    fi
6570    $rm conftest*
6571
6572 fi
6573 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6574 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6575
6576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6577     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6578 else
6579     :
6580 fi
6581
6582 fi
6583
6584 lt_prog_compiler_wl=
6585 lt_prog_compiler_pic=
6586 lt_prog_compiler_static=
6587
6588 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6590
6591   if test "$GCC" = yes; then
6592     lt_prog_compiler_wl='-Wl,'
6593     lt_prog_compiler_static='-static'
6594
6595     case $host_os in
6596       aix*)
6597       # All AIX code is PIC.
6598       if test "$host_cpu" = ia64; then
6599         # AIX 5 now supports IA64 processor
6600         lt_prog_compiler_static='-Bstatic'
6601       fi
6602       ;;
6603
6604     amigaos*)
6605       # FIXME: we need at least 68020 code to build shared libraries, but
6606       # adding the `-m68020' flag to GCC prevents building anything better,
6607       # like `-m68040'.
6608       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6609       ;;
6610
6611     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6612       # PIC is the default for these OSes.
6613       ;;
6614
6615     mingw* | pw32* | os2*)
6616       # This hack is so that the source file can tell whether it is being
6617       # built for inclusion in a dll (and should export symbols for example).
6618       lt_prog_compiler_pic='-DDLL_EXPORT'
6619       ;;
6620
6621     darwin* | rhapsody*)
6622       # PIC is the default on this platform
6623       # Common symbols not allowed in MH_DYLIB files
6624       lt_prog_compiler_pic='-fno-common'
6625       ;;
6626
6627     msdosdjgpp*)
6628       # Just because we use GCC doesn't mean we suddenly get shared libraries
6629       # on systems that don't support them.
6630       lt_prog_compiler_can_build_shared=no
6631       enable_shared=no
6632       ;;
6633
6634     sysv4*MP*)
6635       if test -d /usr/nec; then
6636         lt_prog_compiler_pic=-Kconform_pic
6637       fi
6638       ;;
6639
6640     hpux*)
6641       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6642       # not for PA HP-UX.
6643       case "$host_cpu" in
6644       hppa*64*|ia64*)
6645         # +Z the default
6646         ;;
6647       *)
6648         lt_prog_compiler_pic='-fPIC'
6649         ;;
6650       esac
6651       ;;
6652
6653     *)
6654       lt_prog_compiler_pic='-fPIC'
6655       ;;
6656     esac
6657   else
6658     # PORTME Check for flag to pass linker flags through the system compiler.
6659     case $host_os in
6660     aix*)
6661       lt_prog_compiler_wl='-Wl,'
6662       if test "$host_cpu" = ia64; then
6663         # AIX 5 now supports IA64 processor
6664         lt_prog_compiler_static='-Bstatic'
6665       else
6666         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6667       fi
6668       ;;
6669
6670     mingw* | pw32* | os2*)
6671       # This hack is so that the source file can tell whether it is being
6672       # built for inclusion in a dll (and should export symbols for example).
6673       lt_prog_compiler_pic='-DDLL_EXPORT'
6674       ;;
6675
6676     hpux9* | hpux10* | hpux11*)
6677       lt_prog_compiler_wl='-Wl,'
6678       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6679       # not for PA HP-UX.
6680       case "$host_cpu" in
6681       hppa*64*|ia64*)
6682         # +Z the default
6683         ;;
6684       *)
6685         lt_prog_compiler_pic='+Z'
6686         ;;
6687       esac
6688       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6689       lt_prog_compiler_static='${wl}-a ${wl}archive'
6690       ;;
6691
6692     irix5* | irix6* | nonstopux*)
6693       lt_prog_compiler_wl='-Wl,'
6694       # PIC (with -KPIC) is the default.
6695       lt_prog_compiler_static='-non_shared'
6696       ;;
6697
6698     newsos6)
6699       lt_prog_compiler_pic='-KPIC'
6700       lt_prog_compiler_static='-Bstatic'
6701       ;;
6702
6703     linux*)
6704       case $CC in
6705       icc* | ecc*)
6706         lt_prog_compiler_wl='-Wl,'
6707         lt_prog_compiler_pic='-KPIC'
6708         lt_prog_compiler_static='-static'
6709         ;;
6710       ccc*)
6711         lt_prog_compiler_wl='-Wl,'
6712         # All Alpha code is PIC.
6713         lt_prog_compiler_static='-non_shared'
6714         ;;
6715       esac
6716       ;;
6717
6718     osf3* | osf4* | osf5*)
6719       lt_prog_compiler_wl='-Wl,'
6720       # All OSF/1 code is PIC.
6721       lt_prog_compiler_static='-non_shared'
6722       ;;
6723
6724     sco3.2v5*)
6725       lt_prog_compiler_pic='-Kpic'
6726       lt_prog_compiler_static='-dn'
6727       ;;
6728
6729     solaris*)
6730       lt_prog_compiler_wl='-Wl,'
6731       lt_prog_compiler_pic='-KPIC'
6732       lt_prog_compiler_static='-Bstatic'
6733       ;;
6734
6735     sunos4*)
6736       lt_prog_compiler_wl='-Qoption ld '
6737       lt_prog_compiler_pic='-PIC'
6738       lt_prog_compiler_static='-Bstatic'
6739       ;;
6740
6741     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6742       lt_prog_compiler_wl='-Wl,'
6743       lt_prog_compiler_pic='-KPIC'
6744       lt_prog_compiler_static='-Bstatic'
6745       ;;
6746
6747     sysv4*MP*)
6748       if test -d /usr/nec ;then
6749         lt_prog_compiler_pic='-Kconform_pic'
6750         lt_prog_compiler_static='-Bstatic'
6751       fi
6752       ;;
6753
6754     uts4*)
6755       lt_prog_compiler_pic='-pic'
6756       lt_prog_compiler_static='-Bstatic'
6757       ;;
6758
6759     *)
6760       lt_prog_compiler_can_build_shared=no
6761       ;;
6762     esac
6763   fi
6764
6765 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6766 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6767
6768 #
6769 # Check to make sure the PIC flag actually works.
6770 #
6771 if test -n "$lt_prog_compiler_pic"; then
6772
6773 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6775 if test "${lt_prog_compiler_pic_works+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   lt_prog_compiler_pic_works=no
6779   ac_outfile=conftest.$ac_objext
6780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6781    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6782    # Insert the option either (1) after the last *FLAGS variable, or
6783    # (2) before a word containing "conftest.", or (3) at the end.
6784    # Note that $ac_compile itself does not contain backslashes and begins
6785    # with a dollar sign (not a hyphen), so the echo should work correctly.
6786    # The option is referenced via a variable to avoid confusing sed.
6787    lt_compile=`echo "$ac_compile" | $SED \
6788    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6790    -e 's:$: $lt_compiler_flag:'`
6791    (eval echo "\"\$as_me:6791: $lt_compile\"" >&5)
6792    (eval "$lt_compile" 2>conftest.err)
6793    ac_status=$?
6794    cat conftest.err >&5
6795    echo "$as_me:6795: \$? = $ac_status" >&5
6796    if (exit $ac_status) && test -s "$ac_outfile"; then
6797      # The compiler can only warn and ignore the option if not recognized
6798      # So say no if there are warnings
6799      if test ! -s conftest.err; then
6800        lt_prog_compiler_pic_works=yes
6801      fi
6802    fi
6803    $rm conftest*
6804
6805 fi
6806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6807 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6808
6809 if test x"$lt_prog_compiler_pic_works" = xyes; then
6810     case $lt_prog_compiler_pic in
6811      "" | " "*) ;;
6812      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6813      esac
6814 else
6815     lt_prog_compiler_pic=
6816      lt_prog_compiler_can_build_shared=no
6817 fi
6818
6819 fi
6820 case "$host_os" in
6821   # For platforms which do not support PIC, -DPIC is meaningless:
6822   *djgpp*)
6823     lt_prog_compiler_pic=
6824     ;;
6825   *)
6826     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6827     ;;
6828 esac
6829
6830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   lt_cv_prog_compiler_c_o=no
6836    $rm -r conftest 2>/dev/null
6837    mkdir conftest
6838    cd conftest
6839    mkdir out
6840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6841
6842    lt_compiler_flag="-o out/conftest2.$ac_objext"
6843    # Insert the option either (1) after the last *FLAGS variable, or
6844    # (2) before a word containing "conftest.", or (3) at the end.
6845    # Note that $ac_compile itself does not contain backslashes and begins
6846    # with a dollar sign (not a hyphen), so the echo should work correctly.
6847    lt_compile=`echo "$ac_compile" | $SED \
6848    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6850    -e 's:$: $lt_compiler_flag:'`
6851    (eval echo "\"\$as_me:6851: $lt_compile\"" >&5)
6852    (eval "$lt_compile" 2>out/conftest.err)
6853    ac_status=$?
6854    cat out/conftest.err >&5
6855    echo "$as_me:6855: \$? = $ac_status" >&5
6856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6857    then
6858      # The compiler can only warn and ignore the option if not recognized
6859      # So say no if there are warnings
6860      if test ! -s out/conftest.err; then
6861        lt_cv_prog_compiler_c_o=yes
6862      fi
6863    fi
6864    chmod u+w .
6865    $rm conftest*
6866    # SGI C++ compiler will create directory out/ii_files/ for
6867    # template instantiation
6868    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6869    $rm out/* && rmdir out
6870    cd ..
6871    rmdir conftest
6872    $rm conftest*
6873
6874 fi
6875 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6876 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6877
6878
6879 hard_links="nottested"
6880 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6881   # do not overwrite the value of need_locks provided by the user
6882   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6883 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6884   hard_links=yes
6885   $rm conftest*
6886   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6887   touch conftest.a
6888   ln conftest.a conftest.b 2>&5 || hard_links=no
6889   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6890   echo "$as_me:$LINENO: result: $hard_links" >&5
6891 echo "${ECHO_T}$hard_links" >&6
6892   if test "$hard_links" = no; then
6893     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6894 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6895     need_locks=warn
6896   fi
6897 else
6898   need_locks=no
6899 fi
6900
6901 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6902 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6903
6904   runpath_var=
6905   allow_undefined_flag=
6906   enable_shared_with_static_runtimes=no
6907   archive_cmds=
6908   archive_expsym_cmds=
6909   old_archive_From_new_cmds=
6910   old_archive_from_expsyms_cmds=
6911   export_dynamic_flag_spec=
6912   whole_archive_flag_spec=
6913   thread_safe_flag_spec=
6914   hardcode_libdir_flag_spec=
6915   hardcode_libdir_flag_spec_ld=
6916   hardcode_libdir_separator=
6917   hardcode_direct=no
6918   hardcode_minus_L=no
6919   hardcode_shlibpath_var=unsupported
6920   link_all_deplibs=unknown
6921   hardcode_automatic=no
6922   module_cmds=
6923   module_expsym_cmds=
6924   always_export_symbols=no
6925   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6926   # include_expsyms should be a list of space-separated symbols to be *always*
6927   # included in the symbol list
6928   include_expsyms=
6929   # exclude_expsyms can be an extended regexp of symbols to exclude
6930   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6931   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6932   # as well as any symbol that contains `d'.
6933   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6934   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6935   # platforms (ab)use it in PIC code, but their linkers get confused if
6936   # the symbol is explicitly referenced.  Since portable code cannot
6937   # rely on this symbol name, it's probably fine to never include it in
6938   # preloaded symbol tables.
6939   extract_expsyms_cmds=
6940
6941   case $host_os in
6942   cygwin* | mingw* | pw32*)
6943     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6944     # When not using gcc, we currently assume that we are using
6945     # Microsoft Visual C++.
6946     if test "$GCC" != yes; then
6947       with_gnu_ld=no
6948     fi
6949     ;;
6950   openbsd*)
6951     with_gnu_ld=no
6952     ;;
6953   esac
6954
6955   ld_shlibs=yes
6956   if test "$with_gnu_ld" = yes; then
6957     # If archive_cmds runs LD, not CC, wlarc should be empty
6958     wlarc='${wl}'
6959
6960     # See if GNU ld supports shared libraries.
6961     case $host_os in
6962     aix3* | aix4* | aix5*)
6963       # On AIX/PPC, the GNU linker is very broken
6964       if test "$host_cpu" != ia64; then
6965         ld_shlibs=no
6966         cat <<EOF 1>&2
6967
6968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6969 *** to be unable to reliably create shared libraries on AIX.
6970 *** Therefore, libtool is disabling shared libraries support.  If you
6971 *** really care for shared libraries, you may want to modify your PATH
6972 *** so that a non-GNU linker is found, and then restart.
6973
6974 EOF
6975       fi
6976       ;;
6977
6978     amigaos*)
6979       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)'
6980       hardcode_libdir_flag_spec='-L$libdir'
6981       hardcode_minus_L=yes
6982
6983       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6984       # that the semantics of dynamic libraries on AmigaOS, at least up
6985       # to version 4, is to share data among multiple programs linked
6986       # with the same dynamic library.  Since this doesn't match the
6987       # behavior of shared libraries on other platforms, we can't use
6988       # them.
6989       ld_shlibs=no
6990       ;;
6991
6992     beos*)
6993       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6994         allow_undefined_flag=unsupported
6995         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6996         # support --undefined.  This deserves some investigation.  FIXME
6997         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6998       else
6999         ld_shlibs=no
7000       fi
7001       ;;
7002
7003     cygwin* | mingw* | pw32*)
7004       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7005       # as there is no search path for DLLs.
7006       hardcode_libdir_flag_spec='-L$libdir'
7007       allow_undefined_flag=unsupported
7008       always_export_symbols=no
7009       enable_shared_with_static_runtimes=yes
7010       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7011
7012       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7013         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7014         # If the export-symbols file already is a .def file (1st line
7015         # is EXPORTS), use it as is; otherwise, prepend...
7016         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7017           cp $export_symbols $output_objdir/$soname.def;
7018         else
7019           echo EXPORTS > $output_objdir/$soname.def;
7020           cat $export_symbols >> $output_objdir/$soname.def;
7021         fi~
7022         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7023       else
7024         ld_shlibs=no
7025       fi
7026       ;;
7027
7028     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7029       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7030         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7031         wlarc=
7032       else
7033         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7034         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7035       fi
7036       ;;
7037
7038     solaris* | sysv5*)
7039       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7040         ld_shlibs=no
7041         cat <<EOF 1>&2
7042
7043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7044 *** create shared libraries on Solaris systems.  Therefore, libtool
7045 *** is disabling shared libraries support.  We urge you to upgrade GNU
7046 *** binutils to release 2.9.1 or newer.  Another option is to modify
7047 *** your PATH or compiler configuration so that the native linker is
7048 *** used, and then restart.
7049
7050 EOF
7051       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7052         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7053         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7054       else
7055         ld_shlibs=no
7056       fi
7057       ;;
7058
7059     sunos4*)
7060       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7061       wlarc=
7062       hardcode_direct=yes
7063       hardcode_shlibpath_var=no
7064       ;;
7065
7066   linux*)
7067     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7068         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7069         archive_cmds="$tmp_archive_cmds"
7070       supports_anon_versioning=no
7071       case `$LD -v 2>/dev/null` in
7072         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7073         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7074         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7075         *\ 2.11.*) ;; # other 2.11 versions
7076         *) supports_anon_versioning=yes ;;
7077       esac
7078       if test $supports_anon_versioning = yes; then
7079         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7081 $echo "local: *; };" >> $output_objdir/$libname.ver~
7082         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7083       else
7084         archive_expsym_cmds="$tmp_archive_cmds"
7085       fi
7086       link_all_deplibs=no
7087     else
7088       ld_shlibs=no
7089     fi
7090     ;;
7091
7092     *)
7093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7096       else
7097         ld_shlibs=no
7098       fi
7099       ;;
7100     esac
7101
7102     if test "$ld_shlibs" = yes; then
7103       runpath_var=LD_RUN_PATH
7104       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7105       export_dynamic_flag_spec='${wl}--export-dynamic'
7106       # ancient GNU ld didn't support --whole-archive et. al.
7107       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7108         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7109       else
7110         whole_archive_flag_spec=
7111       fi
7112     fi
7113   else
7114     # PORTME fill in a description of your system's linker (not GNU ld)
7115     case $host_os in
7116     aix3*)
7117       allow_undefined_flag=unsupported
7118       always_export_symbols=yes
7119       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'
7120       # Note: this linker hardcodes the directories in LIBPATH if there
7121       # are no directories specified by -L.
7122       hardcode_minus_L=yes
7123       if test "$GCC" = yes && test -z "$link_static_flag"; then
7124         # Neither direct hardcoding nor static linking is supported with a
7125         # broken collect2.
7126         hardcode_direct=unsupported
7127       fi
7128       ;;
7129
7130     aix4* | aix5*)
7131       if test "$host_cpu" = ia64; then
7132         # On IA64, the linker does run time linking by default, so we don't
7133         # have to do anything special.
7134         aix_use_runtimelinking=no
7135         exp_sym_flag='-Bexport'
7136         no_entry_flag=""
7137       else
7138         # If we're using GNU nm, then we don't want the "-C" option.
7139         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7140         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7141           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'
7142         else
7143           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'
7144         fi
7145         aix_use_runtimelinking=no
7146
7147         # Test if we are trying to use run time linking or normal
7148         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7149         # need to do runtime linking.
7150         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7151           for ld_flag in $LDFLAGS; do
7152           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7153             aix_use_runtimelinking=yes
7154             break
7155           fi
7156           done
7157         esac
7158
7159         exp_sym_flag='-bexport'
7160         no_entry_flag='-bnoentry'
7161       fi
7162
7163       # When large executables or shared objects are built, AIX ld can
7164       # have problems creating the table of contents.  If linking a library
7165       # or program results in "error TOC overflow" add -mminimal-toc to
7166       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7167       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7168
7169       archive_cmds=''
7170       hardcode_direct=yes
7171       hardcode_libdir_separator=':'
7172       link_all_deplibs=yes
7173
7174       if test "$GCC" = yes; then
7175         case $host_os in aix4.012|aix4.012.*)
7176         # We only want to do this on AIX 4.2 and lower, the check
7177         # below for broken collect2 doesn't work under 4.3+
7178           collect2name=`${CC} -print-prog-name=collect2`
7179           if test -f "$collect2name" && \
7180            strings "$collect2name" | grep resolve_lib_name >/dev/null
7181           then
7182           # We have reworked collect2
7183           hardcode_direct=yes
7184           else
7185           # We have old collect2
7186           hardcode_direct=unsupported
7187           # It fails to find uninstalled libraries when the uninstalled
7188           # path is not listed in the libpath.  Setting hardcode_minus_L
7189           # to unsupported forces relinking
7190           hardcode_minus_L=yes
7191           hardcode_libdir_flag_spec='-L$libdir'
7192           hardcode_libdir_separator=
7193           fi
7194         esac
7195         shared_flag='-shared'
7196       else
7197         # not using gcc
7198         if test "$host_cpu" = ia64; then
7199         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7200         # chokes on -Wl,-G. The following line is correct:
7201           shared_flag='-G'
7202         else
7203         if test "$aix_use_runtimelinking" = yes; then
7204             shared_flag='${wl}-G'
7205           else
7206             shared_flag='${wl}-bM:SRE'
7207         fi
7208         fi
7209       fi
7210
7211       # It seems that -bexpall does not export symbols beginning with
7212       # underscore (_), so it is better to generate a list of symbols to export.
7213       always_export_symbols=yes
7214       if test "$aix_use_runtimelinking" = yes; then
7215         # Warning - without using the other runtime loading flags (-brtl),
7216         # -berok will link without error, but may produce a broken library.
7217         allow_undefined_flag='-berok'
7218        # Determine the default libpath from the value encoded in an empty executable.
7219        cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 int
7227 main ()
7228 {
7229
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236   (eval $ac_link) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245   (eval $ac_try) 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; } &&
7249          { ac_try='test -s conftest$ac_exeext'
7250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251   (eval $ac_try) 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); }; }; then
7255
7256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7257 }'`
7258 # Check for a 64-bit object if we didn't find anything.
7259 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; }
7260 }'`; fi
7261 else
7262   echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 fi
7266 rm -f conftest.err conftest.$ac_objext \
7267       conftest$ac_exeext conftest.$ac_ext
7268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7269
7270        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7271         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"
7272        else
7273         if test "$host_cpu" = ia64; then
7274           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7275           allow_undefined_flag="-z nodefs"
7276           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"
7277         else
7278          # Determine the default libpath from the value encoded in an empty executable.
7279          cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h.  */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h.  */
7285
7286 int
7287 main ()
7288 {
7289
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296   (eval $ac_link) 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } &&
7303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; } &&
7309          { ac_try='test -s conftest$ac_exeext'
7310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311   (eval $ac_try) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); }; }; then
7315
7316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7317 }'`
7318 # Check for a 64-bit object if we didn't find anything.
7319 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; }
7320 }'`; fi
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 fi
7326 rm -f conftest.err conftest.$ac_objext \
7327       conftest$ac_exeext conftest.$ac_ext
7328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7329
7330          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7331           # Warning - without using the other run time loading flags,
7332           # -berok will link without error, but may produce a broken library.
7333           no_undefined_flag=' ${wl}-bernotok'
7334           allow_undefined_flag=' ${wl}-berok'
7335           # -bexpall does not export symbols beginning with underscore (_)
7336           always_export_symbols=yes
7337           # Exported symbols can be pulled into shared objects from archives
7338           whole_archive_flag_spec=' '
7339           archive_cmds_need_lc=yes
7340           # This is similar to how AIX traditionally builds it's shared libraries.
7341           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'
7342         fi
7343       fi
7344       ;;
7345
7346     amigaos*)
7347       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)'
7348       hardcode_libdir_flag_spec='-L$libdir'
7349       hardcode_minus_L=yes
7350       # see comment about different semantics on the GNU ld section
7351       ld_shlibs=no
7352       ;;
7353
7354     bsdi4*)
7355       export_dynamic_flag_spec=-rdynamic
7356       ;;
7357
7358     cygwin* | mingw* | pw32*)
7359       # When not using gcc, we currently assume that we are using
7360       # Microsoft Visual C++.
7361       # hardcode_libdir_flag_spec is actually meaningless, as there is
7362       # no search path for DLLs.
7363       hardcode_libdir_flag_spec=' '
7364       allow_undefined_flag=unsupported
7365       # Tell ltmain to make .lib files, not .a files.
7366       libext=lib
7367       # Tell ltmain to make .dll files, not .so files.
7368       shrext_cmds=".dll"
7369       # FIXME: Setting linknames here is a bad hack.
7370       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7371       # The linker will automatically build a .lib file if we build a DLL.
7372       old_archive_From_new_cmds='true'
7373       # FIXME: Should let the user specify the lib program.
7374       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7375       fix_srcfile_path='`cygpath -w "$srcfile"`'
7376       enable_shared_with_static_runtimes=yes
7377       ;;
7378
7379     darwin* | rhapsody*)
7380     if test "$GXX" = yes ; then
7381       archive_cmds_need_lc=no
7382       case "$host_os" in
7383       rhapsody* | darwin1.[012])
7384         allow_undefined_flag='-undefined suppress'
7385         ;;
7386       *) # Darwin 1.3 on
7387       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7388         allow_undefined_flag='-flat_namespace -undefined suppress'
7389       else
7390         case ${MACOSX_DEPLOYMENT_TARGET} in
7391           10.[012])
7392             allow_undefined_flag='-flat_namespace -undefined suppress'
7393             ;;
7394           10.*)
7395             allow_undefined_flag='-undefined dynamic_lookup'
7396             ;;
7397         esac
7398       fi
7399         ;;
7400       esac
7401         lt_int_apple_cc_single_mod=no
7402         output_verbose_link_cmd='echo'
7403         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7404           lt_int_apple_cc_single_mod=yes
7405         fi
7406         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7407           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7408         else
7409         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'
7410       fi
7411       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7412       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7413         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7414           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}'
7415         else
7416           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}'
7417         fi
7418           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}'
7419       hardcode_direct=no
7420       hardcode_automatic=yes
7421       hardcode_shlibpath_var=unsupported
7422       whole_archive_flag_spec='-all_load $convenience'
7423       link_all_deplibs=yes
7424     else
7425       ld_shlibs=no
7426     fi
7427       ;;
7428
7429     dgux*)
7430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431       hardcode_libdir_flag_spec='-L$libdir'
7432       hardcode_shlibpath_var=no
7433       ;;
7434
7435     freebsd1*)
7436       ld_shlibs=no
7437       ;;
7438
7439     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7440     # support.  Future versions do this automatically, but an explicit c++rt0.o
7441     # does not break anything, and helps significantly (at the cost of a little
7442     # extra space).
7443     freebsd2.2*)
7444       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7445       hardcode_libdir_flag_spec='-R$libdir'
7446       hardcode_direct=yes
7447       hardcode_shlibpath_var=no
7448       ;;
7449
7450     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7451     freebsd2*)
7452       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7453       hardcode_direct=yes
7454       hardcode_minus_L=yes
7455       hardcode_shlibpath_var=no
7456       ;;
7457
7458     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7459     freebsd* | kfreebsd*-gnu)
7460       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7461       hardcode_libdir_flag_spec='-R$libdir'
7462       hardcode_direct=yes
7463       hardcode_shlibpath_var=no
7464       ;;
7465
7466     hpux9*)
7467       if test "$GCC" = yes; then
7468         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'
7469       else
7470         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'
7471       fi
7472       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7473       hardcode_libdir_separator=:
7474       hardcode_direct=yes
7475
7476       # hardcode_minus_L: Not really in the search PATH,
7477       # but as the default location of the library.
7478       hardcode_minus_L=yes
7479       export_dynamic_flag_spec='${wl}-E'
7480       ;;
7481
7482     hpux10* | hpux11*)
7483       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7484         case "$host_cpu" in
7485         hppa*64*|ia64*)
7486           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7487           ;;
7488         *)
7489           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7490           ;;
7491         esac
7492       else
7493         case "$host_cpu" in
7494         hppa*64*|ia64*)
7495           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7496           ;;
7497         *)
7498           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7499           ;;
7500         esac
7501       fi
7502       if test "$with_gnu_ld" = no; then
7503         case "$host_cpu" in
7504         hppa*64*)
7505           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7506           hardcode_libdir_flag_spec_ld='+b $libdir'
7507           hardcode_libdir_separator=:
7508           hardcode_direct=no
7509           hardcode_shlibpath_var=no
7510           ;;
7511         ia64*)
7512           hardcode_libdir_flag_spec='-L$libdir'
7513           hardcode_direct=no
7514           hardcode_shlibpath_var=no
7515
7516           # hardcode_minus_L: Not really in the search PATH,
7517           # but as the default location of the library.
7518           hardcode_minus_L=yes
7519           ;;
7520         *)
7521           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7522           hardcode_libdir_separator=:
7523           hardcode_direct=yes
7524           export_dynamic_flag_spec='${wl}-E'
7525
7526           # hardcode_minus_L: Not really in the search PATH,
7527           # but as the default location of the library.
7528           hardcode_minus_L=yes
7529           ;;
7530         esac
7531       fi
7532       ;;
7533
7534     irix5* | irix6* | nonstopux*)
7535       if test "$GCC" = yes; then
7536         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'
7537       else
7538         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'
7539         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7540       fi
7541       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7542       hardcode_libdir_separator=:
7543       link_all_deplibs=yes
7544       ;;
7545
7546     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7547       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7548         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7549       else
7550         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7551       fi
7552       hardcode_libdir_flag_spec='-R$libdir'
7553       hardcode_direct=yes
7554       hardcode_shlibpath_var=no
7555       ;;
7556
7557     newsos6)
7558       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7559       hardcode_direct=yes
7560       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7561       hardcode_libdir_separator=:
7562       hardcode_shlibpath_var=no
7563       ;;
7564
7565     openbsd*)
7566       hardcode_direct=yes
7567       hardcode_shlibpath_var=no
7568       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7569         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7570         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7571         export_dynamic_flag_spec='${wl}-E'
7572       else
7573        case $host_os in
7574          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7575            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7576            hardcode_libdir_flag_spec='-R$libdir'
7577            ;;
7578          *)
7579            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7580            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7581            ;;
7582        esac
7583       fi
7584       ;;
7585
7586     os2*)
7587       hardcode_libdir_flag_spec='-L$libdir'
7588       hardcode_minus_L=yes
7589       allow_undefined_flag=unsupported
7590       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'
7591       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7592       ;;
7593
7594     osf3*)
7595       if test "$GCC" = yes; then
7596         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7597         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'
7598       else
7599         allow_undefined_flag=' -expect_unresolved \*'
7600         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'
7601       fi
7602       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7603       hardcode_libdir_separator=:
7604       ;;
7605
7606     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7607       if test "$GCC" = yes; then
7608         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7609         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'
7610         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7611       else
7612         allow_undefined_flag=' -expect_unresolved \*'
7613         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'
7614         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7615         $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'
7616
7617         # Both c and cxx compiler support -rpath directly
7618         hardcode_libdir_flag_spec='-rpath $libdir'
7619       fi
7620       hardcode_libdir_separator=:
7621       ;;
7622
7623     sco3.2v5*)
7624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625       hardcode_shlibpath_var=no
7626       export_dynamic_flag_spec='${wl}-Bexport'
7627       runpath_var=LD_RUN_PATH
7628       hardcode_runpath_var=yes
7629       ;;
7630
7631     solaris*)
7632       no_undefined_flag=' -z text'
7633       if test "$GCC" = yes; then
7634         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7635         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7636           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7637       else
7638         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7640         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7641       fi
7642       hardcode_libdir_flag_spec='-R$libdir'
7643       hardcode_shlibpath_var=no
7644       case $host_os in
7645       solaris2.[0-5] | solaris2.[0-5].*) ;;
7646       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7647         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7648       esac
7649       link_all_deplibs=yes
7650       ;;
7651
7652     sunos4*)
7653       if test "x$host_vendor" = xsequent; then
7654         # Use $CC to link under sequent, because it throws in some extra .o
7655         # files that make .init and .fini sections work.
7656         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7657       else
7658         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7659       fi
7660       hardcode_libdir_flag_spec='-L$libdir'
7661       hardcode_direct=yes
7662       hardcode_minus_L=yes
7663       hardcode_shlibpath_var=no
7664       ;;
7665
7666     sysv4)
7667       case $host_vendor in
7668         sni)
7669           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670           hardcode_direct=yes # is this really true???
7671         ;;
7672         siemens)
7673           ## LD is ld it makes a PLAMLIB
7674           ## CC just makes a GrossModule.
7675           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7676           reload_cmds='$CC -r -o $output$reload_objs'
7677           hardcode_direct=no
7678         ;;
7679         motorola)
7680           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7682         ;;
7683       esac
7684       runpath_var='LD_RUN_PATH'
7685       hardcode_shlibpath_var=no
7686       ;;
7687
7688     sysv4.3*)
7689       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690       hardcode_shlibpath_var=no
7691       export_dynamic_flag_spec='-Bexport'
7692       ;;
7693
7694     sysv4*MP*)
7695       if test -d /usr/nec; then
7696         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697         hardcode_shlibpath_var=no
7698         runpath_var=LD_RUN_PATH
7699         hardcode_runpath_var=yes
7700         ld_shlibs=yes
7701       fi
7702       ;;
7703
7704     sysv4.2uw2*)
7705       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7706       hardcode_direct=yes
7707       hardcode_minus_L=no
7708       hardcode_shlibpath_var=no
7709       hardcode_runpath_var=yes
7710       runpath_var=LD_RUN_PATH
7711       ;;
7712
7713    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7714       no_undefined_flag='${wl}-z ${wl}text'
7715       if test "$GCC" = yes; then
7716         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717       else
7718         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7719       fi
7720       runpath_var='LD_RUN_PATH'
7721       hardcode_shlibpath_var=no
7722       ;;
7723
7724     sysv5*)
7725       no_undefined_flag=' -z text'
7726       # $CC -shared without GNU ld will not create a library from C++
7727       # object files and a static libstdc++, better avoid it by now
7728       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7730                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7731       hardcode_libdir_flag_spec=
7732       hardcode_shlibpath_var=no
7733       runpath_var='LD_RUN_PATH'
7734       ;;
7735
7736     uts4*)
7737       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738       hardcode_libdir_flag_spec='-L$libdir'
7739       hardcode_shlibpath_var=no
7740       ;;
7741
7742     *)
7743       ld_shlibs=no
7744       ;;
7745     esac
7746   fi
7747
7748 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7749 echo "${ECHO_T}$ld_shlibs" >&6
7750 test "$ld_shlibs" = no && can_build_shared=no
7751
7752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7753 if test "$GCC" = yes; then
7754   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7755 fi
7756
7757 #
7758 # Do we need to explicitly link libc?
7759 #
7760 case "x$archive_cmds_need_lc" in
7761 x|xyes)
7762   # Assume -lc should be added
7763   archive_cmds_need_lc=yes
7764
7765   if test "$enable_shared" = yes && test "$GCC" = yes; then
7766     case $archive_cmds in
7767     *'~'*)
7768       # FIXME: we may have to deal with multi-command sequences.
7769       ;;
7770     '$CC '*)
7771       # Test whether the compiler implicitly links with -lc since on some
7772       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7773       # to ld, don't add -lc before -lgcc.
7774       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7775 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7776       $rm conftest*
7777       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7778
7779       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780   (eval $ac_compile) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } 2>conftest.err; then
7784         soname=conftest
7785         lib=conftest
7786         libobjs=conftest.$ac_objext
7787         deplibs=
7788         wl=$lt_prog_compiler_wl
7789         compiler_flags=-v
7790         linker_flags=-v
7791         verstring=
7792         output_objdir=.
7793         libname=conftest
7794         lt_save_allow_undefined_flag=$allow_undefined_flag
7795         allow_undefined_flag=
7796         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7797   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); }
7801         then
7802           archive_cmds_need_lc=no
7803         else
7804           archive_cmds_need_lc=yes
7805         fi
7806         allow_undefined_flag=$lt_save_allow_undefined_flag
7807       else
7808         cat conftest.err 1>&5
7809       fi
7810       $rm conftest*
7811       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7812 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7813       ;;
7814     esac
7815   fi
7816   ;;
7817 esac
7818
7819 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7820 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7821 library_names_spec=
7822 libname_spec='lib$name'
7823 soname_spec=
7824 shrext_cmds=".so"
7825 postinstall_cmds=
7826 postuninstall_cmds=
7827 finish_cmds=
7828 finish_eval=
7829 shlibpath_var=
7830 shlibpath_overrides_runpath=unknown
7831 version_type=none
7832 dynamic_linker="$host_os ld.so"
7833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7834 if test "$GCC" = yes; then
7835   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7836   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7837     # if the path contains ";" then we assume it to be the separator
7838     # otherwise default to the standard path separator (i.e. ":") - it is
7839     # assumed that no part of a normal pathname contains ";" but that should
7840     # okay in the real world where ";" in dirpaths is itself problematic.
7841     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7842   else
7843     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7844   fi
7845 else
7846   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7847 fi
7848 need_lib_prefix=unknown
7849 hardcode_into_libs=no
7850
7851 # when you set need_version to no, make sure it does not cause -set_version
7852 # flags to be left without arguments
7853 need_version=unknown
7854
7855 case $host_os in
7856 aix3*)
7857   version_type=linux
7858   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7859   shlibpath_var=LIBPATH
7860
7861   # AIX 3 has no versioning support, so we append a major version to the name.
7862   soname_spec='${libname}${release}${shared_ext}$major'
7863   ;;
7864
7865 aix4* | aix5*)
7866   version_type=linux
7867   need_lib_prefix=no
7868   need_version=no
7869   hardcode_into_libs=yes
7870   if test "$host_cpu" = ia64; then
7871     # AIX 5 supports IA64
7872     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7873     shlibpath_var=LD_LIBRARY_PATH
7874   else
7875     # With GCC up to 2.95.x, collect2 would create an import file
7876     # for dependence libraries.  The import file would start with
7877     # the line `#! .'.  This would cause the generated library to
7878     # depend on `.', always an invalid library.  This was fixed in
7879     # development snapshots of GCC prior to 3.0.
7880     case $host_os in
7881       aix4 | aix4.[01] | aix4.[01].*)
7882       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7883            echo ' yes '
7884            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7885         :
7886       else
7887         can_build_shared=no
7888       fi
7889       ;;
7890     esac
7891     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7892     # soname into executable. Probably we can add versioning support to
7893     # collect2, so additional links can be useful in future.
7894     if test "$aix_use_runtimelinking" = yes; then
7895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7896       # instead of lib<name>.a to let people know that these are not
7897       # typical AIX shared libraries.
7898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7899     else
7900       # We preserve .a as extension for shared libraries through AIX4.2
7901       # and later when we are not doing run time linking.
7902       library_names_spec='${libname}${release}.a $libname.a'
7903       soname_spec='${libname}${release}${shared_ext}$major'
7904     fi
7905     shlibpath_var=LIBPATH
7906   fi
7907   ;;
7908
7909 amigaos*)
7910   library_names_spec='$libname.ixlibrary $libname.a'
7911   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7912   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'
7913   ;;
7914
7915 beos*)
7916   library_names_spec='${libname}${shared_ext}'
7917   dynamic_linker="$host_os ld.so"
7918   shlibpath_var=LIBRARY_PATH
7919   ;;
7920
7921 bsdi4*)
7922   version_type=linux
7923   need_version=no
7924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925   soname_spec='${libname}${release}${shared_ext}$major'
7926   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7927   shlibpath_var=LD_LIBRARY_PATH
7928   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7929   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7930   # the default ld.so.conf also contains /usr/contrib/lib and
7931   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7932   # libtool to hard-code these into programs
7933   ;;
7934
7935 cygwin* | mingw* | pw32*)
7936   version_type=windows
7937   shrext_cmds=".dll"
7938   need_version=no
7939   need_lib_prefix=no
7940
7941   case $GCC,$host_os in
7942   yes,cygwin* | yes,mingw* | yes,pw32*)
7943     library_names_spec='$libname.dll.a'
7944     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7945     postinstall_cmds='base_file=`basename \${file}`~
7946       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7947       dldir=$destdir/`dirname \$dlpath`~
7948       test -d \$dldir || mkdir -p \$dldir~
7949       $install_prog $dir/$dlname \$dldir/$dlname'
7950     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7951       dlpath=$dir/\$dldll~
7952        $rm \$dlpath'
7953     shlibpath_overrides_runpath=yes
7954
7955     case $host_os in
7956     cygwin*)
7957       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7958       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7959       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7960       ;;
7961     mingw*)
7962       # MinGW DLLs use traditional 'lib' prefix
7963       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7964       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7965       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7966         # It is most probably a Windows format PATH printed by
7967         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7968         # path with ; separators, and with drive letters. We can handle the
7969         # drive letters (cygwin fileutils understands them), so leave them,
7970         # especially as we might pass files found there to a mingw objdump,
7971         # which wouldn't understand a cygwinified path. Ahh.
7972         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7973       else
7974         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7975       fi
7976       ;;
7977     pw32*)
7978       # pw32 DLLs use 'pw' prefix rather than 'lib'
7979       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7980       ;;
7981     esac
7982     ;;
7983
7984   *)
7985     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7986     ;;
7987   esac
7988   dynamic_linker='Win32 ld.exe'
7989   # FIXME: first we should search . and the directory the executable is in
7990   shlibpath_var=PATH
7991   ;;
7992
7993 darwin* | rhapsody*)
7994   dynamic_linker="$host_os dyld"
7995   version_type=darwin
7996   need_lib_prefix=no
7997   need_version=no
7998   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7999   soname_spec='${libname}${release}${major}$shared_ext'
8000   shlibpath_overrides_runpath=yes
8001   shlibpath_var=DYLD_LIBRARY_PATH
8002   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8003   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8004   if test "$GCC" = yes; then
8005     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"`
8006   else
8007     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8008   fi
8009   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8010   ;;
8011
8012 dgux*)
8013   version_type=linux
8014   need_lib_prefix=no
8015   need_version=no
8016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8017   soname_spec='${libname}${release}${shared_ext}$major'
8018   shlibpath_var=LD_LIBRARY_PATH
8019   ;;
8020
8021 freebsd1*)
8022   dynamic_linker=no
8023   ;;
8024
8025 kfreebsd*-gnu)
8026   version_type=linux
8027   need_lib_prefix=no
8028   need_version=no
8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8030   soname_spec='${libname}${release}${shared_ext}$major'
8031   shlibpath_var=LD_LIBRARY_PATH
8032   shlibpath_overrides_runpath=no
8033   hardcode_into_libs=yes
8034   dynamic_linker='GNU ld.so'
8035   ;;
8036
8037 freebsd*)
8038   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8039   version_type=freebsd-$objformat
8040   case $version_type in
8041     freebsd-elf*)
8042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8043       need_version=no
8044       need_lib_prefix=no
8045       ;;
8046     freebsd-*)
8047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8048       need_version=yes
8049       ;;
8050   esac
8051   shlibpath_var=LD_LIBRARY_PATH
8052   case $host_os in
8053   freebsd2*)
8054     shlibpath_overrides_runpath=yes
8055     ;;
8056   freebsd3.01* | freebsdelf3.01*)
8057     shlibpath_overrides_runpath=yes
8058     hardcode_into_libs=yes
8059     ;;
8060   *) # from 3.2 on
8061     shlibpath_overrides_runpath=no
8062     hardcode_into_libs=yes
8063     ;;
8064   esac
8065   ;;
8066
8067 gnu*)
8068   version_type=linux
8069   need_lib_prefix=no
8070   need_version=no
8071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8072   soname_spec='${libname}${release}${shared_ext}$major'
8073   shlibpath_var=LD_LIBRARY_PATH
8074   hardcode_into_libs=yes
8075   ;;
8076
8077 hpux9* | hpux10* | hpux11*)
8078   # Give a soname corresponding to the major version so that dld.sl refuses to
8079   # link against other versions.
8080   version_type=sunos
8081   need_lib_prefix=no
8082   need_version=no
8083   case "$host_cpu" in
8084   ia64*)
8085     shrext_cmds='.so'
8086     hardcode_into_libs=yes
8087     dynamic_linker="$host_os dld.so"
8088     shlibpath_var=LD_LIBRARY_PATH
8089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091     soname_spec='${libname}${release}${shared_ext}$major'
8092     if test "X$HPUX_IA64_MODE" = X32; then
8093       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8094     else
8095       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8096     fi
8097     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8098     ;;
8099    hppa*64*)
8100      shrext_cmds='.sl'
8101      hardcode_into_libs=yes
8102      dynamic_linker="$host_os dld.sl"
8103      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8104      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106      soname_spec='${libname}${release}${shared_ext}$major'
8107      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8108      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8109      ;;
8110    *)
8111     shrext_cmds='.sl'
8112     dynamic_linker="$host_os dld.sl"
8113     shlibpath_var=SHLIB_PATH
8114     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116     soname_spec='${libname}${release}${shared_ext}$major'
8117     ;;
8118   esac
8119   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8120   postinstall_cmds='chmod 555 $lib'
8121   ;;
8122
8123 irix5* | irix6* | nonstopux*)
8124   case $host_os in
8125     nonstopux*) version_type=nonstopux ;;
8126     *)
8127         if test "$lt_cv_prog_gnu_ld" = yes; then
8128                 version_type=linux
8129         else
8130                 version_type=irix
8131         fi ;;
8132   esac
8133   need_lib_prefix=no
8134   need_version=no
8135   soname_spec='${libname}${release}${shared_ext}$major'
8136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8137   case $host_os in
8138   irix5* | nonstopux*)
8139     libsuff= shlibsuff=
8140     ;;
8141   *)
8142     case $LD in # libtool.m4 will add one of these switches to LD
8143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8144       libsuff= shlibsuff= libmagic=32-bit;;
8145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8146       libsuff=32 shlibsuff=N32 libmagic=N32;;
8147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8149     *) libsuff= shlibsuff= libmagic=never-match;;
8150     esac
8151     ;;
8152   esac
8153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8154   shlibpath_overrides_runpath=no
8155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8157   hardcode_into_libs=yes
8158   ;;
8159
8160 # No shared lib support for Linux oldld, aout, or coff.
8161 linux*oldld* | linux*aout* | linux*coff*)
8162   dynamic_linker=no
8163   ;;
8164
8165 # This must be Linux ELF.
8166 linux*)
8167   version_type=linux
8168   need_lib_prefix=no
8169   need_version=no
8170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8171   soname_spec='${libname}${release}${shared_ext}$major'
8172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8173   shlibpath_var=LD_LIBRARY_PATH
8174   shlibpath_overrides_runpath=no
8175   # This implies no fast_install, which is unacceptable.
8176   # Some rework will be needed to allow for fast_install
8177   # before this can be enabled.
8178   hardcode_into_libs=yes
8179
8180   # Append ld.so.conf contents to the search path
8181   if test -f /etc/ld.so.conf; then
8182     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8183     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8184   fi
8185
8186   # We used to test for /lib/ld.so.1 and disable shared libraries on
8187   # powerpc, because MkLinux only supported shared libraries with the
8188   # GNU dynamic linker.  Since this was broken with cross compilers,
8189   # most powerpc-linux boxes support dynamic linking these days and
8190   # people can always --disable-shared, the test was removed, and we
8191   # assume the GNU/Linux dynamic linker is in use.
8192   dynamic_linker='GNU/Linux ld.so'
8193   ;;
8194
8195 netbsdelf*-gnu)
8196   version_type=linux
8197   need_lib_prefix=no
8198   need_version=no
8199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200   soname_spec='${libname}${release}${shared_ext}$major'
8201   shlibpath_var=LD_LIBRARY_PATH
8202   shlibpath_overrides_runpath=no
8203   hardcode_into_libs=yes
8204   dynamic_linker='NetBSD ld.elf_so'
8205   ;;
8206
8207 knetbsd*-gnu)
8208   version_type=linux
8209   need_lib_prefix=no
8210   need_version=no
8211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8212   soname_spec='${libname}${release}${shared_ext}$major'
8213   shlibpath_var=LD_LIBRARY_PATH
8214   shlibpath_overrides_runpath=no
8215   hardcode_into_libs=yes
8216   dynamic_linker='GNU ld.so'
8217   ;;
8218
8219 netbsd*)
8220   version_type=sunos
8221   need_lib_prefix=no
8222   need_version=no
8223   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8225     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8226     dynamic_linker='NetBSD (a.out) ld.so'
8227   else
8228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229     soname_spec='${libname}${release}${shared_ext}$major'
8230     dynamic_linker='NetBSD ld.elf_so'
8231   fi
8232   shlibpath_var=LD_LIBRARY_PATH
8233   shlibpath_overrides_runpath=yes
8234   hardcode_into_libs=yes
8235   ;;
8236
8237 newsos6)
8238   version_type=linux
8239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240   shlibpath_var=LD_LIBRARY_PATH
8241   shlibpath_overrides_runpath=yes
8242   ;;
8243
8244 nto-qnx*)
8245   version_type=linux
8246   need_lib_prefix=no
8247   need_version=no
8248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249   soname_spec='${libname}${release}${shared_ext}$major'
8250   shlibpath_var=LD_LIBRARY_PATH
8251   shlibpath_overrides_runpath=yes
8252   ;;
8253
8254 openbsd*)
8255   version_type=sunos
8256   need_lib_prefix=no
8257   need_version=yes
8258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8259   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8260   shlibpath_var=LD_LIBRARY_PATH
8261   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8262     case $host_os in
8263       openbsd2.[89] | openbsd2.[89].*)
8264         shlibpath_overrides_runpath=no
8265         ;;
8266       *)
8267         shlibpath_overrides_runpath=yes
8268         ;;
8269       esac
8270   else
8271     shlibpath_overrides_runpath=yes
8272   fi
8273   ;;
8274
8275 os2*)
8276   libname_spec='$name'
8277   shrext_cmds=".dll"
8278   need_lib_prefix=no
8279   library_names_spec='$libname${shared_ext} $libname.a'
8280   dynamic_linker='OS/2 ld.exe'
8281   shlibpath_var=LIBPATH
8282   ;;
8283
8284 osf3* | osf4* | osf5*)
8285   version_type=osf
8286   need_lib_prefix=no
8287   need_version=no
8288   soname_spec='${libname}${release}${shared_ext}$major'
8289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290   shlibpath_var=LD_LIBRARY_PATH
8291   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8292   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8293   ;;
8294
8295 sco3.2v5*)
8296   version_type=osf
8297   soname_spec='${libname}${release}${shared_ext}$major'
8298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299   shlibpath_var=LD_LIBRARY_PATH
8300   ;;
8301
8302 solaris*)
8303   version_type=linux
8304   need_lib_prefix=no
8305   need_version=no
8306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307   soname_spec='${libname}${release}${shared_ext}$major'
8308   shlibpath_var=LD_LIBRARY_PATH
8309   shlibpath_overrides_runpath=yes
8310   hardcode_into_libs=yes
8311   # ldd complains unless libraries are executable
8312   postinstall_cmds='chmod +x $lib'
8313   ;;
8314
8315 sunos4*)
8316   version_type=sunos
8317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8319   shlibpath_var=LD_LIBRARY_PATH
8320   shlibpath_overrides_runpath=yes
8321   if test "$with_gnu_ld" = yes; then
8322     need_lib_prefix=no
8323   fi
8324   need_version=yes
8325   ;;
8326
8327 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8328   version_type=linux
8329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330   soname_spec='${libname}${release}${shared_ext}$major'
8331   shlibpath_var=LD_LIBRARY_PATH
8332   case $host_vendor in
8333     sni)
8334       shlibpath_overrides_runpath=no
8335       need_lib_prefix=no
8336       export_dynamic_flag_spec='${wl}-Blargedynsym'
8337       runpath_var=LD_RUN_PATH
8338       ;;
8339     siemens)
8340       need_lib_prefix=no
8341       ;;
8342     motorola)
8343       need_lib_prefix=no
8344       need_version=no
8345       shlibpath_overrides_runpath=no
8346       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8347       ;;
8348   esac
8349   ;;
8350
8351 sysv4*MP*)
8352   if test -d /usr/nec ;then
8353     version_type=linux
8354     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8355     soname_spec='$libname${shared_ext}.$major'
8356     shlibpath_var=LD_LIBRARY_PATH
8357   fi
8358   ;;
8359
8360 uts4*)
8361   version_type=linux
8362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363   soname_spec='${libname}${release}${shared_ext}$major'
8364   shlibpath_var=LD_LIBRARY_PATH
8365   ;;
8366
8367 *)
8368   dynamic_linker=no
8369   ;;
8370 esac
8371 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8372 echo "${ECHO_T}$dynamic_linker" >&6
8373 test "$dynamic_linker" = no && can_build_shared=no
8374
8375 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8376 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8377 hardcode_action=
8378 if test -n "$hardcode_libdir_flag_spec" || \
8379    test -n "$runpath_var " || \
8380    test "X$hardcode_automatic"="Xyes" ; then
8381
8382   # We can hardcode non-existant directories.
8383   if test "$hardcode_direct" != no &&
8384      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8385      # have to relink, otherwise we might link with an installed library
8386      # when we should be linking with a yet-to-be-installed one
8387      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8388      test "$hardcode_minus_L" != no; then
8389     # Linking always hardcodes the temporary library directory.
8390     hardcode_action=relink
8391   else
8392     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8393     hardcode_action=immediate
8394   fi
8395 else
8396   # We cannot hardcode anything, or else we can only hardcode existing
8397   # directories.
8398   hardcode_action=unsupported
8399 fi
8400 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8401 echo "${ECHO_T}$hardcode_action" >&6
8402
8403 if test "$hardcode_action" = relink; then
8404   # Fast installation is not supported
8405   enable_fast_install=no
8406 elif test "$shlibpath_overrides_runpath" = yes ||
8407      test "$enable_shared" = no; then
8408   # Fast installation is not necessary
8409   enable_fast_install=needless
8410 fi
8411
8412 striplib=
8413 old_striplib=
8414 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8415 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8416 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8417   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8418   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8419   echo "$as_me:$LINENO: result: yes" >&5
8420 echo "${ECHO_T}yes" >&6
8421 else
8422 # FIXME - insert some real tests, host_os isn't really good enough
8423   case $host_os in
8424    darwin*)
8425        if test -n "$STRIP" ; then
8426          striplib="$STRIP -x"
8427          echo "$as_me:$LINENO: result: yes" >&5
8428 echo "${ECHO_T}yes" >&6
8429        else
8430   echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6
8432 fi
8433        ;;
8434    *)
8435   echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8437     ;;
8438   esac
8439 fi
8440
8441 if test "x$enable_dlopen" != xyes; then
8442   enable_dlopen=unknown
8443   enable_dlopen_self=unknown
8444   enable_dlopen_self_static=unknown
8445 else
8446   lt_cv_dlopen=no
8447   lt_cv_dlopen_libs=
8448
8449   case $host_os in
8450   beos*)
8451     lt_cv_dlopen="load_add_on"
8452     lt_cv_dlopen_libs=
8453     lt_cv_dlopen_self=yes
8454     ;;
8455
8456   mingw* | pw32*)
8457     lt_cv_dlopen="LoadLibrary"
8458     lt_cv_dlopen_libs=
8459    ;;
8460
8461   cygwin*)
8462     lt_cv_dlopen="dlopen"
8463     lt_cv_dlopen_libs=
8464    ;;
8465
8466   darwin*)
8467   # if libdl is installed we need to link against it
8468     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   ac_check_lib_save_LIBS=$LIBS
8474 LIBS="-ldl  $LIBS"
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481
8482 /* Override any gcc2 internal prototype to avoid an error.  */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487    builtin and then its argument prototype would still apply.  */
8488 char dlopen ();
8489 int
8490 main ()
8491 {
8492 dlopen ();
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499   (eval $ac_link) 2>conftest.er1
8500   ac_status=$?
8501   grep -v '^ *+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508   (eval $ac_try) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; } &&
8512          { ac_try='test -s conftest$ac_exeext'
8513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514   (eval $ac_try) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; }; then
8518   ac_cv_lib_dl_dlopen=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8522
8523 ac_cv_lib_dl_dlopen=no
8524 fi
8525 rm -f conftest.err conftest.$ac_objext \
8526       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
8535     lt_cv_dlopen="dyld"
8536     lt_cv_dlopen_libs=
8537     lt_cv_dlopen_self=yes
8538
8539 fi
8540
8541    ;;
8542
8543   *)
8544     echo "$as_me:$LINENO: checking for shl_load" >&5
8545 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8546 if test "${ac_cv_func_shl_load+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8557 #define shl_load innocuous_shl_load
8558
8559 /* System header to define __stub macros and hopefully few prototypes,
8560     which can conflict with char shl_load (); below.
8561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562     <limits.h> exists even on freestanding compilers.  */
8563
8564 #ifdef __STDC__
8565 # include <limits.h>
8566 #else
8567 # include <assert.h>
8568 #endif
8569
8570 #undef shl_load
8571
8572 /* Override any gcc2 internal prototype to avoid an error.  */
8573 #ifdef __cplusplus
8574 extern "C"
8575 {
8576 #endif
8577 /* We use char because int might match the return type of a gcc2
8578    builtin and then its argument prototype would still apply.  */
8579 char shl_load ();
8580 /* The GNU C library defines this for functions which it implements
8581     to always fail with ENOSYS.  Some functions are actually named
8582     something starting with __ and the normal name is an alias.  */
8583 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8584 choke me
8585 #else
8586 char (*f) () = shl_load;
8587 #endif
8588 #ifdef __cplusplus
8589 }
8590 #endif
8591
8592 int
8593 main ()
8594 {
8595 return f != shl_load;
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602   (eval $ac_link) 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; } &&
8615          { ac_try='test -s conftest$ac_exeext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_func_shl_load=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 ac_cv_func_shl_load=no
8627 fi
8628 rm -f conftest.err conftest.$ac_objext \
8629       conftest$ac_exeext conftest.$ac_ext
8630 fi
8631 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8632 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8633 if test $ac_cv_func_shl_load = yes; then
8634   lt_cv_dlopen="shl_load"
8635 else
8636   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-ldld  $LIBS"
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649
8650 /* Override any gcc2 internal prototype to avoid an error.  */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 /* We use char because int might match the return type of a gcc2
8655    builtin and then its argument prototype would still apply.  */
8656 char shl_load ();
8657 int
8658 main ()
8659 {
8660 shl_load ();
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } &&
8674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676   (eval $ac_try) 2>&5
8677   ac_status=$?
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); }; } &&
8680          { ac_try='test -s conftest$ac_exeext'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   ac_cv_lib_dld_shl_load=yes
8687 else
8688   echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691 ac_cv_lib_dld_shl_load=no
8692 fi
8693 rm -f conftest.err conftest.$ac_objext \
8694       conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8696 fi
8697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8699 if test $ac_cv_lib_dld_shl_load = yes; then
8700   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8701 else
8702   echo "$as_me:$LINENO: checking for dlopen" >&5
8703 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8704 if test "${ac_cv_func_dlopen+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h.  */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h.  */
8713 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8715 #define dlopen innocuous_dlopen
8716
8717 /* System header to define __stub macros and hopefully few prototypes,
8718     which can conflict with char dlopen (); below.
8719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720     <limits.h> exists even on freestanding compilers.  */
8721
8722 #ifdef __STDC__
8723 # include <limits.h>
8724 #else
8725 # include <assert.h>
8726 #endif
8727
8728 #undef dlopen
8729
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 {
8734 #endif
8735 /* We use char because int might match the return type of a gcc2
8736    builtin and then its argument prototype would still apply.  */
8737 char dlopen ();
8738 /* The GNU C library defines this for functions which it implements
8739     to always fail with ENOSYS.  Some functions are actually named
8740     something starting with __ and the normal name is an alias.  */
8741 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8742 choke me
8743 #else
8744 char (*f) () = dlopen;
8745 #endif
8746 #ifdef __cplusplus
8747 }
8748 #endif
8749
8750 int
8751 main ()
8752 {
8753 return f != dlopen;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760   (eval $ac_link) 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; } &&
8773          { ac_try='test -s conftest$ac_exeext'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   ac_cv_func_dlopen=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ac_cv_func_dlopen=no
8785 fi
8786 rm -f conftest.err conftest.$ac_objext \
8787       conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8790 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8791 if test $ac_cv_func_dlopen = yes; then
8792   lt_cv_dlopen="dlopen"
8793 else
8794   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   ac_check_lib_save_LIBS=$LIBS
8800 LIBS="-ldl  $LIBS"
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807
8808 /* Override any gcc2 internal prototype to avoid an error.  */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813    builtin and then its argument prototype would still apply.  */
8814 char dlopen ();
8815 int
8816 main ()
8817 {
8818 dlopen ();
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>conftest.er1
8826   ac_status=$?
8827   grep -v '^ *+' conftest.er1 >conftest.err
8828   rm -f conftest.er1
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); } &&
8832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; } &&
8838          { ac_try='test -s conftest$ac_exeext'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_cv_lib_dl_dlopen=yes
8845 else
8846   echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_cv_lib_dl_dlopen=no
8850 fi
8851 rm -f conftest.err conftest.$ac_objext \
8852       conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8854 fi
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8857 if test $ac_cv_lib_dl_dlopen = yes; then
8858   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8859 else
8860   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8861 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8862 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-lsvld  $LIBS"
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873
8874 /* Override any gcc2 internal prototype to avoid an error.  */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879    builtin and then its argument prototype would still apply.  */
8880 char dlopen ();
8881 int
8882 main ()
8883 {
8884 dlopen ();
8885   ;
8886   return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891   (eval $ac_link) 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; } &&
8904          { ac_try='test -s conftest$ac_exeext'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; }; then
8910   ac_cv_lib_svld_dlopen=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ac_cv_lib_svld_dlopen=no
8916 fi
8917 rm -f conftest.err conftest.$ac_objext \
8918       conftest$ac_exeext conftest.$ac_ext
8919 LIBS=$ac_check_lib_save_LIBS
8920 fi
8921 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8922 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8923 if test $ac_cv_lib_svld_dlopen = yes; then
8924   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8925 else
8926   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8927 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8928 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   ac_check_lib_save_LIBS=$LIBS
8932 LIBS="-ldld  $LIBS"
8933 cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939
8940 /* Override any gcc2 internal prototype to avoid an error.  */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 /* We use char because int might match the return type of a gcc2
8945    builtin and then its argument prototype would still apply.  */
8946 char dld_link ();
8947 int
8948 main ()
8949 {
8950 dld_link ();
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957   (eval $ac_link) 2>conftest.er1
8958   ac_status=$?
8959   grep -v '^ *+' conftest.er1 >conftest.err
8960   rm -f conftest.er1
8961   cat conftest.err >&5
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } &&
8964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; } &&
8970          { ac_try='test -s conftest$ac_exeext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_cv_lib_dld_dld_link=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_lib_dld_dld_link=no
8982 fi
8983 rm -f conftest.err conftest.$ac_objext \
8984       conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8986 fi
8987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8989 if test $ac_cv_lib_dld_dld_link = yes; then
8990   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8991 fi
8992
8993
8994 fi
8995
8996
8997 fi
8998
8999
9000 fi
9001
9002
9003 fi
9004
9005
9006 fi
9007
9008     ;;
9009   esac
9010
9011   if test "x$lt_cv_dlopen" != xno; then
9012     enable_dlopen=yes
9013   else
9014     enable_dlopen=no
9015   fi
9016
9017   case $lt_cv_dlopen in
9018   dlopen)
9019     save_CPPFLAGS="$CPPFLAGS"
9020     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9021
9022     save_LDFLAGS="$LDFLAGS"
9023     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9024
9025     save_LIBS="$LIBS"
9026     LIBS="$lt_cv_dlopen_libs $LIBS"
9027
9028     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9030 if test "${lt_cv_dlopen_self+set}" = set; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033           if test "$cross_compiling" = yes; then :
9034   lt_cv_dlopen_self=cross
9035 else
9036   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9037   lt_status=$lt_dlunknown
9038   cat > conftest.$ac_ext <<EOF
9039 #line 9039 "configure"
9040 #include "confdefs.h"
9041
9042 #if HAVE_DLFCN_H
9043 #include <dlfcn.h>
9044 #endif
9045
9046 #include <stdio.h>
9047
9048 #ifdef RTLD_GLOBAL
9049 #  define LT_DLGLOBAL           RTLD_GLOBAL
9050 #else
9051 #  ifdef DL_GLOBAL
9052 #    define LT_DLGLOBAL         DL_GLOBAL
9053 #  else
9054 #    define LT_DLGLOBAL         0
9055 #  endif
9056 #endif
9057
9058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9059    find out it does not work in some platform. */
9060 #ifndef LT_DLLAZY_OR_NOW
9061 #  ifdef RTLD_LAZY
9062 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9063 #  else
9064 #    ifdef DL_LAZY
9065 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9066 #    else
9067 #      ifdef RTLD_NOW
9068 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9069 #      else
9070 #        ifdef DL_NOW
9071 #          define LT_DLLAZY_OR_NOW      DL_NOW
9072 #        else
9073 #          define LT_DLLAZY_OR_NOW      0
9074 #        endif
9075 #      endif
9076 #    endif
9077 #  endif
9078 #endif
9079
9080 #ifdef __cplusplus
9081 extern "C" void exit (int);
9082 #endif
9083
9084 void fnord() { int i=42;}
9085 int main ()
9086 {
9087   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9088   int status = $lt_dlunknown;
9089
9090   if (self)
9091     {
9092       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9093       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9094       /* dlclose (self); */
9095     }
9096
9097     exit (status);
9098 }
9099 EOF
9100   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101   (eval $ac_link) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9105     (./conftest; exit; ) 2>/dev/null
9106     lt_status=$?
9107     case x$lt_status in
9108       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9109       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9110       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9111     esac
9112   else :
9113     # compilation failed
9114     lt_cv_dlopen_self=no
9115   fi
9116 fi
9117 rm -fr conftest*
9118
9119
9120 fi
9121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9123
9124     if test "x$lt_cv_dlopen_self" = xyes; then
9125       LDFLAGS="$LDFLAGS $link_static_flag"
9126       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9128 if test "${lt_cv_dlopen_self_static+set}" = set; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131           if test "$cross_compiling" = yes; then :
9132   lt_cv_dlopen_self_static=cross
9133 else
9134   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9135   lt_status=$lt_dlunknown
9136   cat > conftest.$ac_ext <<EOF
9137 #line 9137 "configure"
9138 #include "confdefs.h"
9139
9140 #if HAVE_DLFCN_H
9141 #include <dlfcn.h>
9142 #endif
9143
9144 #include <stdio.h>
9145
9146 #ifdef RTLD_GLOBAL
9147 #  define LT_DLGLOBAL           RTLD_GLOBAL
9148 #else
9149 #  ifdef DL_GLOBAL
9150 #    define LT_DLGLOBAL         DL_GLOBAL
9151 #  else
9152 #    define LT_DLGLOBAL         0
9153 #  endif
9154 #endif
9155
9156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9157    find out it does not work in some platform. */
9158 #ifndef LT_DLLAZY_OR_NOW
9159 #  ifdef RTLD_LAZY
9160 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9161 #  else
9162 #    ifdef DL_LAZY
9163 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9164 #    else
9165 #      ifdef RTLD_NOW
9166 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9167 #      else
9168 #        ifdef DL_NOW
9169 #          define LT_DLLAZY_OR_NOW      DL_NOW
9170 #        else
9171 #          define LT_DLLAZY_OR_NOW      0
9172 #        endif
9173 #      endif
9174 #    endif
9175 #  endif
9176 #endif
9177
9178 #ifdef __cplusplus
9179 extern "C" void exit (int);
9180 #endif
9181
9182 void fnord() { int i=42;}
9183 int main ()
9184 {
9185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9186   int status = $lt_dlunknown;
9187
9188   if (self)
9189     {
9190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9192       /* dlclose (self); */
9193     }
9194
9195     exit (status);
9196 }
9197 EOF
9198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199   (eval $ac_link) 2>&5
9200   ac_status=$?
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9203     (./conftest; exit; ) 2>/dev/null
9204     lt_status=$?
9205     case x$lt_status in
9206       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9207       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9208       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9209     esac
9210   else :
9211     # compilation failed
9212     lt_cv_dlopen_self_static=no
9213   fi
9214 fi
9215 rm -fr conftest*
9216
9217
9218 fi
9219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9221     fi
9222
9223     CPPFLAGS="$save_CPPFLAGS"
9224     LDFLAGS="$save_LDFLAGS"
9225     LIBS="$save_LIBS"
9226     ;;
9227   esac
9228
9229   case $lt_cv_dlopen_self in
9230   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9231   *) enable_dlopen_self=unknown ;;
9232   esac
9233
9234   case $lt_cv_dlopen_self_static in
9235   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9236   *) enable_dlopen_self_static=unknown ;;
9237   esac
9238 fi
9239
9240
9241 # Report which librarie types wil actually be built
9242 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9243 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9244 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9245 echo "${ECHO_T}$can_build_shared" >&6
9246
9247 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9248 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9249 test "$can_build_shared" = "no" && enable_shared=no
9250
9251 # On AIX, shared libraries and static libraries use the same namespace, and
9252 # are all built from PIC.
9253 case "$host_os" in
9254 aix3*)
9255   test "$enable_shared" = yes && enable_static=no
9256   if test -n "$RANLIB"; then
9257     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9258     postinstall_cmds='$RANLIB $lib'
9259   fi
9260   ;;
9261
9262 aix4* | aix5*)
9263   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9264     test "$enable_shared" = yes && enable_static=no
9265   fi
9266   ;;
9267   darwin* | rhapsody*)
9268   if test "$GCC" = yes; then
9269     archive_cmds_need_lc=no
9270     case "$host_os" in
9271     rhapsody* | darwin1.[012])
9272       allow_undefined_flag='-undefined suppress'
9273       ;;
9274     *) # Darwin 1.3 on
9275       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9276         allow_undefined_flag='-flat_namespace -undefined suppress'
9277       else
9278         case ${MACOSX_DEPLOYMENT_TARGET} in
9279           10.[012])
9280             allow_undefined_flag='-flat_namespace -undefined suppress'
9281             ;;
9282           10.*)
9283             allow_undefined_flag='-undefined dynamic_lookup'
9284             ;;
9285         esac
9286       fi
9287       ;;
9288     esac
9289     output_verbose_link_cmd='echo'
9290     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9291     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9292     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9293     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}'
9294     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}'
9295     hardcode_direct=no
9296     hardcode_automatic=yes
9297     hardcode_shlibpath_var=unsupported
9298     whole_archive_flag_spec='-all_load $convenience'
9299     link_all_deplibs=yes
9300   else
9301     ld_shlibs=no
9302   fi
9303     ;;
9304 esac
9305 echo "$as_me:$LINENO: result: $enable_shared" >&5
9306 echo "${ECHO_T}$enable_shared" >&6
9307
9308 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9309 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9310 # Make sure either enable_shared or enable_static is yes.
9311 test "$enable_shared" = yes || enable_static=yes
9312 echo "$as_me:$LINENO: result: $enable_static" >&5
9313 echo "${ECHO_T}$enable_static" >&6
9314
9315 # The else clause should only fire when bootstrapping the
9316 # libtool distribution, otherwise you forgot to ship ltmain.sh
9317 # with your package, and you will get complaints that there are
9318 # no rules to generate ltmain.sh.
9319 if test -f "$ltmain"; then
9320   # See if we are running on zsh, and set the options which allow our commands through
9321   # without removal of \ escapes.
9322   if test -n "${ZSH_VERSION+set}" ; then
9323     setopt NO_GLOB_SUBST
9324   fi
9325   # Now quote all the things that may contain metacharacters while being
9326   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9327   # variables and quote the copies for generation of the libtool script.
9328   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9329     SED SHELL STRIP \
9330     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9331     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9332     deplibs_check_method reload_flag reload_cmds need_locks \
9333     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9334     lt_cv_sys_global_symbol_to_c_name_address \
9335     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9336     old_postinstall_cmds old_postuninstall_cmds \
9337     compiler \
9338     CC \
9339     LD \
9340     lt_prog_compiler_wl \
9341     lt_prog_compiler_pic \
9342     lt_prog_compiler_static \
9343     lt_prog_compiler_no_builtin_flag \
9344     export_dynamic_flag_spec \
9345     thread_safe_flag_spec \
9346     whole_archive_flag_spec \
9347     enable_shared_with_static_runtimes \
9348     old_archive_cmds \
9349     old_archive_from_new_cmds \
9350     predep_objects \
9351     postdep_objects \
9352     predeps \
9353     postdeps \
9354     compiler_lib_search_path \
9355     archive_cmds \
9356     archive_expsym_cmds \
9357     postinstall_cmds \
9358     postuninstall_cmds \
9359     old_archive_from_expsyms_cmds \
9360     allow_undefined_flag \
9361     no_undefined_flag \
9362     export_symbols_cmds \
9363     hardcode_libdir_flag_spec \
9364     hardcode_libdir_flag_spec_ld \
9365     hardcode_libdir_separator \
9366     hardcode_automatic \
9367     module_cmds \
9368     module_expsym_cmds \
9369     lt_cv_prog_compiler_c_o \
9370     exclude_expsyms \
9371     include_expsyms; do
9372
9373     case $var in
9374     old_archive_cmds | \
9375     old_archive_from_new_cmds | \
9376     archive_cmds | \
9377     archive_expsym_cmds | \
9378     module_cmds | \
9379     module_expsym_cmds | \
9380     old_archive_from_expsyms_cmds | \
9381     export_symbols_cmds | \
9382     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9383     postinstall_cmds | postuninstall_cmds | \
9384     old_postinstall_cmds | old_postuninstall_cmds | \
9385     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9386       # Double-quote double-evaled strings.
9387       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9388       ;;
9389     *)
9390       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9391       ;;
9392     esac
9393   done
9394
9395   case $lt_echo in
9396   *'\$0 --fallback-echo"')
9397     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9398     ;;
9399   esac
9400
9401 cfgfile="${ofile}T"
9402   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9403   $rm -f "$cfgfile"
9404   { echo "$as_me:$LINENO: creating $ofile" >&5
9405 echo "$as_me: creating $ofile" >&6;}
9406
9407   cat <<__EOF__ >> "$cfgfile"
9408 #! $SHELL
9409
9410 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9411 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9413 #
9414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9415 # Free Software Foundation, Inc.
9416 #
9417 # This file is part of GNU Libtool:
9418 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9419 #
9420 # This program is free software; you can redistribute it and/or modify
9421 # it under the terms of the GNU General Public License as published by
9422 # the Free Software Foundation; either version 2 of the License, or
9423 # (at your option) any later version.
9424 #
9425 # This program is distributed in the hope that it will be useful, but
9426 # WITHOUT ANY WARRANTY; without even the implied warranty of
9427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9428 # General Public License for more details.
9429 #
9430 # You should have received a copy of the GNU General Public License
9431 # along with this program; if not, write to the Free Software
9432 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9433 #
9434 # As a special exception to the GNU General Public License, if you
9435 # distribute this file as part of a program that contains a
9436 # configuration script generated by Autoconf, you may include it under
9437 # the same distribution terms that you use for the rest of that program.
9438
9439 # A sed program that does not truncate output.
9440 SED=$lt_SED
9441
9442 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9443 Xsed="$SED -e s/^X//"
9444
9445 # The HP-UX ksh and POSIX shell print the target directory to stdout
9446 # if CDPATH is set.
9447 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9448
9449 # The names of the tagged configurations supported by this script.
9450 available_tags=
9451
9452 # ### BEGIN LIBTOOL CONFIG
9453
9454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9455
9456 # Shell to use when invoking shell scripts.
9457 SHELL=$lt_SHELL
9458
9459 # Whether or not to build shared libraries.
9460 build_libtool_libs=$enable_shared
9461
9462 # Whether or not to build static libraries.
9463 build_old_libs=$enable_static
9464
9465 # Whether or not to add -lc for building shared libraries.
9466 build_libtool_need_lc=$archive_cmds_need_lc
9467
9468 # Whether or not to disallow shared libs when runtime libs are static
9469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9470
9471 # Whether or not to optimize for fast installation.
9472 fast_install=$enable_fast_install
9473
9474 # The host system.
9475 host_alias=$host_alias
9476 host=$host
9477
9478 # An echo program that does not interpret backslashes.
9479 echo=$lt_echo
9480
9481 # The archiver.
9482 AR=$lt_AR
9483 AR_FLAGS=$lt_AR_FLAGS
9484
9485 # A C compiler.
9486 LTCC=$lt_LTCC
9487
9488 # A language-specific compiler.
9489 CC=$lt_compiler
9490
9491 # Is the compiler the GNU C compiler?
9492 with_gcc=$GCC
9493
9494 # An ERE matcher.
9495 EGREP=$lt_EGREP
9496
9497 # The linker used to build libraries.
9498 LD=$lt_LD
9499
9500 # Whether we need hard or soft links.
9501 LN_S=$lt_LN_S
9502
9503 # A BSD-compatible nm program.
9504 NM=$lt_NM
9505
9506 # A symbol stripping program
9507 STRIP=$lt_STRIP
9508
9509 # Used to examine libraries when file_magic_cmd begins "file"
9510 MAGIC_CMD=$MAGIC_CMD
9511
9512 # Used on cygwin: DLL creation program.
9513 DLLTOOL="$DLLTOOL"
9514
9515 # Used on cygwin: object dumper.
9516 OBJDUMP="$OBJDUMP"
9517
9518 # Used on cygwin: assembler.
9519 AS="$AS"
9520
9521 # The name of the directory that contains temporary libtool files.
9522 objdir=$objdir
9523
9524 # How to create reloadable object files.
9525 reload_flag=$lt_reload_flag
9526 reload_cmds=$lt_reload_cmds
9527
9528 # How to pass a linker flag through the compiler.
9529 wl=$lt_lt_prog_compiler_wl
9530
9531 # Object file suffix (normally "o").
9532 objext="$ac_objext"
9533
9534 # Old archive suffix (normally "a").
9535 libext="$libext"
9536
9537 # Shared library suffix (normally ".so").
9538 shrext_cmds='$shrext_cmds'
9539
9540 # Executable file suffix (normally "").
9541 exeext="$exeext"
9542
9543 # Additional compiler flags for building library objects.
9544 pic_flag=$lt_lt_prog_compiler_pic
9545 pic_mode=$pic_mode
9546
9547 # What is the maximum length of a command?
9548 max_cmd_len=$lt_cv_sys_max_cmd_len
9549
9550 # Does compiler simultaneously support -c and -o options?
9551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9552
9553 # Must we lock files when doing compilation ?
9554 need_locks=$lt_need_locks
9555
9556 # Do we need the lib prefix for modules?
9557 need_lib_prefix=$need_lib_prefix
9558
9559 # Do we need a version for libraries?
9560 need_version=$need_version
9561
9562 # Whether dlopen is supported.
9563 dlopen_support=$enable_dlopen
9564
9565 # Whether dlopen of programs is supported.
9566 dlopen_self=$enable_dlopen_self
9567
9568 # Whether dlopen of statically linked programs is supported.
9569 dlopen_self_static=$enable_dlopen_self_static
9570
9571 # Compiler flag to prevent dynamic linking.
9572 link_static_flag=$lt_lt_prog_compiler_static
9573
9574 # Compiler flag to turn off builtin functions.
9575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9576
9577 # Compiler flag to allow reflexive dlopens.
9578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9579
9580 # Compiler flag to generate shared objects directly from archives.
9581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9582
9583 # Compiler flag to generate thread-safe objects.
9584 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9585
9586 # Library versioning type.
9587 version_type=$version_type
9588
9589 # Format of library name prefix.
9590 libname_spec=$lt_libname_spec
9591
9592 # List of archive names.  First name is the real one, the rest are links.
9593 # The last name is the one that the linker finds with -lNAME.
9594 library_names_spec=$lt_library_names_spec
9595
9596 # The coded name of the library, if different from the real name.
9597 soname_spec=$lt_soname_spec
9598
9599 # Commands used to build and install an old-style archive.
9600 RANLIB=$lt_RANLIB
9601 old_archive_cmds=$lt_old_archive_cmds
9602 old_postinstall_cmds=$lt_old_postinstall_cmds
9603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9604
9605 # Create an old-style archive from a shared archive.
9606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9607
9608 # Create a temporary old-style archive to link instead of a shared archive.
9609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9610
9611 # Commands used to build and install a shared archive.
9612 archive_cmds=$lt_archive_cmds
9613 archive_expsym_cmds=$lt_archive_expsym_cmds
9614 postinstall_cmds=$lt_postinstall_cmds
9615 postuninstall_cmds=$lt_postuninstall_cmds
9616
9617 # Commands used to build a loadable module (assumed same as above if empty)
9618 module_cmds=$lt_module_cmds
9619 module_expsym_cmds=$lt_module_expsym_cmds
9620
9621 # Commands to strip libraries.
9622 old_striplib=$lt_old_striplib
9623 striplib=$lt_striplib
9624
9625 # Dependencies to place before the objects being linked to create a
9626 # shared library.
9627 predep_objects=$lt_predep_objects
9628
9629 # Dependencies to place after the objects being linked to create a
9630 # shared library.
9631 postdep_objects=$lt_postdep_objects
9632
9633 # Dependencies to place before the objects being linked to create a
9634 # shared library.
9635 predeps=$lt_predeps
9636
9637 # Dependencies to place after the objects being linked to create a
9638 # shared library.
9639 postdeps=$lt_postdeps
9640
9641 # The library search path used internally by the compiler when linking
9642 # a shared library.
9643 compiler_lib_search_path=$lt_compiler_lib_search_path
9644
9645 # Method to check whether dependent libraries are shared objects.
9646 deplibs_check_method=$lt_deplibs_check_method
9647
9648 # Command to use when deplibs_check_method == file_magic.
9649 file_magic_cmd=$lt_file_magic_cmd
9650
9651 # Flag that allows shared libraries with undefined symbols to be built.
9652 allow_undefined_flag=$lt_allow_undefined_flag
9653
9654 # Flag that forces no undefined symbols.
9655 no_undefined_flag=$lt_no_undefined_flag
9656
9657 # Commands used to finish a libtool library installation in a directory.
9658 finish_cmds=$lt_finish_cmds
9659
9660 # Same as above, but a single script fragment to be evaled but not shown.
9661 finish_eval=$lt_finish_eval
9662
9663 # Take the output of nm and produce a listing of raw symbols and C names.
9664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9665
9666 # Transform the output of nm in a proper C declaration
9667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9668
9669 # Transform the output of nm in a C name address pair
9670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9671
9672 # This is the shared library runtime path variable.
9673 runpath_var=$runpath_var
9674
9675 # This is the shared library path variable.
9676 shlibpath_var=$shlibpath_var
9677
9678 # Is shlibpath searched before the hard-coded library search path?
9679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9680
9681 # How to hardcode a shared library path into an executable.
9682 hardcode_action=$hardcode_action
9683
9684 # Whether we should hardcode library paths into libraries.
9685 hardcode_into_libs=$hardcode_into_libs
9686
9687 # Flag to hardcode \$libdir into a binary during linking.
9688 # This must work even if \$libdir does not exist.
9689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9690
9691 # If ld is used when linking, flag to hardcode \$libdir into
9692 # a binary during linking. This must work even if \$libdir does
9693 # not exist.
9694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9695
9696 # Whether we need a single -rpath flag with a separated argument.
9697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9698
9699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9700 # resulting binary.
9701 hardcode_direct=$hardcode_direct
9702
9703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9704 # resulting binary.
9705 hardcode_minus_L=$hardcode_minus_L
9706
9707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9708 # the resulting binary.
9709 hardcode_shlibpath_var=$hardcode_shlibpath_var
9710
9711 # Set to yes if building a shared library automatically hardcodes DIR into the library
9712 # and all subsequent libraries and executables linked against it.
9713 hardcode_automatic=$hardcode_automatic
9714
9715 # Variables whose values should be saved in libtool wrapper scripts and
9716 # restored at relink time.
9717 variables_saved_for_relink="$variables_saved_for_relink"
9718
9719 # Whether libtool must link a program against all its dependency libraries.
9720 link_all_deplibs=$link_all_deplibs
9721
9722 # Compile-time system search path for libraries
9723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9724
9725 # Run-time system search path for libraries
9726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9727
9728 # Fix the shell variable \$srcfile for the compiler.
9729 fix_srcfile_path="$fix_srcfile_path"
9730
9731 # Set to yes if exported symbols are required.
9732 always_export_symbols=$always_export_symbols
9733
9734 # The commands to list exported symbols.
9735 export_symbols_cmds=$lt_export_symbols_cmds
9736
9737 # The commands to extract the exported symbol list from a shared archive.
9738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9739
9740 # Symbols that should not be listed in the preloaded symbols.
9741 exclude_expsyms=$lt_exclude_expsyms
9742
9743 # Symbols that must always be exported.
9744 include_expsyms=$lt_include_expsyms
9745
9746 # ### END LIBTOOL CONFIG
9747
9748 __EOF__
9749
9750
9751   case $host_os in
9752   aix3*)
9753     cat <<\EOF >> "$cfgfile"
9754
9755 # AIX sometimes has problems with the GCC collect2 program.  For some
9756 # reason, if we set the COLLECT_NAMES environment variable, the problems
9757 # vanish in a puff of smoke.
9758 if test "X${COLLECT_NAMES+set}" != Xset; then
9759   COLLECT_NAMES=
9760   export COLLECT_NAMES
9761 fi
9762 EOF
9763     ;;
9764   esac
9765
9766   # We use sed instead of cat because bash on DJGPP gets confused if
9767   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9768   # text mode, it properly converts lines to CR/LF.  This bash problem
9769   # is reportedly fixed, but why not run on old versions too?
9770   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9771
9772   mv -f "$cfgfile" "$ofile" || \
9773     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9774   chmod +x "$ofile"
9775
9776 else
9777   # If there is no Makefile yet, we rely on a make rule to execute
9778   # `config.status --recheck' to rerun these tests and create the
9779   # libtool script then.
9780   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9781   if test -f "$ltmain_in"; then
9782     test -f Makefile && make "$ltmain"
9783   fi
9784 fi
9785
9786
9787 ac_ext=c
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9792
9793 CC="$lt_save_CC"
9794
9795
9796 # Check whether --with-tags or --without-tags was given.
9797 if test "${with_tags+set}" = set; then
9798   withval="$with_tags"
9799   tagnames="$withval"
9800 fi;
9801
9802 if test -f "$ltmain" && test -n "$tagnames"; then
9803   if test ! -f "${ofile}"; then
9804     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9805 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9806   fi
9807
9808   if test -z "$LTCC"; then
9809     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9810     if test -z "$LTCC"; then
9811       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9812 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9813     else
9814       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9815 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9816     fi
9817   fi
9818
9819   # Extract list of available tagged configurations in $ofile.
9820   # Note that this assumes the entire list is on one line.
9821   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9822
9823   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9824   for tagname in $tagnames; do
9825     IFS="$lt_save_ifs"
9826     # Check whether tagname contains only valid characters
9827     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9828     "") ;;
9829     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9830 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9831    { (exit 1); exit 1; }; }
9832         ;;
9833     esac
9834
9835     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9836     then
9837       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9838 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9839    { (exit 1); exit 1; }; }
9840     fi
9841
9842     # Update the list of available tags.
9843     if test -n "$tagname"; then
9844       echo appending configuration tag \"$tagname\" to $ofile
9845
9846       case $tagname in
9847       CXX)
9848         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9849           ac_ext=cc
9850 ac_cpp='$CXXCPP $CPPFLAGS'
9851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9854
9855
9856
9857
9858 archive_cmds_need_lc_CXX=no
9859 allow_undefined_flag_CXX=
9860 always_export_symbols_CXX=no
9861 archive_expsym_cmds_CXX=
9862 export_dynamic_flag_spec_CXX=
9863 hardcode_direct_CXX=no
9864 hardcode_libdir_flag_spec_CXX=
9865 hardcode_libdir_flag_spec_ld_CXX=
9866 hardcode_libdir_separator_CXX=
9867 hardcode_minus_L_CXX=no
9868 hardcode_automatic_CXX=no
9869 module_cmds_CXX=
9870 module_expsym_cmds_CXX=
9871 link_all_deplibs_CXX=unknown
9872 old_archive_cmds_CXX=$old_archive_cmds
9873 no_undefined_flag_CXX=
9874 whole_archive_flag_spec_CXX=
9875 enable_shared_with_static_runtimes_CXX=no
9876
9877 # Dependencies to place before and after the object being linked:
9878 predep_objects_CXX=
9879 postdep_objects_CXX=
9880 predeps_CXX=
9881 postdeps_CXX=
9882 compiler_lib_search_path_CXX=
9883
9884 # Source file extension for C++ test sources.
9885 ac_ext=cc
9886
9887 # Object file extension for compiled C++ test sources.
9888 objext=o
9889 objext_CXX=$objext
9890
9891 # Code to be used in simple compile tests
9892 lt_simple_compile_test_code="int some_variable = 0;\n"
9893
9894 # Code to be used in simple link tests
9895 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9896
9897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9898
9899 # If no C compiler was specified, use CC.
9900 LTCC=${LTCC-"$CC"}
9901
9902 # Allow CC to be a program name with arguments.
9903 compiler=$CC
9904
9905
9906 # Allow CC to be a program name with arguments.
9907 lt_save_CC=$CC
9908 lt_save_LD=$LD
9909 lt_save_GCC=$GCC
9910 GCC=$GXX
9911 lt_save_with_gnu_ld=$with_gnu_ld
9912 lt_save_path_LD=$lt_cv_path_LD
9913 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9914   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9915 else
9916   unset lt_cv_prog_gnu_ld
9917 fi
9918 if test -n "${lt_cv_path_LDCXX+set}"; then
9919   lt_cv_path_LD=$lt_cv_path_LDCXX
9920 else
9921   unset lt_cv_path_LD
9922 fi
9923 test -z "${LDCXX+set}" || LD=$LDCXX
9924 CC=${CXX-"c++"}
9925 compiler=$CC
9926 compiler_CXX=$CC
9927 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9928
9929 # We don't want -fno-exception wen compiling C++ code, so set the
9930 # no_builtin_flag separately
9931 if test "$GXX" = yes; then
9932   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9933 else
9934   lt_prog_compiler_no_builtin_flag_CXX=
9935 fi
9936
9937 if test "$GXX" = yes; then
9938   # Set up default GNU C++ configuration
9939
9940
9941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9942 if test "${with_gnu_ld+set}" = set; then
9943   withval="$with_gnu_ld"
9944   test "$withval" = no || with_gnu_ld=yes
9945 else
9946   with_gnu_ld=no
9947 fi;
9948 ac_prog=ld
9949 if test "$GCC" = yes; then
9950   # Check if gcc -print-prog-name=ld gives a path.
9951   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9952 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9953   case $host in
9954   *-*-mingw*)
9955     # gcc leaves a trailing carriage return which upsets mingw
9956     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9957   *)
9958     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9959   esac
9960   case $ac_prog in
9961     # Accept absolute paths.
9962     [\\/]* | ?:[\\/]*)
9963       re_direlt='/[^/][^/]*/\.\./'
9964       # Canonicalize the pathname of ld
9965       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9966       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9967         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9968       done
9969       test -z "$LD" && LD="$ac_prog"
9970       ;;
9971   "")
9972     # If it fails, then pretend we aren't using GCC.
9973     ac_prog=ld
9974     ;;
9975   *)
9976     # If it is relative, then search for the first ld in PATH.
9977     with_gnu_ld=unknown
9978     ;;
9979   esac
9980 elif test "$with_gnu_ld" = yes; then
9981   echo "$as_me:$LINENO: checking for GNU ld" >&5
9982 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9983 else
9984   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9985 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9986 fi
9987 if test "${lt_cv_path_LD+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   if test -z "$LD"; then
9991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9992   for ac_dir in $PATH; do
9993     IFS="$lt_save_ifs"
9994     test -z "$ac_dir" && ac_dir=.
9995     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9996       lt_cv_path_LD="$ac_dir/$ac_prog"
9997       # Check to see if the program is GNU ld.  I'd rather use --version,
9998       # but apparently some GNU ld's only accept -v.
9999       # Break only if it was the GNU/non-GNU ld that we prefer.
10000       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10001       *GNU* | *'with BFD'*)
10002         test "$with_gnu_ld" != no && break
10003         ;;
10004       *)
10005         test "$with_gnu_ld" != yes && break
10006         ;;
10007       esac
10008     fi
10009   done
10010   IFS="$lt_save_ifs"
10011 else
10012   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10013 fi
10014 fi
10015
10016 LD="$lt_cv_path_LD"
10017 if test -n "$LD"; then
10018   echo "$as_me:$LINENO: result: $LD" >&5
10019 echo "${ECHO_T}$LD" >&6
10020 else
10021   echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6
10023 fi
10024 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10025 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10026    { (exit 1); exit 1; }; }
10027 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10028 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10029 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10033 case `$LD -v 2>&1 </dev/null` in
10034 *GNU* | *'with BFD'*)
10035   lt_cv_prog_gnu_ld=yes
10036   ;;
10037 *)
10038   lt_cv_prog_gnu_ld=no
10039   ;;
10040 esac
10041 fi
10042 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10043 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10044 with_gnu_ld=$lt_cv_prog_gnu_ld
10045
10046
10047
10048   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10049   # archiving commands below assume that GNU ld is being used.
10050   if test "$with_gnu_ld" = yes; then
10051     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052     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'
10053
10054     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10055     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10056
10057     # If archive_cmds runs LD, not CC, wlarc should be empty
10058     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10059     #     investigate it a little bit more. (MM)
10060     wlarc='${wl}'
10061
10062     # ancient GNU ld didn't support --whole-archive et. al.
10063     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10064         grep 'no-whole-archive' > /dev/null; then
10065       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10066     else
10067       whole_archive_flag_spec_CXX=
10068     fi
10069   else
10070     with_gnu_ld=no
10071     wlarc=
10072
10073     # A generic and very simple default shared library creation
10074     # command for GNU C++ for the case where it uses the native
10075     # linker, instead of GNU ld.  If possible, this setting should
10076     # overridden to take advantage of the native linker features on
10077     # the platform it is being used on.
10078     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10079   fi
10080
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   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10085
10086 else
10087   GXX=no
10088   with_gnu_ld=no
10089   wlarc=
10090 fi
10091
10092 # PORTME: fill in a description of your system's C++ link characteristics
10093 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10094 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10095 ld_shlibs_CXX=yes
10096 case $host_os in
10097   aix3*)
10098     # FIXME: insert proper C++ library support
10099     ld_shlibs_CXX=no
10100     ;;
10101   aix4* | aix5*)
10102     if test "$host_cpu" = ia64; then
10103       # On IA64, the linker does run time linking by default, so we don't
10104       # have to do anything special.
10105       aix_use_runtimelinking=no
10106       exp_sym_flag='-Bexport'
10107       no_entry_flag=""
10108     else
10109       aix_use_runtimelinking=no
10110
10111       # Test if we are trying to use run time linking or normal
10112       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10113       # need to do runtime linking.
10114       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10115         for ld_flag in $LDFLAGS; do
10116           case $ld_flag in
10117           *-brtl*)
10118             aix_use_runtimelinking=yes
10119             break
10120             ;;
10121           esac
10122         done
10123       esac
10124
10125       exp_sym_flag='-bexport'
10126       no_entry_flag='-bnoentry'
10127     fi
10128
10129     # When large executables or shared objects are built, AIX ld can
10130     # have problems creating the table of contents.  If linking a library
10131     # or program results in "error TOC overflow" add -mminimal-toc to
10132     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10133     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10134
10135     archive_cmds_CXX=''
10136     hardcode_direct_CXX=yes
10137     hardcode_libdir_separator_CXX=':'
10138     link_all_deplibs_CXX=yes
10139
10140     if test "$GXX" = yes; then
10141       case $host_os in aix4.012|aix4.012.*)
10142       # We only want to do this on AIX 4.2 and lower, the check
10143       # below for broken collect2 doesn't work under 4.3+
10144         collect2name=`${CC} -print-prog-name=collect2`
10145         if test -f "$collect2name" && \
10146            strings "$collect2name" | grep resolve_lib_name >/dev/null
10147         then
10148           # We have reworked collect2
10149           hardcode_direct_CXX=yes
10150         else
10151           # We have old collect2
10152           hardcode_direct_CXX=unsupported
10153           # It fails to find uninstalled libraries when the uninstalled
10154           # path is not listed in the libpath.  Setting hardcode_minus_L
10155           # to unsupported forces relinking
10156           hardcode_minus_L_CXX=yes
10157           hardcode_libdir_flag_spec_CXX='-L$libdir'
10158           hardcode_libdir_separator_CXX=
10159         fi
10160       esac
10161       shared_flag='-shared'
10162     else
10163       # not using gcc
10164       if test "$host_cpu" = ia64; then
10165         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10166         # chokes on -Wl,-G. The following line is correct:
10167         shared_flag='-G'
10168       else
10169         if test "$aix_use_runtimelinking" = yes; then
10170           shared_flag='${wl}-G'
10171         else
10172           shared_flag='${wl}-bM:SRE'
10173         fi
10174       fi
10175     fi
10176
10177     # It seems that -bexpall does not export symbols beginning with
10178     # underscore (_), so it is better to generate a list of symbols to export.
10179     always_export_symbols_CXX=yes
10180     if test "$aix_use_runtimelinking" = yes; then
10181       # Warning - without using the other runtime loading flags (-brtl),
10182       # -berok will link without error, but may produce a broken library.
10183       allow_undefined_flag_CXX='-berok'
10184       # Determine the default libpath from the value encoded in an empty executable.
10185       cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h.  */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h.  */
10191
10192 int
10193 main ()
10194 {
10195
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202   (eval $ac_link) 2>conftest.er1
10203   ac_status=$?
10204   grep -v '^ *+' conftest.er1 >conftest.err
10205   rm -f conftest.er1
10206   cat conftest.err >&5
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221
10222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10223 }'`
10224 # Check for a 64-bit object if we didn't find anything.
10225 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; }
10226 }'`; fi
10227 else
10228   echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 fi
10232 rm -f conftest.err conftest.$ac_objext \
10233       conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10235
10236       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10237
10238       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"
10239      else
10240       if test "$host_cpu" = ia64; then
10241         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10242         allow_undefined_flag_CXX="-z nodefs"
10243         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"
10244       else
10245         # Determine the default libpath from the value encoded in an empty executable.
10246         cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252
10253 int
10254 main ()
10255 {
10256
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263   (eval $ac_link) 2>conftest.er1
10264   ac_status=$?
10265   grep -v '^ *+' conftest.er1 >conftest.err
10266   rm -f conftest.er1
10267   cat conftest.err >&5
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } &&
10270          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; } &&
10276          { ac_try='test -s conftest$ac_exeext'
10277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282
10283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10284 }'`
10285 # Check for a 64-bit object if we didn't find anything.
10286 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; }
10287 }'`; fi
10288 else
10289   echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 fi
10293 rm -f conftest.err conftest.$ac_objext \
10294       conftest$ac_exeext conftest.$ac_ext
10295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10296
10297         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10298         # Warning - without using the other run time loading flags,
10299         # -berok will link without error, but may produce a broken library.
10300         no_undefined_flag_CXX=' ${wl}-bernotok'
10301         allow_undefined_flag_CXX=' ${wl}-berok'
10302         # -bexpall does not export symbols beginning with underscore (_)
10303         always_export_symbols_CXX=yes
10304         # Exported symbols can be pulled into shared objects from archives
10305         whole_archive_flag_spec_CXX=' '
10306         archive_cmds_need_lc_CXX=yes
10307         # This is similar to how AIX traditionally builds it's shared libraries.
10308         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'
10309       fi
10310     fi
10311     ;;
10312   chorus*)
10313     case $cc_basename in
10314       *)
10315         # FIXME: insert proper C++ library support
10316         ld_shlibs_CXX=no
10317         ;;
10318     esac
10319     ;;
10320
10321   cygwin* | mingw* | pw32*)
10322     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10323     # as there is no search path for DLLs.
10324     hardcode_libdir_flag_spec_CXX='-L$libdir'
10325     allow_undefined_flag_CXX=unsupported
10326     always_export_symbols_CXX=no
10327     enable_shared_with_static_runtimes_CXX=yes
10328
10329     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10330       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'
10331       # If the export-symbols file already is a .def file (1st line
10332       # is EXPORTS), use it as is; otherwise, prepend...
10333       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10334         cp $export_symbols $output_objdir/$soname.def;
10335       else
10336         echo EXPORTS > $output_objdir/$soname.def;
10337         cat $export_symbols >> $output_objdir/$soname.def;
10338       fi~
10339       $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'
10340     else
10341       ld_shlibs_CXX=no
10342     fi
10343   ;;
10344
10345   darwin* | rhapsody*)
10346   if test "$GXX" = yes; then
10347     archive_cmds_need_lc_CXX=no
10348     case "$host_os" in
10349     rhapsody* | darwin1.[012])
10350       allow_undefined_flag_CXX='-undefined suppress'
10351       ;;
10352     *) # Darwin 1.3 on
10353       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10354         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10355       else
10356         case ${MACOSX_DEPLOYMENT_TARGET} in
10357           10.[012])
10358             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10359             ;;
10360           10.*)
10361             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10362             ;;
10363         esac
10364       fi
10365       ;;
10366     esac
10367     lt_int_apple_cc_single_mod=no
10368     output_verbose_link_cmd='echo'
10369     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10370       lt_int_apple_cc_single_mod=yes
10371     fi
10372     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10373       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10374     else
10375       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'
10376     fi
10377     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10378
10379     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10380     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10381       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}'
10382     else
10383       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}'
10384     fi
10385     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}'
10386     hardcode_direct_CXX=no
10387     hardcode_automatic_CXX=yes
10388     hardcode_shlibpath_var_CXX=unsupported
10389     whole_archive_flag_spec_CXX='-all_load $convenience'
10390     link_all_deplibs_CXX=yes
10391   else
10392     ld_shlibs_CXX=no
10393   fi
10394     ;;
10395
10396   dgux*)
10397     case $cc_basename in
10398       ec++)
10399         # FIXME: insert proper C++ library support
10400         ld_shlibs_CXX=no
10401         ;;
10402       ghcx)
10403         # Green Hills C++ Compiler
10404         # FIXME: insert proper C++ library support
10405         ld_shlibs_CXX=no
10406         ;;
10407       *)
10408         # FIXME: insert proper C++ library support
10409         ld_shlibs_CXX=no
10410         ;;
10411     esac
10412     ;;
10413   freebsd12*)
10414     # C++ shared libraries reported to be fairly broken before switch to ELF
10415     ld_shlibs_CXX=no
10416     ;;
10417   freebsd-elf*)
10418     archive_cmds_need_lc_CXX=no
10419     ;;
10420   freebsd* | kfreebsd*-gnu)
10421     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10422     # conventions
10423     ld_shlibs_CXX=yes
10424     ;;
10425   gnu*)
10426     ;;
10427   hpux9*)
10428     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10429     hardcode_libdir_separator_CXX=:
10430     export_dynamic_flag_spec_CXX='${wl}-E'
10431     hardcode_direct_CXX=yes
10432     hardcode_minus_L_CXX=yes # Not in the search PATH,
10433                                 # but as the default
10434                                 # location of the library.
10435
10436     case $cc_basename in
10437     CC)
10438       # FIXME: insert proper C++ library support
10439       ld_shlibs_CXX=no
10440       ;;
10441     aCC)
10442       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'
10443       # Commands to make compiler produce verbose output that lists
10444       # what "hidden" libraries, object files and flags are used when
10445       # linking a shared library.
10446       #
10447       # There doesn't appear to be a way to prevent this compiler from
10448       # explicitly linking system object files so we need to strip them
10449       # from the output so that they don't get included in the library
10450       # dependencies.
10451       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'
10452       ;;
10453     *)
10454       if test "$GXX" = yes; then
10455         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'
10456       else
10457         # FIXME: insert proper C++ library support
10458         ld_shlibs_CXX=no
10459       fi
10460       ;;
10461     esac
10462     ;;
10463   hpux10*|hpux11*)
10464     if test $with_gnu_ld = no; then
10465       case "$host_cpu" in
10466       hppa*64*)
10467         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10468         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10469         hardcode_libdir_separator_CXX=:
10470         ;;
10471       ia64*)
10472         hardcode_libdir_flag_spec_CXX='-L$libdir'
10473         ;;
10474       *)
10475         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10476         hardcode_libdir_separator_CXX=:
10477         export_dynamic_flag_spec_CXX='${wl}-E'
10478         ;;
10479       esac
10480     fi
10481     case "$host_cpu" in
10482     hppa*64*)
10483       hardcode_direct_CXX=no
10484       hardcode_shlibpath_var_CXX=no
10485       ;;
10486     ia64*)
10487       hardcode_direct_CXX=no
10488       hardcode_shlibpath_var_CXX=no
10489       hardcode_minus_L_CXX=yes # Not in the search PATH,
10490                                               # but as the default
10491                                               # location of the library.
10492       ;;
10493     *)
10494       hardcode_direct_CXX=yes
10495       hardcode_minus_L_CXX=yes # Not in the search PATH,
10496                                               # but as the default
10497                                               # location of the library.
10498       ;;
10499     esac
10500
10501     case $cc_basename in
10502       CC)
10503         # FIXME: insert proper C++ library support
10504         ld_shlibs_CXX=no
10505         ;;
10506       aCC)
10507         case "$host_cpu" in
10508         hppa*64*|ia64*)
10509           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10510           ;;
10511         *)
10512           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10513           ;;
10514         esac
10515         # Commands to make compiler produce verbose output that lists
10516         # what "hidden" libraries, object files and flags are used when
10517         # linking a shared library.
10518         #
10519         # There doesn't appear to be a way to prevent this compiler from
10520         # explicitly linking system object files so we need to strip them
10521         # from the output so that they don't get included in the library
10522         # dependencies.
10523         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'
10524         ;;
10525       *)
10526         if test "$GXX" = yes; then
10527           if test $with_gnu_ld = no; then
10528             case "$host_cpu" in
10529             ia64*|hppa*64*)
10530               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10531               ;;
10532             *)
10533               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'
10534               ;;
10535             esac
10536           fi
10537         else
10538           # FIXME: insert proper C++ library support
10539           ld_shlibs_CXX=no
10540         fi
10541         ;;
10542     esac
10543     ;;
10544   irix5* | irix6*)
10545     case $cc_basename in
10546       CC)
10547         # SGI C++
10548         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'
10549
10550         # Archives containing C++ object files must be created using
10551         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10552         # necessary to make sure instantiated templates are included
10553         # in the archive.
10554         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10555         ;;
10556       *)
10557         if test "$GXX" = yes; then
10558           if test "$with_gnu_ld" = no; then
10559             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'
10560           else
10561             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'
10562           fi
10563         fi
10564         link_all_deplibs_CXX=yes
10565         ;;
10566     esac
10567     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10568     hardcode_libdir_separator_CXX=:
10569     ;;
10570   linux*)
10571     case $cc_basename in
10572       KCC)
10573         # Kuck and Associates, Inc. (KAI) C++ Compiler
10574
10575         # KCC will only create a shared library if the output file
10576         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10577         # to its proper name (with version) after linking.
10578         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'
10579         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'
10580         # Commands to make compiler produce verbose output that lists
10581         # what "hidden" libraries, object files and flags are used when
10582         # linking a shared library.
10583         #
10584         # There doesn't appear to be a way to prevent this compiler from
10585         # explicitly linking system object files so we need to strip them
10586         # from the output so that they don't get included in the library
10587         # dependencies.
10588         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'
10589
10590         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10591         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10592
10593         # Archives containing C++ object files must be created using
10594         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10595         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10596         ;;
10597       icpc)
10598         # Intel C++
10599         with_gnu_ld=yes
10600         archive_cmds_need_lc_CXX=no
10601         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602         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'
10603         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10604         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10605         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10606         ;;
10607       cxx)
10608         # Compaq C++
10609         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610         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'
10611
10612         runpath_var=LD_RUN_PATH
10613         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10614         hardcode_libdir_separator_CXX=:
10615
10616         # Commands to make compiler produce verbose output that lists
10617         # what "hidden" libraries, object files and flags are used when
10618         # linking a shared library.
10619         #
10620         # There doesn't appear to be a way to prevent this compiler from
10621         # explicitly linking system object files so we need to strip them
10622         # from the output so that they don't get included in the library
10623         # dependencies.
10624         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'
10625         ;;
10626     esac
10627     ;;
10628   lynxos*)
10629     # FIXME: insert proper C++ library support
10630     ld_shlibs_CXX=no
10631     ;;
10632   m88k*)
10633     # FIXME: insert proper C++ library support
10634     ld_shlibs_CXX=no
10635     ;;
10636   mvs*)
10637     case $cc_basename in
10638       cxx)
10639         # FIXME: insert proper C++ library support
10640         ld_shlibs_CXX=no
10641         ;;
10642       *)
10643         # FIXME: insert proper C++ library support
10644         ld_shlibs_CXX=no
10645         ;;
10646     esac
10647     ;;
10648   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10649     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10650       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10651       wlarc=
10652       hardcode_libdir_flag_spec_CXX='-R$libdir'
10653       hardcode_direct_CXX=yes
10654       hardcode_shlibpath_var_CXX=no
10655     fi
10656     # Workaround some broken pre-1.5 toolchains
10657     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10658     ;;
10659   osf3*)
10660     case $cc_basename in
10661       KCC)
10662         # Kuck and Associates, Inc. (KAI) C++ Compiler
10663
10664         # KCC will only create a shared library if the output file
10665         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10666         # to its proper name (with version) after linking.
10667         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'
10668
10669         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10670         hardcode_libdir_separator_CXX=:
10671
10672         # Archives containing C++ object files must be created using
10673         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10674         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10675
10676         ;;
10677       RCC)
10678         # Rational C++ 2.4.1
10679         # FIXME: insert proper C++ library support
10680         ld_shlibs_CXX=no
10681         ;;
10682       cxx)
10683         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10684         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'
10685
10686         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10687         hardcode_libdir_separator_CXX=:
10688
10689         # Commands to make compiler produce verbose output that lists
10690         # what "hidden" libraries, object files and flags are used when
10691         # linking a shared library.
10692         #
10693         # There doesn't appear to be a way to prevent this compiler from
10694         # explicitly linking system object files so we need to strip them
10695         # from the output so that they don't get included in the library
10696         # dependencies.
10697         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'
10698         ;;
10699       *)
10700         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10701           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10702           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'
10703
10704           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10705           hardcode_libdir_separator_CXX=:
10706
10707           # Commands to make compiler produce verbose output that lists
10708           # what "hidden" libraries, object files and flags are used when
10709           # linking a shared library.
10710           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10711
10712         else
10713           # FIXME: insert proper C++ library support
10714           ld_shlibs_CXX=no
10715         fi
10716         ;;
10717     esac
10718     ;;
10719   osf4* | osf5*)
10720     case $cc_basename in
10721       KCC)
10722         # Kuck and Associates, Inc. (KAI) C++ Compiler
10723
10724         # KCC will only create a shared library if the output file
10725         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10726         # to its proper name (with version) after linking.
10727         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'
10728
10729         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10730         hardcode_libdir_separator_CXX=:
10731
10732         # Archives containing C++ object files must be created using
10733         # the KAI C++ compiler.
10734         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10735         ;;
10736       RCC)
10737         # Rational C++ 2.4.1
10738         # FIXME: insert proper C++ library support
10739         ld_shlibs_CXX=no
10740         ;;
10741       cxx)
10742         allow_undefined_flag_CXX=' -expect_unresolved \*'
10743         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'
10744         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10745           echo "-hidden">> $lib.exp~
10746           $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~
10747           $rm $lib.exp'
10748
10749         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10750         hardcode_libdir_separator_CXX=:
10751
10752         # Commands to make compiler produce verbose output that lists
10753         # what "hidden" libraries, object files and flags are used when
10754         # linking a shared library.
10755         #
10756         # There doesn't appear to be a way to prevent this compiler from
10757         # explicitly linking system object files so we need to strip them
10758         # from the output so that they don't get included in the library
10759         # dependencies.
10760         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'
10761         ;;
10762       *)
10763         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10764           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10765          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'
10766
10767           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10768           hardcode_libdir_separator_CXX=:
10769
10770           # Commands to make compiler produce verbose output that lists
10771           # what "hidden" libraries, object files and flags are used when
10772           # linking a shared library.
10773           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10774
10775         else
10776           # FIXME: insert proper C++ library support
10777           ld_shlibs_CXX=no
10778         fi
10779         ;;
10780     esac
10781     ;;
10782   psos*)
10783     # FIXME: insert proper C++ library support
10784     ld_shlibs_CXX=no
10785     ;;
10786   sco*)
10787     archive_cmds_need_lc_CXX=no
10788     case $cc_basename in
10789       CC)
10790         # FIXME: insert proper C++ library support
10791         ld_shlibs_CXX=no
10792         ;;
10793       *)
10794         # FIXME: insert proper C++ library support
10795         ld_shlibs_CXX=no
10796         ;;
10797     esac
10798     ;;
10799   sunos4*)
10800     case $cc_basename in
10801       CC)
10802         # Sun C++ 4.x
10803         # FIXME: insert proper C++ library support
10804         ld_shlibs_CXX=no
10805         ;;
10806       lcc)
10807         # Lucid
10808         # FIXME: insert proper C++ library support
10809         ld_shlibs_CXX=no
10810         ;;
10811       *)
10812         # FIXME: insert proper C++ library support
10813         ld_shlibs_CXX=no
10814         ;;
10815     esac
10816     ;;
10817   solaris*)
10818     case $cc_basename in
10819       CC)
10820         # Sun C++ 4.2, 5.x and Centerline C++
10821         no_undefined_flag_CXX=' -zdefs'
10822         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10823         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10824         $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'
10825
10826         hardcode_libdir_flag_spec_CXX='-R$libdir'
10827         hardcode_shlibpath_var_CXX=no
10828         case $host_os in
10829           solaris2.0-5 | solaris2.0-5.*) ;;
10830           *)
10831             # The C++ compiler is used as linker so we must use $wl
10832             # flag to pass the commands to the underlying system
10833             # linker.
10834             # Supported since Solaris 2.6 (maybe 2.5.1?)
10835             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10836             ;;
10837         esac
10838         link_all_deplibs_CXX=yes
10839
10840         # Commands to make compiler produce verbose output that lists
10841         # what "hidden" libraries, object files and flags are used when
10842         # linking a shared library.
10843         #
10844         # There doesn't appear to be a way to prevent this compiler from
10845         # explicitly linking system object files so we need to strip them
10846         # from the output so that they don't get included in the library
10847         # dependencies.
10848         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'
10849
10850         # Archives containing C++ object files must be created using
10851         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10852         # necessary to make sure instantiated templates are included
10853         # in the archive.
10854         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10855         ;;
10856       gcx)
10857         # Green Hills C++ Compiler
10858         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10859
10860         # The C++ compiler must be used to create the archive.
10861         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10862         ;;
10863       *)
10864         # GNU C++ compiler with Solaris linker
10865         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10866           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10867           if $CC --version | grep -v '^2\.7' > /dev/null; then
10868             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10869             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10870                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10871
10872             # Commands to make compiler produce verbose output that lists
10873             # what "hidden" libraries, object files and flags are used when
10874             # linking a shared library.
10875             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10876           else
10877             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10878             # platform.
10879             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10880             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10881                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10882
10883             # Commands to make compiler produce verbose output that lists
10884             # what "hidden" libraries, object files and flags are used when
10885             # linking a shared library.
10886             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10887           fi
10888
10889           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10890         fi
10891         ;;
10892     esac
10893     ;;
10894   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10895     archive_cmds_need_lc_CXX=no
10896     ;;
10897   tandem*)
10898     case $cc_basename in
10899       NCC)
10900         # NonStop-UX NCC 3.20
10901         # FIXME: insert proper C++ library support
10902         ld_shlibs_CXX=no
10903         ;;
10904       *)
10905         # FIXME: insert proper C++ library support
10906         ld_shlibs_CXX=no
10907         ;;
10908     esac
10909     ;;
10910   vxworks*)
10911     # FIXME: insert proper C++ library support
10912     ld_shlibs_CXX=no
10913     ;;
10914   *)
10915     # FIXME: insert proper C++ library support
10916     ld_shlibs_CXX=no
10917     ;;
10918 esac
10919 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10920 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10921 test "$ld_shlibs_CXX" = no && can_build_shared=no
10922
10923 GCC_CXX="$GXX"
10924 LD_CXX="$LD"
10925
10926
10927 cat > conftest.$ac_ext <<EOF
10928 class Foo
10929 {
10930 public:
10931   Foo (void) { a = 0; }
10932 private:
10933   int a;
10934 };
10935 EOF
10936
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938   (eval $ac_compile) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; then
10942   # Parse the compiler output and extract the necessary
10943   # objects, libraries and library flags.
10944
10945   # Sentinel used to keep track of whether or not we are before
10946   # the conftest object file.
10947   pre_test_object_deps_done=no
10948
10949   # The `*' in the case matches for architectures that use `case' in
10950   # $output_verbose_cmd can trigger glob expansion during the loop
10951   # eval without this substitution.
10952   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10953
10954   for p in `eval $output_verbose_link_cmd`; do
10955     case $p in
10956
10957     -L* | -R* | -l*)
10958        # Some compilers place space between "-{L,R}" and the path.
10959        # Remove the space.
10960        if test $p = "-L" \
10961           || test $p = "-R"; then
10962          prev=$p
10963          continue
10964        else
10965          prev=
10966        fi
10967
10968        if test "$pre_test_object_deps_done" = no; then
10969          case $p in
10970          -L* | -R*)
10971            # Internal compiler library paths should come after those
10972            # provided the user.  The postdeps already come after the
10973            # user supplied libs so there is no need to process them.
10974            if test -z "$compiler_lib_search_path_CXX"; then
10975              compiler_lib_search_path_CXX="${prev}${p}"
10976            else
10977              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10978            fi
10979            ;;
10980          # The "-l" case would never come before the object being
10981          # linked, so don't bother handling this case.
10982          esac
10983        else
10984          if test -z "$postdeps_CXX"; then
10985            postdeps_CXX="${prev}${p}"
10986          else
10987            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10988          fi
10989        fi
10990        ;;
10991
10992     *.$objext)
10993        # This assumes that the test object file only shows up
10994        # once in the compiler output.
10995        if test "$p" = "conftest.$objext"; then
10996          pre_test_object_deps_done=yes
10997          continue
10998        fi
10999
11000        if test "$pre_test_object_deps_done" = no; then
11001          if test -z "$predep_objects_CXX"; then
11002            predep_objects_CXX="$p"
11003          else
11004            predep_objects_CXX="$predep_objects_CXX $p"
11005          fi
11006        else
11007          if test -z "$postdep_objects_CXX"; then
11008            postdep_objects_CXX="$p"
11009          else
11010            postdep_objects_CXX="$postdep_objects_CXX $p"
11011          fi
11012        fi
11013        ;;
11014
11015     *) ;; # Ignore the rest.
11016
11017     esac
11018   done
11019
11020   # Clean up.
11021   rm -f a.out a.exe
11022 else
11023   echo "libtool.m4: error: problem compiling CXX test program"
11024 fi
11025
11026 $rm -f confest.$objext
11027
11028 case " $postdeps_CXX " in
11029 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11030 esac
11031
11032 lt_prog_compiler_wl_CXX=
11033 lt_prog_compiler_pic_CXX=
11034 lt_prog_compiler_static_CXX=
11035
11036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11038
11039   # C++ specific cases for pic, static, wl, etc.
11040   if test "$GXX" = yes; then
11041     lt_prog_compiler_wl_CXX='-Wl,'
11042     lt_prog_compiler_static_CXX='-static'
11043
11044     case $host_os in
11045     aix*)
11046       # All AIX code is PIC.
11047       if test "$host_cpu" = ia64; then
11048         # AIX 5 now supports IA64 processor
11049         lt_prog_compiler_static_CXX='-Bstatic'
11050       fi
11051       ;;
11052     amigaos*)
11053       # FIXME: we need at least 68020 code to build shared libraries, but
11054       # adding the `-m68020' flag to GCC prevents building anything better,
11055       # like `-m68040'.
11056       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11057       ;;
11058     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11059       # PIC is the default for these OSes.
11060       ;;
11061     mingw* | os2* | pw32*)
11062       # This hack is so that the source file can tell whether it is being
11063       # built for inclusion in a dll (and should export symbols for example).
11064       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11065       ;;
11066     darwin* | rhapsody*)
11067       # PIC is the default on this platform
11068       # Common symbols not allowed in MH_DYLIB files
11069       lt_prog_compiler_pic_CXX='-fno-common'
11070       ;;
11071     *djgpp*)
11072       # DJGPP does not support shared libraries at all
11073       lt_prog_compiler_pic_CXX=
11074       ;;
11075     sysv4*MP*)
11076       if test -d /usr/nec; then
11077         lt_prog_compiler_pic_CXX=-Kconform_pic
11078       fi
11079       ;;
11080     hpux*)
11081       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11082       # not for PA HP-UX.
11083       case "$host_cpu" in
11084       hppa*64*|ia64*)
11085         ;;
11086       *)
11087         lt_prog_compiler_pic_CXX='-fPIC'
11088         ;;
11089       esac
11090       ;;
11091     *)
11092       lt_prog_compiler_pic_CXX='-fPIC'
11093       ;;
11094     esac
11095   else
11096     case $host_os in
11097       aix4* | aix5*)
11098         # All AIX code is PIC.
11099         if test "$host_cpu" = ia64; then
11100           # AIX 5 now supports IA64 processor
11101           lt_prog_compiler_static_CXX='-Bstatic'
11102         else
11103           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11104         fi
11105         ;;
11106       chorus*)
11107         case $cc_basename in
11108         cxch68)
11109           # Green Hills C++ Compiler
11110           # _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"
11111           ;;
11112         esac
11113         ;;
11114       dgux*)
11115         case $cc_basename in
11116           ec++)
11117             lt_prog_compiler_pic_CXX='-KPIC'
11118             ;;
11119           ghcx)
11120             # Green Hills C++ Compiler
11121             lt_prog_compiler_pic_CXX='-pic'
11122             ;;
11123           *)
11124             ;;
11125         esac
11126         ;;
11127       freebsd* | kfreebsd*-gnu)
11128         # FreeBSD uses GNU C++
11129         ;;
11130       hpux9* | hpux10* | hpux11*)
11131         case $cc_basename in
11132           CC)
11133             lt_prog_compiler_wl_CXX='-Wl,'
11134             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11135             if test "$host_cpu" != ia64; then
11136               lt_prog_compiler_pic_CXX='+Z'
11137             fi
11138             ;;
11139           aCC)
11140             lt_prog_compiler_wl_CXX='-Wl,'
11141             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11142             case "$host_cpu" in
11143             hppa*64*|ia64*)
11144               # +Z the default
11145               ;;
11146             *)
11147               lt_prog_compiler_pic_CXX='+Z'
11148               ;;
11149             esac
11150             ;;
11151           *)
11152             ;;
11153         esac
11154         ;;
11155       irix5* | irix6* | nonstopux*)
11156         case $cc_basename in
11157           CC)
11158             lt_prog_compiler_wl_CXX='-Wl,'
11159             lt_prog_compiler_static_CXX='-non_shared'
11160             # CC pic flag -KPIC is the default.
11161             ;;
11162           *)
11163             ;;
11164         esac
11165         ;;
11166       linux*)
11167         case $cc_basename in
11168           KCC)
11169             # KAI C++ Compiler
11170             lt_prog_compiler_wl_CXX='--backend -Wl,'
11171             lt_prog_compiler_pic_CXX='-fPIC'
11172             ;;
11173           icpc)
11174             # Intel C++
11175             lt_prog_compiler_wl_CXX='-Wl,'
11176             lt_prog_compiler_pic_CXX='-KPIC'
11177             lt_prog_compiler_static_CXX='-static'
11178             ;;
11179           cxx)
11180             # Compaq C++
11181             # Make sure the PIC flag is empty.  It appears that all Alpha
11182             # Linux and Compaq Tru64 Unix objects are PIC.
11183             lt_prog_compiler_pic_CXX=
11184             lt_prog_compiler_static_CXX='-non_shared'
11185             ;;
11186           *)
11187             ;;
11188         esac
11189         ;;
11190       lynxos*)
11191         ;;
11192       m88k*)
11193         ;;
11194       mvs*)
11195         case $cc_basename in
11196           cxx)
11197             lt_prog_compiler_pic_CXX='-W c,exportall'
11198             ;;
11199           *)
11200             ;;
11201         esac
11202         ;;
11203       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11204         ;;
11205       osf3* | osf4* | osf5*)
11206         case $cc_basename in
11207           KCC)
11208             lt_prog_compiler_wl_CXX='--backend -Wl,'
11209             ;;
11210           RCC)
11211             # Rational C++ 2.4.1
11212             lt_prog_compiler_pic_CXX='-pic'
11213             ;;
11214           cxx)
11215             # Digital/Compaq C++
11216             lt_prog_compiler_wl_CXX='-Wl,'
11217             # Make sure the PIC flag is empty.  It appears that all Alpha
11218             # Linux and Compaq Tru64 Unix objects are PIC.
11219             lt_prog_compiler_pic_CXX=
11220             lt_prog_compiler_static_CXX='-non_shared'
11221             ;;
11222           *)
11223             ;;
11224         esac
11225         ;;
11226       psos*)
11227         ;;
11228       sco*)
11229         case $cc_basename in
11230           CC)
11231             lt_prog_compiler_pic_CXX='-fPIC'
11232             ;;
11233           *)
11234             ;;
11235         esac
11236         ;;
11237       solaris*)
11238         case $cc_basename in
11239           CC)
11240             # Sun C++ 4.2, 5.x and Centerline C++
11241             lt_prog_compiler_pic_CXX='-KPIC'
11242             lt_prog_compiler_static_CXX='-Bstatic'
11243             lt_prog_compiler_wl_CXX='-Qoption ld '
11244             ;;
11245           gcx)
11246             # Green Hills C++ Compiler
11247             lt_prog_compiler_pic_CXX='-PIC'
11248             ;;
11249           *)
11250             ;;
11251         esac
11252         ;;
11253       sunos4*)
11254         case $cc_basename in
11255           CC)
11256             # Sun C++ 4.x
11257             lt_prog_compiler_pic_CXX='-pic'
11258             lt_prog_compiler_static_CXX='-Bstatic'
11259             ;;
11260           lcc)
11261             # Lucid
11262             lt_prog_compiler_pic_CXX='-pic'
11263             ;;
11264           *)
11265             ;;
11266         esac
11267         ;;
11268       tandem*)
11269         case $cc_basename in
11270           NCC)
11271             # NonStop-UX NCC 3.20
11272             lt_prog_compiler_pic_CXX='-KPIC'
11273             ;;
11274           *)
11275             ;;
11276         esac
11277         ;;
11278       unixware*)
11279         ;;
11280       vxworks*)
11281         ;;
11282       *)
11283         lt_prog_compiler_can_build_shared_CXX=no
11284         ;;
11285     esac
11286   fi
11287
11288 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11289 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11290
11291 #
11292 # Check to make sure the PIC flag actually works.
11293 #
11294 if test -n "$lt_prog_compiler_pic_CXX"; then
11295
11296 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11297 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11298 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   lt_prog_compiler_pic_works_CXX=no
11302   ac_outfile=conftest.$ac_objext
11303    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11304    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11305    # Insert the option either (1) after the last *FLAGS variable, or
11306    # (2) before a word containing "conftest.", or (3) at the end.
11307    # Note that $ac_compile itself does not contain backslashes and begins
11308    # with a dollar sign (not a hyphen), so the echo should work correctly.
11309    # The option is referenced via a variable to avoid confusing sed.
11310    lt_compile=`echo "$ac_compile" | $SED \
11311    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11312    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11313    -e 's:$: $lt_compiler_flag:'`
11314    (eval echo "\"\$as_me:11314: $lt_compile\"" >&5)
11315    (eval "$lt_compile" 2>conftest.err)
11316    ac_status=$?
11317    cat conftest.err >&5
11318    echo "$as_me:11318: \$? = $ac_status" >&5
11319    if (exit $ac_status) && test -s "$ac_outfile"; then
11320      # The compiler can only warn and ignore the option if not recognized
11321      # So say no if there are warnings
11322      if test ! -s conftest.err; then
11323        lt_prog_compiler_pic_works_CXX=yes
11324      fi
11325    fi
11326    $rm conftest*
11327
11328 fi
11329 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11330 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11331
11332 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11333     case $lt_prog_compiler_pic_CXX in
11334      "" | " "*) ;;
11335      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11336      esac
11337 else
11338     lt_prog_compiler_pic_CXX=
11339      lt_prog_compiler_can_build_shared_CXX=no
11340 fi
11341
11342 fi
11343 case "$host_os" in
11344   # For platforms which do not support PIC, -DPIC is meaningless:
11345   *djgpp*)
11346     lt_prog_compiler_pic_CXX=
11347     ;;
11348   *)
11349     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11350     ;;
11351 esac
11352
11353 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11355 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11356   echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358   lt_cv_prog_compiler_c_o_CXX=no
11359    $rm -r conftest 2>/dev/null
11360    mkdir conftest
11361    cd conftest
11362    mkdir out
11363    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11364
11365    lt_compiler_flag="-o out/conftest2.$ac_objext"
11366    # Insert the option either (1) after the last *FLAGS variable, or
11367    # (2) before a word containing "conftest.", or (3) at the end.
11368    # Note that $ac_compile itself does not contain backslashes and begins
11369    # with a dollar sign (not a hyphen), so the echo should work correctly.
11370    lt_compile=`echo "$ac_compile" | $SED \
11371    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11373    -e 's:$: $lt_compiler_flag:'`
11374    (eval echo "\"\$as_me:11374: $lt_compile\"" >&5)
11375    (eval "$lt_compile" 2>out/conftest.err)
11376    ac_status=$?
11377    cat out/conftest.err >&5
11378    echo "$as_me:11378: \$? = $ac_status" >&5
11379    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11380    then
11381      # The compiler can only warn and ignore the option if not recognized
11382      # So say no if there are warnings
11383      if test ! -s out/conftest.err; then
11384        lt_cv_prog_compiler_c_o_CXX=yes
11385      fi
11386    fi
11387    chmod u+w .
11388    $rm conftest*
11389    # SGI C++ compiler will create directory out/ii_files/ for
11390    # template instantiation
11391    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11392    $rm out/* && rmdir out
11393    cd ..
11394    rmdir conftest
11395    $rm conftest*
11396
11397 fi
11398 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11399 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11400
11401
11402 hard_links="nottested"
11403 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11404   # do not overwrite the value of need_locks provided by the user
11405   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11406 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11407   hard_links=yes
11408   $rm conftest*
11409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11410   touch conftest.a
11411   ln conftest.a conftest.b 2>&5 || hard_links=no
11412   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11413   echo "$as_me:$LINENO: result: $hard_links" >&5
11414 echo "${ECHO_T}$hard_links" >&6
11415   if test "$hard_links" = no; then
11416     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11417 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11418     need_locks=warn
11419   fi
11420 else
11421   need_locks=no
11422 fi
11423
11424 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11425 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11426
11427   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11428   case $host_os in
11429   aix4* | aix5*)
11430     # If we're using GNU nm, then we don't want the "-C" option.
11431     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11432     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11433       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'
11434     else
11435       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'
11436     fi
11437     ;;
11438   pw32*)
11439     export_symbols_cmds_CXX="$ltdll_cmds"
11440   ;;
11441   cygwin* | mingw*)
11442     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11443   ;;
11444   linux*)
11445     link_all_deplibs_CXX=no
11446   ;;
11447   *)
11448     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11449   ;;
11450   esac
11451
11452 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11453 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11454 test "$ld_shlibs_CXX" = no && can_build_shared=no
11455
11456 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11457 if test "$GCC" = yes; then
11458   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11459 fi
11460
11461 #
11462 # Do we need to explicitly link libc?
11463 #
11464 case "x$archive_cmds_need_lc_CXX" in
11465 x|xyes)
11466   # Assume -lc should be added
11467   archive_cmds_need_lc_CXX=yes
11468
11469   if test "$enable_shared" = yes && test "$GCC" = yes; then
11470     case $archive_cmds_CXX in
11471     *'~'*)
11472       # FIXME: we may have to deal with multi-command sequences.
11473       ;;
11474     '$CC '*)
11475       # Test whether the compiler implicitly links with -lc since on some
11476       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11477       # to ld, don't add -lc before -lgcc.
11478       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11479 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11480       $rm conftest*
11481       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11482
11483       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484   (eval $ac_compile) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } 2>conftest.err; then
11488         soname=conftest
11489         lib=conftest
11490         libobjs=conftest.$ac_objext
11491         deplibs=
11492         wl=$lt_prog_compiler_wl_CXX
11493         compiler_flags=-v
11494         linker_flags=-v
11495         verstring=
11496         output_objdir=.
11497         libname=conftest
11498         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11499         allow_undefined_flag_CXX=
11500         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11501   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }
11505         then
11506           archive_cmds_need_lc_CXX=no
11507         else
11508           archive_cmds_need_lc_CXX=yes
11509         fi
11510         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11511       else
11512         cat conftest.err 1>&5
11513       fi
11514       $rm conftest*
11515       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11516 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11517       ;;
11518     esac
11519   fi
11520   ;;
11521 esac
11522
11523 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11524 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11525 library_names_spec=
11526 libname_spec='lib$name'
11527 soname_spec=
11528 shrext_cmds=".so"
11529 postinstall_cmds=
11530 postuninstall_cmds=
11531 finish_cmds=
11532 finish_eval=
11533 shlibpath_var=
11534 shlibpath_overrides_runpath=unknown
11535 version_type=none
11536 dynamic_linker="$host_os ld.so"
11537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11538 if test "$GCC" = yes; then
11539   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11540   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11541     # if the path contains ";" then we assume it to be the separator
11542     # otherwise default to the standard path separator (i.e. ":") - it is
11543     # assumed that no part of a normal pathname contains ";" but that should
11544     # okay in the real world where ";" in dirpaths is itself problematic.
11545     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11546   else
11547     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11548   fi
11549 else
11550   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11551 fi
11552 need_lib_prefix=unknown
11553 hardcode_into_libs=no
11554
11555 # when you set need_version to no, make sure it does not cause -set_version
11556 # flags to be left without arguments
11557 need_version=unknown
11558
11559 case $host_os in
11560 aix3*)
11561   version_type=linux
11562   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11563   shlibpath_var=LIBPATH
11564
11565   # AIX 3 has no versioning support, so we append a major version to the name.
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   ;;
11568
11569 aix4* | aix5*)
11570   version_type=linux
11571   need_lib_prefix=no
11572   need_version=no
11573   hardcode_into_libs=yes
11574   if test "$host_cpu" = ia64; then
11575     # AIX 5 supports IA64
11576     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11577     shlibpath_var=LD_LIBRARY_PATH
11578   else
11579     # With GCC up to 2.95.x, collect2 would create an import file
11580     # for dependence libraries.  The import file would start with
11581     # the line `#! .'.  This would cause the generated library to
11582     # depend on `.', always an invalid library.  This was fixed in
11583     # development snapshots of GCC prior to 3.0.
11584     case $host_os in
11585       aix4 | aix4.[01] | aix4.[01].*)
11586       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11587            echo ' yes '
11588            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11589         :
11590       else
11591         can_build_shared=no
11592       fi
11593       ;;
11594     esac
11595     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11596     # soname into executable. Probably we can add versioning support to
11597     # collect2, so additional links can be useful in future.
11598     if test "$aix_use_runtimelinking" = yes; then
11599       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11600       # instead of lib<name>.a to let people know that these are not
11601       # typical AIX shared libraries.
11602       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603     else
11604       # We preserve .a as extension for shared libraries through AIX4.2
11605       # and later when we are not doing run time linking.
11606       library_names_spec='${libname}${release}.a $libname.a'
11607       soname_spec='${libname}${release}${shared_ext}$major'
11608     fi
11609     shlibpath_var=LIBPATH
11610   fi
11611   ;;
11612
11613 amigaos*)
11614   library_names_spec='$libname.ixlibrary $libname.a'
11615   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11616   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'
11617   ;;
11618
11619 beos*)
11620   library_names_spec='${libname}${shared_ext}'
11621   dynamic_linker="$host_os ld.so"
11622   shlibpath_var=LIBRARY_PATH
11623   ;;
11624
11625 bsdi4*)
11626   version_type=linux
11627   need_version=no
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629   soname_spec='${libname}${release}${shared_ext}$major'
11630   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11631   shlibpath_var=LD_LIBRARY_PATH
11632   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11633   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11634   # the default ld.so.conf also contains /usr/contrib/lib and
11635   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11636   # libtool to hard-code these into programs
11637   ;;
11638
11639 cygwin* | mingw* | pw32*)
11640   version_type=windows
11641   shrext_cmds=".dll"
11642   need_version=no
11643   need_lib_prefix=no
11644
11645   case $GCC,$host_os in
11646   yes,cygwin* | yes,mingw* | yes,pw32*)
11647     library_names_spec='$libname.dll.a'
11648     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11649     postinstall_cmds='base_file=`basename \${file}`~
11650       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11651       dldir=$destdir/`dirname \$dlpath`~
11652       test -d \$dldir || mkdir -p \$dldir~
11653       $install_prog $dir/$dlname \$dldir/$dlname'
11654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11655       dlpath=$dir/\$dldll~
11656        $rm \$dlpath'
11657     shlibpath_overrides_runpath=yes
11658
11659     case $host_os in
11660     cygwin*)
11661       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11662       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11663       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11664       ;;
11665     mingw*)
11666       # MinGW DLLs use traditional 'lib' prefix
11667       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11668       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11669       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11670         # It is most probably a Windows format PATH printed by
11671         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11672         # path with ; separators, and with drive letters. We can handle the
11673         # drive letters (cygwin fileutils understands them), so leave them,
11674         # especially as we might pass files found there to a mingw objdump,
11675         # which wouldn't understand a cygwinified path. Ahh.
11676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11677       else
11678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11679       fi
11680       ;;
11681     pw32*)
11682       # pw32 DLLs use 'pw' prefix rather than 'lib'
11683       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11684       ;;
11685     esac
11686     ;;
11687
11688   *)
11689     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11690     ;;
11691   esac
11692   dynamic_linker='Win32 ld.exe'
11693   # FIXME: first we should search . and the directory the executable is in
11694   shlibpath_var=PATH
11695   ;;
11696
11697 darwin* | rhapsody*)
11698   dynamic_linker="$host_os dyld"
11699   version_type=darwin
11700   need_lib_prefix=no
11701   need_version=no
11702   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11703   soname_spec='${libname}${release}${major}$shared_ext'
11704   shlibpath_overrides_runpath=yes
11705   shlibpath_var=DYLD_LIBRARY_PATH
11706   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11707   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11708   if test "$GCC" = yes; then
11709     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"`
11710   else
11711     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11712   fi
11713   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11714   ;;
11715
11716 dgux*)
11717   version_type=linux
11718   need_lib_prefix=no
11719   need_version=no
11720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11721   soname_spec='${libname}${release}${shared_ext}$major'
11722   shlibpath_var=LD_LIBRARY_PATH
11723   ;;
11724
11725 freebsd1*)
11726   dynamic_linker=no
11727   ;;
11728
11729 kfreebsd*-gnu)
11730   version_type=linux
11731   need_lib_prefix=no
11732   need_version=no
11733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11734   soname_spec='${libname}${release}${shared_ext}$major'
11735   shlibpath_var=LD_LIBRARY_PATH
11736   shlibpath_overrides_runpath=no
11737   hardcode_into_libs=yes
11738   dynamic_linker='GNU ld.so'
11739   ;;
11740
11741 freebsd*)
11742   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11743   version_type=freebsd-$objformat
11744   case $version_type in
11745     freebsd-elf*)
11746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11747       need_version=no
11748       need_lib_prefix=no
11749       ;;
11750     freebsd-*)
11751       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11752       need_version=yes
11753       ;;
11754   esac
11755   shlibpath_var=LD_LIBRARY_PATH
11756   case $host_os in
11757   freebsd2*)
11758     shlibpath_overrides_runpath=yes
11759     ;;
11760   freebsd3.01* | freebsdelf3.01*)
11761     shlibpath_overrides_runpath=yes
11762     hardcode_into_libs=yes
11763     ;;
11764   *) # from 3.2 on
11765     shlibpath_overrides_runpath=no
11766     hardcode_into_libs=yes
11767     ;;
11768   esac
11769   ;;
11770
11771 gnu*)
11772   version_type=linux
11773   need_lib_prefix=no
11774   need_version=no
11775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   shlibpath_var=LD_LIBRARY_PATH
11778   hardcode_into_libs=yes
11779   ;;
11780
11781 hpux9* | hpux10* | hpux11*)
11782   # Give a soname corresponding to the major version so that dld.sl refuses to
11783   # link against other versions.
11784   version_type=sunos
11785   need_lib_prefix=no
11786   need_version=no
11787   case "$host_cpu" in
11788   ia64*)
11789     shrext_cmds='.so'
11790     hardcode_into_libs=yes
11791     dynamic_linker="$host_os dld.so"
11792     shlibpath_var=LD_LIBRARY_PATH
11793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795     soname_spec='${libname}${release}${shared_ext}$major'
11796     if test "X$HPUX_IA64_MODE" = X32; then
11797       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11798     else
11799       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11800     fi
11801     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11802     ;;
11803    hppa*64*)
11804      shrext_cmds='.sl'
11805      hardcode_into_libs=yes
11806      dynamic_linker="$host_os dld.sl"
11807      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11808      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810      soname_spec='${libname}${release}${shared_ext}$major'
11811      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11812      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11813      ;;
11814    *)
11815     shrext_cmds='.sl'
11816     dynamic_linker="$host_os dld.sl"
11817     shlibpath_var=SHLIB_PATH
11818     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820     soname_spec='${libname}${release}${shared_ext}$major'
11821     ;;
11822   esac
11823   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11824   postinstall_cmds='chmod 555 $lib'
11825   ;;
11826
11827 irix5* | irix6* | nonstopux*)
11828   case $host_os in
11829     nonstopux*) version_type=nonstopux ;;
11830     *)
11831         if test "$lt_cv_prog_gnu_ld" = yes; then
11832                 version_type=linux
11833         else
11834                 version_type=irix
11835         fi ;;
11836   esac
11837   need_lib_prefix=no
11838   need_version=no
11839   soname_spec='${libname}${release}${shared_ext}$major'
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11841   case $host_os in
11842   irix5* | nonstopux*)
11843     libsuff= shlibsuff=
11844     ;;
11845   *)
11846     case $LD in # libtool.m4 will add one of these switches to LD
11847     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11848       libsuff= shlibsuff= libmagic=32-bit;;
11849     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11850       libsuff=32 shlibsuff=N32 libmagic=N32;;
11851     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11852       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11853     *) libsuff= shlibsuff= libmagic=never-match;;
11854     esac
11855     ;;
11856   esac
11857   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11858   shlibpath_overrides_runpath=no
11859   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11860   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11861   hardcode_into_libs=yes
11862   ;;
11863
11864 # No shared lib support for Linux oldld, aout, or coff.
11865 linux*oldld* | linux*aout* | linux*coff*)
11866   dynamic_linker=no
11867   ;;
11868
11869 # This must be Linux ELF.
11870 linux*)
11871   version_type=linux
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11877   shlibpath_var=LD_LIBRARY_PATH
11878   shlibpath_overrides_runpath=no
11879   # This implies no fast_install, which is unacceptable.
11880   # Some rework will be needed to allow for fast_install
11881   # before this can be enabled.
11882   hardcode_into_libs=yes
11883
11884   # Append ld.so.conf contents to the search path
11885   if test -f /etc/ld.so.conf; then
11886     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11887     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11888   fi
11889
11890   # We used to test for /lib/ld.so.1 and disable shared libraries on
11891   # powerpc, because MkLinux only supported shared libraries with the
11892   # GNU dynamic linker.  Since this was broken with cross compilers,
11893   # most powerpc-linux boxes support dynamic linking these days and
11894   # people can always --disable-shared, the test was removed, and we
11895   # assume the GNU/Linux dynamic linker is in use.
11896   dynamic_linker='GNU/Linux ld.so'
11897   ;;
11898
11899 netbsdelf*-gnu)
11900   version_type=linux
11901   need_lib_prefix=no
11902   need_version=no
11903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11904   soname_spec='${libname}${release}${shared_ext}$major'
11905   shlibpath_var=LD_LIBRARY_PATH
11906   shlibpath_overrides_runpath=no
11907   hardcode_into_libs=yes
11908   dynamic_linker='NetBSD ld.elf_so'
11909   ;;
11910
11911 knetbsd*-gnu)
11912   version_type=linux
11913   need_lib_prefix=no
11914   need_version=no
11915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11916   soname_spec='${libname}${release}${shared_ext}$major'
11917   shlibpath_var=LD_LIBRARY_PATH
11918   shlibpath_overrides_runpath=no
11919   hardcode_into_libs=yes
11920   dynamic_linker='GNU ld.so'
11921   ;;
11922
11923 netbsd*)
11924   version_type=sunos
11925   need_lib_prefix=no
11926   need_version=no
11927   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11929     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11930     dynamic_linker='NetBSD (a.out) ld.so'
11931   else
11932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11933     soname_spec='${libname}${release}${shared_ext}$major'
11934     dynamic_linker='NetBSD ld.elf_so'
11935   fi
11936   shlibpath_var=LD_LIBRARY_PATH
11937   shlibpath_overrides_runpath=yes
11938   hardcode_into_libs=yes
11939   ;;
11940
11941 newsos6)
11942   version_type=linux
11943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944   shlibpath_var=LD_LIBRARY_PATH
11945   shlibpath_overrides_runpath=yes
11946   ;;
11947
11948 nto-qnx*)
11949   version_type=linux
11950   need_lib_prefix=no
11951   need_version=no
11952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953   soname_spec='${libname}${release}${shared_ext}$major'
11954   shlibpath_var=LD_LIBRARY_PATH
11955   shlibpath_overrides_runpath=yes
11956   ;;
11957
11958 openbsd*)
11959   version_type=sunos
11960   need_lib_prefix=no
11961   need_version=yes
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11966     case $host_os in
11967       openbsd2.[89] | openbsd2.[89].*)
11968         shlibpath_overrides_runpath=no
11969         ;;
11970       *)
11971         shlibpath_overrides_runpath=yes
11972         ;;
11973       esac
11974   else
11975     shlibpath_overrides_runpath=yes
11976   fi
11977   ;;
11978
11979 os2*)
11980   libname_spec='$name'
11981   shrext_cmds=".dll"
11982   need_lib_prefix=no
11983   library_names_spec='$libname${shared_ext} $libname.a'
11984   dynamic_linker='OS/2 ld.exe'
11985   shlibpath_var=LIBPATH
11986   ;;
11987
11988 osf3* | osf4* | osf5*)
11989   version_type=osf
11990   need_lib_prefix=no
11991   need_version=no
11992   soname_spec='${libname}${release}${shared_ext}$major'
11993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994   shlibpath_var=LD_LIBRARY_PATH
11995   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11996   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11997   ;;
11998
11999 sco3.2v5*)
12000   version_type=osf
12001   soname_spec='${libname}${release}${shared_ext}$major'
12002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003   shlibpath_var=LD_LIBRARY_PATH
12004   ;;
12005
12006 solaris*)
12007   version_type=linux
12008   need_lib_prefix=no
12009   need_version=no
12010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011   soname_spec='${libname}${release}${shared_ext}$major'
12012   shlibpath_var=LD_LIBRARY_PATH
12013   shlibpath_overrides_runpath=yes
12014   hardcode_into_libs=yes
12015   # ldd complains unless libraries are executable
12016   postinstall_cmds='chmod +x $lib'
12017   ;;
12018
12019 sunos4*)
12020   version_type=sunos
12021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12023   shlibpath_var=LD_LIBRARY_PATH
12024   shlibpath_overrides_runpath=yes
12025   if test "$with_gnu_ld" = yes; then
12026     need_lib_prefix=no
12027   fi
12028   need_version=yes
12029   ;;
12030
12031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12032   version_type=linux
12033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034   soname_spec='${libname}${release}${shared_ext}$major'
12035   shlibpath_var=LD_LIBRARY_PATH
12036   case $host_vendor in
12037     sni)
12038       shlibpath_overrides_runpath=no
12039       need_lib_prefix=no
12040       export_dynamic_flag_spec='${wl}-Blargedynsym'
12041       runpath_var=LD_RUN_PATH
12042       ;;
12043     siemens)
12044       need_lib_prefix=no
12045       ;;
12046     motorola)
12047       need_lib_prefix=no
12048       need_version=no
12049       shlibpath_overrides_runpath=no
12050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12051       ;;
12052   esac
12053   ;;
12054
12055 sysv4*MP*)
12056   if test -d /usr/nec ;then
12057     version_type=linux
12058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12059     soname_spec='$libname${shared_ext}.$major'
12060     shlibpath_var=LD_LIBRARY_PATH
12061   fi
12062   ;;
12063
12064 uts4*)
12065   version_type=linux
12066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067   soname_spec='${libname}${release}${shared_ext}$major'
12068   shlibpath_var=LD_LIBRARY_PATH
12069   ;;
12070
12071 *)
12072   dynamic_linker=no
12073   ;;
12074 esac
12075 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12076 echo "${ECHO_T}$dynamic_linker" >&6
12077 test "$dynamic_linker" = no && can_build_shared=no
12078
12079 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12081 hardcode_action_CXX=
12082 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12083    test -n "$runpath_var CXX" || \
12084    test "X$hardcode_automatic_CXX"="Xyes" ; then
12085
12086   # We can hardcode non-existant directories.
12087   if test "$hardcode_direct_CXX" != no &&
12088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089      # have to relink, otherwise we might link with an installed library
12090      # when we should be linking with a yet-to-be-installed one
12091      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12092      test "$hardcode_minus_L_CXX" != no; then
12093     # Linking always hardcodes the temporary library directory.
12094     hardcode_action_CXX=relink
12095   else
12096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097     hardcode_action_CXX=immediate
12098   fi
12099 else
12100   # We cannot hardcode anything, or else we can only hardcode existing
12101   # directories.
12102   hardcode_action_CXX=unsupported
12103 fi
12104 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12105 echo "${ECHO_T}$hardcode_action_CXX" >&6
12106
12107 if test "$hardcode_action_CXX" = relink; then
12108   # Fast installation is not supported
12109   enable_fast_install=no
12110 elif test "$shlibpath_overrides_runpath" = yes ||
12111      test "$enable_shared" = no; then
12112   # Fast installation is not necessary
12113   enable_fast_install=needless
12114 fi
12115
12116 striplib=
12117 old_striplib=
12118 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12119 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12120 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12121   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12122   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12123   echo "$as_me:$LINENO: result: yes" >&5
12124 echo "${ECHO_T}yes" >&6
12125 else
12126 # FIXME - insert some real tests, host_os isn't really good enough
12127   case $host_os in
12128    darwin*)
12129        if test -n "$STRIP" ; then
12130          striplib="$STRIP -x"
12131          echo "$as_me:$LINENO: result: yes" >&5
12132 echo "${ECHO_T}yes" >&6
12133        else
12134   echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12136 fi
12137        ;;
12138    *)
12139   echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12141     ;;
12142   esac
12143 fi
12144
12145 if test "x$enable_dlopen" != xyes; then
12146   enable_dlopen=unknown
12147   enable_dlopen_self=unknown
12148   enable_dlopen_self_static=unknown
12149 else
12150   lt_cv_dlopen=no
12151   lt_cv_dlopen_libs=
12152
12153   case $host_os in
12154   beos*)
12155     lt_cv_dlopen="load_add_on"
12156     lt_cv_dlopen_libs=
12157     lt_cv_dlopen_self=yes
12158     ;;
12159
12160   mingw* | pw32*)
12161     lt_cv_dlopen="LoadLibrary"
12162     lt_cv_dlopen_libs=
12163    ;;
12164
12165   cygwin*)
12166     lt_cv_dlopen="dlopen"
12167     lt_cv_dlopen_libs=
12168    ;;
12169
12170   darwin*)
12171   # if libdl is installed we need to link against it
12172     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-ldl  $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185
12186 /* Override any gcc2 internal prototype to avoid an error.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 /* We use char because int might match the return type of a gcc2
12191    builtin and then its argument prototype would still apply.  */
12192 char dlopen ();
12193 int
12194 main ()
12195 {
12196 dlopen ();
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203   (eval $ac_link) 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212   (eval $ac_try) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; } &&
12216          { ac_try='test -s conftest$ac_exeext'
12217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218   (eval $ac_try) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; }; then
12222   ac_cv_lib_dl_dlopen=yes
12223 else
12224   echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12226
12227 ac_cv_lib_dl_dlopen=no
12228 fi
12229 rm -f conftest.err conftest.$ac_objext \
12230       conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12232 fi
12233 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12235 if test $ac_cv_lib_dl_dlopen = yes; then
12236   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12237 else
12238
12239     lt_cv_dlopen="dyld"
12240     lt_cv_dlopen_libs=
12241     lt_cv_dlopen_self=yes
12242
12243 fi
12244
12245    ;;
12246
12247   *)
12248     echo "$as_me:$LINENO: checking for shl_load" >&5
12249 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12250 if test "${ac_cv_func_shl_load+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h.  */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h.  */
12259 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12261 #define shl_load innocuous_shl_load
12262
12263 /* System header to define __stub macros and hopefully few prototypes,
12264     which can conflict with char shl_load (); below.
12265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12266     <limits.h> exists even on freestanding compilers.  */
12267
12268 #ifdef __STDC__
12269 # include <limits.h>
12270 #else
12271 # include <assert.h>
12272 #endif
12273
12274 #undef shl_load
12275
12276 /* Override any gcc2 internal prototype to avoid an error.  */
12277 #ifdef __cplusplus
12278 extern "C"
12279 {
12280 #endif
12281 /* We use char because int might match the return type of a gcc2
12282    builtin and then its argument prototype would still apply.  */
12283 char shl_load ();
12284 /* The GNU C library defines this for functions which it implements
12285     to always fail with ENOSYS.  Some functions are actually named
12286     something starting with __ and the normal name is an alias.  */
12287 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12288 choke me
12289 #else
12290 char (*f) () = shl_load;
12291 #endif
12292 #ifdef __cplusplus
12293 }
12294 #endif
12295
12296 int
12297 main ()
12298 {
12299 return f != shl_load;
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12306   (eval $ac_link) 2>conftest.er1
12307   ac_status=$?
12308   grep -v '^ *+' conftest.er1 >conftest.err
12309   rm -f conftest.er1
12310   cat conftest.err >&5
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } &&
12313          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; } &&
12319          { ac_try='test -s conftest$ac_exeext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_cv_func_shl_load=yes
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ac_cv_func_shl_load=no
12331 fi
12332 rm -f conftest.err conftest.$ac_objext \
12333       conftest$ac_exeext conftest.$ac_ext
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12336 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12337 if test $ac_cv_func_shl_load = yes; then
12338   lt_cv_dlopen="shl_load"
12339 else
12340   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12341 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-ldld  $LIBS"
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353
12354 /* Override any gcc2 internal prototype to avoid an error.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 /* We use char because int might match the return type of a gcc2
12359    builtin and then its argument prototype would still apply.  */
12360 char shl_load ();
12361 int
12362 main ()
12363 {
12364 shl_load ();
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371   (eval $ac_link) 2>conftest.er1
12372   ac_status=$?
12373   grep -v '^ *+' conftest.er1 >conftest.err
12374   rm -f conftest.er1
12375   cat conftest.err >&5
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380   (eval $ac_try) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; } &&
12384          { ac_try='test -s conftest$ac_exeext'
12385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386   (eval $ac_try) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; }; then
12390   ac_cv_lib_dld_shl_load=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12394
12395 ac_cv_lib_dld_shl_load=no
12396 fi
12397 rm -f conftest.err conftest.$ac_objext \
12398       conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12400 fi
12401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12403 if test $ac_cv_lib_dld_shl_load = yes; then
12404   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12405 else
12406   echo "$as_me:$LINENO: checking for dlopen" >&5
12407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12408 if test "${ac_cv_func_dlopen+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12419 #define dlopen innocuous_dlopen
12420
12421 /* System header to define __stub macros and hopefully few prototypes,
12422     which can conflict with char dlopen (); below.
12423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424     <limits.h> exists even on freestanding compilers.  */
12425
12426 #ifdef __STDC__
12427 # include <limits.h>
12428 #else
12429 # include <assert.h>
12430 #endif
12431
12432 #undef dlopen
12433
12434 /* Override any gcc2 internal prototype to avoid an error.  */
12435 #ifdef __cplusplus
12436 extern "C"
12437 {
12438 #endif
12439 /* We use char because int might match the return type of a gcc2
12440    builtin and then its argument prototype would still apply.  */
12441 char dlopen ();
12442 /* The GNU C library defines this for functions which it implements
12443     to always fail with ENOSYS.  Some functions are actually named
12444     something starting with __ and the normal name is an alias.  */
12445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12446 choke me
12447 #else
12448 char (*f) () = dlopen;
12449 #endif
12450 #ifdef __cplusplus
12451 }
12452 #endif
12453
12454 int
12455 main ()
12456 {
12457 return f != dlopen;
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464   (eval $ac_link) 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; } &&
12477          { ac_try='test -s conftest$ac_exeext'
12478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479   (eval $ac_try) 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; }; then
12483   ac_cv_func_dlopen=yes
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 ac_cv_func_dlopen=no
12489 fi
12490 rm -f conftest.err conftest.$ac_objext \
12491       conftest$ac_exeext conftest.$ac_ext
12492 fi
12493 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12494 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12495 if test $ac_cv_func_dlopen = yes; then
12496   lt_cv_dlopen="dlopen"
12497 else
12498   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-ldl  $LIBS"
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511
12512 /* Override any gcc2 internal prototype to avoid an error.  */
12513 #ifdef __cplusplus
12514 extern "C"
12515 #endif
12516 /* We use char because int might match the return type of a gcc2
12517    builtin and then its argument prototype would still apply.  */
12518 char dlopen ();
12519 int
12520 main ()
12521 {
12522 dlopen ();
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529   (eval $ac_link) 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; } &&
12542          { ac_try='test -s conftest$ac_exeext'
12543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544   (eval $ac_try) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   ac_cv_lib_dl_dlopen=yes
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_cv_lib_dl_dlopen=no
12554 fi
12555 rm -f conftest.err conftest.$ac_objext \
12556       conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12558 fi
12559 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12560 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12561 if test $ac_cv_lib_dl_dlopen = yes; then
12562   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12563 else
12564   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12565 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12566 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lsvld  $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577
12578 /* Override any gcc2 internal prototype to avoid an error.  */
12579 #ifdef __cplusplus
12580 extern "C"
12581 #endif
12582 /* We use char because int might match the return type of a gcc2
12583    builtin and then its argument prototype would still apply.  */
12584 char dlopen ();
12585 int
12586 main ()
12587 {
12588 dlopen ();
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595   (eval $ac_link) 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } &&
12602          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest$ac_exeext'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   ac_cv_lib_svld_dlopen=yes
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 ac_cv_lib_svld_dlopen=no
12620 fi
12621 rm -f conftest.err conftest.$ac_objext \
12622       conftest$ac_exeext conftest.$ac_ext
12623 LIBS=$ac_check_lib_save_LIBS
12624 fi
12625 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12626 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12627 if test $ac_cv_lib_svld_dlopen = yes; then
12628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12629 else
12630   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12631 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12632 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12633   echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635   ac_check_lib_save_LIBS=$LIBS
12636 LIBS="-ldld  $LIBS"
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643
12644 /* Override any gcc2 internal prototype to avoid an error.  */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 /* We use char because int might match the return type of a gcc2
12649    builtin and then its argument prototype would still apply.  */
12650 char dld_link ();
12651 int
12652 main ()
12653 {
12654 dld_link ();
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661   (eval $ac_link) 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } &&
12668          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670   (eval $ac_try) 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; } &&
12674          { ac_try='test -s conftest$ac_exeext'
12675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676   (eval $ac_try) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; }; then
12680   ac_cv_lib_dld_dld_link=yes
12681 else
12682   echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685 ac_cv_lib_dld_dld_link=no
12686 fi
12687 rm -f conftest.err conftest.$ac_objext \
12688       conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12690 fi
12691 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12692 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12693 if test $ac_cv_lib_dld_dld_link = yes; then
12694   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12695 fi
12696
12697
12698 fi
12699
12700
12701 fi
12702
12703
12704 fi
12705
12706
12707 fi
12708
12709
12710 fi
12711
12712     ;;
12713   esac
12714
12715   if test "x$lt_cv_dlopen" != xno; then
12716     enable_dlopen=yes
12717   else
12718     enable_dlopen=no
12719   fi
12720
12721   case $lt_cv_dlopen in
12722   dlopen)
12723     save_CPPFLAGS="$CPPFLAGS"
12724     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12725
12726     save_LDFLAGS="$LDFLAGS"
12727     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12728
12729     save_LIBS="$LIBS"
12730     LIBS="$lt_cv_dlopen_libs $LIBS"
12731
12732     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12733 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12734 if test "${lt_cv_dlopen_self+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737           if test "$cross_compiling" = yes; then :
12738   lt_cv_dlopen_self=cross
12739 else
12740   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12741   lt_status=$lt_dlunknown
12742   cat > conftest.$ac_ext <<EOF
12743 #line 12743 "configure"
12744 #include "confdefs.h"
12745
12746 #if HAVE_DLFCN_H
12747 #include <dlfcn.h>
12748 #endif
12749
12750 #include <stdio.h>
12751
12752 #ifdef RTLD_GLOBAL
12753 #  define LT_DLGLOBAL           RTLD_GLOBAL
12754 #else
12755 #  ifdef DL_GLOBAL
12756 #    define LT_DLGLOBAL         DL_GLOBAL
12757 #  else
12758 #    define LT_DLGLOBAL         0
12759 #  endif
12760 #endif
12761
12762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12763    find out it does not work in some platform. */
12764 #ifndef LT_DLLAZY_OR_NOW
12765 #  ifdef RTLD_LAZY
12766 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12767 #  else
12768 #    ifdef DL_LAZY
12769 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12770 #    else
12771 #      ifdef RTLD_NOW
12772 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12773 #      else
12774 #        ifdef DL_NOW
12775 #          define LT_DLLAZY_OR_NOW      DL_NOW
12776 #        else
12777 #          define LT_DLLAZY_OR_NOW      0
12778 #        endif
12779 #      endif
12780 #    endif
12781 #  endif
12782 #endif
12783
12784 #ifdef __cplusplus
12785 extern "C" void exit (int);
12786 #endif
12787
12788 void fnord() { int i=42;}
12789 int main ()
12790 {
12791   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12792   int status = $lt_dlunknown;
12793
12794   if (self)
12795     {
12796       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12797       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12798       /* dlclose (self); */
12799     }
12800
12801     exit (status);
12802 }
12803 EOF
12804   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805   (eval $ac_link) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12809     (./conftest; exit; ) 2>/dev/null
12810     lt_status=$?
12811     case x$lt_status in
12812       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12813       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12814       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12815     esac
12816   else :
12817     # compilation failed
12818     lt_cv_dlopen_self=no
12819   fi
12820 fi
12821 rm -fr conftest*
12822
12823
12824 fi
12825 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12826 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12827
12828     if test "x$lt_cv_dlopen_self" = xyes; then
12829       LDFLAGS="$LDFLAGS $link_static_flag"
12830       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12831 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12832 if test "${lt_cv_dlopen_self_static+set}" = set; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835           if test "$cross_compiling" = yes; then :
12836   lt_cv_dlopen_self_static=cross
12837 else
12838   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12839   lt_status=$lt_dlunknown
12840   cat > conftest.$ac_ext <<EOF
12841 #line 12841 "configure"
12842 #include "confdefs.h"
12843
12844 #if HAVE_DLFCN_H
12845 #include <dlfcn.h>
12846 #endif
12847
12848 #include <stdio.h>
12849
12850 #ifdef RTLD_GLOBAL
12851 #  define LT_DLGLOBAL           RTLD_GLOBAL
12852 #else
12853 #  ifdef DL_GLOBAL
12854 #    define LT_DLGLOBAL         DL_GLOBAL
12855 #  else
12856 #    define LT_DLGLOBAL         0
12857 #  endif
12858 #endif
12859
12860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12861    find out it does not work in some platform. */
12862 #ifndef LT_DLLAZY_OR_NOW
12863 #  ifdef RTLD_LAZY
12864 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12865 #  else
12866 #    ifdef DL_LAZY
12867 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12868 #    else
12869 #      ifdef RTLD_NOW
12870 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12871 #      else
12872 #        ifdef DL_NOW
12873 #          define LT_DLLAZY_OR_NOW      DL_NOW
12874 #        else
12875 #          define LT_DLLAZY_OR_NOW      0
12876 #        endif
12877 #      endif
12878 #    endif
12879 #  endif
12880 #endif
12881
12882 #ifdef __cplusplus
12883 extern "C" void exit (int);
12884 #endif
12885
12886 void fnord() { int i=42;}
12887 int main ()
12888 {
12889   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890   int status = $lt_dlunknown;
12891
12892   if (self)
12893     {
12894       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12895       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12896       /* dlclose (self); */
12897     }
12898
12899     exit (status);
12900 }
12901 EOF
12902   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903   (eval $ac_link) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12907     (./conftest; exit; ) 2>/dev/null
12908     lt_status=$?
12909     case x$lt_status in
12910       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12911       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12912       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12913     esac
12914   else :
12915     # compilation failed
12916     lt_cv_dlopen_self_static=no
12917   fi
12918 fi
12919 rm -fr conftest*
12920
12921
12922 fi
12923 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12924 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12925     fi
12926
12927     CPPFLAGS="$save_CPPFLAGS"
12928     LDFLAGS="$save_LDFLAGS"
12929     LIBS="$save_LIBS"
12930     ;;
12931   esac
12932
12933   case $lt_cv_dlopen_self in
12934   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12935   *) enable_dlopen_self=unknown ;;
12936   esac
12937
12938   case $lt_cv_dlopen_self_static in
12939   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12940   *) enable_dlopen_self_static=unknown ;;
12941   esac
12942 fi
12943
12944
12945 # The else clause should only fire when bootstrapping the
12946 # libtool distribution, otherwise you forgot to ship ltmain.sh
12947 # with your package, and you will get complaints that there are
12948 # no rules to generate ltmain.sh.
12949 if test -f "$ltmain"; then
12950   # See if we are running on zsh, and set the options which allow our commands through
12951   # without removal of \ escapes.
12952   if test -n "${ZSH_VERSION+set}" ; then
12953     setopt NO_GLOB_SUBST
12954   fi
12955   # Now quote all the things that may contain metacharacters while being
12956   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12957   # variables and quote the copies for generation of the libtool script.
12958   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12959     SED SHELL STRIP \
12960     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12961     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12962     deplibs_check_method reload_flag reload_cmds need_locks \
12963     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12964     lt_cv_sys_global_symbol_to_c_name_address \
12965     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12966     old_postinstall_cmds old_postuninstall_cmds \
12967     compiler_CXX \
12968     CC_CXX \
12969     LD_CXX \
12970     lt_prog_compiler_wl_CXX \
12971     lt_prog_compiler_pic_CXX \
12972     lt_prog_compiler_static_CXX \
12973     lt_prog_compiler_no_builtin_flag_CXX \
12974     export_dynamic_flag_spec_CXX \
12975     thread_safe_flag_spec_CXX \
12976     whole_archive_flag_spec_CXX \
12977     enable_shared_with_static_runtimes_CXX \
12978     old_archive_cmds_CXX \
12979     old_archive_from_new_cmds_CXX \
12980     predep_objects_CXX \
12981     postdep_objects_CXX \
12982     predeps_CXX \
12983     postdeps_CXX \
12984     compiler_lib_search_path_CXX \
12985     archive_cmds_CXX \
12986     archive_expsym_cmds_CXX \
12987     postinstall_cmds_CXX \
12988     postuninstall_cmds_CXX \
12989     old_archive_from_expsyms_cmds_CXX \
12990     allow_undefined_flag_CXX \
12991     no_undefined_flag_CXX \
12992     export_symbols_cmds_CXX \
12993     hardcode_libdir_flag_spec_CXX \
12994     hardcode_libdir_flag_spec_ld_CXX \
12995     hardcode_libdir_separator_CXX \
12996     hardcode_automatic_CXX \
12997     module_cmds_CXX \
12998     module_expsym_cmds_CXX \
12999     lt_cv_prog_compiler_c_o_CXX \
13000     exclude_expsyms_CXX \
13001     include_expsyms_CXX; do
13002
13003     case $var in
13004     old_archive_cmds_CXX | \
13005     old_archive_from_new_cmds_CXX | \
13006     archive_cmds_CXX | \
13007     archive_expsym_cmds_CXX | \
13008     module_cmds_CXX | \
13009     module_expsym_cmds_CXX | \
13010     old_archive_from_expsyms_cmds_CXX | \
13011     export_symbols_cmds_CXX | \
13012     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13013     postinstall_cmds | postuninstall_cmds | \
13014     old_postinstall_cmds | old_postuninstall_cmds | \
13015     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13016       # Double-quote double-evaled strings.
13017       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13018       ;;
13019     *)
13020       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13021       ;;
13022     esac
13023   done
13024
13025   case $lt_echo in
13026   *'\$0 --fallback-echo"')
13027     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13028     ;;
13029   esac
13030
13031 cfgfile="$ofile"
13032
13033   cat <<__EOF__ >> "$cfgfile"
13034 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13035
13036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13037
13038 # Shell to use when invoking shell scripts.
13039 SHELL=$lt_SHELL
13040
13041 # Whether or not to build shared libraries.
13042 build_libtool_libs=$enable_shared
13043
13044 # Whether or not to build static libraries.
13045 build_old_libs=$enable_static
13046
13047 # Whether or not to add -lc for building shared libraries.
13048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13049
13050 # Whether or not to disallow shared libs when runtime libs are static
13051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13052
13053 # Whether or not to optimize for fast installation.
13054 fast_install=$enable_fast_install
13055
13056 # The host system.
13057 host_alias=$host_alias
13058 host=$host
13059
13060 # An echo program that does not interpret backslashes.
13061 echo=$lt_echo
13062
13063 # The archiver.
13064 AR=$lt_AR
13065 AR_FLAGS=$lt_AR_FLAGS
13066
13067 # A C compiler.
13068 LTCC=$lt_LTCC
13069
13070 # A language-specific compiler.
13071 CC=$lt_compiler_CXX
13072
13073 # Is the compiler the GNU C compiler?
13074 with_gcc=$GCC_CXX
13075
13076 # An ERE matcher.
13077 EGREP=$lt_EGREP
13078
13079 # The linker used to build libraries.
13080 LD=$lt_LD_CXX
13081
13082 # Whether we need hard or soft links.
13083 LN_S=$lt_LN_S
13084
13085 # A BSD-compatible nm program.
13086 NM=$lt_NM
13087
13088 # A symbol stripping program
13089 STRIP=$lt_STRIP
13090
13091 # Used to examine libraries when file_magic_cmd begins "file"
13092 MAGIC_CMD=$MAGIC_CMD
13093
13094 # Used on cygwin: DLL creation program.
13095 DLLTOOL="$DLLTOOL"
13096
13097 # Used on cygwin: object dumper.
13098 OBJDUMP="$OBJDUMP"
13099
13100 # Used on cygwin: assembler.
13101 AS="$AS"
13102
13103 # The name of the directory that contains temporary libtool files.
13104 objdir=$objdir
13105
13106 # How to create reloadable object files.
13107 reload_flag=$lt_reload_flag
13108 reload_cmds=$lt_reload_cmds
13109
13110 # How to pass a linker flag through the compiler.
13111 wl=$lt_lt_prog_compiler_wl_CXX
13112
13113 # Object file suffix (normally "o").
13114 objext="$ac_objext"
13115
13116 # Old archive suffix (normally "a").
13117 libext="$libext"
13118
13119 # Shared library suffix (normally ".so").
13120 shrext_cmds='$shrext_cmds'
13121
13122 # Executable file suffix (normally "").
13123 exeext="$exeext"
13124
13125 # Additional compiler flags for building library objects.
13126 pic_flag=$lt_lt_prog_compiler_pic_CXX
13127 pic_mode=$pic_mode
13128
13129 # What is the maximum length of a command?
13130 max_cmd_len=$lt_cv_sys_max_cmd_len
13131
13132 # Does compiler simultaneously support -c and -o options?
13133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13134
13135 # Must we lock files when doing compilation ?
13136 need_locks=$lt_need_locks
13137
13138 # Do we need the lib prefix for modules?
13139 need_lib_prefix=$need_lib_prefix
13140
13141 # Do we need a version for libraries?
13142 need_version=$need_version
13143
13144 # Whether dlopen is supported.
13145 dlopen_support=$enable_dlopen
13146
13147 # Whether dlopen of programs is supported.
13148 dlopen_self=$enable_dlopen_self
13149
13150 # Whether dlopen of statically linked programs is supported.
13151 dlopen_self_static=$enable_dlopen_self_static
13152
13153 # Compiler flag to prevent dynamic linking.
13154 link_static_flag=$lt_lt_prog_compiler_static_CXX
13155
13156 # Compiler flag to turn off builtin functions.
13157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13158
13159 # Compiler flag to allow reflexive dlopens.
13160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13161
13162 # Compiler flag to generate shared objects directly from archives.
13163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13164
13165 # Compiler flag to generate thread-safe objects.
13166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13167
13168 # Library versioning type.
13169 version_type=$version_type
13170
13171 # Format of library name prefix.
13172 libname_spec=$lt_libname_spec
13173
13174 # List of archive names.  First name is the real one, the rest are links.
13175 # The last name is the one that the linker finds with -lNAME.
13176 library_names_spec=$lt_library_names_spec
13177
13178 # The coded name of the library, if different from the real name.
13179 soname_spec=$lt_soname_spec
13180
13181 # Commands used to build and install an old-style archive.
13182 RANLIB=$lt_RANLIB
13183 old_archive_cmds=$lt_old_archive_cmds_CXX
13184 old_postinstall_cmds=$lt_old_postinstall_cmds
13185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13186
13187 # Create an old-style archive from a shared archive.
13188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13189
13190 # Create a temporary old-style archive to link instead of a shared archive.
13191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13192
13193 # Commands used to build and install a shared archive.
13194 archive_cmds=$lt_archive_cmds_CXX
13195 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13196 postinstall_cmds=$lt_postinstall_cmds
13197 postuninstall_cmds=$lt_postuninstall_cmds
13198
13199 # Commands used to build a loadable module (assumed same as above if empty)
13200 module_cmds=$lt_module_cmds_CXX
13201 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13202
13203 # Commands to strip libraries.
13204 old_striplib=$lt_old_striplib
13205 striplib=$lt_striplib
13206
13207 # Dependencies to place before the objects being linked to create a
13208 # shared library.
13209 predep_objects=$lt_predep_objects_CXX
13210
13211 # Dependencies to place after the objects being linked to create a
13212 # shared library.
13213 postdep_objects=$lt_postdep_objects_CXX
13214
13215 # Dependencies to place before the objects being linked to create a
13216 # shared library.
13217 predeps=$lt_predeps_CXX
13218
13219 # Dependencies to place after the objects being linked to create a
13220 # shared library.
13221 postdeps=$lt_postdeps_CXX
13222
13223 # The library search path used internally by the compiler when linking
13224 # a shared library.
13225 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13226
13227 # Method to check whether dependent libraries are shared objects.
13228 deplibs_check_method=$lt_deplibs_check_method
13229
13230 # Command to use when deplibs_check_method == file_magic.
13231 file_magic_cmd=$lt_file_magic_cmd
13232
13233 # Flag that allows shared libraries with undefined symbols to be built.
13234 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13235
13236 # Flag that forces no undefined symbols.
13237 no_undefined_flag=$lt_no_undefined_flag_CXX
13238
13239 # Commands used to finish a libtool library installation in a directory.
13240 finish_cmds=$lt_finish_cmds
13241
13242 # Same as above, but a single script fragment to be evaled but not shown.
13243 finish_eval=$lt_finish_eval
13244
13245 # Take the output of nm and produce a listing of raw symbols and C names.
13246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13247
13248 # Transform the output of nm in a proper C declaration
13249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13250
13251 # Transform the output of nm in a C name address pair
13252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13253
13254 # This is the shared library runtime path variable.
13255 runpath_var=$runpath_var
13256
13257 # This is the shared library path variable.
13258 shlibpath_var=$shlibpath_var
13259
13260 # Is shlibpath searched before the hard-coded library search path?
13261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13262
13263 # How to hardcode a shared library path into an executable.
13264 hardcode_action=$hardcode_action_CXX
13265
13266 # Whether we should hardcode library paths into libraries.
13267 hardcode_into_libs=$hardcode_into_libs
13268
13269 # Flag to hardcode \$libdir into a binary during linking.
13270 # This must work even if \$libdir does not exist.
13271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13272
13273 # If ld is used when linking, flag to hardcode \$libdir into
13274 # a binary during linking. This must work even if \$libdir does
13275 # not exist.
13276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13277
13278 # Whether we need a single -rpath flag with a separated argument.
13279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13280
13281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13282 # resulting binary.
13283 hardcode_direct=$hardcode_direct_CXX
13284
13285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13286 # resulting binary.
13287 hardcode_minus_L=$hardcode_minus_L_CXX
13288
13289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13290 # the resulting binary.
13291 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13292
13293 # Set to yes if building a shared library automatically hardcodes DIR into the library
13294 # and all subsequent libraries and executables linked against it.
13295 hardcode_automatic=$hardcode_automatic_CXX
13296
13297 # Variables whose values should be saved in libtool wrapper scripts and
13298 # restored at relink time.
13299 variables_saved_for_relink="$variables_saved_for_relink"
13300
13301 # Whether libtool must link a program against all its dependency libraries.
13302 link_all_deplibs=$link_all_deplibs_CXX
13303
13304 # Compile-time system search path for libraries
13305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13306
13307 # Run-time system search path for libraries
13308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13309
13310 # Fix the shell variable \$srcfile for the compiler.
13311 fix_srcfile_path="$fix_srcfile_path_CXX"
13312
13313 # Set to yes if exported symbols are required.
13314 always_export_symbols=$always_export_symbols_CXX
13315
13316 # The commands to list exported symbols.
13317 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13318
13319 # The commands to extract the exported symbol list from a shared archive.
13320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13321
13322 # Symbols that should not be listed in the preloaded symbols.
13323 exclude_expsyms=$lt_exclude_expsyms_CXX
13324
13325 # Symbols that must always be exported.
13326 include_expsyms=$lt_include_expsyms_CXX
13327
13328 # ### END LIBTOOL TAG CONFIG: $tagname
13329
13330 __EOF__
13331
13332
13333 else
13334   # If there is no Makefile yet, we rely on a make rule to execute
13335   # `config.status --recheck' to rerun these tests and create the
13336   # libtool script then.
13337   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13338   if test -f "$ltmain_in"; then
13339     test -f Makefile && make "$ltmain"
13340   fi
13341 fi
13342
13343
13344 ac_ext=c
13345 ac_cpp='$CPP $CPPFLAGS'
13346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13349
13350 CC=$lt_save_CC
13351 LDCXX=$LD
13352 LD=$lt_save_LD
13353 GCC=$lt_save_GCC
13354 with_gnu_ldcxx=$with_gnu_ld
13355 with_gnu_ld=$lt_save_with_gnu_ld
13356 lt_cv_path_LDCXX=$lt_cv_path_LD
13357 lt_cv_path_LD=$lt_save_path_LD
13358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13360
13361         else
13362           tagname=""
13363         fi
13364         ;;
13365
13366       F77)
13367         if test -n "$F77" && test "X$F77" != "Xno"; then
13368
13369 ac_ext=f
13370 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13371 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13372 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13373
13374
13375 archive_cmds_need_lc_F77=no
13376 allow_undefined_flag_F77=
13377 always_export_symbols_F77=no
13378 archive_expsym_cmds_F77=
13379 export_dynamic_flag_spec_F77=
13380 hardcode_direct_F77=no
13381 hardcode_libdir_flag_spec_F77=
13382 hardcode_libdir_flag_spec_ld_F77=
13383 hardcode_libdir_separator_F77=
13384 hardcode_minus_L_F77=no
13385 hardcode_automatic_F77=no
13386 module_cmds_F77=
13387 module_expsym_cmds_F77=
13388 link_all_deplibs_F77=unknown
13389 old_archive_cmds_F77=$old_archive_cmds
13390 no_undefined_flag_F77=
13391 whole_archive_flag_spec_F77=
13392 enable_shared_with_static_runtimes_F77=no
13393
13394 # Source file extension for f77 test sources.
13395 ac_ext=f
13396
13397 # Object file extension for compiled f77 test sources.
13398 objext=o
13399 objext_F77=$objext
13400
13401 # Code to be used in simple compile tests
13402 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13403
13404 # Code to be used in simple link tests
13405 lt_simple_link_test_code="      program t\n      end\n"
13406
13407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13408
13409 # If no C compiler was specified, use CC.
13410 LTCC=${LTCC-"$CC"}
13411
13412 # Allow CC to be a program name with arguments.
13413 compiler=$CC
13414
13415
13416 # Allow CC to be a program name with arguments.
13417 lt_save_CC="$CC"
13418 CC=${F77-"f77"}
13419 compiler=$CC
13420 compiler_F77=$CC
13421 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13422
13423 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13424 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13425 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13426 echo "${ECHO_T}$can_build_shared" >&6
13427
13428 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13429 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13430 test "$can_build_shared" = "no" && enable_shared=no
13431
13432 # On AIX, shared libraries and static libraries use the same namespace, and
13433 # are all built from PIC.
13434 case "$host_os" in
13435 aix3*)
13436   test "$enable_shared" = yes && enable_static=no
13437   if test -n "$RANLIB"; then
13438     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13439     postinstall_cmds='$RANLIB $lib'
13440   fi
13441   ;;
13442 aix4* | aix5*)
13443   test "$enable_shared" = yes && enable_static=no
13444   ;;
13445 esac
13446 echo "$as_me:$LINENO: result: $enable_shared" >&5
13447 echo "${ECHO_T}$enable_shared" >&6
13448
13449 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13450 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13451 # Make sure either enable_shared or enable_static is yes.
13452 test "$enable_shared" = yes || enable_static=yes
13453 echo "$as_me:$LINENO: result: $enable_static" >&5
13454 echo "${ECHO_T}$enable_static" >&6
13455
13456 test "$ld_shlibs_F77" = no && can_build_shared=no
13457
13458 GCC_F77="$G77"
13459 LD_F77="$LD"
13460
13461 lt_prog_compiler_wl_F77=
13462 lt_prog_compiler_pic_F77=
13463 lt_prog_compiler_static_F77=
13464
13465 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13467
13468   if test "$GCC" = yes; then
13469     lt_prog_compiler_wl_F77='-Wl,'
13470     lt_prog_compiler_static_F77='-static'
13471
13472     case $host_os in
13473       aix*)
13474       # All AIX code is PIC.
13475       if test "$host_cpu" = ia64; then
13476         # AIX 5 now supports IA64 processor
13477         lt_prog_compiler_static_F77='-Bstatic'
13478       fi
13479       ;;
13480
13481     amigaos*)
13482       # FIXME: we need at least 68020 code to build shared libraries, but
13483       # adding the `-m68020' flag to GCC prevents building anything better,
13484       # like `-m68040'.
13485       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13486       ;;
13487
13488     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13489       # PIC is the default for these OSes.
13490       ;;
13491
13492     mingw* | pw32* | os2*)
13493       # This hack is so that the source file can tell whether it is being
13494       # built for inclusion in a dll (and should export symbols for example).
13495       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13496       ;;
13497
13498     darwin* | rhapsody*)
13499       # PIC is the default on this platform
13500       # Common symbols not allowed in MH_DYLIB files
13501       lt_prog_compiler_pic_F77='-fno-common'
13502       ;;
13503
13504     msdosdjgpp*)
13505       # Just because we use GCC doesn't mean we suddenly get shared libraries
13506       # on systems that don't support them.
13507       lt_prog_compiler_can_build_shared_F77=no
13508       enable_shared=no
13509       ;;
13510
13511     sysv4*MP*)
13512       if test -d /usr/nec; then
13513         lt_prog_compiler_pic_F77=-Kconform_pic
13514       fi
13515       ;;
13516
13517     hpux*)
13518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13519       # not for PA HP-UX.
13520       case "$host_cpu" in
13521       hppa*64*|ia64*)
13522         # +Z the default
13523         ;;
13524       *)
13525         lt_prog_compiler_pic_F77='-fPIC'
13526         ;;
13527       esac
13528       ;;
13529
13530     *)
13531       lt_prog_compiler_pic_F77='-fPIC'
13532       ;;
13533     esac
13534   else
13535     # PORTME Check for flag to pass linker flags through the system compiler.
13536     case $host_os in
13537     aix*)
13538       lt_prog_compiler_wl_F77='-Wl,'
13539       if test "$host_cpu" = ia64; then
13540         # AIX 5 now supports IA64 processor
13541         lt_prog_compiler_static_F77='-Bstatic'
13542       else
13543         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13544       fi
13545       ;;
13546
13547     mingw* | pw32* | os2*)
13548       # This hack is so that the source file can tell whether it is being
13549       # built for inclusion in a dll (and should export symbols for example).
13550       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13551       ;;
13552
13553     hpux9* | hpux10* | hpux11*)
13554       lt_prog_compiler_wl_F77='-Wl,'
13555       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13556       # not for PA HP-UX.
13557       case "$host_cpu" in
13558       hppa*64*|ia64*)
13559         # +Z the default
13560         ;;
13561       *)
13562         lt_prog_compiler_pic_F77='+Z'
13563         ;;
13564       esac
13565       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13566       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13567       ;;
13568
13569     irix5* | irix6* | nonstopux*)
13570       lt_prog_compiler_wl_F77='-Wl,'
13571       # PIC (with -KPIC) is the default.
13572       lt_prog_compiler_static_F77='-non_shared'
13573       ;;
13574
13575     newsos6)
13576       lt_prog_compiler_pic_F77='-KPIC'
13577       lt_prog_compiler_static_F77='-Bstatic'
13578       ;;
13579
13580     linux*)
13581       case $CC in
13582       icc* | ecc*)
13583         lt_prog_compiler_wl_F77='-Wl,'
13584         lt_prog_compiler_pic_F77='-KPIC'
13585         lt_prog_compiler_static_F77='-static'
13586         ;;
13587       ccc*)
13588         lt_prog_compiler_wl_F77='-Wl,'
13589         # All Alpha code is PIC.
13590         lt_prog_compiler_static_F77='-non_shared'
13591         ;;
13592       esac
13593       ;;
13594
13595     osf3* | osf4* | osf5*)
13596       lt_prog_compiler_wl_F77='-Wl,'
13597       # All OSF/1 code is PIC.
13598       lt_prog_compiler_static_F77='-non_shared'
13599       ;;
13600
13601     sco3.2v5*)
13602       lt_prog_compiler_pic_F77='-Kpic'
13603       lt_prog_compiler_static_F77='-dn'
13604       ;;
13605
13606     solaris*)
13607       lt_prog_compiler_wl_F77='-Wl,'
13608       lt_prog_compiler_pic_F77='-KPIC'
13609       lt_prog_compiler_static_F77='-Bstatic'
13610       ;;
13611
13612     sunos4*)
13613       lt_prog_compiler_wl_F77='-Qoption ld '
13614       lt_prog_compiler_pic_F77='-PIC'
13615       lt_prog_compiler_static_F77='-Bstatic'
13616       ;;
13617
13618     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13619       lt_prog_compiler_wl_F77='-Wl,'
13620       lt_prog_compiler_pic_F77='-KPIC'
13621       lt_prog_compiler_static_F77='-Bstatic'
13622       ;;
13623
13624     sysv4*MP*)
13625       if test -d /usr/nec ;then
13626         lt_prog_compiler_pic_F77='-Kconform_pic'
13627         lt_prog_compiler_static_F77='-Bstatic'
13628       fi
13629       ;;
13630
13631     uts4*)
13632       lt_prog_compiler_pic_F77='-pic'
13633       lt_prog_compiler_static_F77='-Bstatic'
13634       ;;
13635
13636     *)
13637       lt_prog_compiler_can_build_shared_F77=no
13638       ;;
13639     esac
13640   fi
13641
13642 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13643 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13644
13645 #
13646 # Check to make sure the PIC flag actually works.
13647 #
13648 if test -n "$lt_prog_compiler_pic_F77"; then
13649
13650 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13652 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655   lt_prog_compiler_pic_works_F77=no
13656   ac_outfile=conftest.$ac_objext
13657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13658    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13659    # Insert the option either (1) after the last *FLAGS variable, or
13660    # (2) before a word containing "conftest.", or (3) at the end.
13661    # Note that $ac_compile itself does not contain backslashes and begins
13662    # with a dollar sign (not a hyphen), so the echo should work correctly.
13663    # The option is referenced via a variable to avoid confusing sed.
13664    lt_compile=`echo "$ac_compile" | $SED \
13665    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13667    -e 's:$: $lt_compiler_flag:'`
13668    (eval echo "\"\$as_me:13668: $lt_compile\"" >&5)
13669    (eval "$lt_compile" 2>conftest.err)
13670    ac_status=$?
13671    cat conftest.err >&5
13672    echo "$as_me:13672: \$? = $ac_status" >&5
13673    if (exit $ac_status) && test -s "$ac_outfile"; then
13674      # The compiler can only warn and ignore the option if not recognized
13675      # So say no if there are warnings
13676      if test ! -s conftest.err; then
13677        lt_prog_compiler_pic_works_F77=yes
13678      fi
13679    fi
13680    $rm conftest*
13681
13682 fi
13683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13684 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13685
13686 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13687     case $lt_prog_compiler_pic_F77 in
13688      "" | " "*) ;;
13689      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13690      esac
13691 else
13692     lt_prog_compiler_pic_F77=
13693      lt_prog_compiler_can_build_shared_F77=no
13694 fi
13695
13696 fi
13697 case "$host_os" in
13698   # For platforms which do not support PIC, -DPIC is meaningless:
13699   *djgpp*)
13700     lt_prog_compiler_pic_F77=
13701     ;;
13702   *)
13703     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13704     ;;
13705 esac
13706
13707 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13708 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13709 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   lt_cv_prog_compiler_c_o_F77=no
13713    $rm -r conftest 2>/dev/null
13714    mkdir conftest
13715    cd conftest
13716    mkdir out
13717    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13718
13719    lt_compiler_flag="-o out/conftest2.$ac_objext"
13720    # Insert the option either (1) after the last *FLAGS variable, or
13721    # (2) before a word containing "conftest.", or (3) at the end.
13722    # Note that $ac_compile itself does not contain backslashes and begins
13723    # with a dollar sign (not a hyphen), so the echo should work correctly.
13724    lt_compile=`echo "$ac_compile" | $SED \
13725    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13727    -e 's:$: $lt_compiler_flag:'`
13728    (eval echo "\"\$as_me:13728: $lt_compile\"" >&5)
13729    (eval "$lt_compile" 2>out/conftest.err)
13730    ac_status=$?
13731    cat out/conftest.err >&5
13732    echo "$as_me:13732: \$? = $ac_status" >&5
13733    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13734    then
13735      # The compiler can only warn and ignore the option if not recognized
13736      # So say no if there are warnings
13737      if test ! -s out/conftest.err; then
13738        lt_cv_prog_compiler_c_o_F77=yes
13739      fi
13740    fi
13741    chmod u+w .
13742    $rm conftest*
13743    # SGI C++ compiler will create directory out/ii_files/ for
13744    # template instantiation
13745    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13746    $rm out/* && rmdir out
13747    cd ..
13748    rmdir conftest
13749    $rm conftest*
13750
13751 fi
13752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13754
13755
13756 hard_links="nottested"
13757 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13758   # do not overwrite the value of need_locks provided by the user
13759   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13761   hard_links=yes
13762   $rm conftest*
13763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13764   touch conftest.a
13765   ln conftest.a conftest.b 2>&5 || hard_links=no
13766   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13767   echo "$as_me:$LINENO: result: $hard_links" >&5
13768 echo "${ECHO_T}$hard_links" >&6
13769   if test "$hard_links" = no; then
13770     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13772     need_locks=warn
13773   fi
13774 else
13775   need_locks=no
13776 fi
13777
13778 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13780
13781   runpath_var=
13782   allow_undefined_flag_F77=
13783   enable_shared_with_static_runtimes_F77=no
13784   archive_cmds_F77=
13785   archive_expsym_cmds_F77=
13786   old_archive_From_new_cmds_F77=
13787   old_archive_from_expsyms_cmds_F77=
13788   export_dynamic_flag_spec_F77=
13789   whole_archive_flag_spec_F77=
13790   thread_safe_flag_spec_F77=
13791   hardcode_libdir_flag_spec_F77=
13792   hardcode_libdir_flag_spec_ld_F77=
13793   hardcode_libdir_separator_F77=
13794   hardcode_direct_F77=no
13795   hardcode_minus_L_F77=no
13796   hardcode_shlibpath_var_F77=unsupported
13797   link_all_deplibs_F77=unknown
13798   hardcode_automatic_F77=no
13799   module_cmds_F77=
13800   module_expsym_cmds_F77=
13801   always_export_symbols_F77=no
13802   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13803   # include_expsyms should be a list of space-separated symbols to be *always*
13804   # included in the symbol list
13805   include_expsyms_F77=
13806   # exclude_expsyms can be an extended regexp of symbols to exclude
13807   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13808   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13809   # as well as any symbol that contains `d'.
13810   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13811   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13812   # platforms (ab)use it in PIC code, but their linkers get confused if
13813   # the symbol is explicitly referenced.  Since portable code cannot
13814   # rely on this symbol name, it's probably fine to never include it in
13815   # preloaded symbol tables.
13816   extract_expsyms_cmds=
13817
13818   case $host_os in
13819   cygwin* | mingw* | pw32*)
13820     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13821     # When not using gcc, we currently assume that we are using
13822     # Microsoft Visual C++.
13823     if test "$GCC" != yes; then
13824       with_gnu_ld=no
13825     fi
13826     ;;
13827   openbsd*)
13828     with_gnu_ld=no
13829     ;;
13830   esac
13831
13832   ld_shlibs_F77=yes
13833   if test "$with_gnu_ld" = yes; then
13834     # If archive_cmds runs LD, not CC, wlarc should be empty
13835     wlarc='${wl}'
13836
13837     # See if GNU ld supports shared libraries.
13838     case $host_os in
13839     aix3* | aix4* | aix5*)
13840       # On AIX/PPC, the GNU linker is very broken
13841       if test "$host_cpu" != ia64; then
13842         ld_shlibs_F77=no
13843         cat <<EOF 1>&2
13844
13845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13846 *** to be unable to reliably create shared libraries on AIX.
13847 *** Therefore, libtool is disabling shared libraries support.  If you
13848 *** really care for shared libraries, you may want to modify your PATH
13849 *** so that a non-GNU linker is found, and then restart.
13850
13851 EOF
13852       fi
13853       ;;
13854
13855     amigaos*)
13856       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)'
13857       hardcode_libdir_flag_spec_F77='-L$libdir'
13858       hardcode_minus_L_F77=yes
13859
13860       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13861       # that the semantics of dynamic libraries on AmigaOS, at least up
13862       # to version 4, is to share data among multiple programs linked
13863       # with the same dynamic library.  Since this doesn't match the
13864       # behavior of shared libraries on other platforms, we can't use
13865       # them.
13866       ld_shlibs_F77=no
13867       ;;
13868
13869     beos*)
13870       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13871         allow_undefined_flag_F77=unsupported
13872         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13873         # support --undefined.  This deserves some investigation.  FIXME
13874         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875       else
13876         ld_shlibs_F77=no
13877       fi
13878       ;;
13879
13880     cygwin* | mingw* | pw32*)
13881       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13882       # as there is no search path for DLLs.
13883       hardcode_libdir_flag_spec_F77='-L$libdir'
13884       allow_undefined_flag_F77=unsupported
13885       always_export_symbols_F77=no
13886       enable_shared_with_static_runtimes_F77=yes
13887       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13888
13889       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13890         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13891         # If the export-symbols file already is a .def file (1st line
13892         # is EXPORTS), use it as is; otherwise, prepend...
13893         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13894           cp $export_symbols $output_objdir/$soname.def;
13895         else
13896           echo EXPORTS > $output_objdir/$soname.def;
13897           cat $export_symbols >> $output_objdir/$soname.def;
13898         fi~
13899         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13900       else
13901         ld_shlibs=no
13902       fi
13903       ;;
13904
13905     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13906       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13907         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13908         wlarc=
13909       else
13910         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13912       fi
13913       ;;
13914
13915     solaris* | sysv5*)
13916       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13917         ld_shlibs_F77=no
13918         cat <<EOF 1>&2
13919
13920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13921 *** create shared libraries on Solaris systems.  Therefore, libtool
13922 *** is disabling shared libraries support.  We urge you to upgrade GNU
13923 *** binutils to release 2.9.1 or newer.  Another option is to modify
13924 *** your PATH or compiler configuration so that the native linker is
13925 *** used, and then restart.
13926
13927 EOF
13928       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13929         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13930         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13931       else
13932         ld_shlibs_F77=no
13933       fi
13934       ;;
13935
13936     sunos4*)
13937       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13938       wlarc=
13939       hardcode_direct_F77=yes
13940       hardcode_shlibpath_var_F77=no
13941       ;;
13942
13943   linux*)
13944     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13945         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13946         archive_cmds_F77="$tmp_archive_cmds"
13947       supports_anon_versioning=no
13948       case `$LD -v 2>/dev/null` in
13949         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13950         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13951         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13952         *\ 2.11.*) ;; # other 2.11 versions
13953         *) supports_anon_versioning=yes ;;
13954       esac
13955       if test $supports_anon_versioning = yes; then
13956         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13958 $echo "local: *; };" >> $output_objdir/$libname.ver~
13959         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13960       else
13961         archive_expsym_cmds_F77="$tmp_archive_cmds"
13962       fi
13963       link_all_deplibs_F77=no
13964     else
13965       ld_shlibs_F77=no
13966     fi
13967     ;;
13968
13969     *)
13970       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13971         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13973       else
13974         ld_shlibs_F77=no
13975       fi
13976       ;;
13977     esac
13978
13979     if test "$ld_shlibs_F77" = yes; then
13980       runpath_var=LD_RUN_PATH
13981       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13982       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13983       # ancient GNU ld didn't support --whole-archive et. al.
13984       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13985         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13986       else
13987         whole_archive_flag_spec_F77=
13988       fi
13989     fi
13990   else
13991     # PORTME fill in a description of your system's linker (not GNU ld)
13992     case $host_os in
13993     aix3*)
13994       allow_undefined_flag_F77=unsupported
13995       always_export_symbols_F77=yes
13996       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'
13997       # Note: this linker hardcodes the directories in LIBPATH if there
13998       # are no directories specified by -L.
13999       hardcode_minus_L_F77=yes
14000       if test "$GCC" = yes && test -z "$link_static_flag"; then
14001         # Neither direct hardcoding nor static linking is supported with a
14002         # broken collect2.
14003         hardcode_direct_F77=unsupported
14004       fi
14005       ;;
14006
14007     aix4* | aix5*)
14008       if test "$host_cpu" = ia64; then
14009         # On IA64, the linker does run time linking by default, so we don't
14010         # have to do anything special.
14011         aix_use_runtimelinking=no
14012         exp_sym_flag='-Bexport'
14013         no_entry_flag=""
14014       else
14015         # If we're using GNU nm, then we don't want the "-C" option.
14016         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14017         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14018           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'
14019         else
14020           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'
14021         fi
14022         aix_use_runtimelinking=no
14023
14024         # Test if we are trying to use run time linking or normal
14025         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14026         # need to do runtime linking.
14027         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14028           for ld_flag in $LDFLAGS; do
14029           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14030             aix_use_runtimelinking=yes
14031             break
14032           fi
14033           done
14034         esac
14035
14036         exp_sym_flag='-bexport'
14037         no_entry_flag='-bnoentry'
14038       fi
14039
14040       # When large executables or shared objects are built, AIX ld can
14041       # have problems creating the table of contents.  If linking a library
14042       # or program results in "error TOC overflow" add -mminimal-toc to
14043       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14044       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14045
14046       archive_cmds_F77=''
14047       hardcode_direct_F77=yes
14048       hardcode_libdir_separator_F77=':'
14049       link_all_deplibs_F77=yes
14050
14051       if test "$GCC" = yes; then
14052         case $host_os in aix4.012|aix4.012.*)
14053         # We only want to do this on AIX 4.2 and lower, the check
14054         # below for broken collect2 doesn't work under 4.3+
14055           collect2name=`${CC} -print-prog-name=collect2`
14056           if test -f "$collect2name" && \
14057            strings "$collect2name" | grep resolve_lib_name >/dev/null
14058           then
14059           # We have reworked collect2
14060           hardcode_direct_F77=yes
14061           else
14062           # We have old collect2
14063           hardcode_direct_F77=unsupported
14064           # It fails to find uninstalled libraries when the uninstalled
14065           # path is not listed in the libpath.  Setting hardcode_minus_L
14066           # to unsupported forces relinking
14067           hardcode_minus_L_F77=yes
14068           hardcode_libdir_flag_spec_F77='-L$libdir'
14069           hardcode_libdir_separator_F77=
14070           fi
14071         esac
14072         shared_flag='-shared'
14073       else
14074         # not using gcc
14075         if test "$host_cpu" = ia64; then
14076         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14077         # chokes on -Wl,-G. The following line is correct:
14078           shared_flag='-G'
14079         else
14080         if test "$aix_use_runtimelinking" = yes; then
14081             shared_flag='${wl}-G'
14082           else
14083             shared_flag='${wl}-bM:SRE'
14084         fi
14085         fi
14086       fi
14087
14088       # It seems that -bexpall does not export symbols beginning with
14089       # underscore (_), so it is better to generate a list of symbols to export.
14090       always_export_symbols_F77=yes
14091       if test "$aix_use_runtimelinking" = yes; then
14092         # Warning - without using the other runtime loading flags (-brtl),
14093         # -berok will link without error, but may produce a broken library.
14094         allow_undefined_flag_F77='-berok'
14095        # Determine the default libpath from the value encoded in an empty executable.
14096        cat >conftest.$ac_ext <<_ACEOF
14097       program main
14098
14099       end
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103   (eval $ac_link) 2>conftest.er1
14104   ac_status=$?
14105   grep -v '^ *+' conftest.er1 >conftest.err
14106   rm -f conftest.er1
14107   cat conftest.err >&5
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } &&
14110          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; } &&
14116          { ac_try='test -s conftest$ac_exeext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122
14123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14124 }'`
14125 # Check for a 64-bit object if we didn't find anything.
14126 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; }
14127 }'`; fi
14128 else
14129   echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 fi
14133 rm -f conftest.err conftest.$ac_objext \
14134       conftest$ac_exeext conftest.$ac_ext
14135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14136
14137        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14138         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"
14139        else
14140         if test "$host_cpu" = ia64; then
14141           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14142           allow_undefined_flag_F77="-z nodefs"
14143           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"
14144         else
14145          # Determine the default libpath from the value encoded in an empty executable.
14146          cat >conftest.$ac_ext <<_ACEOF
14147       program main
14148
14149       end
14150 _ACEOF
14151 rm -f conftest.$ac_objext conftest$ac_exeext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14153   (eval $ac_link) 2>conftest.er1
14154   ac_status=$?
14155   grep -v '^ *+' conftest.er1 >conftest.err
14156   rm -f conftest.er1
14157   cat conftest.err >&5
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } &&
14160          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; } &&
14166          { ac_try='test -s conftest$ac_exeext'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172
14173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14174 }'`
14175 # Check for a 64-bit object if we didn't find anything.
14176 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; }
14177 }'`; fi
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 fi
14183 rm -f conftest.err conftest.$ac_objext \
14184       conftest$ac_exeext conftest.$ac_ext
14185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14186
14187          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14188           # Warning - without using the other run time loading flags,
14189           # -berok will link without error, but may produce a broken library.
14190           no_undefined_flag_F77=' ${wl}-bernotok'
14191           allow_undefined_flag_F77=' ${wl}-berok'
14192           # -bexpall does not export symbols beginning with underscore (_)
14193           always_export_symbols_F77=yes
14194           # Exported symbols can be pulled into shared objects from archives
14195           whole_archive_flag_spec_F77=' '
14196           archive_cmds_need_lc_F77=yes
14197           # This is similar to how AIX traditionally builds it's shared libraries.
14198           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'
14199         fi
14200       fi
14201       ;;
14202
14203     amigaos*)
14204       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)'
14205       hardcode_libdir_flag_spec_F77='-L$libdir'
14206       hardcode_minus_L_F77=yes
14207       # see comment about different semantics on the GNU ld section
14208       ld_shlibs_F77=no
14209       ;;
14210
14211     bsdi4*)
14212       export_dynamic_flag_spec_F77=-rdynamic
14213       ;;
14214
14215     cygwin* | mingw* | pw32*)
14216       # When not using gcc, we currently assume that we are using
14217       # Microsoft Visual C++.
14218       # hardcode_libdir_flag_spec is actually meaningless, as there is
14219       # no search path for DLLs.
14220       hardcode_libdir_flag_spec_F77=' '
14221       allow_undefined_flag_F77=unsupported
14222       # Tell ltmain to make .lib files, not .a files.
14223       libext=lib
14224       # Tell ltmain to make .dll files, not .so files.
14225       shrext_cmds=".dll"
14226       # FIXME: Setting linknames here is a bad hack.
14227       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14228       # The linker will automatically build a .lib file if we build a DLL.
14229       old_archive_From_new_cmds_F77='true'
14230       # FIXME: Should let the user specify the lib program.
14231       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14232       fix_srcfile_path='`cygpath -w "$srcfile"`'
14233       enable_shared_with_static_runtimes_F77=yes
14234       ;;
14235
14236     darwin* | rhapsody*)
14237     if test "$GXX" = yes ; then
14238       archive_cmds_need_lc_F77=no
14239       case "$host_os" in
14240       rhapsody* | darwin1.[012])
14241         allow_undefined_flag_F77='-undefined suppress'
14242         ;;
14243       *) # Darwin 1.3 on
14244       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14245         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14246       else
14247         case ${MACOSX_DEPLOYMENT_TARGET} in
14248           10.[012])
14249             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14250             ;;
14251           10.*)
14252             allow_undefined_flag_F77='-undefined dynamic_lookup'
14253             ;;
14254         esac
14255       fi
14256         ;;
14257       esac
14258         lt_int_apple_cc_single_mod=no
14259         output_verbose_link_cmd='echo'
14260         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14261           lt_int_apple_cc_single_mod=yes
14262         fi
14263         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14264           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14265         else
14266         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'
14267       fi
14268       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14269       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14270         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14271           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}'
14272         else
14273           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}'
14274         fi
14275           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}'
14276       hardcode_direct_F77=no
14277       hardcode_automatic_F77=yes
14278       hardcode_shlibpath_var_F77=unsupported
14279       whole_archive_flag_spec_F77='-all_load $convenience'
14280       link_all_deplibs_F77=yes
14281     else
14282       ld_shlibs_F77=no
14283     fi
14284       ;;
14285
14286     dgux*)
14287       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288       hardcode_libdir_flag_spec_F77='-L$libdir'
14289       hardcode_shlibpath_var_F77=no
14290       ;;
14291
14292     freebsd1*)
14293       ld_shlibs_F77=no
14294       ;;
14295
14296     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14297     # support.  Future versions do this automatically, but an explicit c++rt0.o
14298     # does not break anything, and helps significantly (at the cost of a little
14299     # extra space).
14300     freebsd2.2*)
14301       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14302       hardcode_libdir_flag_spec_F77='-R$libdir'
14303       hardcode_direct_F77=yes
14304       hardcode_shlibpath_var_F77=no
14305       ;;
14306
14307     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14308     freebsd2*)
14309       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14310       hardcode_direct_F77=yes
14311       hardcode_minus_L_F77=yes
14312       hardcode_shlibpath_var_F77=no
14313       ;;
14314
14315     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14316     freebsd* | kfreebsd*-gnu)
14317       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14318       hardcode_libdir_flag_spec_F77='-R$libdir'
14319       hardcode_direct_F77=yes
14320       hardcode_shlibpath_var_F77=no
14321       ;;
14322
14323     hpux9*)
14324       if test "$GCC" = yes; then
14325         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'
14326       else
14327         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'
14328       fi
14329       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14330       hardcode_libdir_separator_F77=:
14331       hardcode_direct_F77=yes
14332
14333       # hardcode_minus_L: Not really in the search PATH,
14334       # but as the default location of the library.
14335       hardcode_minus_L_F77=yes
14336       export_dynamic_flag_spec_F77='${wl}-E'
14337       ;;
14338
14339     hpux10* | hpux11*)
14340       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14341         case "$host_cpu" in
14342         hppa*64*|ia64*)
14343           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14344           ;;
14345         *)
14346           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14347           ;;
14348         esac
14349       else
14350         case "$host_cpu" in
14351         hppa*64*|ia64*)
14352           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14353           ;;
14354         *)
14355           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14356           ;;
14357         esac
14358       fi
14359       if test "$with_gnu_ld" = no; then
14360         case "$host_cpu" in
14361         hppa*64*)
14362           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14363           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14364           hardcode_libdir_separator_F77=:
14365           hardcode_direct_F77=no
14366           hardcode_shlibpath_var_F77=no
14367           ;;
14368         ia64*)
14369           hardcode_libdir_flag_spec_F77='-L$libdir'
14370           hardcode_direct_F77=no
14371           hardcode_shlibpath_var_F77=no
14372
14373           # hardcode_minus_L: Not really in the search PATH,
14374           # but as the default location of the library.
14375           hardcode_minus_L_F77=yes
14376           ;;
14377         *)
14378           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14379           hardcode_libdir_separator_F77=:
14380           hardcode_direct_F77=yes
14381           export_dynamic_flag_spec_F77='${wl}-E'
14382
14383           # hardcode_minus_L: Not really in the search PATH,
14384           # but as the default location of the library.
14385           hardcode_minus_L_F77=yes
14386           ;;
14387         esac
14388       fi
14389       ;;
14390
14391     irix5* | irix6* | nonstopux*)
14392       if test "$GCC" = yes; then
14393         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'
14394       else
14395         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'
14396         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14397       fi
14398       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14399       hardcode_libdir_separator_F77=:
14400       link_all_deplibs_F77=yes
14401       ;;
14402
14403     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14404       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14405         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14406       else
14407         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14408       fi
14409       hardcode_libdir_flag_spec_F77='-R$libdir'
14410       hardcode_direct_F77=yes
14411       hardcode_shlibpath_var_F77=no
14412       ;;
14413
14414     newsos6)
14415       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416       hardcode_direct_F77=yes
14417       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14418       hardcode_libdir_separator_F77=:
14419       hardcode_shlibpath_var_F77=no
14420       ;;
14421
14422     openbsd*)
14423       hardcode_direct_F77=yes
14424       hardcode_shlibpath_var_F77=no
14425       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14426         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14427         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14428         export_dynamic_flag_spec_F77='${wl}-E'
14429       else
14430        case $host_os in
14431          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14432            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14433            hardcode_libdir_flag_spec_F77='-R$libdir'
14434            ;;
14435          *)
14436            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14437            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14438            ;;
14439        esac
14440       fi
14441       ;;
14442
14443     os2*)
14444       hardcode_libdir_flag_spec_F77='-L$libdir'
14445       hardcode_minus_L_F77=yes
14446       allow_undefined_flag_F77=unsupported
14447       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'
14448       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14449       ;;
14450
14451     osf3*)
14452       if test "$GCC" = yes; then
14453         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14454         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'
14455       else
14456         allow_undefined_flag_F77=' -expect_unresolved \*'
14457         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'
14458       fi
14459       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460       hardcode_libdir_separator_F77=:
14461       ;;
14462
14463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14464       if test "$GCC" = yes; then
14465         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14466         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'
14467         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14468       else
14469         allow_undefined_flag_F77=' -expect_unresolved \*'
14470         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'
14471         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~
14472         $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'
14473
14474         # Both c and cxx compiler support -rpath directly
14475         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14476       fi
14477       hardcode_libdir_separator_F77=:
14478       ;;
14479
14480     sco3.2v5*)
14481       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482       hardcode_shlibpath_var_F77=no
14483       export_dynamic_flag_spec_F77='${wl}-Bexport'
14484       runpath_var=LD_RUN_PATH
14485       hardcode_runpath_var=yes
14486       ;;
14487
14488     solaris*)
14489       no_undefined_flag_F77=' -z text'
14490       if test "$GCC" = yes; then
14491         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14493           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14494       else
14495         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14496         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14497         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14498       fi
14499       hardcode_libdir_flag_spec_F77='-R$libdir'
14500       hardcode_shlibpath_var_F77=no
14501       case $host_os in
14502       solaris2.[0-5] | solaris2.[0-5].*) ;;
14503       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14504         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14505       esac
14506       link_all_deplibs_F77=yes
14507       ;;
14508
14509     sunos4*)
14510       if test "x$host_vendor" = xsequent; then
14511         # Use $CC to link under sequent, because it throws in some extra .o
14512         # files that make .init and .fini sections work.
14513         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14514       else
14515         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14516       fi
14517       hardcode_libdir_flag_spec_F77='-L$libdir'
14518       hardcode_direct_F77=yes
14519       hardcode_minus_L_F77=yes
14520       hardcode_shlibpath_var_F77=no
14521       ;;
14522
14523     sysv4)
14524       case $host_vendor in
14525         sni)
14526           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14527           hardcode_direct_F77=yes # is this really true???
14528         ;;
14529         siemens)
14530           ## LD is ld it makes a PLAMLIB
14531           ## CC just makes a GrossModule.
14532           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14533           reload_cmds_F77='$CC -r -o $output$reload_objs'
14534           hardcode_direct_F77=no
14535         ;;
14536         motorola)
14537           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14539         ;;
14540       esac
14541       runpath_var='LD_RUN_PATH'
14542       hardcode_shlibpath_var_F77=no
14543       ;;
14544
14545     sysv4.3*)
14546       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14547       hardcode_shlibpath_var_F77=no
14548       export_dynamic_flag_spec_F77='-Bexport'
14549       ;;
14550
14551     sysv4*MP*)
14552       if test -d /usr/nec; then
14553         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554         hardcode_shlibpath_var_F77=no
14555         runpath_var=LD_RUN_PATH
14556         hardcode_runpath_var=yes
14557         ld_shlibs_F77=yes
14558       fi
14559       ;;
14560
14561     sysv4.2uw2*)
14562       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14563       hardcode_direct_F77=yes
14564       hardcode_minus_L_F77=no
14565       hardcode_shlibpath_var_F77=no
14566       hardcode_runpath_var=yes
14567       runpath_var=LD_RUN_PATH
14568       ;;
14569
14570    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14571       no_undefined_flag_F77='${wl}-z ${wl}text'
14572       if test "$GCC" = yes; then
14573         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14574       else
14575         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14576       fi
14577       runpath_var='LD_RUN_PATH'
14578       hardcode_shlibpath_var_F77=no
14579       ;;
14580
14581     sysv5*)
14582       no_undefined_flag_F77=' -z text'
14583       # $CC -shared without GNU ld will not create a library from C++
14584       # object files and a static libstdc++, better avoid it by now
14585       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14587                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14588       hardcode_libdir_flag_spec_F77=
14589       hardcode_shlibpath_var_F77=no
14590       runpath_var='LD_RUN_PATH'
14591       ;;
14592
14593     uts4*)
14594       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14595       hardcode_libdir_flag_spec_F77='-L$libdir'
14596       hardcode_shlibpath_var_F77=no
14597       ;;
14598
14599     *)
14600       ld_shlibs_F77=no
14601       ;;
14602     esac
14603   fi
14604
14605 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14606 echo "${ECHO_T}$ld_shlibs_F77" >&6
14607 test "$ld_shlibs_F77" = no && can_build_shared=no
14608
14609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14610 if test "$GCC" = yes; then
14611   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14612 fi
14613
14614 #
14615 # Do we need to explicitly link libc?
14616 #
14617 case "x$archive_cmds_need_lc_F77" in
14618 x|xyes)
14619   # Assume -lc should be added
14620   archive_cmds_need_lc_F77=yes
14621
14622   if test "$enable_shared" = yes && test "$GCC" = yes; then
14623     case $archive_cmds_F77 in
14624     *'~'*)
14625       # FIXME: we may have to deal with multi-command sequences.
14626       ;;
14627     '$CC '*)
14628       # Test whether the compiler implicitly links with -lc since on some
14629       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630       # to ld, don't add -lc before -lgcc.
14631       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14633       $rm conftest*
14634       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14635
14636       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637   (eval $ac_compile) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } 2>conftest.err; then
14641         soname=conftest
14642         lib=conftest
14643         libobjs=conftest.$ac_objext
14644         deplibs=
14645         wl=$lt_prog_compiler_wl_F77
14646         compiler_flags=-v
14647         linker_flags=-v
14648         verstring=
14649         output_objdir=.
14650         libname=conftest
14651         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14652         allow_undefined_flag_F77=
14653         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14654   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }
14658         then
14659           archive_cmds_need_lc_F77=no
14660         else
14661           archive_cmds_need_lc_F77=yes
14662         fi
14663         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14664       else
14665         cat conftest.err 1>&5
14666       fi
14667       $rm conftest*
14668       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14669 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14670       ;;
14671     esac
14672   fi
14673   ;;
14674 esac
14675
14676 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14678 library_names_spec=
14679 libname_spec='lib$name'
14680 soname_spec=
14681 shrext_cmds=".so"
14682 postinstall_cmds=
14683 postuninstall_cmds=
14684 finish_cmds=
14685 finish_eval=
14686 shlibpath_var=
14687 shlibpath_overrides_runpath=unknown
14688 version_type=none
14689 dynamic_linker="$host_os ld.so"
14690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14691 if test "$GCC" = yes; then
14692   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14693   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14694     # if the path contains ";" then we assume it to be the separator
14695     # otherwise default to the standard path separator (i.e. ":") - it is
14696     # assumed that no part of a normal pathname contains ";" but that should
14697     # okay in the real world where ";" in dirpaths is itself problematic.
14698     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14699   else
14700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14701   fi
14702 else
14703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14704 fi
14705 need_lib_prefix=unknown
14706 hardcode_into_libs=no
14707
14708 # when you set need_version to no, make sure it does not cause -set_version
14709 # flags to be left without arguments
14710 need_version=unknown
14711
14712 case $host_os in
14713 aix3*)
14714   version_type=linux
14715   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14716   shlibpath_var=LIBPATH
14717
14718   # AIX 3 has no versioning support, so we append a major version to the name.
14719   soname_spec='${libname}${release}${shared_ext}$major'
14720   ;;
14721
14722 aix4* | aix5*)
14723   version_type=linux
14724   need_lib_prefix=no
14725   need_version=no
14726   hardcode_into_libs=yes
14727   if test "$host_cpu" = ia64; then
14728     # AIX 5 supports IA64
14729     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14730     shlibpath_var=LD_LIBRARY_PATH
14731   else
14732     # With GCC up to 2.95.x, collect2 would create an import file
14733     # for dependence libraries.  The import file would start with
14734     # the line `#! .'.  This would cause the generated library to
14735     # depend on `.', always an invalid library.  This was fixed in
14736     # development snapshots of GCC prior to 3.0.
14737     case $host_os in
14738       aix4 | aix4.[01] | aix4.[01].*)
14739       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14740            echo ' yes '
14741            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14742         :
14743       else
14744         can_build_shared=no
14745       fi
14746       ;;
14747     esac
14748     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14749     # soname into executable. Probably we can add versioning support to
14750     # collect2, so additional links can be useful in future.
14751     if test "$aix_use_runtimelinking" = yes; then
14752       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14753       # instead of lib<name>.a to let people know that these are not
14754       # typical AIX shared libraries.
14755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756     else
14757       # We preserve .a as extension for shared libraries through AIX4.2
14758       # and later when we are not doing run time linking.
14759       library_names_spec='${libname}${release}.a $libname.a'
14760       soname_spec='${libname}${release}${shared_ext}$major'
14761     fi
14762     shlibpath_var=LIBPATH
14763   fi
14764   ;;
14765
14766 amigaos*)
14767   library_names_spec='$libname.ixlibrary $libname.a'
14768   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14769   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'
14770   ;;
14771
14772 beos*)
14773   library_names_spec='${libname}${shared_ext}'
14774   dynamic_linker="$host_os ld.so"
14775   shlibpath_var=LIBRARY_PATH
14776   ;;
14777
14778 bsdi4*)
14779   version_type=linux
14780   need_version=no
14781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782   soname_spec='${libname}${release}${shared_ext}$major'
14783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14784   shlibpath_var=LD_LIBRARY_PATH
14785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14787   # the default ld.so.conf also contains /usr/contrib/lib and
14788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14789   # libtool to hard-code these into programs
14790   ;;
14791
14792 cygwin* | mingw* | pw32*)
14793   version_type=windows
14794   shrext_cmds=".dll"
14795   need_version=no
14796   need_lib_prefix=no
14797
14798   case $GCC,$host_os in
14799   yes,cygwin* | yes,mingw* | yes,pw32*)
14800     library_names_spec='$libname.dll.a'
14801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14802     postinstall_cmds='base_file=`basename \${file}`~
14803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14804       dldir=$destdir/`dirname \$dlpath`~
14805       test -d \$dldir || mkdir -p \$dldir~
14806       $install_prog $dir/$dlname \$dldir/$dlname'
14807     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14808       dlpath=$dir/\$dldll~
14809        $rm \$dlpath'
14810     shlibpath_overrides_runpath=yes
14811
14812     case $host_os in
14813     cygwin*)
14814       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14815       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14816       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14817       ;;
14818     mingw*)
14819       # MinGW DLLs use traditional 'lib' prefix
14820       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14822       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14823         # It is most probably a Windows format PATH printed by
14824         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14825         # path with ; separators, and with drive letters. We can handle the
14826         # drive letters (cygwin fileutils understands them), so leave them,
14827         # especially as we might pass files found there to a mingw objdump,
14828         # which wouldn't understand a cygwinified path. Ahh.
14829         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14830       else
14831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14832       fi
14833       ;;
14834     pw32*)
14835       # pw32 DLLs use 'pw' prefix rather than 'lib'
14836       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14837       ;;
14838     esac
14839     ;;
14840
14841   *)
14842     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14843     ;;
14844   esac
14845   dynamic_linker='Win32 ld.exe'
14846   # FIXME: first we should search . and the directory the executable is in
14847   shlibpath_var=PATH
14848   ;;
14849
14850 darwin* | rhapsody*)
14851   dynamic_linker="$host_os dyld"
14852   version_type=darwin
14853   need_lib_prefix=no
14854   need_version=no
14855   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856   soname_spec='${libname}${release}${major}$shared_ext'
14857   shlibpath_overrides_runpath=yes
14858   shlibpath_var=DYLD_LIBRARY_PATH
14859   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14860   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14861   if test "$GCC" = yes; then
14862     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"`
14863   else
14864     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14865   fi
14866   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14867   ;;
14868
14869 dgux*)
14870   version_type=linux
14871   need_lib_prefix=no
14872   need_version=no
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   ;;
14877
14878 freebsd1*)
14879   dynamic_linker=no
14880   ;;
14881
14882 kfreebsd*-gnu)
14883   version_type=linux
14884   need_lib_prefix=no
14885   need_version=no
14886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14887   soname_spec='${libname}${release}${shared_ext}$major'
14888   shlibpath_var=LD_LIBRARY_PATH
14889   shlibpath_overrides_runpath=no
14890   hardcode_into_libs=yes
14891   dynamic_linker='GNU ld.so'
14892   ;;
14893
14894 freebsd*)
14895   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14896   version_type=freebsd-$objformat
14897   case $version_type in
14898     freebsd-elf*)
14899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14900       need_version=no
14901       need_lib_prefix=no
14902       ;;
14903     freebsd-*)
14904       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14905       need_version=yes
14906       ;;
14907   esac
14908   shlibpath_var=LD_LIBRARY_PATH
14909   case $host_os in
14910   freebsd2*)
14911     shlibpath_overrides_runpath=yes
14912     ;;
14913   freebsd3.01* | freebsdelf3.01*)
14914     shlibpath_overrides_runpath=yes
14915     hardcode_into_libs=yes
14916     ;;
14917   *) # from 3.2 on
14918     shlibpath_overrides_runpath=no
14919     hardcode_into_libs=yes
14920     ;;
14921   esac
14922   ;;
14923
14924 gnu*)
14925   version_type=linux
14926   need_lib_prefix=no
14927   need_version=no
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14929   soname_spec='${libname}${release}${shared_ext}$major'
14930   shlibpath_var=LD_LIBRARY_PATH
14931   hardcode_into_libs=yes
14932   ;;
14933
14934 hpux9* | hpux10* | hpux11*)
14935   # Give a soname corresponding to the major version so that dld.sl refuses to
14936   # link against other versions.
14937   version_type=sunos
14938   need_lib_prefix=no
14939   need_version=no
14940   case "$host_cpu" in
14941   ia64*)
14942     shrext_cmds='.so'
14943     hardcode_into_libs=yes
14944     dynamic_linker="$host_os dld.so"
14945     shlibpath_var=LD_LIBRARY_PATH
14946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948     soname_spec='${libname}${release}${shared_ext}$major'
14949     if test "X$HPUX_IA64_MODE" = X32; then
14950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14951     else
14952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14953     fi
14954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14955     ;;
14956    hppa*64*)
14957      shrext_cmds='.sl'
14958      hardcode_into_libs=yes
14959      dynamic_linker="$host_os dld.sl"
14960      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14961      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963      soname_spec='${libname}${release}${shared_ext}$major'
14964      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14965      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14966      ;;
14967    *)
14968     shrext_cmds='.sl'
14969     dynamic_linker="$host_os dld.sl"
14970     shlibpath_var=SHLIB_PATH
14971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973     soname_spec='${libname}${release}${shared_ext}$major'
14974     ;;
14975   esac
14976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14977   postinstall_cmds='chmod 555 $lib'
14978   ;;
14979
14980 irix5* | irix6* | nonstopux*)
14981   case $host_os in
14982     nonstopux*) version_type=nonstopux ;;
14983     *)
14984         if test "$lt_cv_prog_gnu_ld" = yes; then
14985                 version_type=linux
14986         else
14987                 version_type=irix
14988         fi ;;
14989   esac
14990   need_lib_prefix=no
14991   need_version=no
14992   soname_spec='${libname}${release}${shared_ext}$major'
14993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14994   case $host_os in
14995   irix5* | nonstopux*)
14996     libsuff= shlibsuff=
14997     ;;
14998   *)
14999     case $LD in # libtool.m4 will add one of these switches to LD
15000     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15001       libsuff= shlibsuff= libmagic=32-bit;;
15002     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15003       libsuff=32 shlibsuff=N32 libmagic=N32;;
15004     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15005       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15006     *) libsuff= shlibsuff= libmagic=never-match;;
15007     esac
15008     ;;
15009   esac
15010   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15011   shlibpath_overrides_runpath=no
15012   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15013   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15014   hardcode_into_libs=yes
15015   ;;
15016
15017 # No shared lib support for Linux oldld, aout, or coff.
15018 linux*oldld* | linux*aout* | linux*coff*)
15019   dynamic_linker=no
15020   ;;
15021
15022 # This must be Linux ELF.
15023 linux*)
15024   version_type=linux
15025   need_lib_prefix=no
15026   need_version=no
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=no
15032   # This implies no fast_install, which is unacceptable.
15033   # Some rework will be needed to allow for fast_install
15034   # before this can be enabled.
15035   hardcode_into_libs=yes
15036
15037   # Append ld.so.conf contents to the search path
15038   if test -f /etc/ld.so.conf; then
15039     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15040     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15041   fi
15042
15043   # We used to test for /lib/ld.so.1 and disable shared libraries on
15044   # powerpc, because MkLinux only supported shared libraries with the
15045   # GNU dynamic linker.  Since this was broken with cross compilers,
15046   # most powerpc-linux boxes support dynamic linking these days and
15047   # people can always --disable-shared, the test was removed, and we
15048   # assume the GNU/Linux dynamic linker is in use.
15049   dynamic_linker='GNU/Linux ld.so'
15050   ;;
15051
15052 netbsdelf*-gnu)
15053   version_type=linux
15054   need_lib_prefix=no
15055   need_version=no
15056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15057   soname_spec='${libname}${release}${shared_ext}$major'
15058   shlibpath_var=LD_LIBRARY_PATH
15059   shlibpath_overrides_runpath=no
15060   hardcode_into_libs=yes
15061   dynamic_linker='NetBSD ld.elf_so'
15062   ;;
15063
15064 knetbsd*-gnu)
15065   version_type=linux
15066   need_lib_prefix=no
15067   need_version=no
15068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15069   soname_spec='${libname}${release}${shared_ext}$major'
15070   shlibpath_var=LD_LIBRARY_PATH
15071   shlibpath_overrides_runpath=no
15072   hardcode_into_libs=yes
15073   dynamic_linker='GNU ld.so'
15074   ;;
15075
15076 netbsd*)
15077   version_type=sunos
15078   need_lib_prefix=no
15079   need_version=no
15080   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15082     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15083     dynamic_linker='NetBSD (a.out) ld.so'
15084   else
15085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15086     soname_spec='${libname}${release}${shared_ext}$major'
15087     dynamic_linker='NetBSD ld.elf_so'
15088   fi
15089   shlibpath_var=LD_LIBRARY_PATH
15090   shlibpath_overrides_runpath=yes
15091   hardcode_into_libs=yes
15092   ;;
15093
15094 newsos6)
15095   version_type=linux
15096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   shlibpath_overrides_runpath=yes
15099   ;;
15100
15101 nto-qnx*)
15102   version_type=linux
15103   need_lib_prefix=no
15104   need_version=no
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106   soname_spec='${libname}${release}${shared_ext}$major'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   shlibpath_overrides_runpath=yes
15109   ;;
15110
15111 openbsd*)
15112   version_type=sunos
15113   need_lib_prefix=no
15114   need_version=yes
15115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15117   shlibpath_var=LD_LIBRARY_PATH
15118   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15119     case $host_os in
15120       openbsd2.[89] | openbsd2.[89].*)
15121         shlibpath_overrides_runpath=no
15122         ;;
15123       *)
15124         shlibpath_overrides_runpath=yes
15125         ;;
15126       esac
15127   else
15128     shlibpath_overrides_runpath=yes
15129   fi
15130   ;;
15131
15132 os2*)
15133   libname_spec='$name'
15134   shrext_cmds=".dll"
15135   need_lib_prefix=no
15136   library_names_spec='$libname${shared_ext} $libname.a'
15137   dynamic_linker='OS/2 ld.exe'
15138   shlibpath_var=LIBPATH
15139   ;;
15140
15141 osf3* | osf4* | osf5*)
15142   version_type=osf
15143   need_lib_prefix=no
15144   need_version=no
15145   soname_spec='${libname}${release}${shared_ext}$major'
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147   shlibpath_var=LD_LIBRARY_PATH
15148   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15149   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15150   ;;
15151
15152 sco3.2v5*)
15153   version_type=osf
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   ;;
15158
15159 solaris*)
15160   version_type=linux
15161   need_lib_prefix=no
15162   need_version=no
15163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164   soname_spec='${libname}${release}${shared_ext}$major'
15165   shlibpath_var=LD_LIBRARY_PATH
15166   shlibpath_overrides_runpath=yes
15167   hardcode_into_libs=yes
15168   # ldd complains unless libraries are executable
15169   postinstall_cmds='chmod +x $lib'
15170   ;;
15171
15172 sunos4*)
15173   version_type=sunos
15174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15175   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15176   shlibpath_var=LD_LIBRARY_PATH
15177   shlibpath_overrides_runpath=yes
15178   if test "$with_gnu_ld" = yes; then
15179     need_lib_prefix=no
15180   fi
15181   need_version=yes
15182   ;;
15183
15184 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15185   version_type=linux
15186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187   soname_spec='${libname}${release}${shared_ext}$major'
15188   shlibpath_var=LD_LIBRARY_PATH
15189   case $host_vendor in
15190     sni)
15191       shlibpath_overrides_runpath=no
15192       need_lib_prefix=no
15193       export_dynamic_flag_spec='${wl}-Blargedynsym'
15194       runpath_var=LD_RUN_PATH
15195       ;;
15196     siemens)
15197       need_lib_prefix=no
15198       ;;
15199     motorola)
15200       need_lib_prefix=no
15201       need_version=no
15202       shlibpath_overrides_runpath=no
15203       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15204       ;;
15205   esac
15206   ;;
15207
15208 sysv4*MP*)
15209   if test -d /usr/nec ;then
15210     version_type=linux
15211     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15212     soname_spec='$libname${shared_ext}.$major'
15213     shlibpath_var=LD_LIBRARY_PATH
15214   fi
15215   ;;
15216
15217 uts4*)
15218   version_type=linux
15219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220   soname_spec='${libname}${release}${shared_ext}$major'
15221   shlibpath_var=LD_LIBRARY_PATH
15222   ;;
15223
15224 *)
15225   dynamic_linker=no
15226   ;;
15227 esac
15228 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15229 echo "${ECHO_T}$dynamic_linker" >&6
15230 test "$dynamic_linker" = no && can_build_shared=no
15231
15232 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15233 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15234 hardcode_action_F77=
15235 if test -n "$hardcode_libdir_flag_spec_F77" || \
15236    test -n "$runpath_var F77" || \
15237    test "X$hardcode_automatic_F77"="Xyes" ; then
15238
15239   # We can hardcode non-existant directories.
15240   if test "$hardcode_direct_F77" != no &&
15241      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15242      # have to relink, otherwise we might link with an installed library
15243      # when we should be linking with a yet-to-be-installed one
15244      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15245      test "$hardcode_minus_L_F77" != no; then
15246     # Linking always hardcodes the temporary library directory.
15247     hardcode_action_F77=relink
15248   else
15249     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15250     hardcode_action_F77=immediate
15251   fi
15252 else
15253   # We cannot hardcode anything, or else we can only hardcode existing
15254   # directories.
15255   hardcode_action_F77=unsupported
15256 fi
15257 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15258 echo "${ECHO_T}$hardcode_action_F77" >&6
15259
15260 if test "$hardcode_action_F77" = relink; then
15261   # Fast installation is not supported
15262   enable_fast_install=no
15263 elif test "$shlibpath_overrides_runpath" = yes ||
15264      test "$enable_shared" = no; then
15265   # Fast installation is not necessary
15266   enable_fast_install=needless
15267 fi
15268
15269 striplib=
15270 old_striplib=
15271 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15272 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15274   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15275   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15276   echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6
15278 else
15279 # FIXME - insert some real tests, host_os isn't really good enough
15280   case $host_os in
15281    darwin*)
15282        if test -n "$STRIP" ; then
15283          striplib="$STRIP -x"
15284          echo "$as_me:$LINENO: result: yes" >&5
15285 echo "${ECHO_T}yes" >&6
15286        else
15287   echo "$as_me:$LINENO: result: no" >&5
15288 echo "${ECHO_T}no" >&6
15289 fi
15290        ;;
15291    *)
15292   echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6
15294     ;;
15295   esac
15296 fi
15297
15298
15299
15300 # The else clause should only fire when bootstrapping the
15301 # libtool distribution, otherwise you forgot to ship ltmain.sh
15302 # with your package, and you will get complaints that there are
15303 # no rules to generate ltmain.sh.
15304 if test -f "$ltmain"; then
15305   # See if we are running on zsh, and set the options which allow our commands through
15306   # without removal of \ escapes.
15307   if test -n "${ZSH_VERSION+set}" ; then
15308     setopt NO_GLOB_SUBST
15309   fi
15310   # Now quote all the things that may contain metacharacters while being
15311   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15312   # variables and quote the copies for generation of the libtool script.
15313   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15314     SED SHELL STRIP \
15315     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15316     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15317     deplibs_check_method reload_flag reload_cmds need_locks \
15318     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15319     lt_cv_sys_global_symbol_to_c_name_address \
15320     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15321     old_postinstall_cmds old_postuninstall_cmds \
15322     compiler_F77 \
15323     CC_F77 \
15324     LD_F77 \
15325     lt_prog_compiler_wl_F77 \
15326     lt_prog_compiler_pic_F77 \
15327     lt_prog_compiler_static_F77 \
15328     lt_prog_compiler_no_builtin_flag_F77 \
15329     export_dynamic_flag_spec_F77 \
15330     thread_safe_flag_spec_F77 \
15331     whole_archive_flag_spec_F77 \
15332     enable_shared_with_static_runtimes_F77 \
15333     old_archive_cmds_F77 \
15334     old_archive_from_new_cmds_F77 \
15335     predep_objects_F77 \
15336     postdep_objects_F77 \
15337     predeps_F77 \
15338     postdeps_F77 \
15339     compiler_lib_search_path_F77 \
15340     archive_cmds_F77 \
15341     archive_expsym_cmds_F77 \
15342     postinstall_cmds_F77 \
15343     postuninstall_cmds_F77 \
15344     old_archive_from_expsyms_cmds_F77 \
15345     allow_undefined_flag_F77 \
15346     no_undefined_flag_F77 \
15347     export_symbols_cmds_F77 \
15348     hardcode_libdir_flag_spec_F77 \
15349     hardcode_libdir_flag_spec_ld_F77 \
15350     hardcode_libdir_separator_F77 \
15351     hardcode_automatic_F77 \
15352     module_cmds_F77 \
15353     module_expsym_cmds_F77 \
15354     lt_cv_prog_compiler_c_o_F77 \
15355     exclude_expsyms_F77 \
15356     include_expsyms_F77; do
15357
15358     case $var in
15359     old_archive_cmds_F77 | \
15360     old_archive_from_new_cmds_F77 | \
15361     archive_cmds_F77 | \
15362     archive_expsym_cmds_F77 | \
15363     module_cmds_F77 | \
15364     module_expsym_cmds_F77 | \
15365     old_archive_from_expsyms_cmds_F77 | \
15366     export_symbols_cmds_F77 | \
15367     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15368     postinstall_cmds | postuninstall_cmds | \
15369     old_postinstall_cmds | old_postuninstall_cmds | \
15370     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15371       # Double-quote double-evaled strings.
15372       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15373       ;;
15374     *)
15375       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15376       ;;
15377     esac
15378   done
15379
15380   case $lt_echo in
15381   *'\$0 --fallback-echo"')
15382     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15383     ;;
15384   esac
15385
15386 cfgfile="$ofile"
15387
15388   cat <<__EOF__ >> "$cfgfile"
15389 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15390
15391 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15392
15393 # Shell to use when invoking shell scripts.
15394 SHELL=$lt_SHELL
15395
15396 # Whether or not to build shared libraries.
15397 build_libtool_libs=$enable_shared
15398
15399 # Whether or not to build static libraries.
15400 build_old_libs=$enable_static
15401
15402 # Whether or not to add -lc for building shared libraries.
15403 build_libtool_need_lc=$archive_cmds_need_lc_F77
15404
15405 # Whether or not to disallow shared libs when runtime libs are static
15406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15407
15408 # Whether or not to optimize for fast installation.
15409 fast_install=$enable_fast_install
15410
15411 # The host system.
15412 host_alias=$host_alias
15413 host=$host
15414
15415 # An echo program that does not interpret backslashes.
15416 echo=$lt_echo
15417
15418 # The archiver.
15419 AR=$lt_AR
15420 AR_FLAGS=$lt_AR_FLAGS
15421
15422 # A C compiler.
15423 LTCC=$lt_LTCC
15424
15425 # A language-specific compiler.
15426 CC=$lt_compiler_F77
15427
15428 # Is the compiler the GNU C compiler?
15429 with_gcc=$GCC_F77
15430
15431 # An ERE matcher.
15432 EGREP=$lt_EGREP
15433
15434 # The linker used to build libraries.
15435 LD=$lt_LD_F77
15436
15437 # Whether we need hard or soft links.
15438 LN_S=$lt_LN_S
15439
15440 # A BSD-compatible nm program.
15441 NM=$lt_NM
15442
15443 # A symbol stripping program
15444 STRIP=$lt_STRIP
15445
15446 # Used to examine libraries when file_magic_cmd begins "file"
15447 MAGIC_CMD=$MAGIC_CMD
15448
15449 # Used on cygwin: DLL creation program.
15450 DLLTOOL="$DLLTOOL"
15451
15452 # Used on cygwin: object dumper.
15453 OBJDUMP="$OBJDUMP"
15454
15455 # Used on cygwin: assembler.
15456 AS="$AS"
15457
15458 # The name of the directory that contains temporary libtool files.
15459 objdir=$objdir
15460
15461 # How to create reloadable object files.
15462 reload_flag=$lt_reload_flag
15463 reload_cmds=$lt_reload_cmds
15464
15465 # How to pass a linker flag through the compiler.
15466 wl=$lt_lt_prog_compiler_wl_F77
15467
15468 # Object file suffix (normally "o").
15469 objext="$ac_objext"
15470
15471 # Old archive suffix (normally "a").
15472 libext="$libext"
15473
15474 # Shared library suffix (normally ".so").
15475 shrext_cmds='$shrext_cmds'
15476
15477 # Executable file suffix (normally "").
15478 exeext="$exeext"
15479
15480 # Additional compiler flags for building library objects.
15481 pic_flag=$lt_lt_prog_compiler_pic_F77
15482 pic_mode=$pic_mode
15483
15484 # What is the maximum length of a command?
15485 max_cmd_len=$lt_cv_sys_max_cmd_len
15486
15487 # Does compiler simultaneously support -c and -o options?
15488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15489
15490 # Must we lock files when doing compilation ?
15491 need_locks=$lt_need_locks
15492
15493 # Do we need the lib prefix for modules?
15494 need_lib_prefix=$need_lib_prefix
15495
15496 # Do we need a version for libraries?
15497 need_version=$need_version
15498
15499 # Whether dlopen is supported.
15500 dlopen_support=$enable_dlopen
15501
15502 # Whether dlopen of programs is supported.
15503 dlopen_self=$enable_dlopen_self
15504
15505 # Whether dlopen of statically linked programs is supported.
15506 dlopen_self_static=$enable_dlopen_self_static
15507
15508 # Compiler flag to prevent dynamic linking.
15509 link_static_flag=$lt_lt_prog_compiler_static_F77
15510
15511 # Compiler flag to turn off builtin functions.
15512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15513
15514 # Compiler flag to allow reflexive dlopens.
15515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15516
15517 # Compiler flag to generate shared objects directly from archives.
15518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15519
15520 # Compiler flag to generate thread-safe objects.
15521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15522
15523 # Library versioning type.
15524 version_type=$version_type
15525
15526 # Format of library name prefix.
15527 libname_spec=$lt_libname_spec
15528
15529 # List of archive names.  First name is the real one, the rest are links.
15530 # The last name is the one that the linker finds with -lNAME.
15531 library_names_spec=$lt_library_names_spec
15532
15533 # The coded name of the library, if different from the real name.
15534 soname_spec=$lt_soname_spec
15535
15536 # Commands used to build and install an old-style archive.
15537 RANLIB=$lt_RANLIB
15538 old_archive_cmds=$lt_old_archive_cmds_F77
15539 old_postinstall_cmds=$lt_old_postinstall_cmds
15540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15541
15542 # Create an old-style archive from a shared archive.
15543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15544
15545 # Create a temporary old-style archive to link instead of a shared archive.
15546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15547
15548 # Commands used to build and install a shared archive.
15549 archive_cmds=$lt_archive_cmds_F77
15550 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15551 postinstall_cmds=$lt_postinstall_cmds
15552 postuninstall_cmds=$lt_postuninstall_cmds
15553
15554 # Commands used to build a loadable module (assumed same as above if empty)
15555 module_cmds=$lt_module_cmds_F77
15556 module_expsym_cmds=$lt_module_expsym_cmds_F77
15557
15558 # Commands to strip libraries.
15559 old_striplib=$lt_old_striplib
15560 striplib=$lt_striplib
15561
15562 # Dependencies to place before the objects being linked to create a
15563 # shared library.
15564 predep_objects=$lt_predep_objects_F77
15565
15566 # Dependencies to place after the objects being linked to create a
15567 # shared library.
15568 postdep_objects=$lt_postdep_objects_F77
15569
15570 # Dependencies to place before the objects being linked to create a
15571 # shared library.
15572 predeps=$lt_predeps_F77
15573
15574 # Dependencies to place after the objects being linked to create a
15575 # shared library.
15576 postdeps=$lt_postdeps_F77
15577
15578 # The library search path used internally by the compiler when linking
15579 # a shared library.
15580 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15581
15582 # Method to check whether dependent libraries are shared objects.
15583 deplibs_check_method=$lt_deplibs_check_method
15584
15585 # Command to use when deplibs_check_method == file_magic.
15586 file_magic_cmd=$lt_file_magic_cmd
15587
15588 # Flag that allows shared libraries with undefined symbols to be built.
15589 allow_undefined_flag=$lt_allow_undefined_flag_F77
15590
15591 # Flag that forces no undefined symbols.
15592 no_undefined_flag=$lt_no_undefined_flag_F77
15593
15594 # Commands used to finish a libtool library installation in a directory.
15595 finish_cmds=$lt_finish_cmds
15596
15597 # Same as above, but a single script fragment to be evaled but not shown.
15598 finish_eval=$lt_finish_eval
15599
15600 # Take the output of nm and produce a listing of raw symbols and C names.
15601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15602
15603 # Transform the output of nm in a proper C declaration
15604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15605
15606 # Transform the output of nm in a C name address pair
15607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15608
15609 # This is the shared library runtime path variable.
15610 runpath_var=$runpath_var
15611
15612 # This is the shared library path variable.
15613 shlibpath_var=$shlibpath_var
15614
15615 # Is shlibpath searched before the hard-coded library search path?
15616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15617
15618 # How to hardcode a shared library path into an executable.
15619 hardcode_action=$hardcode_action_F77
15620
15621 # Whether we should hardcode library paths into libraries.
15622 hardcode_into_libs=$hardcode_into_libs
15623
15624 # Flag to hardcode \$libdir into a binary during linking.
15625 # This must work even if \$libdir does not exist.
15626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15627
15628 # If ld is used when linking, flag to hardcode \$libdir into
15629 # a binary during linking. This must work even if \$libdir does
15630 # not exist.
15631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15632
15633 # Whether we need a single -rpath flag with a separated argument.
15634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15635
15636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15637 # resulting binary.
15638 hardcode_direct=$hardcode_direct_F77
15639
15640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15641 # resulting binary.
15642 hardcode_minus_L=$hardcode_minus_L_F77
15643
15644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15645 # the resulting binary.
15646 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15647
15648 # Set to yes if building a shared library automatically hardcodes DIR into the library
15649 # and all subsequent libraries and executables linked against it.
15650 hardcode_automatic=$hardcode_automatic_F77
15651
15652 # Variables whose values should be saved in libtool wrapper scripts and
15653 # restored at relink time.
15654 variables_saved_for_relink="$variables_saved_for_relink"
15655
15656 # Whether libtool must link a program against all its dependency libraries.
15657 link_all_deplibs=$link_all_deplibs_F77
15658
15659 # Compile-time system search path for libraries
15660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15661
15662 # Run-time system search path for libraries
15663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15664
15665 # Fix the shell variable \$srcfile for the compiler.
15666 fix_srcfile_path="$fix_srcfile_path_F77"
15667
15668 # Set to yes if exported symbols are required.
15669 always_export_symbols=$always_export_symbols_F77
15670
15671 # The commands to list exported symbols.
15672 export_symbols_cmds=$lt_export_symbols_cmds_F77
15673
15674 # The commands to extract the exported symbol list from a shared archive.
15675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15676
15677 # Symbols that should not be listed in the preloaded symbols.
15678 exclude_expsyms=$lt_exclude_expsyms_F77
15679
15680 # Symbols that must always be exported.
15681 include_expsyms=$lt_include_expsyms_F77
15682
15683 # ### END LIBTOOL TAG CONFIG: $tagname
15684
15685 __EOF__
15686
15687
15688 else
15689   # If there is no Makefile yet, we rely on a make rule to execute
15690   # `config.status --recheck' to rerun these tests and create the
15691   # libtool script then.
15692   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15693   if test -f "$ltmain_in"; then
15694     test -f Makefile && make "$ltmain"
15695   fi
15696 fi
15697
15698
15699 ac_ext=c
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15704
15705 CC="$lt_save_CC"
15706
15707         else
15708           tagname=""
15709         fi
15710         ;;
15711
15712       GCJ)
15713         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15714
15715
15716
15717 # Source file extension for Java test sources.
15718 ac_ext=java
15719
15720 # Object file extension for compiled Java test sources.
15721 objext=o
15722 objext_GCJ=$objext
15723
15724 # Code to be used in simple compile tests
15725 lt_simple_compile_test_code="class foo {}\n"
15726
15727 # Code to be used in simple link tests
15728 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15729
15730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15731
15732 # If no C compiler was specified, use CC.
15733 LTCC=${LTCC-"$CC"}
15734
15735 # Allow CC to be a program name with arguments.
15736 compiler=$CC
15737
15738
15739 # Allow CC to be a program name with arguments.
15740 lt_save_CC="$CC"
15741 CC=${GCJ-"gcj"}
15742 compiler=$CC
15743 compiler_GCJ=$CC
15744
15745 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15746 archive_cmds_need_lc_GCJ=no
15747
15748
15749 lt_prog_compiler_no_builtin_flag_GCJ=
15750
15751 if test "$GCC" = yes; then
15752   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15753
15754
15755 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15756 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   lt_cv_prog_compiler_rtti_exceptions=no
15761   ac_outfile=conftest.$ac_objext
15762    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15763    lt_compiler_flag="-fno-rtti -fno-exceptions"
15764    # Insert the option either (1) after the last *FLAGS variable, or
15765    # (2) before a word containing "conftest.", or (3) at the end.
15766    # Note that $ac_compile itself does not contain backslashes and begins
15767    # with a dollar sign (not a hyphen), so the echo should work correctly.
15768    # The option is referenced via a variable to avoid confusing sed.
15769    lt_compile=`echo "$ac_compile" | $SED \
15770    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15772    -e 's:$: $lt_compiler_flag:'`
15773    (eval echo "\"\$as_me:15773: $lt_compile\"" >&5)
15774    (eval "$lt_compile" 2>conftest.err)
15775    ac_status=$?
15776    cat conftest.err >&5
15777    echo "$as_me:15777: \$? = $ac_status" >&5
15778    if (exit $ac_status) && test -s "$ac_outfile"; then
15779      # The compiler can only warn and ignore the option if not recognized
15780      # So say no if there are warnings
15781      if test ! -s conftest.err; then
15782        lt_cv_prog_compiler_rtti_exceptions=yes
15783      fi
15784    fi
15785    $rm conftest*
15786
15787 fi
15788 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15789 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15790
15791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15792     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15793 else
15794     :
15795 fi
15796
15797 fi
15798
15799 lt_prog_compiler_wl_GCJ=
15800 lt_prog_compiler_pic_GCJ=
15801 lt_prog_compiler_static_GCJ=
15802
15803 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15805
15806   if test "$GCC" = yes; then
15807     lt_prog_compiler_wl_GCJ='-Wl,'
15808     lt_prog_compiler_static_GCJ='-static'
15809
15810     case $host_os in
15811       aix*)
15812       # All AIX code is PIC.
15813       if test "$host_cpu" = ia64; then
15814         # AIX 5 now supports IA64 processor
15815         lt_prog_compiler_static_GCJ='-Bstatic'
15816       fi
15817       ;;
15818
15819     amigaos*)
15820       # FIXME: we need at least 68020 code to build shared libraries, but
15821       # adding the `-m68020' flag to GCC prevents building anything better,
15822       # like `-m68040'.
15823       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15824       ;;
15825
15826     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15827       # PIC is the default for these OSes.
15828       ;;
15829
15830     mingw* | pw32* | os2*)
15831       # This hack is so that the source file can tell whether it is being
15832       # built for inclusion in a dll (and should export symbols for example).
15833       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15834       ;;
15835
15836     darwin* | rhapsody*)
15837       # PIC is the default on this platform
15838       # Common symbols not allowed in MH_DYLIB files
15839       lt_prog_compiler_pic_GCJ='-fno-common'
15840       ;;
15841
15842     msdosdjgpp*)
15843       # Just because we use GCC doesn't mean we suddenly get shared libraries
15844       # on systems that don't support them.
15845       lt_prog_compiler_can_build_shared_GCJ=no
15846       enable_shared=no
15847       ;;
15848
15849     sysv4*MP*)
15850       if test -d /usr/nec; then
15851         lt_prog_compiler_pic_GCJ=-Kconform_pic
15852       fi
15853       ;;
15854
15855     hpux*)
15856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15857       # not for PA HP-UX.
15858       case "$host_cpu" in
15859       hppa*64*|ia64*)
15860         # +Z the default
15861         ;;
15862       *)
15863         lt_prog_compiler_pic_GCJ='-fPIC'
15864         ;;
15865       esac
15866       ;;
15867
15868     *)
15869       lt_prog_compiler_pic_GCJ='-fPIC'
15870       ;;
15871     esac
15872   else
15873     # PORTME Check for flag to pass linker flags through the system compiler.
15874     case $host_os in
15875     aix*)
15876       lt_prog_compiler_wl_GCJ='-Wl,'
15877       if test "$host_cpu" = ia64; then
15878         # AIX 5 now supports IA64 processor
15879         lt_prog_compiler_static_GCJ='-Bstatic'
15880       else
15881         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15882       fi
15883       ;;
15884
15885     mingw* | pw32* | os2*)
15886       # This hack is so that the source file can tell whether it is being
15887       # built for inclusion in a dll (and should export symbols for example).
15888       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15889       ;;
15890
15891     hpux9* | hpux10* | hpux11*)
15892       lt_prog_compiler_wl_GCJ='-Wl,'
15893       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15894       # not for PA HP-UX.
15895       case "$host_cpu" in
15896       hppa*64*|ia64*)
15897         # +Z the default
15898         ;;
15899       *)
15900         lt_prog_compiler_pic_GCJ='+Z'
15901         ;;
15902       esac
15903       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15904       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15905       ;;
15906
15907     irix5* | irix6* | nonstopux*)
15908       lt_prog_compiler_wl_GCJ='-Wl,'
15909       # PIC (with -KPIC) is the default.
15910       lt_prog_compiler_static_GCJ='-non_shared'
15911       ;;
15912
15913     newsos6)
15914       lt_prog_compiler_pic_GCJ='-KPIC'
15915       lt_prog_compiler_static_GCJ='-Bstatic'
15916       ;;
15917
15918     linux*)
15919       case $CC in
15920       icc* | ecc*)
15921         lt_prog_compiler_wl_GCJ='-Wl,'
15922         lt_prog_compiler_pic_GCJ='-KPIC'
15923         lt_prog_compiler_static_GCJ='-static'
15924         ;;
15925       ccc*)
15926         lt_prog_compiler_wl_GCJ='-Wl,'
15927         # All Alpha code is PIC.
15928         lt_prog_compiler_static_GCJ='-non_shared'
15929         ;;
15930       esac
15931       ;;
15932
15933     osf3* | osf4* | osf5*)
15934       lt_prog_compiler_wl_GCJ='-Wl,'
15935       # All OSF/1 code is PIC.
15936       lt_prog_compiler_static_GCJ='-non_shared'
15937       ;;
15938
15939     sco3.2v5*)
15940       lt_prog_compiler_pic_GCJ='-Kpic'
15941       lt_prog_compiler_static_GCJ='-dn'
15942       ;;
15943
15944     solaris*)
15945       lt_prog_compiler_wl_GCJ='-Wl,'
15946       lt_prog_compiler_pic_GCJ='-KPIC'
15947       lt_prog_compiler_static_GCJ='-Bstatic'
15948       ;;
15949
15950     sunos4*)
15951       lt_prog_compiler_wl_GCJ='-Qoption ld '
15952       lt_prog_compiler_pic_GCJ='-PIC'
15953       lt_prog_compiler_static_GCJ='-Bstatic'
15954       ;;
15955
15956     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15957       lt_prog_compiler_wl_GCJ='-Wl,'
15958       lt_prog_compiler_pic_GCJ='-KPIC'
15959       lt_prog_compiler_static_GCJ='-Bstatic'
15960       ;;
15961
15962     sysv4*MP*)
15963       if test -d /usr/nec ;then
15964         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15965         lt_prog_compiler_static_GCJ='-Bstatic'
15966       fi
15967       ;;
15968
15969     uts4*)
15970       lt_prog_compiler_pic_GCJ='-pic'
15971       lt_prog_compiler_static_GCJ='-Bstatic'
15972       ;;
15973
15974     *)
15975       lt_prog_compiler_can_build_shared_GCJ=no
15976       ;;
15977     esac
15978   fi
15979
15980 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15981 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15982
15983 #
15984 # Check to make sure the PIC flag actually works.
15985 #
15986 if test -n "$lt_prog_compiler_pic_GCJ"; then
15987
15988 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15989 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15990 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993   lt_prog_compiler_pic_works_GCJ=no
15994   ac_outfile=conftest.$ac_objext
15995    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15996    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15997    # Insert the option either (1) after the last *FLAGS variable, or
15998    # (2) before a word containing "conftest.", or (3) at the end.
15999    # Note that $ac_compile itself does not contain backslashes and begins
16000    # with a dollar sign (not a hyphen), so the echo should work correctly.
16001    # The option is referenced via a variable to avoid confusing sed.
16002    lt_compile=`echo "$ac_compile" | $SED \
16003    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16004    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16005    -e 's:$: $lt_compiler_flag:'`
16006    (eval echo "\"\$as_me:16006: $lt_compile\"" >&5)
16007    (eval "$lt_compile" 2>conftest.err)
16008    ac_status=$?
16009    cat conftest.err >&5
16010    echo "$as_me:16010: \$? = $ac_status" >&5
16011    if (exit $ac_status) && test -s "$ac_outfile"; then
16012      # The compiler can only warn and ignore the option if not recognized
16013      # So say no if there are warnings
16014      if test ! -s conftest.err; then
16015        lt_prog_compiler_pic_works_GCJ=yes
16016      fi
16017    fi
16018    $rm conftest*
16019
16020 fi
16021 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16022 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16023
16024 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16025     case $lt_prog_compiler_pic_GCJ in
16026      "" | " "*) ;;
16027      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16028      esac
16029 else
16030     lt_prog_compiler_pic_GCJ=
16031      lt_prog_compiler_can_build_shared_GCJ=no
16032 fi
16033
16034 fi
16035 case "$host_os" in
16036   # For platforms which do not support PIC, -DPIC is meaningless:
16037   *djgpp*)
16038     lt_prog_compiler_pic_GCJ=
16039     ;;
16040   *)
16041     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16042     ;;
16043 esac
16044
16045 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16046 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16047 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16048   echo $ECHO_N "(cached) $ECHO_C" >&6
16049 else
16050   lt_cv_prog_compiler_c_o_GCJ=no
16051    $rm -r conftest 2>/dev/null
16052    mkdir conftest
16053    cd conftest
16054    mkdir out
16055    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16056
16057    lt_compiler_flag="-o out/conftest2.$ac_objext"
16058    # Insert the option either (1) after the last *FLAGS variable, or
16059    # (2) before a word containing "conftest.", or (3) at the end.
16060    # Note that $ac_compile itself does not contain backslashes and begins
16061    # with a dollar sign (not a hyphen), so the echo should work correctly.
16062    lt_compile=`echo "$ac_compile" | $SED \
16063    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16065    -e 's:$: $lt_compiler_flag:'`
16066    (eval echo "\"\$as_me:16066: $lt_compile\"" >&5)
16067    (eval "$lt_compile" 2>out/conftest.err)
16068    ac_status=$?
16069    cat out/conftest.err >&5
16070    echo "$as_me:16070: \$? = $ac_status" >&5
16071    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16072    then
16073      # The compiler can only warn and ignore the option if not recognized
16074      # So say no if there are warnings
16075      if test ! -s out/conftest.err; then
16076        lt_cv_prog_compiler_c_o_GCJ=yes
16077      fi
16078    fi
16079    chmod u+w .
16080    $rm conftest*
16081    # SGI C++ compiler will create directory out/ii_files/ for
16082    # template instantiation
16083    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16084    $rm out/* && rmdir out
16085    cd ..
16086    rmdir conftest
16087    $rm conftest*
16088
16089 fi
16090 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16092
16093
16094 hard_links="nottested"
16095 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16096   # do not overwrite the value of need_locks provided by the user
16097   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16099   hard_links=yes
16100   $rm conftest*
16101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16102   touch conftest.a
16103   ln conftest.a conftest.b 2>&5 || hard_links=no
16104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16105   echo "$as_me:$LINENO: result: $hard_links" >&5
16106 echo "${ECHO_T}$hard_links" >&6
16107   if test "$hard_links" = no; then
16108     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16110     need_locks=warn
16111   fi
16112 else
16113   need_locks=no
16114 fi
16115
16116 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16118
16119   runpath_var=
16120   allow_undefined_flag_GCJ=
16121   enable_shared_with_static_runtimes_GCJ=no
16122   archive_cmds_GCJ=
16123   archive_expsym_cmds_GCJ=
16124   old_archive_From_new_cmds_GCJ=
16125   old_archive_from_expsyms_cmds_GCJ=
16126   export_dynamic_flag_spec_GCJ=
16127   whole_archive_flag_spec_GCJ=
16128   thread_safe_flag_spec_GCJ=
16129   hardcode_libdir_flag_spec_GCJ=
16130   hardcode_libdir_flag_spec_ld_GCJ=
16131   hardcode_libdir_separator_GCJ=
16132   hardcode_direct_GCJ=no
16133   hardcode_minus_L_GCJ=no
16134   hardcode_shlibpath_var_GCJ=unsupported
16135   link_all_deplibs_GCJ=unknown
16136   hardcode_automatic_GCJ=no
16137   module_cmds_GCJ=
16138   module_expsym_cmds_GCJ=
16139   always_export_symbols_GCJ=no
16140   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16141   # include_expsyms should be a list of space-separated symbols to be *always*
16142   # included in the symbol list
16143   include_expsyms_GCJ=
16144   # exclude_expsyms can be an extended regexp of symbols to exclude
16145   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16146   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16147   # as well as any symbol that contains `d'.
16148   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16149   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16150   # platforms (ab)use it in PIC code, but their linkers get confused if
16151   # the symbol is explicitly referenced.  Since portable code cannot
16152   # rely on this symbol name, it's probably fine to never include it in
16153   # preloaded symbol tables.
16154   extract_expsyms_cmds=
16155
16156   case $host_os in
16157   cygwin* | mingw* | pw32*)
16158     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16159     # When not using gcc, we currently assume that we are using
16160     # Microsoft Visual C++.
16161     if test "$GCC" != yes; then
16162       with_gnu_ld=no
16163     fi
16164     ;;
16165   openbsd*)
16166     with_gnu_ld=no
16167     ;;
16168   esac
16169
16170   ld_shlibs_GCJ=yes
16171   if test "$with_gnu_ld" = yes; then
16172     # If archive_cmds runs LD, not CC, wlarc should be empty
16173     wlarc='${wl}'
16174
16175     # See if GNU ld supports shared libraries.
16176     case $host_os in
16177     aix3* | aix4* | aix5*)
16178       # On AIX/PPC, the GNU linker is very broken
16179       if test "$host_cpu" != ia64; then
16180         ld_shlibs_GCJ=no
16181         cat <<EOF 1>&2
16182
16183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16184 *** to be unable to reliably create shared libraries on AIX.
16185 *** Therefore, libtool is disabling shared libraries support.  If you
16186 *** really care for shared libraries, you may want to modify your PATH
16187 *** so that a non-GNU linker is found, and then restart.
16188
16189 EOF
16190       fi
16191       ;;
16192
16193     amigaos*)
16194       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)'
16195       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16196       hardcode_minus_L_GCJ=yes
16197
16198       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16199       # that the semantics of dynamic libraries on AmigaOS, at least up
16200       # to version 4, is to share data among multiple programs linked
16201       # with the same dynamic library.  Since this doesn't match the
16202       # behavior of shared libraries on other platforms, we can't use
16203       # them.
16204       ld_shlibs_GCJ=no
16205       ;;
16206
16207     beos*)
16208       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16209         allow_undefined_flag_GCJ=unsupported
16210         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16211         # support --undefined.  This deserves some investigation.  FIXME
16212         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213       else
16214         ld_shlibs_GCJ=no
16215       fi
16216       ;;
16217
16218     cygwin* | mingw* | pw32*)
16219       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16220       # as there is no search path for DLLs.
16221       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16222       allow_undefined_flag_GCJ=unsupported
16223       always_export_symbols_GCJ=no
16224       enable_shared_with_static_runtimes_GCJ=yes
16225       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16226
16227       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16228         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16229         # If the export-symbols file already is a .def file (1st line
16230         # is EXPORTS), use it as is; otherwise, prepend...
16231         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16232           cp $export_symbols $output_objdir/$soname.def;
16233         else
16234           echo EXPORTS > $output_objdir/$soname.def;
16235           cat $export_symbols >> $output_objdir/$soname.def;
16236         fi~
16237         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16238       else
16239         ld_shlibs=no
16240       fi
16241       ;;
16242
16243     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16244       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16245         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16246         wlarc=
16247       else
16248         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16250       fi
16251       ;;
16252
16253     solaris* | sysv5*)
16254       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16255         ld_shlibs_GCJ=no
16256         cat <<EOF 1>&2
16257
16258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16259 *** create shared libraries on Solaris systems.  Therefore, libtool
16260 *** is disabling shared libraries support.  We urge you to upgrade GNU
16261 *** binutils to release 2.9.1 or newer.  Another option is to modify
16262 *** your PATH or compiler configuration so that the native linker is
16263 *** used, and then restart.
16264
16265 EOF
16266       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16267         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16269       else
16270         ld_shlibs_GCJ=no
16271       fi
16272       ;;
16273
16274     sunos4*)
16275       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16276       wlarc=
16277       hardcode_direct_GCJ=yes
16278       hardcode_shlibpath_var_GCJ=no
16279       ;;
16280
16281   linux*)
16282     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16283         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284         archive_cmds_GCJ="$tmp_archive_cmds"
16285       supports_anon_versioning=no
16286       case `$LD -v 2>/dev/null` in
16287         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16288         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16289         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16290         *\ 2.11.*) ;; # other 2.11 versions
16291         *) supports_anon_versioning=yes ;;
16292       esac
16293       if test $supports_anon_versioning = yes; then
16294         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16296 $echo "local: *; };" >> $output_objdir/$libname.ver~
16297         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16298       else
16299         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16300       fi
16301       link_all_deplibs_GCJ=no
16302     else
16303       ld_shlibs_GCJ=no
16304     fi
16305     ;;
16306
16307     *)
16308       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16309         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16311       else
16312         ld_shlibs_GCJ=no
16313       fi
16314       ;;
16315     esac
16316
16317     if test "$ld_shlibs_GCJ" = yes; then
16318       runpath_var=LD_RUN_PATH
16319       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16320       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16321       # ancient GNU ld didn't support --whole-archive et. al.
16322       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16323         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16324       else
16325         whole_archive_flag_spec_GCJ=
16326       fi
16327     fi
16328   else
16329     # PORTME fill in a description of your system's linker (not GNU ld)
16330     case $host_os in
16331     aix3*)
16332       allow_undefined_flag_GCJ=unsupported
16333       always_export_symbols_GCJ=yes
16334       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'
16335       # Note: this linker hardcodes the directories in LIBPATH if there
16336       # are no directories specified by -L.
16337       hardcode_minus_L_GCJ=yes
16338       if test "$GCC" = yes && test -z "$link_static_flag"; then
16339         # Neither direct hardcoding nor static linking is supported with a
16340         # broken collect2.
16341         hardcode_direct_GCJ=unsupported
16342       fi
16343       ;;
16344
16345     aix4* | aix5*)
16346       if test "$host_cpu" = ia64; then
16347         # On IA64, the linker does run time linking by default, so we don't
16348         # have to do anything special.
16349         aix_use_runtimelinking=no
16350         exp_sym_flag='-Bexport'
16351         no_entry_flag=""
16352       else
16353         # If we're using GNU nm, then we don't want the "-C" option.
16354         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16355         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16356           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'
16357         else
16358           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'
16359         fi
16360         aix_use_runtimelinking=no
16361
16362         # Test if we are trying to use run time linking or normal
16363         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16364         # need to do runtime linking.
16365         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16366           for ld_flag in $LDFLAGS; do
16367           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16368             aix_use_runtimelinking=yes
16369             break
16370           fi
16371           done
16372         esac
16373
16374         exp_sym_flag='-bexport'
16375         no_entry_flag='-bnoentry'
16376       fi
16377
16378       # When large executables or shared objects are built, AIX ld can
16379       # have problems creating the table of contents.  If linking a library
16380       # or program results in "error TOC overflow" add -mminimal-toc to
16381       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16382       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16383
16384       archive_cmds_GCJ=''
16385       hardcode_direct_GCJ=yes
16386       hardcode_libdir_separator_GCJ=':'
16387       link_all_deplibs_GCJ=yes
16388
16389       if test "$GCC" = yes; then
16390         case $host_os in aix4.012|aix4.012.*)
16391         # We only want to do this on AIX 4.2 and lower, the check
16392         # below for broken collect2 doesn't work under 4.3+
16393           collect2name=`${CC} -print-prog-name=collect2`
16394           if test -f "$collect2name" && \
16395            strings "$collect2name" | grep resolve_lib_name >/dev/null
16396           then
16397           # We have reworked collect2
16398           hardcode_direct_GCJ=yes
16399           else
16400           # We have old collect2
16401           hardcode_direct_GCJ=unsupported
16402           # It fails to find uninstalled libraries when the uninstalled
16403           # path is not listed in the libpath.  Setting hardcode_minus_L
16404           # to unsupported forces relinking
16405           hardcode_minus_L_GCJ=yes
16406           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16407           hardcode_libdir_separator_GCJ=
16408           fi
16409         esac
16410         shared_flag='-shared'
16411       else
16412         # not using gcc
16413         if test "$host_cpu" = ia64; then
16414         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16415         # chokes on -Wl,-G. The following line is correct:
16416           shared_flag='-G'
16417         else
16418         if test "$aix_use_runtimelinking" = yes; then
16419             shared_flag='${wl}-G'
16420           else
16421             shared_flag='${wl}-bM:SRE'
16422         fi
16423         fi
16424       fi
16425
16426       # It seems that -bexpall does not export symbols beginning with
16427       # underscore (_), so it is better to generate a list of symbols to export.
16428       always_export_symbols_GCJ=yes
16429       if test "$aix_use_runtimelinking" = yes; then
16430         # Warning - without using the other runtime loading flags (-brtl),
16431         # -berok will link without error, but may produce a broken library.
16432         allow_undefined_flag_GCJ='-berok'
16433        # Determine the default libpath from the value encoded in an empty executable.
16434        cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440
16441 int
16442 main ()
16443 {
16444
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451   (eval $ac_link) 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } &&
16458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460   (eval $ac_try) 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; } &&
16464          { ac_try='test -s conftest$ac_exeext'
16465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466   (eval $ac_try) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; }; then
16470
16471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16472 }'`
16473 # Check for a 64-bit object if we didn't find anything.
16474 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; }
16475 }'`; fi
16476 else
16477   echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 fi
16481 rm -f conftest.err conftest.$ac_objext \
16482       conftest$ac_exeext conftest.$ac_ext
16483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16484
16485        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16486         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"
16487        else
16488         if test "$host_cpu" = ia64; then
16489           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16490           allow_undefined_flag_GCJ="-z nodefs"
16491           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"
16492         else
16493          # Determine the default libpath from the value encoded in an empty executable.
16494          cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500
16501 int
16502 main ()
16503 {
16504
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511   (eval $ac_link) 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520   (eval $ac_try) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest$ac_exeext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530
16531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16532 }'`
16533 # Check for a 64-bit object if we didn't find anything.
16534 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; }
16535 }'`; fi
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540 fi
16541 rm -f conftest.err conftest.$ac_objext \
16542       conftest$ac_exeext conftest.$ac_ext
16543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16544
16545          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16546           # Warning - without using the other run time loading flags,
16547           # -berok will link without error, but may produce a broken library.
16548           no_undefined_flag_GCJ=' ${wl}-bernotok'
16549           allow_undefined_flag_GCJ=' ${wl}-berok'
16550           # -bexpall does not export symbols beginning with underscore (_)
16551           always_export_symbols_GCJ=yes
16552           # Exported symbols can be pulled into shared objects from archives
16553           whole_archive_flag_spec_GCJ=' '
16554           archive_cmds_need_lc_GCJ=yes
16555           # This is similar to how AIX traditionally builds it's shared libraries.
16556           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'
16557         fi
16558       fi
16559       ;;
16560
16561     amigaos*)
16562       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)'
16563       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16564       hardcode_minus_L_GCJ=yes
16565       # see comment about different semantics on the GNU ld section
16566       ld_shlibs_GCJ=no
16567       ;;
16568
16569     bsdi4*)
16570       export_dynamic_flag_spec_GCJ=-rdynamic
16571       ;;
16572
16573     cygwin* | mingw* | pw32*)
16574       # When not using gcc, we currently assume that we are using
16575       # Microsoft Visual C++.
16576       # hardcode_libdir_flag_spec is actually meaningless, as there is
16577       # no search path for DLLs.
16578       hardcode_libdir_flag_spec_GCJ=' '
16579       allow_undefined_flag_GCJ=unsupported
16580       # Tell ltmain to make .lib files, not .a files.
16581       libext=lib
16582       # Tell ltmain to make .dll files, not .so files.
16583       shrext_cmds=".dll"
16584       # FIXME: Setting linknames here is a bad hack.
16585       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16586       # The linker will automatically build a .lib file if we build a DLL.
16587       old_archive_From_new_cmds_GCJ='true'
16588       # FIXME: Should let the user specify the lib program.
16589       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16590       fix_srcfile_path='`cygpath -w "$srcfile"`'
16591       enable_shared_with_static_runtimes_GCJ=yes
16592       ;;
16593
16594     darwin* | rhapsody*)
16595     if test "$GXX" = yes ; then
16596       archive_cmds_need_lc_GCJ=no
16597       case "$host_os" in
16598       rhapsody* | darwin1.[012])
16599         allow_undefined_flag_GCJ='-undefined suppress'
16600         ;;
16601       *) # Darwin 1.3 on
16602       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16603         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16604       else
16605         case ${MACOSX_DEPLOYMENT_TARGET} in
16606           10.[012])
16607             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16608             ;;
16609           10.*)
16610             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16611             ;;
16612         esac
16613       fi
16614         ;;
16615       esac
16616         lt_int_apple_cc_single_mod=no
16617         output_verbose_link_cmd='echo'
16618         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16619           lt_int_apple_cc_single_mod=yes
16620         fi
16621         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16622           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16623         else
16624         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'
16625       fi
16626       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16627       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16628         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16629           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}'
16630         else
16631           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}'
16632         fi
16633           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}'
16634       hardcode_direct_GCJ=no
16635       hardcode_automatic_GCJ=yes
16636       hardcode_shlibpath_var_GCJ=unsupported
16637       whole_archive_flag_spec_GCJ='-all_load $convenience'
16638       link_all_deplibs_GCJ=yes
16639     else
16640       ld_shlibs_GCJ=no
16641     fi
16642       ;;
16643
16644     dgux*)
16645       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16647       hardcode_shlibpath_var_GCJ=no
16648       ;;
16649
16650     freebsd1*)
16651       ld_shlibs_GCJ=no
16652       ;;
16653
16654     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16655     # support.  Future versions do this automatically, but an explicit c++rt0.o
16656     # does not break anything, and helps significantly (at the cost of a little
16657     # extra space).
16658     freebsd2.2*)
16659       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16660       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16661       hardcode_direct_GCJ=yes
16662       hardcode_shlibpath_var_GCJ=no
16663       ;;
16664
16665     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16666     freebsd2*)
16667       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16668       hardcode_direct_GCJ=yes
16669       hardcode_minus_L_GCJ=yes
16670       hardcode_shlibpath_var_GCJ=no
16671       ;;
16672
16673     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16674     freebsd* | kfreebsd*-gnu)
16675       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16676       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16677       hardcode_direct_GCJ=yes
16678       hardcode_shlibpath_var_GCJ=no
16679       ;;
16680
16681     hpux9*)
16682       if test "$GCC" = yes; then
16683         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'
16684       else
16685         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'
16686       fi
16687       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16688       hardcode_libdir_separator_GCJ=:
16689       hardcode_direct_GCJ=yes
16690
16691       # hardcode_minus_L: Not really in the search PATH,
16692       # but as the default location of the library.
16693       hardcode_minus_L_GCJ=yes
16694       export_dynamic_flag_spec_GCJ='${wl}-E'
16695       ;;
16696
16697     hpux10* | hpux11*)
16698       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16699         case "$host_cpu" in
16700         hppa*64*|ia64*)
16701           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16702           ;;
16703         *)
16704           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16705           ;;
16706         esac
16707       else
16708         case "$host_cpu" in
16709         hppa*64*|ia64*)
16710           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16711           ;;
16712         *)
16713           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16714           ;;
16715         esac
16716       fi
16717       if test "$with_gnu_ld" = no; then
16718         case "$host_cpu" in
16719         hppa*64*)
16720           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16721           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16722           hardcode_libdir_separator_GCJ=:
16723           hardcode_direct_GCJ=no
16724           hardcode_shlibpath_var_GCJ=no
16725           ;;
16726         ia64*)
16727           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16728           hardcode_direct_GCJ=no
16729           hardcode_shlibpath_var_GCJ=no
16730
16731           # hardcode_minus_L: Not really in the search PATH,
16732           # but as the default location of the library.
16733           hardcode_minus_L_GCJ=yes
16734           ;;
16735         *)
16736           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16737           hardcode_libdir_separator_GCJ=:
16738           hardcode_direct_GCJ=yes
16739           export_dynamic_flag_spec_GCJ='${wl}-E'
16740
16741           # hardcode_minus_L: Not really in the search PATH,
16742           # but as the default location of the library.
16743           hardcode_minus_L_GCJ=yes
16744           ;;
16745         esac
16746       fi
16747       ;;
16748
16749     irix5* | irix6* | nonstopux*)
16750       if test "$GCC" = yes; then
16751         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'
16752       else
16753         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'
16754         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16755       fi
16756       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16757       hardcode_libdir_separator_GCJ=:
16758       link_all_deplibs_GCJ=yes
16759       ;;
16760
16761     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16762       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16763         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16764       else
16765         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16766       fi
16767       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16768       hardcode_direct_GCJ=yes
16769       hardcode_shlibpath_var_GCJ=no
16770       ;;
16771
16772     newsos6)
16773       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774       hardcode_direct_GCJ=yes
16775       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16776       hardcode_libdir_separator_GCJ=:
16777       hardcode_shlibpath_var_GCJ=no
16778       ;;
16779
16780     openbsd*)
16781       hardcode_direct_GCJ=yes
16782       hardcode_shlibpath_var_GCJ=no
16783       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16784         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16785         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16786         export_dynamic_flag_spec_GCJ='${wl}-E'
16787       else
16788        case $host_os in
16789          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16790            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16791            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16792            ;;
16793          *)
16794            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16795            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16796            ;;
16797        esac
16798       fi
16799       ;;
16800
16801     os2*)
16802       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16803       hardcode_minus_L_GCJ=yes
16804       allow_undefined_flag_GCJ=unsupported
16805       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'
16806       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16807       ;;
16808
16809     osf3*)
16810       if test "$GCC" = yes; then
16811         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16812         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'
16813       else
16814         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16815         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'
16816       fi
16817       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16818       hardcode_libdir_separator_GCJ=:
16819       ;;
16820
16821     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16822       if test "$GCC" = yes; then
16823         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16824         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'
16825         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16826       else
16827         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16828         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'
16829         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~
16830         $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'
16831
16832         # Both c and cxx compiler support -rpath directly
16833         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16834       fi
16835       hardcode_libdir_separator_GCJ=:
16836       ;;
16837
16838     sco3.2v5*)
16839       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840       hardcode_shlibpath_var_GCJ=no
16841       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16842       runpath_var=LD_RUN_PATH
16843       hardcode_runpath_var=yes
16844       ;;
16845
16846     solaris*)
16847       no_undefined_flag_GCJ=' -z text'
16848       if test "$GCC" = yes; then
16849         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16850         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16851           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16852       else
16853         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16854         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16855         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16856       fi
16857       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16858       hardcode_shlibpath_var_GCJ=no
16859       case $host_os in
16860       solaris2.[0-5] | solaris2.[0-5].*) ;;
16861       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16862         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16863       esac
16864       link_all_deplibs_GCJ=yes
16865       ;;
16866
16867     sunos4*)
16868       if test "x$host_vendor" = xsequent; then
16869         # Use $CC to link under sequent, because it throws in some extra .o
16870         # files that make .init and .fini sections work.
16871         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16872       else
16873         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16874       fi
16875       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876       hardcode_direct_GCJ=yes
16877       hardcode_minus_L_GCJ=yes
16878       hardcode_shlibpath_var_GCJ=no
16879       ;;
16880
16881     sysv4)
16882       case $host_vendor in
16883         sni)
16884           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16885           hardcode_direct_GCJ=yes # is this really true???
16886         ;;
16887         siemens)
16888           ## LD is ld it makes a PLAMLIB
16889           ## CC just makes a GrossModule.
16890           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16891           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16892           hardcode_direct_GCJ=no
16893         ;;
16894         motorola)
16895           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16897         ;;
16898       esac
16899       runpath_var='LD_RUN_PATH'
16900       hardcode_shlibpath_var_GCJ=no
16901       ;;
16902
16903     sysv4.3*)
16904       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16905       hardcode_shlibpath_var_GCJ=no
16906       export_dynamic_flag_spec_GCJ='-Bexport'
16907       ;;
16908
16909     sysv4*MP*)
16910       if test -d /usr/nec; then
16911         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912         hardcode_shlibpath_var_GCJ=no
16913         runpath_var=LD_RUN_PATH
16914         hardcode_runpath_var=yes
16915         ld_shlibs_GCJ=yes
16916       fi
16917       ;;
16918
16919     sysv4.2uw2*)
16920       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16921       hardcode_direct_GCJ=yes
16922       hardcode_minus_L_GCJ=no
16923       hardcode_shlibpath_var_GCJ=no
16924       hardcode_runpath_var=yes
16925       runpath_var=LD_RUN_PATH
16926       ;;
16927
16928    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16929       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16930       if test "$GCC" = yes; then
16931         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16932       else
16933         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16934       fi
16935       runpath_var='LD_RUN_PATH'
16936       hardcode_shlibpath_var_GCJ=no
16937       ;;
16938
16939     sysv5*)
16940       no_undefined_flag_GCJ=' -z text'
16941       # $CC -shared without GNU ld will not create a library from C++
16942       # object files and a static libstdc++, better avoid it by now
16943       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16945                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16946       hardcode_libdir_flag_spec_GCJ=
16947       hardcode_shlibpath_var_GCJ=no
16948       runpath_var='LD_RUN_PATH'
16949       ;;
16950
16951     uts4*)
16952       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16954       hardcode_shlibpath_var_GCJ=no
16955       ;;
16956
16957     *)
16958       ld_shlibs_GCJ=no
16959       ;;
16960     esac
16961   fi
16962
16963 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16964 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16965 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16966
16967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16968 if test "$GCC" = yes; then
16969   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16970 fi
16971
16972 #
16973 # Do we need to explicitly link libc?
16974 #
16975 case "x$archive_cmds_need_lc_GCJ" in
16976 x|xyes)
16977   # Assume -lc should be added
16978   archive_cmds_need_lc_GCJ=yes
16979
16980   if test "$enable_shared" = yes && test "$GCC" = yes; then
16981     case $archive_cmds_GCJ in
16982     *'~'*)
16983       # FIXME: we may have to deal with multi-command sequences.
16984       ;;
16985     '$CC '*)
16986       # Test whether the compiler implicitly links with -lc since on some
16987       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16988       # to ld, don't add -lc before -lgcc.
16989       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16991       $rm conftest*
16992       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16993
16994       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16995   (eval $ac_compile) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); } 2>conftest.err; then
16999         soname=conftest
17000         lib=conftest
17001         libobjs=conftest.$ac_objext
17002         deplibs=
17003         wl=$lt_prog_compiler_wl_GCJ
17004         compiler_flags=-v
17005         linker_flags=-v
17006         verstring=
17007         output_objdir=.
17008         libname=conftest
17009         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17010         allow_undefined_flag_GCJ=
17011         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17012   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }
17016         then
17017           archive_cmds_need_lc_GCJ=no
17018         else
17019           archive_cmds_need_lc_GCJ=yes
17020         fi
17021         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17022       else
17023         cat conftest.err 1>&5
17024       fi
17025       $rm conftest*
17026       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17027 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17028       ;;
17029     esac
17030   fi
17031   ;;
17032 esac
17033
17034 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17035 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17036 library_names_spec=
17037 libname_spec='lib$name'
17038 soname_spec=
17039 shrext_cmds=".so"
17040 postinstall_cmds=
17041 postuninstall_cmds=
17042 finish_cmds=
17043 finish_eval=
17044 shlibpath_var=
17045 shlibpath_overrides_runpath=unknown
17046 version_type=none
17047 dynamic_linker="$host_os ld.so"
17048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17049 if test "$GCC" = yes; then
17050   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17051   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17052     # if the path contains ";" then we assume it to be the separator
17053     # otherwise default to the standard path separator (i.e. ":") - it is
17054     # assumed that no part of a normal pathname contains ";" but that should
17055     # okay in the real world where ";" in dirpaths is itself problematic.
17056     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17057   else
17058     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17059   fi
17060 else
17061   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17062 fi
17063 need_lib_prefix=unknown
17064 hardcode_into_libs=no
17065
17066 # when you set need_version to no, make sure it does not cause -set_version
17067 # flags to be left without arguments
17068 need_version=unknown
17069
17070 case $host_os in
17071 aix3*)
17072   version_type=linux
17073   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17074   shlibpath_var=LIBPATH
17075
17076   # AIX 3 has no versioning support, so we append a major version to the name.
17077   soname_spec='${libname}${release}${shared_ext}$major'
17078   ;;
17079
17080 aix4* | aix5*)
17081   version_type=linux
17082   need_lib_prefix=no
17083   need_version=no
17084   hardcode_into_libs=yes
17085   if test "$host_cpu" = ia64; then
17086     # AIX 5 supports IA64
17087     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17088     shlibpath_var=LD_LIBRARY_PATH
17089   else
17090     # With GCC up to 2.95.x, collect2 would create an import file
17091     # for dependence libraries.  The import file would start with
17092     # the line `#! .'.  This would cause the generated library to
17093     # depend on `.', always an invalid library.  This was fixed in
17094     # development snapshots of GCC prior to 3.0.
17095     case $host_os in
17096       aix4 | aix4.[01] | aix4.[01].*)
17097       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17098            echo ' yes '
17099            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17100         :
17101       else
17102         can_build_shared=no
17103       fi
17104       ;;
17105     esac
17106     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17107     # soname into executable. Probably we can add versioning support to
17108     # collect2, so additional links can be useful in future.
17109     if test "$aix_use_runtimelinking" = yes; then
17110       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17111       # instead of lib<name>.a to let people know that these are not
17112       # typical AIX shared libraries.
17113       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114     else
17115       # We preserve .a as extension for shared libraries through AIX4.2
17116       # and later when we are not doing run time linking.
17117       library_names_spec='${libname}${release}.a $libname.a'
17118       soname_spec='${libname}${release}${shared_ext}$major'
17119     fi
17120     shlibpath_var=LIBPATH
17121   fi
17122   ;;
17123
17124 amigaos*)
17125   library_names_spec='$libname.ixlibrary $libname.a'
17126   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17127   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'
17128   ;;
17129
17130 beos*)
17131   library_names_spec='${libname}${shared_ext}'
17132   dynamic_linker="$host_os ld.so"
17133   shlibpath_var=LIBRARY_PATH
17134   ;;
17135
17136 bsdi4*)
17137   version_type=linux
17138   need_version=no
17139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140   soname_spec='${libname}${release}${shared_ext}$major'
17141   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17142   shlibpath_var=LD_LIBRARY_PATH
17143   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17144   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17145   # the default ld.so.conf also contains /usr/contrib/lib and
17146   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17147   # libtool to hard-code these into programs
17148   ;;
17149
17150 cygwin* | mingw* | pw32*)
17151   version_type=windows
17152   shrext_cmds=".dll"
17153   need_version=no
17154   need_lib_prefix=no
17155
17156   case $GCC,$host_os in
17157   yes,cygwin* | yes,mingw* | yes,pw32*)
17158     library_names_spec='$libname.dll.a'
17159     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17160     postinstall_cmds='base_file=`basename \${file}`~
17161       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17162       dldir=$destdir/`dirname \$dlpath`~
17163       test -d \$dldir || mkdir -p \$dldir~
17164       $install_prog $dir/$dlname \$dldir/$dlname'
17165     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17166       dlpath=$dir/\$dldll~
17167        $rm \$dlpath'
17168     shlibpath_overrides_runpath=yes
17169
17170     case $host_os in
17171     cygwin*)
17172       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17173       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17175       ;;
17176     mingw*)
17177       # MinGW DLLs use traditional 'lib' prefix
17178       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17179       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17180       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17181         # It is most probably a Windows format PATH printed by
17182         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17183         # path with ; separators, and with drive letters. We can handle the
17184         # drive letters (cygwin fileutils understands them), so leave them,
17185         # especially as we might pass files found there to a mingw objdump,
17186         # which wouldn't understand a cygwinified path. Ahh.
17187         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17188       else
17189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17190       fi
17191       ;;
17192     pw32*)
17193       # pw32 DLLs use 'pw' prefix rather than 'lib'
17194       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17195       ;;
17196     esac
17197     ;;
17198
17199   *)
17200     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17201     ;;
17202   esac
17203   dynamic_linker='Win32 ld.exe'
17204   # FIXME: first we should search . and the directory the executable is in
17205   shlibpath_var=PATH
17206   ;;
17207
17208 darwin* | rhapsody*)
17209   dynamic_linker="$host_os dyld"
17210   version_type=darwin
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17214   soname_spec='${libname}${release}${major}$shared_ext'
17215   shlibpath_overrides_runpath=yes
17216   shlibpath_var=DYLD_LIBRARY_PATH
17217   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17218   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17219   if test "$GCC" = yes; then
17220     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"`
17221   else
17222     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17223   fi
17224   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17225   ;;
17226
17227 dgux*)
17228   version_type=linux
17229   need_lib_prefix=no
17230   need_version=no
17231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17232   soname_spec='${libname}${release}${shared_ext}$major'
17233   shlibpath_var=LD_LIBRARY_PATH
17234   ;;
17235
17236 freebsd1*)
17237   dynamic_linker=no
17238   ;;
17239
17240 kfreebsd*-gnu)
17241   version_type=linux
17242   need_lib_prefix=no
17243   need_version=no
17244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17245   soname_spec='${libname}${release}${shared_ext}$major'
17246   shlibpath_var=LD_LIBRARY_PATH
17247   shlibpath_overrides_runpath=no
17248   hardcode_into_libs=yes
17249   dynamic_linker='GNU ld.so'
17250   ;;
17251
17252 freebsd*)
17253   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17254   version_type=freebsd-$objformat
17255   case $version_type in
17256     freebsd-elf*)
17257       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17258       need_version=no
17259       need_lib_prefix=no
17260       ;;
17261     freebsd-*)
17262       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17263       need_version=yes
17264       ;;
17265   esac
17266   shlibpath_var=LD_LIBRARY_PATH
17267   case $host_os in
17268   freebsd2*)
17269     shlibpath_overrides_runpath=yes
17270     ;;
17271   freebsd3.01* | freebsdelf3.01*)
17272     shlibpath_overrides_runpath=yes
17273     hardcode_into_libs=yes
17274     ;;
17275   *) # from 3.2 on
17276     shlibpath_overrides_runpath=no
17277     hardcode_into_libs=yes
17278     ;;
17279   esac
17280   ;;
17281
17282 gnu*)
17283   version_type=linux
17284   need_lib_prefix=no
17285   need_version=no
17286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17287   soname_spec='${libname}${release}${shared_ext}$major'
17288   shlibpath_var=LD_LIBRARY_PATH
17289   hardcode_into_libs=yes
17290   ;;
17291
17292 hpux9* | hpux10* | hpux11*)
17293   # Give a soname corresponding to the major version so that dld.sl refuses to
17294   # link against other versions.
17295   version_type=sunos
17296   need_lib_prefix=no
17297   need_version=no
17298   case "$host_cpu" in
17299   ia64*)
17300     shrext_cmds='.so'
17301     hardcode_into_libs=yes
17302     dynamic_linker="$host_os dld.so"
17303     shlibpath_var=LD_LIBRARY_PATH
17304     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306     soname_spec='${libname}${release}${shared_ext}$major'
17307     if test "X$HPUX_IA64_MODE" = X32; then
17308       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17309     else
17310       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17311     fi
17312     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17313     ;;
17314    hppa*64*)
17315      shrext_cmds='.sl'
17316      hardcode_into_libs=yes
17317      dynamic_linker="$host_os dld.sl"
17318      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17319      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17320      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321      soname_spec='${libname}${release}${shared_ext}$major'
17322      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17323      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17324      ;;
17325    *)
17326     shrext_cmds='.sl'
17327     dynamic_linker="$host_os dld.sl"
17328     shlibpath_var=SHLIB_PATH
17329     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331     soname_spec='${libname}${release}${shared_ext}$major'
17332     ;;
17333   esac
17334   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17335   postinstall_cmds='chmod 555 $lib'
17336   ;;
17337
17338 irix5* | irix6* | nonstopux*)
17339   case $host_os in
17340     nonstopux*) version_type=nonstopux ;;
17341     *)
17342         if test "$lt_cv_prog_gnu_ld" = yes; then
17343                 version_type=linux
17344         else
17345                 version_type=irix
17346         fi ;;
17347   esac
17348   need_lib_prefix=no
17349   need_version=no
17350   soname_spec='${libname}${release}${shared_ext}$major'
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17352   case $host_os in
17353   irix5* | nonstopux*)
17354     libsuff= shlibsuff=
17355     ;;
17356   *)
17357     case $LD in # libtool.m4 will add one of these switches to LD
17358     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17359       libsuff= shlibsuff= libmagic=32-bit;;
17360     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17361       libsuff=32 shlibsuff=N32 libmagic=N32;;
17362     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17363       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17364     *) libsuff= shlibsuff= libmagic=never-match;;
17365     esac
17366     ;;
17367   esac
17368   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17369   shlibpath_overrides_runpath=no
17370   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17371   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17372   hardcode_into_libs=yes
17373   ;;
17374
17375 # No shared lib support for Linux oldld, aout, or coff.
17376 linux*oldld* | linux*aout* | linux*coff*)
17377   dynamic_linker=no
17378   ;;
17379
17380 # This must be Linux ELF.
17381 linux*)
17382   version_type=linux
17383   need_lib_prefix=no
17384   need_version=no
17385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386   soname_spec='${libname}${release}${shared_ext}$major'
17387   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17388   shlibpath_var=LD_LIBRARY_PATH
17389   shlibpath_overrides_runpath=no
17390   # This implies no fast_install, which is unacceptable.
17391   # Some rework will be needed to allow for fast_install
17392   # before this can be enabled.
17393   hardcode_into_libs=yes
17394
17395   # Append ld.so.conf contents to the search path
17396   if test -f /etc/ld.so.conf; then
17397     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17398     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17399   fi
17400
17401   # We used to test for /lib/ld.so.1 and disable shared libraries on
17402   # powerpc, because MkLinux only supported shared libraries with the
17403   # GNU dynamic linker.  Since this was broken with cross compilers,
17404   # most powerpc-linux boxes support dynamic linking these days and
17405   # people can always --disable-shared, the test was removed, and we
17406   # assume the GNU/Linux dynamic linker is in use.
17407   dynamic_linker='GNU/Linux ld.so'
17408   ;;
17409
17410 netbsdelf*-gnu)
17411   version_type=linux
17412   need_lib_prefix=no
17413   need_version=no
17414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17415   soname_spec='${libname}${release}${shared_ext}$major'
17416   shlibpath_var=LD_LIBRARY_PATH
17417   shlibpath_overrides_runpath=no
17418   hardcode_into_libs=yes
17419   dynamic_linker='NetBSD ld.elf_so'
17420   ;;
17421
17422 knetbsd*-gnu)
17423   version_type=linux
17424   need_lib_prefix=no
17425   need_version=no
17426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17427   soname_spec='${libname}${release}${shared_ext}$major'
17428   shlibpath_var=LD_LIBRARY_PATH
17429   shlibpath_overrides_runpath=no
17430   hardcode_into_libs=yes
17431   dynamic_linker='GNU ld.so'
17432   ;;
17433
17434 netbsd*)
17435   version_type=sunos
17436   need_lib_prefix=no
17437   need_version=no
17438   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17440     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17441     dynamic_linker='NetBSD (a.out) ld.so'
17442   else
17443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17444     soname_spec='${libname}${release}${shared_ext}$major'
17445     dynamic_linker='NetBSD ld.elf_so'
17446   fi
17447   shlibpath_var=LD_LIBRARY_PATH
17448   shlibpath_overrides_runpath=yes
17449   hardcode_into_libs=yes
17450   ;;
17451
17452 newsos6)
17453   version_type=linux
17454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455   shlibpath_var=LD_LIBRARY_PATH
17456   shlibpath_overrides_runpath=yes
17457   ;;
17458
17459 nto-qnx*)
17460   version_type=linux
17461   need_lib_prefix=no
17462   need_version=no
17463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464   soname_spec='${libname}${release}${shared_ext}$major'
17465   shlibpath_var=LD_LIBRARY_PATH
17466   shlibpath_overrides_runpath=yes
17467   ;;
17468
17469 openbsd*)
17470   version_type=sunos
17471   need_lib_prefix=no
17472   need_version=yes
17473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475   shlibpath_var=LD_LIBRARY_PATH
17476   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17477     case $host_os in
17478       openbsd2.[89] | openbsd2.[89].*)
17479         shlibpath_overrides_runpath=no
17480         ;;
17481       *)
17482         shlibpath_overrides_runpath=yes
17483         ;;
17484       esac
17485   else
17486     shlibpath_overrides_runpath=yes
17487   fi
17488   ;;
17489
17490 os2*)
17491   libname_spec='$name'
17492   shrext_cmds=".dll"
17493   need_lib_prefix=no
17494   library_names_spec='$libname${shared_ext} $libname.a'
17495   dynamic_linker='OS/2 ld.exe'
17496   shlibpath_var=LIBPATH
17497   ;;
17498
17499 osf3* | osf4* | osf5*)
17500   version_type=osf
17501   need_lib_prefix=no
17502   need_version=no
17503   soname_spec='${libname}${release}${shared_ext}$major'
17504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505   shlibpath_var=LD_LIBRARY_PATH
17506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17508   ;;
17509
17510 sco3.2v5*)
17511   version_type=osf
17512   soname_spec='${libname}${release}${shared_ext}$major'
17513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514   shlibpath_var=LD_LIBRARY_PATH
17515   ;;
17516
17517 solaris*)
17518   version_type=linux
17519   need_lib_prefix=no
17520   need_version=no
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522   soname_spec='${libname}${release}${shared_ext}$major'
17523   shlibpath_var=LD_LIBRARY_PATH
17524   shlibpath_overrides_runpath=yes
17525   hardcode_into_libs=yes
17526   # ldd complains unless libraries are executable
17527   postinstall_cmds='chmod +x $lib'
17528   ;;
17529
17530 sunos4*)
17531   version_type=sunos
17532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17534   shlibpath_var=LD_LIBRARY_PATH
17535   shlibpath_overrides_runpath=yes
17536   if test "$with_gnu_ld" = yes; then
17537     need_lib_prefix=no
17538   fi
17539   need_version=yes
17540   ;;
17541
17542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17543   version_type=linux
17544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545   soname_spec='${libname}${release}${shared_ext}$major'
17546   shlibpath_var=LD_LIBRARY_PATH
17547   case $host_vendor in
17548     sni)
17549       shlibpath_overrides_runpath=no
17550       need_lib_prefix=no
17551       export_dynamic_flag_spec='${wl}-Blargedynsym'
17552       runpath_var=LD_RUN_PATH
17553       ;;
17554     siemens)
17555       need_lib_prefix=no
17556       ;;
17557     motorola)
17558       need_lib_prefix=no
17559       need_version=no
17560       shlibpath_overrides_runpath=no
17561       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17562       ;;
17563   esac
17564   ;;
17565
17566 sysv4*MP*)
17567   if test -d /usr/nec ;then
17568     version_type=linux
17569     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17570     soname_spec='$libname${shared_ext}.$major'
17571     shlibpath_var=LD_LIBRARY_PATH
17572   fi
17573   ;;
17574
17575 uts4*)
17576   version_type=linux
17577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578   soname_spec='${libname}${release}${shared_ext}$major'
17579   shlibpath_var=LD_LIBRARY_PATH
17580   ;;
17581
17582 *)
17583   dynamic_linker=no
17584   ;;
17585 esac
17586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17587 echo "${ECHO_T}$dynamic_linker" >&6
17588 test "$dynamic_linker" = no && can_build_shared=no
17589
17590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17592 hardcode_action_GCJ=
17593 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17594    test -n "$runpath_var GCJ" || \
17595    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17596
17597   # We can hardcode non-existant directories.
17598   if test "$hardcode_direct_GCJ" != no &&
17599      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17600      # have to relink, otherwise we might link with an installed library
17601      # when we should be linking with a yet-to-be-installed one
17602      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17603      test "$hardcode_minus_L_GCJ" != no; then
17604     # Linking always hardcodes the temporary library directory.
17605     hardcode_action_GCJ=relink
17606   else
17607     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17608     hardcode_action_GCJ=immediate
17609   fi
17610 else
17611   # We cannot hardcode anything, or else we can only hardcode existing
17612   # directories.
17613   hardcode_action_GCJ=unsupported
17614 fi
17615 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17616 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17617
17618 if test "$hardcode_action_GCJ" = relink; then
17619   # Fast installation is not supported
17620   enable_fast_install=no
17621 elif test "$shlibpath_overrides_runpath" = yes ||
17622      test "$enable_shared" = no; then
17623   # Fast installation is not necessary
17624   enable_fast_install=needless
17625 fi
17626
17627 striplib=
17628 old_striplib=
17629 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17630 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17631 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17632   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17633   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17634   echo "$as_me:$LINENO: result: yes" >&5
17635 echo "${ECHO_T}yes" >&6
17636 else
17637 # FIXME - insert some real tests, host_os isn't really good enough
17638   case $host_os in
17639    darwin*)
17640        if test -n "$STRIP" ; then
17641          striplib="$STRIP -x"
17642          echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6
17644        else
17645   echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6
17647 fi
17648        ;;
17649    *)
17650   echo "$as_me:$LINENO: result: no" >&5
17651 echo "${ECHO_T}no" >&6
17652     ;;
17653   esac
17654 fi
17655
17656 if test "x$enable_dlopen" != xyes; then
17657   enable_dlopen=unknown
17658   enable_dlopen_self=unknown
17659   enable_dlopen_self_static=unknown
17660 else
17661   lt_cv_dlopen=no
17662   lt_cv_dlopen_libs=
17663
17664   case $host_os in
17665   beos*)
17666     lt_cv_dlopen="load_add_on"
17667     lt_cv_dlopen_libs=
17668     lt_cv_dlopen_self=yes
17669     ;;
17670
17671   mingw* | pw32*)
17672     lt_cv_dlopen="LoadLibrary"
17673     lt_cv_dlopen_libs=
17674    ;;
17675
17676   cygwin*)
17677     lt_cv_dlopen="dlopen"
17678     lt_cv_dlopen_libs=
17679    ;;
17680
17681   darwin*)
17682   # if libdl is installed we need to link against it
17683     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_check_lib_save_LIBS=$LIBS
17689 LIBS="-ldl  $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696
17697 /* Override any gcc2 internal prototype to avoid an error.  */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 /* We use char because int might match the return type of a gcc2
17702    builtin and then its argument prototype would still apply.  */
17703 char dlopen ();
17704 int
17705 main ()
17706 {
17707 dlopen ();
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714   (eval $ac_link) 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; } &&
17727          { ac_try='test -s conftest$ac_exeext'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   ac_cv_lib_dl_dlopen=yes
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 ac_cv_lib_dl_dlopen=no
17739 fi
17740 rm -f conftest.err conftest.$ac_objext \
17741       conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17743 fi
17744 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17745 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17746 if test $ac_cv_lib_dl_dlopen = yes; then
17747   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17748 else
17749
17750     lt_cv_dlopen="dyld"
17751     lt_cv_dlopen_libs=
17752     lt_cv_dlopen_self=yes
17753
17754 fi
17755
17756    ;;
17757
17758   *)
17759     echo "$as_me:$LINENO: checking for shl_load" >&5
17760 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17761 if test "${ac_cv_func_shl_load+set}" = set; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17772 #define shl_load innocuous_shl_load
17773
17774 /* System header to define __stub macros and hopefully few prototypes,
17775     which can conflict with char shl_load (); below.
17776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777     <limits.h> exists even on freestanding compilers.  */
17778
17779 #ifdef __STDC__
17780 # include <limits.h>
17781 #else
17782 # include <assert.h>
17783 #endif
17784
17785 #undef shl_load
17786
17787 /* Override any gcc2 internal prototype to avoid an error.  */
17788 #ifdef __cplusplus
17789 extern "C"
17790 {
17791 #endif
17792 /* We use char because int might match the return type of a gcc2
17793    builtin and then its argument prototype would still apply.  */
17794 char shl_load ();
17795 /* The GNU C library defines this for functions which it implements
17796     to always fail with ENOSYS.  Some functions are actually named
17797     something starting with __ and the normal name is an alias.  */
17798 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17799 choke me
17800 #else
17801 char (*f) () = shl_load;
17802 #endif
17803 #ifdef __cplusplus
17804 }
17805 #endif
17806
17807 int
17808 main ()
17809 {
17810 return f != shl_load;
17811   ;
17812   return 0;
17813 }
17814 _ACEOF
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17817   (eval $ac_link) 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } &&
17824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826   (eval $ac_try) 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest$ac_exeext'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   ac_cv_func_shl_load=yes
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_cv_func_shl_load=no
17842 fi
17843 rm -f conftest.err conftest.$ac_objext \
17844       conftest$ac_exeext conftest.$ac_ext
17845 fi
17846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17848 if test $ac_cv_func_shl_load = yes; then
17849   lt_cv_dlopen="shl_load"
17850 else
17851   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17854   echo $ECHO_N "(cached) $ECHO_C" >&6
17855 else
17856   ac_check_lib_save_LIBS=$LIBS
17857 LIBS="-ldld  $LIBS"
17858 cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h.  */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h.  */
17864
17865 /* Override any gcc2 internal prototype to avoid an error.  */
17866 #ifdef __cplusplus
17867 extern "C"
17868 #endif
17869 /* We use char because int might match the return type of a gcc2
17870    builtin and then its argument prototype would still apply.  */
17871 char shl_load ();
17872 int
17873 main ()
17874 {
17875 shl_load ();
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17882   (eval $ac_link) 2>conftest.er1
17883   ac_status=$?
17884   grep -v '^ *+' conftest.er1 >conftest.err
17885   rm -f conftest.er1
17886   cat conftest.err >&5
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } &&
17889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891   (eval $ac_try) 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; } &&
17895          { ac_try='test -s conftest$ac_exeext'
17896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897   (eval $ac_try) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; }; then
17901   ac_cv_lib_dld_shl_load=yes
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ac_cv_lib_dld_shl_load=no
17907 fi
17908 rm -f conftest.err conftest.$ac_objext \
17909       conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17911 fi
17912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17913 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17914 if test $ac_cv_lib_dld_shl_load = yes; then
17915   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17916 else
17917   echo "$as_me:$LINENO: checking for dlopen" >&5
17918 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17919 if test "${ac_cv_func_dlopen+set}" = set; then
17920   echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922   cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17930 #define dlopen innocuous_dlopen
17931
17932 /* System header to define __stub macros and hopefully few prototypes,
17933     which can conflict with char dlopen (); below.
17934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17935     <limits.h> exists even on freestanding compilers.  */
17936
17937 #ifdef __STDC__
17938 # include <limits.h>
17939 #else
17940 # include <assert.h>
17941 #endif
17942
17943 #undef dlopen
17944
17945 /* Override any gcc2 internal prototype to avoid an error.  */
17946 #ifdef __cplusplus
17947 extern "C"
17948 {
17949 #endif
17950 /* We use char because int might match the return type of a gcc2
17951    builtin and then its argument prototype would still apply.  */
17952 char dlopen ();
17953 /* The GNU C library defines this for functions which it implements
17954     to always fail with ENOSYS.  Some functions are actually named
17955     something starting with __ and the normal name is an alias.  */
17956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17957 choke me
17958 #else
17959 char (*f) () = dlopen;
17960 #endif
17961 #ifdef __cplusplus
17962 }
17963 #endif
17964
17965 int
17966 main ()
17967 {
17968 return f != dlopen;
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975   (eval $ac_link) 2>conftest.er1
17976   ac_status=$?
17977   grep -v '^ *+' conftest.er1 >conftest.err
17978   rm -f conftest.er1
17979   cat conftest.err >&5
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); } &&
17982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; } &&
17988          { ac_try='test -s conftest$ac_exeext'
17989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990   (eval $ac_try) 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; }; then
17994   ac_cv_func_dlopen=yes
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999 ac_cv_func_dlopen=no
18000 fi
18001 rm -f conftest.err conftest.$ac_objext \
18002       conftest$ac_exeext conftest.$ac_ext
18003 fi
18004 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18005 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18006 if test $ac_cv_func_dlopen = yes; then
18007   lt_cv_dlopen="dlopen"
18008 else
18009   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18010 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18011 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   ac_check_lib_save_LIBS=$LIBS
18015 LIBS="-ldl  $LIBS"
18016 cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022
18023 /* Override any gcc2 internal prototype to avoid an error.  */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 /* We use char because int might match the return type of a gcc2
18028    builtin and then its argument prototype would still apply.  */
18029 char dlopen ();
18030 int
18031 main ()
18032 {
18033 dlopen ();
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040   (eval $ac_link) 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } &&
18047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; } &&
18053          { ac_try='test -s conftest$ac_exeext'
18054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055   (eval $ac_try) 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; }; then
18059   ac_cv_lib_dl_dlopen=yes
18060 else
18061   echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064 ac_cv_lib_dl_dlopen=no
18065 fi
18066 rm -f conftest.err conftest.$ac_objext \
18067       conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18069 fi
18070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18072 if test $ac_cv_lib_dl_dlopen = yes; then
18073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18074 else
18075   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18078   echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080   ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lsvld  $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h.  */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h.  */
18088
18089 /* Override any gcc2 internal prototype to avoid an error.  */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 /* We use char because int might match the return type of a gcc2
18094    builtin and then its argument prototype would still apply.  */
18095 char dlopen ();
18096 int
18097 main ()
18098 {
18099 dlopen ();
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106   (eval $ac_link) 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest$ac_exeext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_cv_lib_svld_dlopen=yes
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_cv_lib_svld_dlopen=no
18131 fi
18132 rm -f conftest.err conftest.$ac_objext \
18133       conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18135 fi
18136 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18137 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18138 if test $ac_cv_lib_svld_dlopen = yes; then
18139   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18140 else
18141   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18142 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18144   echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146   ac_check_lib_save_LIBS=$LIBS
18147 LIBS="-ldld  $LIBS"
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154
18155 /* Override any gcc2 internal prototype to avoid an error.  */
18156 #ifdef __cplusplus
18157 extern "C"
18158 #endif
18159 /* We use char because int might match the return type of a gcc2
18160    builtin and then its argument prototype would still apply.  */
18161 char dld_link ();
18162 int
18163 main ()
18164 {
18165 dld_link ();
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172   (eval $ac_link) 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181   (eval $ac_try) 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; } &&
18185          { ac_try='test -s conftest$ac_exeext'
18186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187   (eval $ac_try) 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; }; then
18191   ac_cv_lib_dld_dld_link=yes
18192 else
18193   echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18195
18196 ac_cv_lib_dld_dld_link=no
18197 fi
18198 rm -f conftest.err conftest.$ac_objext \
18199       conftest$ac_exeext conftest.$ac_ext
18200 LIBS=$ac_check_lib_save_LIBS
18201 fi
18202 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18204 if test $ac_cv_lib_dld_dld_link = yes; then
18205   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18206 fi
18207
18208
18209 fi
18210
18211
18212 fi
18213
18214
18215 fi
18216
18217
18218 fi
18219
18220
18221 fi
18222
18223     ;;
18224   esac
18225
18226   if test "x$lt_cv_dlopen" != xno; then
18227     enable_dlopen=yes
18228   else
18229     enable_dlopen=no
18230   fi
18231
18232   case $lt_cv_dlopen in
18233   dlopen)
18234     save_CPPFLAGS="$CPPFLAGS"
18235     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18236
18237     save_LDFLAGS="$LDFLAGS"
18238     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18239
18240     save_LIBS="$LIBS"
18241     LIBS="$lt_cv_dlopen_libs $LIBS"
18242
18243     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18244 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18245 if test "${lt_cv_dlopen_self+set}" = set; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248           if test "$cross_compiling" = yes; then :
18249   lt_cv_dlopen_self=cross
18250 else
18251   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18252   lt_status=$lt_dlunknown
18253   cat > conftest.$ac_ext <<EOF
18254 #line 18254 "configure"
18255 #include "confdefs.h"
18256
18257 #if HAVE_DLFCN_H
18258 #include <dlfcn.h>
18259 #endif
18260
18261 #include <stdio.h>
18262
18263 #ifdef RTLD_GLOBAL
18264 #  define LT_DLGLOBAL           RTLD_GLOBAL
18265 #else
18266 #  ifdef DL_GLOBAL
18267 #    define LT_DLGLOBAL         DL_GLOBAL
18268 #  else
18269 #    define LT_DLGLOBAL         0
18270 #  endif
18271 #endif
18272
18273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18274    find out it does not work in some platform. */
18275 #ifndef LT_DLLAZY_OR_NOW
18276 #  ifdef RTLD_LAZY
18277 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18278 #  else
18279 #    ifdef DL_LAZY
18280 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18281 #    else
18282 #      ifdef RTLD_NOW
18283 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18284 #      else
18285 #        ifdef DL_NOW
18286 #          define LT_DLLAZY_OR_NOW      DL_NOW
18287 #        else
18288 #          define LT_DLLAZY_OR_NOW      0
18289 #        endif
18290 #      endif
18291 #    endif
18292 #  endif
18293 #endif
18294
18295 #ifdef __cplusplus
18296 extern "C" void exit (int);
18297 #endif
18298
18299 void fnord() { int i=42;}
18300 int main ()
18301 {
18302   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18303   int status = $lt_dlunknown;
18304
18305   if (self)
18306     {
18307       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18308       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18309       /* dlclose (self); */
18310     }
18311
18312     exit (status);
18313 }
18314 EOF
18315   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316   (eval $ac_link) 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18320     (./conftest; exit; ) 2>/dev/null
18321     lt_status=$?
18322     case x$lt_status in
18323       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18324       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18325       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18326     esac
18327   else :
18328     # compilation failed
18329     lt_cv_dlopen_self=no
18330   fi
18331 fi
18332 rm -fr conftest*
18333
18334
18335 fi
18336 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18337 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18338
18339     if test "x$lt_cv_dlopen_self" = xyes; then
18340       LDFLAGS="$LDFLAGS $link_static_flag"
18341       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18342 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18343 if test "${lt_cv_dlopen_self_static+set}" = set; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346           if test "$cross_compiling" = yes; then :
18347   lt_cv_dlopen_self_static=cross
18348 else
18349   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18350   lt_status=$lt_dlunknown
18351   cat > conftest.$ac_ext <<EOF
18352 #line 18352 "configure"
18353 #include "confdefs.h"
18354
18355 #if HAVE_DLFCN_H
18356 #include <dlfcn.h>
18357 #endif
18358
18359 #include <stdio.h>
18360
18361 #ifdef RTLD_GLOBAL
18362 #  define LT_DLGLOBAL           RTLD_GLOBAL
18363 #else
18364 #  ifdef DL_GLOBAL
18365 #    define LT_DLGLOBAL         DL_GLOBAL
18366 #  else
18367 #    define LT_DLGLOBAL         0
18368 #  endif
18369 #endif
18370
18371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18372    find out it does not work in some platform. */
18373 #ifndef LT_DLLAZY_OR_NOW
18374 #  ifdef RTLD_LAZY
18375 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18376 #  else
18377 #    ifdef DL_LAZY
18378 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18379 #    else
18380 #      ifdef RTLD_NOW
18381 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18382 #      else
18383 #        ifdef DL_NOW
18384 #          define LT_DLLAZY_OR_NOW      DL_NOW
18385 #        else
18386 #          define LT_DLLAZY_OR_NOW      0
18387 #        endif
18388 #      endif
18389 #    endif
18390 #  endif
18391 #endif
18392
18393 #ifdef __cplusplus
18394 extern "C" void exit (int);
18395 #endif
18396
18397 void fnord() { int i=42;}
18398 int main ()
18399 {
18400   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18401   int status = $lt_dlunknown;
18402
18403   if (self)
18404     {
18405       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18406       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18407       /* dlclose (self); */
18408     }
18409
18410     exit (status);
18411 }
18412 EOF
18413   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18414   (eval $ac_link) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18418     (./conftest; exit; ) 2>/dev/null
18419     lt_status=$?
18420     case x$lt_status in
18421       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18422       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18423       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18424     esac
18425   else :
18426     # compilation failed
18427     lt_cv_dlopen_self_static=no
18428   fi
18429 fi
18430 rm -fr conftest*
18431
18432
18433 fi
18434 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18435 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18436     fi
18437
18438     CPPFLAGS="$save_CPPFLAGS"
18439     LDFLAGS="$save_LDFLAGS"
18440     LIBS="$save_LIBS"
18441     ;;
18442   esac
18443
18444   case $lt_cv_dlopen_self in
18445   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18446   *) enable_dlopen_self=unknown ;;
18447   esac
18448
18449   case $lt_cv_dlopen_self_static in
18450   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18451   *) enable_dlopen_self_static=unknown ;;
18452   esac
18453 fi
18454
18455
18456 # The else clause should only fire when bootstrapping the
18457 # libtool distribution, otherwise you forgot to ship ltmain.sh
18458 # with your package, and you will get complaints that there are
18459 # no rules to generate ltmain.sh.
18460 if test -f "$ltmain"; then
18461   # See if we are running on zsh, and set the options which allow our commands through
18462   # without removal of \ escapes.
18463   if test -n "${ZSH_VERSION+set}" ; then
18464     setopt NO_GLOB_SUBST
18465   fi
18466   # Now quote all the things that may contain metacharacters while being
18467   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18468   # variables and quote the copies for generation of the libtool script.
18469   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18470     SED SHELL STRIP \
18471     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18472     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18473     deplibs_check_method reload_flag reload_cmds need_locks \
18474     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18475     lt_cv_sys_global_symbol_to_c_name_address \
18476     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18477     old_postinstall_cmds old_postuninstall_cmds \
18478     compiler_GCJ \
18479     CC_GCJ \
18480     LD_GCJ \
18481     lt_prog_compiler_wl_GCJ \
18482     lt_prog_compiler_pic_GCJ \
18483     lt_prog_compiler_static_GCJ \
18484     lt_prog_compiler_no_builtin_flag_GCJ \
18485     export_dynamic_flag_spec_GCJ \
18486     thread_safe_flag_spec_GCJ \
18487     whole_archive_flag_spec_GCJ \
18488     enable_shared_with_static_runtimes_GCJ \
18489     old_archive_cmds_GCJ \
18490     old_archive_from_new_cmds_GCJ \
18491     predep_objects_GCJ \
18492     postdep_objects_GCJ \
18493     predeps_GCJ \
18494     postdeps_GCJ \
18495     compiler_lib_search_path_GCJ \
18496     archive_cmds_GCJ \
18497     archive_expsym_cmds_GCJ \
18498     postinstall_cmds_GCJ \
18499     postuninstall_cmds_GCJ \
18500     old_archive_from_expsyms_cmds_GCJ \
18501     allow_undefined_flag_GCJ \
18502     no_undefined_flag_GCJ \
18503     export_symbols_cmds_GCJ \
18504     hardcode_libdir_flag_spec_GCJ \
18505     hardcode_libdir_flag_spec_ld_GCJ \
18506     hardcode_libdir_separator_GCJ \
18507     hardcode_automatic_GCJ \
18508     module_cmds_GCJ \
18509     module_expsym_cmds_GCJ \
18510     lt_cv_prog_compiler_c_o_GCJ \
18511     exclude_expsyms_GCJ \
18512     include_expsyms_GCJ; do
18513
18514     case $var in
18515     old_archive_cmds_GCJ | \
18516     old_archive_from_new_cmds_GCJ | \
18517     archive_cmds_GCJ | \
18518     archive_expsym_cmds_GCJ | \
18519     module_cmds_GCJ | \
18520     module_expsym_cmds_GCJ | \
18521     old_archive_from_expsyms_cmds_GCJ | \
18522     export_symbols_cmds_GCJ | \
18523     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18524     postinstall_cmds | postuninstall_cmds | \
18525     old_postinstall_cmds | old_postuninstall_cmds | \
18526     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18527       # Double-quote double-evaled strings.
18528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18529       ;;
18530     *)
18531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18532       ;;
18533     esac
18534   done
18535
18536   case $lt_echo in
18537   *'\$0 --fallback-echo"')
18538     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18539     ;;
18540   esac
18541
18542 cfgfile="$ofile"
18543
18544   cat <<__EOF__ >> "$cfgfile"
18545 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18546
18547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18548
18549 # Shell to use when invoking shell scripts.
18550 SHELL=$lt_SHELL
18551
18552 # Whether or not to build shared libraries.
18553 build_libtool_libs=$enable_shared
18554
18555 # Whether or not to build static libraries.
18556 build_old_libs=$enable_static
18557
18558 # Whether or not to add -lc for building shared libraries.
18559 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18560
18561 # Whether or not to disallow shared libs when runtime libs are static
18562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18563
18564 # Whether or not to optimize for fast installation.
18565 fast_install=$enable_fast_install
18566
18567 # The host system.
18568 host_alias=$host_alias
18569 host=$host
18570
18571 # An echo program that does not interpret backslashes.
18572 echo=$lt_echo
18573
18574 # The archiver.
18575 AR=$lt_AR
18576 AR_FLAGS=$lt_AR_FLAGS
18577
18578 # A C compiler.
18579 LTCC=$lt_LTCC
18580
18581 # A language-specific compiler.
18582 CC=$lt_compiler_GCJ
18583
18584 # Is the compiler the GNU C compiler?
18585 with_gcc=$GCC_GCJ
18586
18587 # An ERE matcher.
18588 EGREP=$lt_EGREP
18589
18590 # The linker used to build libraries.
18591 LD=$lt_LD_GCJ
18592
18593 # Whether we need hard or soft links.
18594 LN_S=$lt_LN_S
18595
18596 # A BSD-compatible nm program.
18597 NM=$lt_NM
18598
18599 # A symbol stripping program
18600 STRIP=$lt_STRIP
18601
18602 # Used to examine libraries when file_magic_cmd begins "file"
18603 MAGIC_CMD=$MAGIC_CMD
18604
18605 # Used on cygwin: DLL creation program.
18606 DLLTOOL="$DLLTOOL"
18607
18608 # Used on cygwin: object dumper.
18609 OBJDUMP="$OBJDUMP"
18610
18611 # Used on cygwin: assembler.
18612 AS="$AS"
18613
18614 # The name of the directory that contains temporary libtool files.
18615 objdir=$objdir
18616
18617 # How to create reloadable object files.
18618 reload_flag=$lt_reload_flag
18619 reload_cmds=$lt_reload_cmds
18620
18621 # How to pass a linker flag through the compiler.
18622 wl=$lt_lt_prog_compiler_wl_GCJ
18623
18624 # Object file suffix (normally "o").
18625 objext="$ac_objext"
18626
18627 # Old archive suffix (normally "a").
18628 libext="$libext"
18629
18630 # Shared library suffix (normally ".so").
18631 shrext_cmds='$shrext_cmds'
18632
18633 # Executable file suffix (normally "").
18634 exeext="$exeext"
18635
18636 # Additional compiler flags for building library objects.
18637 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18638 pic_mode=$pic_mode
18639
18640 # What is the maximum length of a command?
18641 max_cmd_len=$lt_cv_sys_max_cmd_len
18642
18643 # Does compiler simultaneously support -c and -o options?
18644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18645
18646 # Must we lock files when doing compilation ?
18647 need_locks=$lt_need_locks
18648
18649 # Do we need the lib prefix for modules?
18650 need_lib_prefix=$need_lib_prefix
18651
18652 # Do we need a version for libraries?
18653 need_version=$need_version
18654
18655 # Whether dlopen is supported.
18656 dlopen_support=$enable_dlopen
18657
18658 # Whether dlopen of programs is supported.
18659 dlopen_self=$enable_dlopen_self
18660
18661 # Whether dlopen of statically linked programs is supported.
18662 dlopen_self_static=$enable_dlopen_self_static
18663
18664 # Compiler flag to prevent dynamic linking.
18665 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18666
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18669
18670 # Compiler flag to allow reflexive dlopens.
18671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18672
18673 # Compiler flag to generate shared objects directly from archives.
18674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18675
18676 # Compiler flag to generate thread-safe objects.
18677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18678
18679 # Library versioning type.
18680 version_type=$version_type
18681
18682 # Format of library name prefix.
18683 libname_spec=$lt_libname_spec
18684
18685 # List of archive names.  First name is the real one, the rest are links.
18686 # The last name is the one that the linker finds with -lNAME.
18687 library_names_spec=$lt_library_names_spec
18688
18689 # The coded name of the library, if different from the real name.
18690 soname_spec=$lt_soname_spec
18691
18692 # Commands used to build and install an old-style archive.
18693 RANLIB=$lt_RANLIB
18694 old_archive_cmds=$lt_old_archive_cmds_GCJ
18695 old_postinstall_cmds=$lt_old_postinstall_cmds
18696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18697
18698 # Create an old-style archive from a shared archive.
18699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18700
18701 # Create a temporary old-style archive to link instead of a shared archive.
18702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18703
18704 # Commands used to build and install a shared archive.
18705 archive_cmds=$lt_archive_cmds_GCJ
18706 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18707 postinstall_cmds=$lt_postinstall_cmds
18708 postuninstall_cmds=$lt_postuninstall_cmds
18709
18710 # Commands used to build a loadable module (assumed same as above if empty)
18711 module_cmds=$lt_module_cmds_GCJ
18712 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18713
18714 # Commands to strip libraries.
18715 old_striplib=$lt_old_striplib
18716 striplib=$lt_striplib
18717
18718 # Dependencies to place before the objects being linked to create a
18719 # shared library.
18720 predep_objects=$lt_predep_objects_GCJ
18721
18722 # Dependencies to place after the objects being linked to create a
18723 # shared library.
18724 postdep_objects=$lt_postdep_objects_GCJ
18725
18726 # Dependencies to place before the objects being linked to create a
18727 # shared library.
18728 predeps=$lt_predeps_GCJ
18729
18730 # Dependencies to place after the objects being linked to create a
18731 # shared library.
18732 postdeps=$lt_postdeps_GCJ
18733
18734 # The library search path used internally by the compiler when linking
18735 # a shared library.
18736 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18737
18738 # Method to check whether dependent libraries are shared objects.
18739 deplibs_check_method=$lt_deplibs_check_method
18740
18741 # Command to use when deplibs_check_method == file_magic.
18742 file_magic_cmd=$lt_file_magic_cmd
18743
18744 # Flag that allows shared libraries with undefined symbols to be built.
18745 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18746
18747 # Flag that forces no undefined symbols.
18748 no_undefined_flag=$lt_no_undefined_flag_GCJ
18749
18750 # Commands used to finish a libtool library installation in a directory.
18751 finish_cmds=$lt_finish_cmds
18752
18753 # Same as above, but a single script fragment to be evaled but not shown.
18754 finish_eval=$lt_finish_eval
18755
18756 # Take the output of nm and produce a listing of raw symbols and C names.
18757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18758
18759 # Transform the output of nm in a proper C declaration
18760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18761
18762 # Transform the output of nm in a C name address pair
18763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18764
18765 # This is the shared library runtime path variable.
18766 runpath_var=$runpath_var
18767
18768 # This is the shared library path variable.
18769 shlibpath_var=$shlibpath_var
18770
18771 # Is shlibpath searched before the hard-coded library search path?
18772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18773
18774 # How to hardcode a shared library path into an executable.
18775 hardcode_action=$hardcode_action_GCJ
18776
18777 # Whether we should hardcode library paths into libraries.
18778 hardcode_into_libs=$hardcode_into_libs
18779
18780 # Flag to hardcode \$libdir into a binary during linking.
18781 # This must work even if \$libdir does not exist.
18782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18783
18784 # If ld is used when linking, flag to hardcode \$libdir into
18785 # a binary during linking. This must work even if \$libdir does
18786 # not exist.
18787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18788
18789 # Whether we need a single -rpath flag with a separated argument.
18790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18791
18792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18793 # resulting binary.
18794 hardcode_direct=$hardcode_direct_GCJ
18795
18796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18797 # resulting binary.
18798 hardcode_minus_L=$hardcode_minus_L_GCJ
18799
18800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18801 # the resulting binary.
18802 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18803
18804 # Set to yes if building a shared library automatically hardcodes DIR into the library
18805 # and all subsequent libraries and executables linked against it.
18806 hardcode_automatic=$hardcode_automatic_GCJ
18807
18808 # Variables whose values should be saved in libtool wrapper scripts and
18809 # restored at relink time.
18810 variables_saved_for_relink="$variables_saved_for_relink"
18811
18812 # Whether libtool must link a program against all its dependency libraries.
18813 link_all_deplibs=$link_all_deplibs_GCJ
18814
18815 # Compile-time system search path for libraries
18816 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18817
18818 # Run-time system search path for libraries
18819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18820
18821 # Fix the shell variable \$srcfile for the compiler.
18822 fix_srcfile_path="$fix_srcfile_path_GCJ"
18823
18824 # Set to yes if exported symbols are required.
18825 always_export_symbols=$always_export_symbols_GCJ
18826
18827 # The commands to list exported symbols.
18828 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18829
18830 # The commands to extract the exported symbol list from a shared archive.
18831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18832
18833 # Symbols that should not be listed in the preloaded symbols.
18834 exclude_expsyms=$lt_exclude_expsyms_GCJ
18835
18836 # Symbols that must always be exported.
18837 include_expsyms=$lt_include_expsyms_GCJ
18838
18839 # ### END LIBTOOL TAG CONFIG: $tagname
18840
18841 __EOF__
18842
18843
18844 else
18845   # If there is no Makefile yet, we rely on a make rule to execute
18846   # `config.status --recheck' to rerun these tests and create the
18847   # libtool script then.
18848   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18849   if test -f "$ltmain_in"; then
18850     test -f Makefile && make "$ltmain"
18851   fi
18852 fi
18853
18854
18855 ac_ext=c
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18860
18861 CC="$lt_save_CC"
18862
18863         else
18864           tagname=""
18865         fi
18866         ;;
18867
18868       RC)
18869
18870
18871
18872 # Source file extension for RC test sources.
18873 ac_ext=rc
18874
18875 # Object file extension for compiled RC test sources.
18876 objext=o
18877 objext_RC=$objext
18878
18879 # Code to be used in simple compile tests
18880 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18881
18882 # Code to be used in simple link tests
18883 lt_simple_link_test_code="$lt_simple_compile_test_code"
18884
18885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18886
18887 # If no C compiler was specified, use CC.
18888 LTCC=${LTCC-"$CC"}
18889
18890 # Allow CC to be a program name with arguments.
18891 compiler=$CC
18892
18893
18894 # Allow CC to be a program name with arguments.
18895 lt_save_CC="$CC"
18896 CC=${RC-"windres"}
18897 compiler=$CC
18898 compiler_RC=$CC
18899 lt_cv_prog_compiler_c_o_RC=yes
18900
18901 # The else clause should only fire when bootstrapping the
18902 # libtool distribution, otherwise you forgot to ship ltmain.sh
18903 # with your package, and you will get complaints that there are
18904 # no rules to generate ltmain.sh.
18905 if test -f "$ltmain"; then
18906   # See if we are running on zsh, and set the options which allow our commands through
18907   # without removal of \ escapes.
18908   if test -n "${ZSH_VERSION+set}" ; then
18909     setopt NO_GLOB_SUBST
18910   fi
18911   # Now quote all the things that may contain metacharacters while being
18912   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18913   # variables and quote the copies for generation of the libtool script.
18914   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18915     SED SHELL STRIP \
18916     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18917     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18918     deplibs_check_method reload_flag reload_cmds need_locks \
18919     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18920     lt_cv_sys_global_symbol_to_c_name_address \
18921     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18922     old_postinstall_cmds old_postuninstall_cmds \
18923     compiler_RC \
18924     CC_RC \
18925     LD_RC \
18926     lt_prog_compiler_wl_RC \
18927     lt_prog_compiler_pic_RC \
18928     lt_prog_compiler_static_RC \
18929     lt_prog_compiler_no_builtin_flag_RC \
18930     export_dynamic_flag_spec_RC \
18931     thread_safe_flag_spec_RC \
18932     whole_archive_flag_spec_RC \
18933     enable_shared_with_static_runtimes_RC \
18934     old_archive_cmds_RC \
18935     old_archive_from_new_cmds_RC \
18936     predep_objects_RC \
18937     postdep_objects_RC \
18938     predeps_RC \
18939     postdeps_RC \
18940     compiler_lib_search_path_RC \
18941     archive_cmds_RC \
18942     archive_expsym_cmds_RC \
18943     postinstall_cmds_RC \
18944     postuninstall_cmds_RC \
18945     old_archive_from_expsyms_cmds_RC \
18946     allow_undefined_flag_RC \
18947     no_undefined_flag_RC \
18948     export_symbols_cmds_RC \
18949     hardcode_libdir_flag_spec_RC \
18950     hardcode_libdir_flag_spec_ld_RC \
18951     hardcode_libdir_separator_RC \
18952     hardcode_automatic_RC \
18953     module_cmds_RC \
18954     module_expsym_cmds_RC \
18955     lt_cv_prog_compiler_c_o_RC \
18956     exclude_expsyms_RC \
18957     include_expsyms_RC; do
18958
18959     case $var in
18960     old_archive_cmds_RC | \
18961     old_archive_from_new_cmds_RC | \
18962     archive_cmds_RC | \
18963     archive_expsym_cmds_RC | \
18964     module_cmds_RC | \
18965     module_expsym_cmds_RC | \
18966     old_archive_from_expsyms_cmds_RC | \
18967     export_symbols_cmds_RC | \
18968     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18969     postinstall_cmds | postuninstall_cmds | \
18970     old_postinstall_cmds | old_postuninstall_cmds | \
18971     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18972       # Double-quote double-evaled strings.
18973       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18974       ;;
18975     *)
18976       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18977       ;;
18978     esac
18979   done
18980
18981   case $lt_echo in
18982   *'\$0 --fallback-echo"')
18983     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18984     ;;
18985   esac
18986
18987 cfgfile="$ofile"
18988
18989   cat <<__EOF__ >> "$cfgfile"
18990 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18991
18992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18993
18994 # Shell to use when invoking shell scripts.
18995 SHELL=$lt_SHELL
18996
18997 # Whether or not to build shared libraries.
18998 build_libtool_libs=$enable_shared
18999
19000 # Whether or not to build static libraries.
19001 build_old_libs=$enable_static
19002
19003 # Whether or not to add -lc for building shared libraries.
19004 build_libtool_need_lc=$archive_cmds_need_lc_RC
19005
19006 # Whether or not to disallow shared libs when runtime libs are static
19007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19008
19009 # Whether or not to optimize for fast installation.
19010 fast_install=$enable_fast_install
19011
19012 # The host system.
19013 host_alias=$host_alias
19014 host=$host
19015
19016 # An echo program that does not interpret backslashes.
19017 echo=$lt_echo
19018
19019 # The archiver.
19020 AR=$lt_AR
19021 AR_FLAGS=$lt_AR_FLAGS
19022
19023 # A C compiler.
19024 LTCC=$lt_LTCC
19025
19026 # A language-specific compiler.
19027 CC=$lt_compiler_RC
19028
19029 # Is the compiler the GNU C compiler?
19030 with_gcc=$GCC_RC
19031
19032 # An ERE matcher.
19033 EGREP=$lt_EGREP
19034
19035 # The linker used to build libraries.
19036 LD=$lt_LD_RC
19037
19038 # Whether we need hard or soft links.
19039 LN_S=$lt_LN_S
19040
19041 # A BSD-compatible nm program.
19042 NM=$lt_NM
19043
19044 # A symbol stripping program
19045 STRIP=$lt_STRIP
19046
19047 # Used to examine libraries when file_magic_cmd begins "file"
19048 MAGIC_CMD=$MAGIC_CMD
19049
19050 # Used on cygwin: DLL creation program.
19051 DLLTOOL="$DLLTOOL"
19052
19053 # Used on cygwin: object dumper.
19054 OBJDUMP="$OBJDUMP"
19055
19056 # Used on cygwin: assembler.
19057 AS="$AS"
19058
19059 # The name of the directory that contains temporary libtool files.
19060 objdir=$objdir
19061
19062 # How to create reloadable object files.
19063 reload_flag=$lt_reload_flag
19064 reload_cmds=$lt_reload_cmds
19065
19066 # How to pass a linker flag through the compiler.
19067 wl=$lt_lt_prog_compiler_wl_RC
19068
19069 # Object file suffix (normally "o").
19070 objext="$ac_objext"
19071
19072 # Old archive suffix (normally "a").
19073 libext="$libext"
19074
19075 # Shared library suffix (normally ".so").
19076 shrext_cmds='$shrext_cmds'
19077
19078 # Executable file suffix (normally "").
19079 exeext="$exeext"
19080
19081 # Additional compiler flags for building library objects.
19082 pic_flag=$lt_lt_prog_compiler_pic_RC
19083 pic_mode=$pic_mode
19084
19085 # What is the maximum length of a command?
19086 max_cmd_len=$lt_cv_sys_max_cmd_len
19087
19088 # Does compiler simultaneously support -c and -o options?
19089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19090
19091 # Must we lock files when doing compilation ?
19092 need_locks=$lt_need_locks
19093
19094 # Do we need the lib prefix for modules?
19095 need_lib_prefix=$need_lib_prefix
19096
19097 # Do we need a version for libraries?
19098 need_version=$need_version
19099
19100 # Whether dlopen is supported.
19101 dlopen_support=$enable_dlopen
19102
19103 # Whether dlopen of programs is supported.
19104 dlopen_self=$enable_dlopen_self
19105
19106 # Whether dlopen of statically linked programs is supported.
19107 dlopen_self_static=$enable_dlopen_self_static
19108
19109 # Compiler flag to prevent dynamic linking.
19110 link_static_flag=$lt_lt_prog_compiler_static_RC
19111
19112 # Compiler flag to turn off builtin functions.
19113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19114
19115 # Compiler flag to allow reflexive dlopens.
19116 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19117
19118 # Compiler flag to generate shared objects directly from archives.
19119 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19120
19121 # Compiler flag to generate thread-safe objects.
19122 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19123
19124 # Library versioning type.
19125 version_type=$version_type
19126
19127 # Format of library name prefix.
19128 libname_spec=$lt_libname_spec
19129
19130 # List of archive names.  First name is the real one, the rest are links.
19131 # The last name is the one that the linker finds with -lNAME.
19132 library_names_spec=$lt_library_names_spec
19133
19134 # The coded name of the library, if different from the real name.
19135 soname_spec=$lt_soname_spec
19136
19137 # Commands used to build and install an old-style archive.
19138 RANLIB=$lt_RANLIB
19139 old_archive_cmds=$lt_old_archive_cmds_RC
19140 old_postinstall_cmds=$lt_old_postinstall_cmds
19141 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19142
19143 # Create an old-style archive from a shared archive.
19144 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19145
19146 # Create a temporary old-style archive to link instead of a shared archive.
19147 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19148
19149 # Commands used to build and install a shared archive.
19150 archive_cmds=$lt_archive_cmds_RC
19151 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19152 postinstall_cmds=$lt_postinstall_cmds
19153 postuninstall_cmds=$lt_postuninstall_cmds
19154
19155 # Commands used to build a loadable module (assumed same as above if empty)
19156 module_cmds=$lt_module_cmds_RC
19157 module_expsym_cmds=$lt_module_expsym_cmds_RC
19158
19159 # Commands to strip libraries.
19160 old_striplib=$lt_old_striplib
19161 striplib=$lt_striplib
19162
19163 # Dependencies to place before the objects being linked to create a
19164 # shared library.
19165 predep_objects=$lt_predep_objects_RC
19166
19167 # Dependencies to place after the objects being linked to create a
19168 # shared library.
19169 postdep_objects=$lt_postdep_objects_RC
19170
19171 # Dependencies to place before the objects being linked to create a
19172 # shared library.
19173 predeps=$lt_predeps_RC
19174
19175 # Dependencies to place after the objects being linked to create a
19176 # shared library.
19177 postdeps=$lt_postdeps_RC
19178
19179 # The library search path used internally by the compiler when linking
19180 # a shared library.
19181 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19182
19183 # Method to check whether dependent libraries are shared objects.
19184 deplibs_check_method=$lt_deplibs_check_method
19185
19186 # Command to use when deplibs_check_method == file_magic.
19187 file_magic_cmd=$lt_file_magic_cmd
19188
19189 # Flag that allows shared libraries with undefined symbols to be built.
19190 allow_undefined_flag=$lt_allow_undefined_flag_RC
19191
19192 # Flag that forces no undefined symbols.
19193 no_undefined_flag=$lt_no_undefined_flag_RC
19194
19195 # Commands used to finish a libtool library installation in a directory.
19196 finish_cmds=$lt_finish_cmds
19197
19198 # Same as above, but a single script fragment to be evaled but not shown.
19199 finish_eval=$lt_finish_eval
19200
19201 # Take the output of nm and produce a listing of raw symbols and C names.
19202 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19203
19204 # Transform the output of nm in a proper C declaration
19205 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19206
19207 # Transform the output of nm in a C name address pair
19208 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19209
19210 # This is the shared library runtime path variable.
19211 runpath_var=$runpath_var
19212
19213 # This is the shared library path variable.
19214 shlibpath_var=$shlibpath_var
19215
19216 # Is shlibpath searched before the hard-coded library search path?
19217 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19218
19219 # How to hardcode a shared library path into an executable.
19220 hardcode_action=$hardcode_action_RC
19221
19222 # Whether we should hardcode library paths into libraries.
19223 hardcode_into_libs=$hardcode_into_libs
19224
19225 # Flag to hardcode \$libdir into a binary during linking.
19226 # This must work even if \$libdir does not exist.
19227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19228
19229 # If ld is used when linking, flag to hardcode \$libdir into
19230 # a binary during linking. This must work even if \$libdir does
19231 # not exist.
19232 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19233
19234 # Whether we need a single -rpath flag with a separated argument.
19235 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19236
19237 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19238 # resulting binary.
19239 hardcode_direct=$hardcode_direct_RC
19240
19241 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19242 # resulting binary.
19243 hardcode_minus_L=$hardcode_minus_L_RC
19244
19245 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19246 # the resulting binary.
19247 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19248
19249 # Set to yes if building a shared library automatically hardcodes DIR into the library
19250 # and all subsequent libraries and executables linked against it.
19251 hardcode_automatic=$hardcode_automatic_RC
19252
19253 # Variables whose values should be saved in libtool wrapper scripts and
19254 # restored at relink time.
19255 variables_saved_for_relink="$variables_saved_for_relink"
19256
19257 # Whether libtool must link a program against all its dependency libraries.
19258 link_all_deplibs=$link_all_deplibs_RC
19259
19260 # Compile-time system search path for libraries
19261 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19262
19263 # Run-time system search path for libraries
19264 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19265
19266 # Fix the shell variable \$srcfile for the compiler.
19267 fix_srcfile_path="$fix_srcfile_path_RC"
19268
19269 # Set to yes if exported symbols are required.
19270 always_export_symbols=$always_export_symbols_RC
19271
19272 # The commands to list exported symbols.
19273 export_symbols_cmds=$lt_export_symbols_cmds_RC
19274
19275 # The commands to extract the exported symbol list from a shared archive.
19276 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19277
19278 # Symbols that should not be listed in the preloaded symbols.
19279 exclude_expsyms=$lt_exclude_expsyms_RC
19280
19281 # Symbols that must always be exported.
19282 include_expsyms=$lt_include_expsyms_RC
19283
19284 # ### END LIBTOOL TAG CONFIG: $tagname
19285
19286 __EOF__
19287
19288
19289 else
19290   # If there is no Makefile yet, we rely on a make rule to execute
19291   # `config.status --recheck' to rerun these tests and create the
19292   # libtool script then.
19293   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19294   if test -f "$ltmain_in"; then
19295     test -f Makefile && make "$ltmain"
19296   fi
19297 fi
19298
19299
19300 ac_ext=c
19301 ac_cpp='$CPP $CPPFLAGS'
19302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19305
19306 CC="$lt_save_CC"
19307
19308         ;;
19309
19310       *)
19311         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19312 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19313    { (exit 1); exit 1; }; }
19314         ;;
19315       esac
19316
19317       # Append the new tag name to the list of available tags.
19318       if test -n "$tagname" ; then
19319       available_tags="$available_tags $tagname"
19320     fi
19321     fi
19322   done
19323   IFS="$lt_save_ifs"
19324
19325   # Now substitute the updated list of available tags.
19326   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19327     mv "${ofile}T" "$ofile"
19328     chmod +x "$ofile"
19329   else
19330     rm -f "${ofile}T"
19331     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19332 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19333    { (exit 1); exit 1; }; }
19334   fi
19335 fi
19336
19337
19338
19339 # This can be used to rebuild libtool when needed
19340 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19341
19342 # Always use our own libtool.
19343 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19344
19345 # Prevent multiple expansion
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358 # Check whether --with-system-libtool or --without-system-libtool was given.
19359 if test "${with_system_libtool+set}" = set; then
19360   withval="$with_system_libtool"
19361    # Extract the first word of "libtool", so it can be a program name with args.
19362 set dummy libtool; ac_word=$2
19363 echo "$as_me:$LINENO: checking for $ac_word" >&5
19364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19365 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19366   echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368   case $LIBTOOL in
19369   [\\/]* | ?:[\\/]*)
19370   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19371   ;;
19372   *)
19373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374 as_dummy="$PATH:/usr/local/bin"
19375 for as_dir in $as_dummy
19376 do
19377   IFS=$as_save_IFS
19378   test -z "$as_dir" && as_dir=.
19379   for ac_exec_ext in '' $ac_executable_extensions; do
19380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19381     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19383     break 2
19384   fi
19385 done
19386 done
19387
19388   ;;
19389 esac
19390 fi
19391 LIBTOOL=$ac_cv_path_LIBTOOL
19392
19393 if test -n "$LIBTOOL"; then
19394   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19395 echo "${ECHO_T}$LIBTOOL" >&6
19396 else
19397   echo "$as_me:$LINENO: result: no" >&5
19398 echo "${ECHO_T}no" >&6
19399 fi
19400
19401 else
19402
19403   LIBTOOL="`pwd`/libtool"
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418 fi;
19419
19420
19421
19422 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19423 if test "${enable_strict_dependencies+set}" = set; then
19424   enableval="$enable_strict_dependencies"
19425
19426 fi;
19427
19428 logdir='${localstatedir}/log/radius'
19429 echo "$as_me:$LINENO: checking logdir" >&5
19430 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19431
19432 # Check whether --with-logdir or --without-logdir was given.
19433 if test "${with_logdir+set}" = set; then
19434   withval="$with_logdir"
19435    case "$withval" in
19436     no)
19437         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19438 echo "$as_me: error: Need logdir" >&2;}
19439    { (exit 1); exit 1; }; }
19440         ;;
19441     yes)
19442         ;;
19443     *)
19444         logdir="$withval"
19445         ;;
19446   esac
19447
19448 fi;
19449
19450 echo "$as_me:$LINENO: result: $logdir" >&5
19451 echo "${ECHO_T}$logdir" >&6
19452
19453 radacctdir='${logdir}/radacct'
19454 echo "$as_me:$LINENO: checking radacctdir" >&5
19455 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19456
19457 # Check whether --with-radacctdir or --without-radacctdir was given.
19458 if test "${with_radacctdir+set}" = set; then
19459   withval="$with_radacctdir"
19460    case "$withval" in
19461     no)
19462         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19463 echo "$as_me: error: Need radacctdir" >&2;}
19464    { (exit 1); exit 1; }; }
19465         ;;
19466     yes)
19467         ;;
19468     *)
19469         radacctdir="$withval"
19470         ;;
19471   esac
19472
19473 fi;
19474
19475 echo "$as_me:$LINENO: result: $radacctdir" >&5
19476 echo "${ECHO_T}$radacctdir" >&6
19477
19478 raddbdir='${sysconfdir}/raddb'
19479 echo "$as_me:$LINENO: checking raddbdir" >&5
19480 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19481
19482 # Check whether --with-raddbdir or --without-raddbdir was given.
19483 if test "${with_raddbdir+set}" = set; then
19484   withval="$with_raddbdir"
19485    case "$withval" in
19486     no)
19487         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19488 echo "$as_me: error: Need raddbdir" >&2;}
19489    { (exit 1); exit 1; }; }
19490         ;;
19491     yes)
19492         ;;
19493     *)
19494         raddbdir="$withval"
19495         ;;
19496   esac
19497
19498 fi;
19499
19500 echo "$as_me:$LINENO: result: $raddbdir" >&5
19501 echo "${ECHO_T}$raddbdir" >&6
19502
19503 ASCEND_BINARY=yes
19504
19505 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19506 if test "${with_ascend_binary+set}" = set; then
19507   withval="$with_ascend_binary"
19508    case "$withval" in
19509     yes)
19510         ;;
19511     *)
19512         ASCEND_BINARY=""
19513   esac
19514
19515 fi;
19516 if test "X$ASCEND_BINARY" = "Xyes"; then
19517
19518 cat >>confdefs.h <<\_ACEOF
19519 #define ASCEND_BINARY
19520 _ACEOF
19521
19522 fi
19523
19524 WITH_THREADS=yes
19525
19526 # Check whether --with-threads or --without-threads was given.
19527 if test "${with_threads+set}" = set; then
19528   withval="$with_threads"
19529    case "$withval" in
19530     yes)
19531         ;;
19532     *)
19533         WITH_THREADS=""
19534   esac
19535
19536 fi;
19537
19538 WITH_SNMP=yes
19539
19540 # Check whether --with-snmp or --without-snmp was given.
19541 if test "${with_snmp+set}" = set; then
19542   withval="$with_snmp"
19543    case "$withval" in
19544     yes)
19545         ;;
19546     *)
19547         WITH_SNMP=no
19548   esac
19549
19550 fi;
19551
19552 rad_enable_largefiles=no
19553
19554 # Check whether --with-large-files or --without-large-files was given.
19555 if test "${with_large_files+set}" = set; then
19556   withval="$with_large_files"
19557    case "$withval" in
19558     yes)
19559         rad_enable_largefiles=yes
19560         ;;
19561     *)
19562         ;;
19563   esac
19564
19565 fi;
19566
19567
19568
19569 STATIC_MODULES=
19570
19571 # Check whether --with-static_modules or --without-static_modules was given.
19572 if test "${with_static_modules+set}" = set; then
19573   withval="$with_static_modules"
19574
19575   for i in $withval; do
19576     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19577   done
19578
19579 fi;
19580
19581 # Check whether --enable-developer or --disable-developer was given.
19582 if test "${enable_developer+set}" = set; then
19583   enableval="$enable_developer"
19584    case "$enableval" in
19585     no)
19586         developer=no
19587         ;;
19588     *)
19589         developer=yes
19590   esac
19591
19592 fi;
19593
19594 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19595     developer="yes"
19596 fi
19597
19598 EXPERIMENTAL=
19599
19600 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19601 if test "${with_experimental_modules+set}" = set; then
19602   withval="$with_experimental_modules"
19603    case "$withval" in
19604     yes)
19605         EXPERIMENTAL=yes
19606         ;;
19607     *)
19608   esac
19609
19610 fi;
19611
19612
19613 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19614 if test "${with_openssl_includes+set}" = set; then
19615   withval="$with_openssl_includes"
19616    case "$withval" in
19617     *) OPENSSL_INCLUDE_DIR="$withval"
19618         ;;
19619   esac
19620
19621 fi;
19622
19623
19624 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19625 if test "${with_openssl_libraries+set}" = set; then
19626   withval="$with_openssl_libraries"
19627    case "$withval" in
19628     *) OPENSSL_LIB_DIR="$withval"
19629         ;;
19630   esac
19631
19632 fi;
19633
19634
19635
19636 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19637 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19638   withval="$with_rlm_FOO_lib_dir"
19639    case "$withval" in
19640     *)
19641         ;;
19642   esac
19643
19644 fi;
19645
19646
19647 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19648 if test "${with_rlm_FOO_include_dir+set}" = set; then
19649   withval="$with_rlm_FOO_include_dir"
19650    case "$withval" in
19651     *)
19652         ;;
19653   esac
19654
19655 fi;
19656
19657
19658 WITH_UDPFROMTO=no
19659
19660 # Check whether --with-udpfromto or --without-udpfromto was given.
19661 if test "${with_udpfromto+set}" = set; then
19662   withval="$with_udpfromto"
19663    case "$withval" in
19664     yes)
19665         WITH_UDPFROMTO=yes
19666         ;;
19667     *)
19668         WITH_UDPFROMTO=no
19669   esac
19670
19671 fi;
19672
19673 if test "x$WITH_UDPFROMTO" = "xyes"; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define WITH_UDPFROMTO
19677 _ACEOF
19678
19679 fi
19680
19681
19682 CHECKRAD=checkrad.pl
19683 # Extract the first word of "perl", so it can be a program name with args.
19684 set dummy perl; ac_word=$2
19685 echo "$as_me:$LINENO: checking for $ac_word" >&5
19686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19687 if test "${ac_cv_path_PERL+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690   case $PERL in
19691   [\\/]* | ?:[\\/]*)
19692   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19693   ;;
19694   *)
19695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19696 for as_dir in $PATH
19697 do
19698   IFS=$as_save_IFS
19699   test -z "$as_dir" && as_dir=.
19700   for ac_exec_ext in '' $ac_executable_extensions; do
19701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19702     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19704     break 2
19705   fi
19706 done
19707 done
19708
19709   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19710   ;;
19711 esac
19712 fi
19713 PERL=$ac_cv_path_PERL
19714
19715 if test -n "$PERL"; then
19716   echo "$as_me:$LINENO: result: $PERL" >&5
19717 echo "${ECHO_T}$PERL" >&6
19718 else
19719   echo "$as_me:$LINENO: result: no" >&5
19720 echo "${ECHO_T}no" >&6
19721 fi
19722
19723 if test "x$ac_cv_path_PERL" = "x"; then
19724   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19725 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19726 fi
19727 # Extract the first word of "snmpget", so it can be a program name with args.
19728 set dummy snmpget; ac_word=$2
19729 echo "$as_me:$LINENO: checking for $ac_word" >&5
19730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19731 if test "${ac_cv_path_SNMPGET+set}" = set; then
19732   echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734   case $SNMPGET in
19735   [\\/]* | ?:[\\/]*)
19736   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19737   ;;
19738   *)
19739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19740 for as_dir in $PATH
19741 do
19742   IFS=$as_save_IFS
19743   test -z "$as_dir" && as_dir=.
19744   for ac_exec_ext in '' $ac_executable_extensions; do
19745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19746     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19748     break 2
19749   fi
19750 done
19751 done
19752
19753   ;;
19754 esac
19755 fi
19756 SNMPGET=$ac_cv_path_SNMPGET
19757
19758 if test -n "$SNMPGET"; then
19759   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19760 echo "${ECHO_T}$SNMPGET" >&6
19761 else
19762   echo "$as_me:$LINENO: result: no" >&5
19763 echo "${ECHO_T}no" >&6
19764 fi
19765
19766 if test "x$ac_cv_path_SNMPGET" = "x"; then
19767   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19768 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19769 fi
19770
19771 # Extract the first word of "snmpwalk", so it can be a program name with args.
19772 set dummy snmpwalk; ac_word=$2
19773 echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   case $SNMPWALK in
19779   [\\/]* | ?:[\\/]*)
19780   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19781   ;;
19782   *)
19783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19785 do
19786   IFS=$as_save_IFS
19787   test -z "$as_dir" && as_dir=.
19788   for ac_exec_ext in '' $ac_executable_extensions; do
19789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19792     break 2
19793   fi
19794 done
19795 done
19796
19797   ;;
19798 esac
19799 fi
19800 SNMPWALK=$ac_cv_path_SNMPWALK
19801
19802 if test -n "$SNMPWALK"; then
19803   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19804 echo "${ECHO_T}$SNMPWALK" >&6
19805 else
19806   echo "$as_me:$LINENO: result: no" >&5
19807 echo "${ECHO_T}no" >&6
19808 fi
19809
19810 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19811   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19812 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19813 fi
19814
19815 # Extract the first word of "rusers", so it can be a program name with args.
19816 set dummy rusers; ac_word=$2
19817 echo "$as_me:$LINENO: checking for $ac_word" >&5
19818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19819 if test "${ac_cv_path_RUSERS+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   case $RUSERS in
19823   [\\/]* | ?:[\\/]*)
19824   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19825   ;;
19826   *)
19827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19828 for as_dir in $PATH
19829 do
19830   IFS=$as_save_IFS
19831   test -z "$as_dir" && as_dir=.
19832   for ac_exec_ext in '' $ac_executable_extensions; do
19833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19834     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19836     break 2
19837   fi
19838 done
19839 done
19840
19841   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19842   ;;
19843 esac
19844 fi
19845 RUSERS=$ac_cv_path_RUSERS
19846
19847 if test -n "$RUSERS"; then
19848   echo "$as_me:$LINENO: result: $RUSERS" >&5
19849 echo "${ECHO_T}$RUSERS" >&6
19850 else
19851   echo "$as_me:$LINENO: result: no" >&5
19852 echo "${ECHO_T}no" >&6
19853 fi
19854
19855
19856 missing_dir=`cd $ac_aux_dir && pwd`
19857 # expand $ac_aux_dir to an absolute path
19858 am_aux_dir=`cd $ac_aux_dir && pwd`
19859
19860 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19861 # Use eval to expand $SHELL
19862 if eval "$MISSING --run true"; then
19863   am_missing_run="$MISSING --run "
19864 else
19865   am_missing_run=
19866   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19867 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19868 fi
19869
19870
19871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19872
19873
19874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19875
19876
19877 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19878
19879
19880 # Extract the first word of "locate", so it can be a program name with args.
19881 set dummy locate; ac_word=$2
19882 echo "$as_me:$LINENO: checking for $ac_word" >&5
19883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19884 if test "${ac_cv_path_LOCATE+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   case $LOCATE in
19888   [\\/]* | ?:[\\/]*)
19889   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19890   ;;
19891   *)
19892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19893 for as_dir in $PATH
19894 do
19895   IFS=$as_save_IFS
19896   test -z "$as_dir" && as_dir=.
19897   for ac_exec_ext in '' $ac_executable_extensions; do
19898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19899     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19901     break 2
19902   fi
19903 done
19904 done
19905
19906   ;;
19907 esac
19908 fi
19909 LOCATE=$ac_cv_path_LOCATE
19910
19911 if test -n "$LOCATE"; then
19912   echo "$as_me:$LINENO: result: $LOCATE" >&5
19913 echo "${ECHO_T}$LOCATE" >&6
19914 else
19915   echo "$as_me:$LINENO: result: no" >&5
19916 echo "${ECHO_T}no" >&6
19917 fi
19918
19919 # Extract the first word of "dirname", so it can be a program name with args.
19920 set dummy dirname; ac_word=$2
19921 echo "$as_me:$LINENO: checking for $ac_word" >&5
19922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19923 if test "${ac_cv_path_DIRNAME+set}" = set; then
19924   echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926   case $DIRNAME in
19927   [\\/]* | ?:[\\/]*)
19928   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19929   ;;
19930   *)
19931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19932 for as_dir in $PATH
19933 do
19934   IFS=$as_save_IFS
19935   test -z "$as_dir" && as_dir=.
19936   for ac_exec_ext in '' $ac_executable_extensions; do
19937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19938     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19940     break 2
19941   fi
19942 done
19943 done
19944
19945   ;;
19946 esac
19947 fi
19948 DIRNAME=$ac_cv_path_DIRNAME
19949
19950 if test -n "$DIRNAME"; then
19951   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19952 echo "${ECHO_T}$DIRNAME" >&6
19953 else
19954   echo "$as_me:$LINENO: result: no" >&5
19955 echo "${ECHO_T}no" >&6
19956 fi
19957
19958 # Extract the first word of "grep", so it can be a program name with args.
19959 set dummy grep; ac_word=$2
19960 echo "$as_me:$LINENO: checking for $ac_word" >&5
19961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19962 if test "${ac_cv_path_GREP+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   case $GREP in
19966   [\\/]* | ?:[\\/]*)
19967   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19968   ;;
19969   *)
19970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971 for as_dir in $PATH
19972 do
19973   IFS=$as_save_IFS
19974   test -z "$as_dir" && as_dir=.
19975   for ac_exec_ext in '' $ac_executable_extensions; do
19976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19977     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19979     break 2
19980   fi
19981 done
19982 done
19983
19984   ;;
19985 esac
19986 fi
19987 GREP=$ac_cv_path_GREP
19988
19989 if test -n "$GREP"; then
19990   echo "$as_me:$LINENO: result: $GREP" >&5
19991 echo "${ECHO_T}$GREP" >&6
19992 else
19993   echo "$as_me:$LINENO: result: no" >&5
19994 echo "${ECHO_T}no" >&6
19995 fi
19996
19997
19998
19999 old_CFLAGS=$CFLAGS
20000 if test "x$WITH_THREADS" = "xyes"; then
20001   if test $ac_cv_prog_suncc = "yes"; then
20002     CFLAGS="$CFLAGS -mt"
20003   fi
20004
20005
20006 for ac_header in pthread.h
20007 do
20008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20010   echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 fi
20015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20017 else
20018   # Is the header compilable?
20019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 $ac_includes_default
20028 #include <$ac_header>
20029 _ACEOF
20030 rm -f conftest.$ac_objext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032   (eval $ac_compile) 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } &&
20039          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041   (eval $ac_try) 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; } &&
20045          { ac_try='test -s conftest.$ac_objext'
20046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047   (eval $ac_try) 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; }; then
20051   ac_header_compiler=yes
20052 else
20053   echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 ac_header_compiler=no
20057 fi
20058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20060 echo "${ECHO_T}$ac_header_compiler" >&6
20061
20062 # Is the header present?
20063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071 #include <$ac_header>
20072 _ACEOF
20073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } >/dev/null; then
20081   if test -s conftest.err; then
20082     ac_cpp_err=$ac_c_preproc_warn_flag
20083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20084   else
20085     ac_cpp_err=
20086   fi
20087 else
20088   ac_cpp_err=yes
20089 fi
20090 if test -z "$ac_cpp_err"; then
20091   ac_header_preproc=yes
20092 else
20093   echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096   ac_header_preproc=no
20097 fi
20098 rm -f conftest.err conftest.$ac_ext
20099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100 echo "${ECHO_T}$ac_header_preproc" >&6
20101
20102 # So?  What about this header?
20103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20104   yes:no: )
20105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20109     ac_header_preproc=yes
20110     ;;
20111   no:yes:* )
20112     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20114     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20115 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20116     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20118     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20119 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20122     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20124     (
20125       cat <<\_ASBOX
20126 ## ------------------------------------------ ##
20127 ## Report this to the AC_PACKAGE_NAME lists.  ##
20128 ## ------------------------------------------ ##
20129 _ASBOX
20130     ) |
20131       sed "s/^/$as_me: WARNING:     /" >&2
20132     ;;
20133 esac
20134 echo "$as_me:$LINENO: checking for $ac_header" >&5
20135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139   eval "$as_ac_Header=\$ac_header_preproc"
20140 fi
20141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20143
20144 fi
20145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20146   cat >>confdefs.h <<_ACEOF
20147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20148 _ACEOF
20149
20150 else
20151    WITH_THREADS="no"
20152 fi
20153
20154 done
20155
20156
20157   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20158 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20159 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   ac_check_lib_save_LIBS=$LIBS
20163 LIBS="-lpthread  $LIBS"
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 /* Override any gcc2 internal prototype to avoid an error.  */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 /* We use char because int might match the return type of a gcc2
20176    builtin and then its argument prototype would still apply.  */
20177 char pthread_create ();
20178 int
20179 main ()
20180 {
20181 pthread_create ();
20182   ;
20183   return 0;
20184 }
20185 _ACEOF
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20188   (eval $ac_link) 2>conftest.er1
20189   ac_status=$?
20190   grep -v '^ *+' conftest.er1 >conftest.err
20191   rm -f conftest.er1
20192   cat conftest.err >&5
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } &&
20195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197   (eval $ac_try) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; } &&
20201          { ac_try='test -s conftest$ac_exeext'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; }; then
20207   ac_cv_lib_pthread_pthread_create=yes
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212 ac_cv_lib_pthread_pthread_create=no
20213 fi
20214 rm -f conftest.err conftest.$ac_objext \
20215       conftest$ac_exeext conftest.$ac_ext
20216 LIBS=$ac_check_lib_save_LIBS
20217 fi
20218 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20219 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20220 if test $ac_cv_lib_pthread_pthread_create = yes; then
20221    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20222                   LIBS="$LIBS -lpthread"
20223 else
20224   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20225 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20226 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229   ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lc_r  $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h.  */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h.  */
20237
20238 /* Override any gcc2 internal prototype to avoid an error.  */
20239 #ifdef __cplusplus
20240 extern "C"
20241 #endif
20242 /* We use char because int might match the return type of a gcc2
20243    builtin and then its argument prototype would still apply.  */
20244 char pthread_create ();
20245 int
20246 main ()
20247 {
20248 pthread_create ();
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20255   (eval $ac_link) 2>conftest.er1
20256   ac_status=$?
20257   grep -v '^ *+' conftest.er1 >conftest.err
20258   rm -f conftest.er1
20259   cat conftest.err >&5
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); } &&
20262          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264   (eval $ac_try) 2>&5
20265   ac_status=$?
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); }; } &&
20268          { ac_try='test -s conftest$ac_exeext'
20269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270   (eval $ac_try) 2>&5
20271   ac_status=$?
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); }; }; then
20274   ac_cv_lib_c_r_pthread_create=yes
20275 else
20276   echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279 ac_cv_lib_c_r_pthread_create=no
20280 fi
20281 rm -f conftest.err conftest.$ac_objext \
20282       conftest$ac_exeext conftest.$ac_ext
20283 LIBS=$ac_check_lib_save_LIBS
20284 fi
20285 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20286 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20287 if test $ac_cv_lib_c_r_pthread_create = yes; then
20288    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20289 else
20290    WITH_THREADS="no"
20291
20292 fi
20293
20294
20295 fi
20296
20297 fi
20298
20299 if test "x$WITH_THREADS" != "xyes"; then
20300   CFLAGS=$old_CFLAGS
20301   ac_cv_header_pthread_h="no"
20302   WITH_THREADS=no
20303 else
20304
20305   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20306 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20307 if test "${ac_cv_search_sem_init+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   ac_func_search_save_LIBS=$LIBS
20311 ac_cv_search_sem_init=no
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 /* Override any gcc2 internal prototype to avoid an error.  */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 /* We use char because int might match the return type of a gcc2
20324    builtin and then its argument prototype would still apply.  */
20325 char sem_init ();
20326 int
20327 main ()
20328 {
20329 sem_init ();
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336   (eval $ac_link) 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } &&
20343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; } &&
20349          { ac_try='test -s conftest$ac_exeext'
20350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351   (eval $ac_try) 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   ac_cv_search_sem_init="none required"
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 fi
20361 rm -f conftest.err conftest.$ac_objext \
20362       conftest$ac_exeext conftest.$ac_ext
20363 if test "$ac_cv_search_sem_init" = no; then
20364   for ac_lib in pthread sem posix4 rt; do
20365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20366     cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372
20373 /* Override any gcc2 internal prototype to avoid an error.  */
20374 #ifdef __cplusplus
20375 extern "C"
20376 #endif
20377 /* We use char because int might match the return type of a gcc2
20378    builtin and then its argument prototype would still apply.  */
20379 char sem_init ();
20380 int
20381 main ()
20382 {
20383 sem_init ();
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20390   (eval $ac_link) 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } &&
20397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399   (eval $ac_try) 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); }; } &&
20403          { ac_try='test -s conftest$ac_exeext'
20404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405   (eval $ac_try) 2>&5
20406   ac_status=$?
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); }; }; then
20409   ac_cv_search_sem_init="-l$ac_lib"
20410 break
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 fi
20416 rm -f conftest.err conftest.$ac_objext \
20417       conftest$ac_exeext conftest.$ac_ext
20418   done
20419 fi
20420 LIBS=$ac_func_search_save_LIBS
20421 fi
20422 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20423 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20424 if test "$ac_cv_search_sem_init" != no; then
20425   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20426
20427 else
20428   { { 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
20429 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;}
20430    { (exit 1); exit 1; }; }
20431
20432 fi
20433
20434 fi
20435
20436
20437 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20438 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20439 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20440   echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442   ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-lsocket  $LIBS"
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450
20451 /* Override any gcc2 internal prototype to avoid an error.  */
20452 #ifdef __cplusplus
20453 extern "C"
20454 #endif
20455 /* We use char because int might match the return type of a gcc2
20456    builtin and then its argument prototype would still apply.  */
20457 char getsockname ();
20458 int
20459 main ()
20460 {
20461 getsockname ();
20462   ;
20463   return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20468   (eval $ac_link) 2>conftest.er1
20469   ac_status=$?
20470   grep -v '^ *+' conftest.er1 >conftest.err
20471   rm -f conftest.er1
20472   cat conftest.err >&5
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } &&
20475          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477   (eval $ac_try) 2>&5
20478   ac_status=$?
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); }; } &&
20481          { ac_try='test -s conftest$ac_exeext'
20482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483   (eval $ac_try) 2>&5
20484   ac_status=$?
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); }; }; then
20487   ac_cv_lib_socket_getsockname=yes
20488 else
20489   echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20491
20492 ac_cv_lib_socket_getsockname=no
20493 fi
20494 rm -f conftest.err conftest.$ac_objext \
20495       conftest$ac_exeext conftest.$ac_ext
20496 LIBS=$ac_check_lib_save_LIBS
20497 fi
20498 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20499 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20500 if test $ac_cv_lib_socket_getsockname = yes; then
20501   cat >>confdefs.h <<_ACEOF
20502 #define HAVE_LIBSOCKET 1
20503 _ACEOF
20504
20505   LIBS="-lsocket $LIBS"
20506
20507 fi
20508
20509
20510
20511 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20512 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20513 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20514   echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516   ac_check_lib_save_LIBS=$LIBS
20517 LIBS="-lresolv  $LIBS"
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h.  */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h.  */
20524
20525 /* Override any gcc2 internal prototype to avoid an error.  */
20526 #ifdef __cplusplus
20527 extern "C"
20528 #endif
20529 /* We use char because int might match the return type of a gcc2
20530    builtin and then its argument prototype would still apply.  */
20531 char inet_aton ();
20532 int
20533 main ()
20534 {
20535 inet_aton ();
20536   ;
20537   return 0;
20538 }
20539 _ACEOF
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20542   (eval $ac_link) 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } &&
20549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; } &&
20555          { ac_try='test -s conftest$ac_exeext'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; }; then
20561   ac_cv_lib_resolv_inet_aton=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 ac_cv_lib_resolv_inet_aton=no
20567 fi
20568 rm -f conftest.err conftest.$ac_objext \
20569       conftest$ac_exeext conftest.$ac_ext
20570 LIBS=$ac_check_lib_save_LIBS
20571 fi
20572 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20573 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20574 if test $ac_cv_lib_resolv_inet_aton = yes; then
20575   cat >>confdefs.h <<_ACEOF
20576 #define HAVE_LIBRESOLV 1
20577 _ACEOF
20578
20579   LIBS="-lresolv $LIBS"
20580
20581 fi
20582
20583
20584
20585 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20586 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20587 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590   ac_check_lib_save_LIBS=$LIBS
20591 LIBS="-lnsl  $LIBS"
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598
20599 /* Override any gcc2 internal prototype to avoid an error.  */
20600 #ifdef __cplusplus
20601 extern "C"
20602 #endif
20603 /* We use char because int might match the return type of a gcc2
20604    builtin and then its argument prototype would still apply.  */
20605 char inet_ntoa ();
20606 int
20607 main ()
20608 {
20609 inet_ntoa ();
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20616   (eval $ac_link) 2>conftest.er1
20617   ac_status=$?
20618   grep -v '^ *+' conftest.er1 >conftest.err
20619   rm -f conftest.er1
20620   cat conftest.err >&5
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } &&
20623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625   (eval $ac_try) 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; } &&
20629          { ac_try='test -s conftest$ac_exeext'
20630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631   (eval $ac_try) 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_cv_lib_nsl_inet_ntoa=yes
20636 else
20637   echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640 ac_cv_lib_nsl_inet_ntoa=no
20641 fi
20642 rm -f conftest.err conftest.$ac_objext \
20643       conftest$ac_exeext conftest.$ac_ext
20644 LIBS=$ac_check_lib_save_LIBS
20645 fi
20646 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20647 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20648 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20649   cat >>confdefs.h <<_ACEOF
20650 #define HAVE_LIBNSL 1
20651 _ACEOF
20652
20653   LIBS="-lnsl $LIBS"
20654
20655 fi
20656
20657
20658
20659 case "$host" in
20660 *-interix*)
20661         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20662         ;;
20663 esac
20664
20665
20666
20667
20668
20669
20670 ac_header_dirent=no
20671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20672   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20673 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20674 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 #include <sys/types.h>
20685 #include <$ac_hdr>
20686
20687 int
20688 main ()
20689 {
20690 if ((DIR *) 0)
20691 return 0;
20692   ;
20693   return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20698   (eval $ac_compile) 2>conftest.er1
20699   ac_status=$?
20700   grep -v '^ *+' conftest.er1 >conftest.err
20701   rm -f conftest.er1
20702   cat conftest.err >&5
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } &&
20705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; } &&
20711          { ac_try='test -s conftest.$ac_objext'
20712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713   (eval $ac_try) 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; }; then
20717   eval "$as_ac_Header=yes"
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 eval "$as_ac_Header=no"
20723 fi
20724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20725 fi
20726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20729   cat >>confdefs.h <<_ACEOF
20730 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20731 _ACEOF
20732
20733 ac_header_dirent=$ac_hdr; break
20734 fi
20735
20736 done
20737 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20738 if test $ac_header_dirent = dirent.h; then
20739   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20740 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20741 if test "${ac_cv_search_opendir+set}" = set; then
20742   echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744   ac_func_search_save_LIBS=$LIBS
20745 ac_cv_search_opendir=no
20746 cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h.  */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h.  */
20752
20753 /* Override any gcc2 internal prototype to avoid an error.  */
20754 #ifdef __cplusplus
20755 extern "C"
20756 #endif
20757 /* We use char because int might match the return type of a gcc2
20758    builtin and then its argument prototype would still apply.  */
20759 char opendir ();
20760 int
20761 main ()
20762 {
20763 opendir ();
20764   ;
20765   return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest.$ac_objext conftest$ac_exeext
20769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20770   (eval $ac_link) 2>conftest.er1
20771   ac_status=$?
20772   grep -v '^ *+' conftest.er1 >conftest.err
20773   rm -f conftest.er1
20774   cat conftest.err >&5
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } &&
20777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; } &&
20783          { ac_try='test -s conftest$ac_exeext'
20784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785   (eval $ac_try) 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; }; then
20789   ac_cv_search_opendir="none required"
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 fi
20795 rm -f conftest.err conftest.$ac_objext \
20796       conftest$ac_exeext conftest.$ac_ext
20797 if test "$ac_cv_search_opendir" = no; then
20798   for ac_lib in dir; do
20799     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20800     cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806
20807 /* Override any gcc2 internal prototype to avoid an error.  */
20808 #ifdef __cplusplus
20809 extern "C"
20810 #endif
20811 /* We use char because int might match the return type of a gcc2
20812    builtin and then its argument prototype would still apply.  */
20813 char opendir ();
20814 int
20815 main ()
20816 {
20817 opendir ();
20818   ;
20819   return 0;
20820 }
20821 _ACEOF
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824   (eval $ac_link) 2>conftest.er1
20825   ac_status=$?
20826   grep -v '^ *+' conftest.er1 >conftest.err
20827   rm -f conftest.er1
20828   cat conftest.err >&5
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); } &&
20831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833   (eval $ac_try) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; } &&
20837          { ac_try='test -s conftest$ac_exeext'
20838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839   (eval $ac_try) 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   ac_cv_search_opendir="-l$ac_lib"
20844 break
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849 fi
20850 rm -f conftest.err conftest.$ac_objext \
20851       conftest$ac_exeext conftest.$ac_ext
20852   done
20853 fi
20854 LIBS=$ac_func_search_save_LIBS
20855 fi
20856 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20857 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20858 if test "$ac_cv_search_opendir" != no; then
20859   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20860
20861 fi
20862
20863 else
20864   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20866 if test "${ac_cv_search_opendir+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   ac_func_search_save_LIBS=$LIBS
20870 ac_cv_search_opendir=no
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877
20878 /* Override any gcc2 internal prototype to avoid an error.  */
20879 #ifdef __cplusplus
20880 extern "C"
20881 #endif
20882 /* We use char because int might match the return type of a gcc2
20883    builtin and then its argument prototype would still apply.  */
20884 char opendir ();
20885 int
20886 main ()
20887 {
20888 opendir ();
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895   (eval $ac_link) 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } &&
20902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; } &&
20908          { ac_try='test -s conftest$ac_exeext'
20909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910   (eval $ac_try) 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   ac_cv_search_opendir="none required"
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 fi
20920 rm -f conftest.err conftest.$ac_objext \
20921       conftest$ac_exeext conftest.$ac_ext
20922 if test "$ac_cv_search_opendir" = no; then
20923   for ac_lib in x; do
20924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20925     cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h.  */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h.  */
20931
20932 /* Override any gcc2 internal prototype to avoid an error.  */
20933 #ifdef __cplusplus
20934 extern "C"
20935 #endif
20936 /* We use char because int might match the return type of a gcc2
20937    builtin and then its argument prototype would still apply.  */
20938 char opendir ();
20939 int
20940 main ()
20941 {
20942 opendir ();
20943   ;
20944   return 0;
20945 }
20946 _ACEOF
20947 rm -f conftest.$ac_objext conftest$ac_exeext
20948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949   (eval $ac_link) 2>conftest.er1
20950   ac_status=$?
20951   grep -v '^ *+' conftest.er1 >conftest.err
20952   rm -f conftest.er1
20953   cat conftest.err >&5
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); } &&
20956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; } &&
20962          { ac_try='test -s conftest$ac_exeext'
20963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964   (eval $ac_try) 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); }; }; then
20968   ac_cv_search_opendir="-l$ac_lib"
20969 break
20970 else
20971   echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20973
20974 fi
20975 rm -f conftest.err conftest.$ac_objext \
20976       conftest$ac_exeext conftest.$ac_ext
20977   done
20978 fi
20979 LIBS=$ac_func_search_save_LIBS
20980 fi
20981 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20982 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20983 if test "$ac_cv_search_opendir" != no; then
20984   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20985
20986 fi
20987
20988 fi
20989
20990 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20991 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20992 if test "${ac_cv_header_stdc+set}" = set; then
20993   echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995   cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 #include <stdlib.h>
21002 #include <stdarg.h>
21003 #include <string.h>
21004 #include <float.h>
21005
21006 int
21007 main ()
21008 {
21009
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016   (eval $ac_compile) 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_cv_header_stdc=yes
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 ac_cv_header_stdc=no
21041 fi
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21043
21044 if test $ac_cv_header_stdc = yes; then
21045   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21046   cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 #include <string.h>
21053
21054 _ACEOF
21055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21056   $EGREP "memchr" >/dev/null 2>&1; then
21057   :
21058 else
21059   ac_cv_header_stdc=no
21060 fi
21061 rm -f conftest*
21062
21063 fi
21064
21065 if test $ac_cv_header_stdc = yes; then
21066   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21067   cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073 #include <stdlib.h>
21074
21075 _ACEOF
21076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21077   $EGREP "free" >/dev/null 2>&1; then
21078   :
21079 else
21080   ac_cv_header_stdc=no
21081 fi
21082 rm -f conftest*
21083
21084 fi
21085
21086 if test $ac_cv_header_stdc = yes; then
21087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21088   if test "$cross_compiling" = yes; then
21089   :
21090 else
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <ctype.h>
21098 #if ((' ' & 0x0FF) == 0x020)
21099 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21100 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21101 #else
21102 # define ISLOWER(c) \
21103                    (('a' <= (c) && (c) <= 'i') \
21104                      || ('j' <= (c) && (c) <= 'r') \
21105                      || ('s' <= (c) && (c) <= 'z'))
21106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21107 #endif
21108
21109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21110 int
21111 main ()
21112 {
21113   int i;
21114   for (i = 0; i < 256; i++)
21115     if (XOR (islower (i), ISLOWER (i))
21116         || toupper (i) != TOUPPER (i))
21117       exit(2);
21118   exit (0);
21119 }
21120 _ACEOF
21121 rm -f conftest$ac_exeext
21122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123   (eval $ac_link) 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128   (eval $ac_try) 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; }; then
21132   :
21133 else
21134   echo "$as_me: program exited with status $ac_status" >&5
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 ( exit $ac_status )
21139 ac_cv_header_stdc=no
21140 fi
21141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142 fi
21143 fi
21144 fi
21145 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21146 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21147 if test $ac_cv_header_stdc = yes; then
21148
21149 cat >>confdefs.h <<\_ACEOF
21150 #define STDC_HEADERS 1
21151 _ACEOF
21152
21153 fi
21154
21155 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21156 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21157 if test "${ac_cv_header_time+set}" = set; then
21158   echo $ECHO_N "(cached) $ECHO_C" >&6
21159 else
21160   cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 #include <sys/types.h>
21167 #include <sys/time.h>
21168 #include <time.h>
21169
21170 int
21171 main ()
21172 {
21173 if ((struct tm *) 0)
21174 return 0;
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest.$ac_objext
21180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21181   (eval $ac_compile) 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } &&
21188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190   (eval $ac_try) 2>&5
21191   ac_status=$?
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; } &&
21194          { ac_try='test -s conftest.$ac_objext'
21195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196   (eval $ac_try) 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); }; }; then
21200   ac_cv_header_time=yes
21201 else
21202   echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205 ac_cv_header_time=no
21206 fi
21207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21208 fi
21209 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21210 echo "${ECHO_T}$ac_cv_header_time" >&6
21211 if test $ac_cv_header_time = yes; then
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define TIME_WITH_SYS_TIME 1
21215 _ACEOF
21216
21217 fi
21218
21219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21222   echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224   cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h.  */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h.  */
21230 #include <sys/types.h>
21231 #include <sys/wait.h>
21232 #ifndef WEXITSTATUS
21233 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21234 #endif
21235 #ifndef WIFEXITED
21236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21237 #endif
21238
21239 int
21240 main ()
21241 {
21242   int s;
21243   wait (&s);
21244   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251   (eval $ac_compile) 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } &&
21258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260   (eval $ac_try) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); }; } &&
21264          { ac_try='test -s conftest.$ac_objext'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; }; then
21270   ac_cv_header_sys_wait_h=yes
21271 else
21272   echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21274
21275 ac_cv_header_sys_wait_h=no
21276 fi
21277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21278 fi
21279 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21280 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21281 if test $ac_cv_header_sys_wait_h = yes; then
21282
21283 cat >>confdefs.h <<\_ACEOF
21284 #define HAVE_SYS_WAIT_H 1
21285 _ACEOF
21286
21287 fi
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318 for ac_header in \
21319         unistd.h \
21320         crypt.h \
21321         errno.h \
21322         resource.h \
21323         getopt.h \
21324         malloc.h \
21325         utmp.h \
21326         utmpx.h \
21327         signal.h \
21328         sys/select.h \
21329         syslog.h \
21330         inttypes.h \
21331         stdint.h \
21332         stdio.h \
21333         netdb.h \
21334         semaphore.h \
21335         arpa/inet.h \
21336         netinet/in.h \
21337         sys/types.h \
21338         sys/socket.h \
21339         sys/time.h \
21340         sys/wait.h \
21341         sys/security.h \
21342         fcntl.h \
21343         sys/fcntl.h \
21344         prot.h \
21345         sia.h \
21346         siad.h
21347
21348 do
21349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351   echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354   echo $ECHO_N "(cached) $ECHO_C" >&6
21355 fi
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21358 else
21359   # Is the header compilable?
21360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h.  */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h.  */
21368 $ac_includes_default
21369 #include <$ac_header>
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373   (eval $ac_compile) 2>conftest.er1
21374   ac_status=$?
21375   grep -v '^ *+' conftest.er1 >conftest.err
21376   rm -f conftest.er1
21377   cat conftest.err >&5
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } &&
21380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382   (eval $ac_try) 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); }; } &&
21386          { ac_try='test -s conftest.$ac_objext'
21387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388   (eval $ac_try) 2>&5
21389   ac_status=$?
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); }; }; then
21392   ac_header_compiler=yes
21393 else
21394   echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397 ac_header_compiler=no
21398 fi
21399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21401 echo "${ECHO_T}$ac_header_compiler" >&6
21402
21403 # Is the header present?
21404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 #include <$ac_header>
21413 _ACEOF
21414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } >/dev/null; then
21422   if test -s conftest.err; then
21423     ac_cpp_err=$ac_c_preproc_warn_flag
21424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21425   else
21426     ac_cpp_err=
21427   fi
21428 else
21429   ac_cpp_err=yes
21430 fi
21431 if test -z "$ac_cpp_err"; then
21432   ac_header_preproc=yes
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437   ac_header_preproc=no
21438 fi
21439 rm -f conftest.err conftest.$ac_ext
21440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21441 echo "${ECHO_T}$ac_header_preproc" >&6
21442
21443 # So?  What about this header?
21444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21445   yes:no: )
21446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21450     ac_header_preproc=yes
21451     ;;
21452   no:yes:* )
21453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21465     (
21466       cat <<\_ASBOX
21467 ## ------------------------------------------ ##
21468 ## Report this to the AC_PACKAGE_NAME lists.  ##
21469 ## ------------------------------------------ ##
21470 _ASBOX
21471     ) |
21472       sed "s/^/$as_me: WARNING:     /" >&2
21473     ;;
21474 esac
21475 echo "$as_me:$LINENO: checking for $ac_header" >&5
21476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   eval "$as_ac_Header=\$ac_header_preproc"
21481 fi
21482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21484
21485 fi
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487   cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21489 _ACEOF
21490
21491 fi
21492
21493 done
21494
21495
21496 REGEX=no
21497 if test "${ac_cv_header_regex_h+set}" = set; then
21498   echo "$as_me:$LINENO: checking for regex.h" >&5
21499 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21500 if test "${ac_cv_header_regex_h+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 fi
21503 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21504 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21505 else
21506   # Is the header compilable?
21507 echo "$as_me:$LINENO: checking regex.h usability" >&5
21508 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21509 cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h.  */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h.  */
21515 $ac_includes_default
21516 #include <regex.h>
21517 _ACEOF
21518 rm -f conftest.$ac_objext
21519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21520   (eval $ac_compile) 2>conftest.er1
21521   ac_status=$?
21522   grep -v '^ *+' conftest.er1 >conftest.err
21523   rm -f conftest.er1
21524   cat conftest.err >&5
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } &&
21527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529   (eval $ac_try) 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; } &&
21533          { ac_try='test -s conftest.$ac_objext'
21534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535   (eval $ac_try) 2>&5
21536   ac_status=$?
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); }; }; then
21539   ac_header_compiler=yes
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ac_header_compiler=no
21545 fi
21546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21548 echo "${ECHO_T}$ac_header_compiler" >&6
21549
21550 # Is the header present?
21551 echo "$as_me:$LINENO: checking regex.h presence" >&5
21552 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h.  */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h.  */
21559 #include <regex.h>
21560 _ACEOF
21561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21563   ac_status=$?
21564   grep -v '^ *+' conftest.er1 >conftest.err
21565   rm -f conftest.er1
21566   cat conftest.err >&5
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); } >/dev/null; then
21569   if test -s conftest.err; then
21570     ac_cpp_err=$ac_c_preproc_warn_flag
21571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21572   else
21573     ac_cpp_err=
21574   fi
21575 else
21576   ac_cpp_err=yes
21577 fi
21578 if test -z "$ac_cpp_err"; then
21579   ac_header_preproc=yes
21580 else
21581   echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584   ac_header_preproc=no
21585 fi
21586 rm -f conftest.err conftest.$ac_ext
21587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21588 echo "${ECHO_T}$ac_header_preproc" >&6
21589
21590 # So?  What about this header?
21591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21592   yes:no: )
21593     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21594 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21595     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21596 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21597     ac_header_preproc=yes
21598     ;;
21599   no:yes:* )
21600     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21601 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21602     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21603 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21604     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21605 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21606     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21607 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21608     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21609 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21610     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21611 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21612     (
21613       cat <<\_ASBOX
21614 ## ------------------------------------------ ##
21615 ## Report this to the AC_PACKAGE_NAME lists.  ##
21616 ## ------------------------------------------ ##
21617 _ASBOX
21618     ) |
21619       sed "s/^/$as_me: WARNING:     /" >&2
21620     ;;
21621 esac
21622 echo "$as_me:$LINENO: checking for regex.h" >&5
21623 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21624 if test "${ac_cv_header_regex_h+set}" = set; then
21625   echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627   ac_cv_header_regex_h=$ac_header_preproc
21628 fi
21629 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21630 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21631
21632 fi
21633 if test $ac_cv_header_regex_h = yes; then
21634
21635 cat >>confdefs.h <<\_ACEOF
21636 #define HAVE_REGEX_H
21637 _ACEOF
21638
21639 fi
21640
21641
21642 if test "x$ac_cv_header_regex_h" = "xyes"; then
21643   REGEX_EXTENDED=no
21644   REGEX=yes
21645   cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651 #include <regex.h>
21652      #ifdef REG_EXTENDED
21653        yes
21654      #endif
21655
21656 _ACEOF
21657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21658   $EGREP "yes" >/dev/null 2>&1; then
21659
21660 cat >>confdefs.h <<\_ACEOF
21661 #define HAVE_REG_EXTENDED
21662 _ACEOF
21663  REGEX_EXTENDED=yes
21664 fi
21665 rm -f conftest*
21666
21667 fi
21668
21669
21670
21671 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21672 then
21673
21674 cat >>confdefs.h <<\_ACEOF
21675 #define OSFC2
21676 _ACEOF
21677
21678 fi
21679
21680 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21681 then
21682
21683 cat >>confdefs.h <<\_ACEOF
21684 #define OSFSIA
21685 _ACEOF
21686
21687 fi
21688
21689 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21690 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21691
21692
21693 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21694 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21695 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21696
21697 smart_include=
21698 smart_include_dir=
21699
21700   old_CFLAGS="$CFLAGS"
21701   cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h.  */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h.  */
21707
21708                   #include <openssl/ssl.h>
21709 int
21710 main ()
21711 {
21712  int a = 1;
21713   ;
21714   return 0;
21715 }
21716 _ACEOF
21717 rm -f conftest.$ac_objext
21718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21719   (eval $ac_compile) 2>conftest.er1
21720   ac_status=$?
21721   grep -v '^ *+' conftest.er1 >conftest.err
21722   rm -f conftest.er1
21723   cat conftest.err >&5
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); } &&
21726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728   (eval $ac_try) 2>&5
21729   ac_status=$?
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); }; } &&
21732          { ac_try='test -s conftest.$ac_objext'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; }; then
21738   smart_include=" "
21739 else
21740   echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 smart_include=
21744 fi
21745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746
21747   if test "x$smart_include" = "x"; then
21748
21749
21750 if test "x$LOCATE" != "x"; then
21751         DIRS=
21752   file=openssl/ssl.h
21753
21754   for x in `${LOCATE} $file 2>/dev/null`; do
21755                                         base=`echo $x | sed "s%/${file}%%"`
21756     if test "x$x" = "x$base"; then
21757       continue;
21758     fi
21759
21760     dir=`${DIRNAME} $x 2>/dev/null`
21761                 exclude=`echo ${dir} | ${GREP} /home`
21762     if test "x$exclude" != "x"; then
21763       continue
21764     fi
21765
21766                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21767     if test "x$already" = "x"; then
21768       DIRS="$DIRS $dir"
21769     fi
21770   done
21771 fi
21772
21773 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21774
21775
21776     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21777       CFLAGS="$old_CFLAGS -I$try"
21778
21779       cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785
21786                        #include <openssl/ssl.h>
21787 int
21788 main ()
21789 {
21790  int a = 1;
21791   ;
21792   return 0;
21793 }
21794 _ACEOF
21795 rm -f conftest.$ac_objext
21796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21797   (eval $ac_compile) 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } &&
21804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806   (eval $ac_try) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); }; } &&
21810          { ac_try='test -s conftest.$ac_objext'
21811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812   (eval $ac_try) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); }; }; then
21816   smart_include="-I$try"
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 smart_include=
21822 fi
21823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21824
21825       if test "x$smart_include" != "x"; then
21826         break;
21827       fi
21828     done
21829     CFLAGS="$old_CFLAGS"
21830   fi
21831
21832         if test "x$smart_include" != "x"; then
21833     echo "$as_me:$LINENO: result: yes" >&5
21834 echo "${ECHO_T}yes" >&6
21835     eval "ac_cv_header_$ac_safe=yes"
21836     CFLAGS="$old_CFLAGS $smart_include"
21837     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21838   else
21839     echo "$as_me:$LINENO: result: no" >&5
21840 echo "${ECHO_T}no" >&6
21841 fi
21842
21843 OPENSSL_INCLUDE=
21844 OPENSSL_LIBS=
21845 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21846
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_OPENSSL_SSL_H
21849 _ACEOF
21850
21851   old_CPPFLAGS="$CPPFLAGS"
21852   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21853       CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21854   fi
21855
21856
21857
21858
21859 for ac_header in \
21860           openssl/err.h \
21861           openssl/crypto.h \
21862           openssl/rand.h \
21863           openssl/engine.h
21864
21865 do
21866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21868   echo "$as_me:$LINENO: checking for $ac_header" >&5
21869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 fi
21873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21875 else
21876   # Is the header compilable?
21877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21879 cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885 $ac_includes_default
21886 #include <$ac_header>
21887 _ACEOF
21888 rm -f conftest.$ac_objext
21889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21890   (eval $ac_compile) 2>conftest.er1
21891   ac_status=$?
21892   grep -v '^ *+' conftest.er1 >conftest.err
21893   rm -f conftest.er1
21894   cat conftest.err >&5
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); } &&
21897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899   (eval $ac_try) 2>&5
21900   ac_status=$?
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); }; } &&
21903          { ac_try='test -s conftest.$ac_objext'
21904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905   (eval $ac_try) 2>&5
21906   ac_status=$?
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); }; }; then
21909   ac_header_compiler=yes
21910 else
21911   echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914 ac_header_compiler=no
21915 fi
21916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21918 echo "${ECHO_T}$ac_header_compiler" >&6
21919
21920 # Is the header present?
21921 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21923 cat >conftest.$ac_ext <<_ACEOF
21924 /* confdefs.h.  */
21925 _ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h.  */
21929 #include <$ac_header>
21930 _ACEOF
21931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21933   ac_status=$?
21934   grep -v '^ *+' conftest.er1 >conftest.err
21935   rm -f conftest.er1
21936   cat conftest.err >&5
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); } >/dev/null; then
21939   if test -s conftest.err; then
21940     ac_cpp_err=$ac_c_preproc_warn_flag
21941     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21942   else
21943     ac_cpp_err=
21944   fi
21945 else
21946   ac_cpp_err=yes
21947 fi
21948 if test -z "$ac_cpp_err"; then
21949   ac_header_preproc=yes
21950 else
21951   echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21953
21954   ac_header_preproc=no
21955 fi
21956 rm -f conftest.err conftest.$ac_ext
21957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21958 echo "${ECHO_T}$ac_header_preproc" >&6
21959
21960 # So?  What about this header?
21961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21962   yes:no: )
21963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21967     ac_header_preproc=yes
21968     ;;
21969   no:yes:* )
21970     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21972     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21973 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21974     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21976     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21977 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21980     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21982     (
21983       cat <<\_ASBOX
21984 ## ------------------------------------------ ##
21985 ## Report this to the AC_PACKAGE_NAME lists.  ##
21986 ## ------------------------------------------ ##
21987 _ASBOX
21988     ) |
21989       sed "s/^/$as_me: WARNING:     /" >&2
21990     ;;
21991 esac
21992 echo "$as_me:$LINENO: checking for $ac_header" >&5
21993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21995   echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997   eval "$as_ac_Header=\$ac_header_preproc"
21998 fi
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22001
22002 fi
22003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22004   cat >>confdefs.h <<_ACEOF
22005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22006 _ACEOF
22007
22008 fi
22009
22010 done
22011
22012   CPPFLAGS="$old_CPPFLAGS"
22013
22014   echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22015 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22016        old_CPPFLAGS=$CPPFLAGS
22017        old_LIBS="$LIBS"
22018        if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22019            CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
22020            fi
22021        cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 #include <openssl/crypto.h>
22028        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22029         yes
22030        #endif
22031
22032 _ACEOF
22033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22034   $EGREP "yes" >/dev/null 2>&1; then
22035   goodssl="yes"
22036 fi
22037 rm -f conftest*
22038
22039            if test "x$goodssl" != "xyes"; then
22040              echo "$as_me:$LINENO: result: no" >&5
22041 echo "${ECHO_T}no" >&6
22042              OPENSSL_INCLUDE=
22043              OPENSSL_LIBS=
22044            else
22045              echo "$as_me:$LINENO: result: yes" >&5
22046 echo "${ECHO_T}yes" >&6
22047
22048              # Look for the OpenSSL libraries.
22049              smart_try_dir=$OPENSSL_LIB_DIR
22050
22051
22052 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
22053 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
22054 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
22055 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
22056
22057 smart_lib=
22058 smart_lib_dir=
22059
22060   old_LIBS="$LIBS"
22061   LIBS="$LIBS -lcrypto"
22062   cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h.  */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h.  */
22068 extern char DH_new();
22069 int
22070 main ()
22071 {
22072  DH_new()
22073   ;
22074   return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22079   (eval $ac_link) 2>conftest.er1
22080   ac_status=$?
22081   grep -v '^ *+' conftest.er1 >conftest.err
22082   rm -f conftest.er1
22083   cat conftest.err >&5
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); } &&
22086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088   (eval $ac_try) 2>&5
22089   ac_status=$?
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); }; } &&
22092          { ac_try='test -s conftest$ac_exeext'
22093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094   (eval $ac_try) 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); }; }; then
22098   smart_lib="-lcrypto"
22099 else
22100   echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 fi
22104 rm -f conftest.err conftest.$ac_objext \
22105       conftest$ac_exeext conftest.$ac_ext
22106
22107   if test "x$smart_lib" = "x"; then
22108
22109
22110 if test "x$LOCATE" != "x"; then
22111         DIRS=
22112   file=libcrypto${libltdl_cv_shlibext}
22113
22114   for x in `${LOCATE} $file 2>/dev/null`; do
22115                                         base=`echo $x | sed "s%/${file}%%"`
22116     if test "x$x" = "x$base"; then
22117       continue;
22118     fi
22119
22120     dir=`${DIRNAME} $x 2>/dev/null`
22121                 exclude=`echo ${dir} | ${GREP} /home`
22122     if test "x$exclude" != "x"; then
22123       continue
22124     fi
22125
22126                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22127     if test "x$already" = "x"; then
22128       DIRS="$DIRS $dir"
22129     fi
22130   done
22131 fi
22132
22133 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22134
22135
22136
22137 if test "x$LOCATE" != "x"; then
22138         DIRS=
22139   file=libcrypto.a
22140
22141   for x in `${LOCATE} $file 2>/dev/null`; do
22142                                         base=`echo $x | sed "s%/${file}%%"`
22143     if test "x$x" = "x$base"; then
22144       continue;
22145     fi
22146
22147     dir=`${DIRNAME} $x 2>/dev/null`
22148                 exclude=`echo ${dir} | ${GREP} /home`
22149     if test "x$exclude" != "x"; then
22150       continue
22151     fi
22152
22153                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22154     if test "x$already" = "x"; then
22155       DIRS="$DIRS $dir"
22156     fi
22157   done
22158 fi
22159
22160 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22161
22162
22163     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
22164       LIBS="$old_LIBS -L$try -lcrypto"
22165
22166       cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 extern char DH_new();
22173 int
22174 main ()
22175 {
22176  DH_new()
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 rm -f conftest.$ac_objext conftest$ac_exeext
22182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183   (eval $ac_link) 2>conftest.er1
22184   ac_status=$?
22185   grep -v '^ *+' conftest.er1 >conftest.err
22186   rm -f conftest.er1
22187   cat conftest.err >&5
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); } &&
22190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192   (eval $ac_try) 2>&5
22193   ac_status=$?
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); }; } &&
22196          { ac_try='test -s conftest$ac_exeext'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; }; then
22202   smart_lib="-L$try -lcrypto"
22203 else
22204   echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207 fi
22208 rm -f conftest.err conftest.$ac_objext \
22209       conftest$ac_exeext conftest.$ac_ext
22210       if test "x$smart_lib" != "x"; then
22211         break;
22212       fi
22213     done
22214     LIBS="$old_LIBS"
22215   fi
22216
22217         if test "x$smart_lib" != "x"; then
22218     echo "$as_me:$LINENO: result: yes" >&5
22219 echo "${ECHO_T}yes" >&6
22220     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22221     LIBS="$old_LIBS $smart_lib"
22222     SMART_LIBS="$SMART_LIBS $smart_lib"
22223   else
22224     echo "$as_me:$LINENO: result: no" >&5
22225 echo "${ECHO_T}no" >&6
22226 fi
22227
22228              if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
22229
22230
22231 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
22232 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
22233 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
22234 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
22235
22236 smart_lib=
22237 smart_lib_dir=
22238
22239   old_LIBS="$LIBS"
22240   LIBS="$LIBS -lssl"
22241   cat >conftest.$ac_ext <<_ACEOF
22242 /* confdefs.h.  */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h.  */
22247 extern char SSL_new();
22248 int
22249 main ()
22250 {
22251  SSL_new()
22252   ;
22253   return 0;
22254 }
22255 _ACEOF
22256 rm -f conftest.$ac_objext conftest$ac_exeext
22257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22258   (eval $ac_link) 2>conftest.er1
22259   ac_status=$?
22260   grep -v '^ *+' conftest.er1 >conftest.err
22261   rm -f conftest.er1
22262   cat conftest.err >&5
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } &&
22265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267   (eval $ac_try) 2>&5
22268   ac_status=$?
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); }; } &&
22271          { ac_try='test -s conftest$ac_exeext'
22272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273   (eval $ac_try) 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); }; }; then
22277   smart_lib="-lssl"
22278 else
22279   echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282 fi
22283 rm -f conftest.err conftest.$ac_objext \
22284       conftest$ac_exeext conftest.$ac_ext
22285
22286   if test "x$smart_lib" = "x"; then
22287
22288
22289 if test "x$LOCATE" != "x"; then
22290         DIRS=
22291   file=libssl${libltdl_cv_shlibext}
22292
22293   for x in `${LOCATE} $file 2>/dev/null`; do
22294                                         base=`echo $x | sed "s%/${file}%%"`
22295     if test "x$x" = "x$base"; then
22296       continue;
22297     fi
22298
22299     dir=`${DIRNAME} $x 2>/dev/null`
22300                 exclude=`echo ${dir} | ${GREP} /home`
22301     if test "x$exclude" != "x"; then
22302       continue
22303     fi
22304
22305                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22306     if test "x$already" = "x"; then
22307       DIRS="$DIRS $dir"
22308     fi
22309   done
22310 fi
22311
22312 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22313
22314
22315
22316 if test "x$LOCATE" != "x"; then
22317         DIRS=
22318   file=libssl.a
22319
22320   for x in `${LOCATE} $file 2>/dev/null`; do
22321                                         base=`echo $x | sed "s%/${file}%%"`
22322     if test "x$x" = "x$base"; then
22323       continue;
22324     fi
22325
22326     dir=`${DIRNAME} $x 2>/dev/null`
22327                 exclude=`echo ${dir} | ${GREP} /home`
22328     if test "x$exclude" != "x"; then
22329       continue
22330     fi
22331
22332                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22333     if test "x$already" = "x"; then
22334       DIRS="$DIRS $dir"
22335     fi
22336   done
22337 fi
22338
22339 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22340
22341
22342     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
22343       LIBS="$old_LIBS -L$try -lssl"
22344
22345       cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h.  */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h.  */
22351 extern char SSL_new();
22352 int
22353 main ()
22354 {
22355  SSL_new()
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext conftest$ac_exeext
22361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22362   (eval $ac_link) 2>conftest.er1
22363   ac_status=$?
22364   grep -v '^ *+' conftest.er1 >conftest.err
22365   rm -f conftest.er1
22366   cat conftest.err >&5
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); } &&
22369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371   (eval $ac_try) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); }; } &&
22375          { ac_try='test -s conftest$ac_exeext'
22376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; }; then
22381   smart_lib="-L$try -lssl"
22382 else
22383   echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22385
22386 fi
22387 rm -f conftest.err conftest.$ac_objext \
22388       conftest$ac_exeext conftest.$ac_ext
22389       if test "x$smart_lib" != "x"; then
22390         break;
22391       fi
22392     done
22393     LIBS="$old_LIBS"
22394   fi
22395
22396         if test "x$smart_lib" != "x"; then
22397     echo "$as_me:$LINENO: result: yes" >&5
22398 echo "${ECHO_T}yes" >&6
22399     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22400     LIBS="$old_LIBS $smart_lib"
22401     SMART_LIBS="$SMART_LIBS $smart_lib"
22402   else
22403     echo "$as_me:$LINENO: result: no" >&5
22404 echo "${ECHO_T}no" >&6
22405 fi
22406
22407                if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
22408                  if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22409                    OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
22410                  fi
22411                  if test "x$OPENSSL_LIB_DIR" != "x"; then
22412                    OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
22413                  fi
22414                  OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
22415                else
22416                  OPENSSL_INCLUDE=
22417                  OPENSSL_LIBS=
22418                fi
22419              fi
22420            fi
22421        CPPFLAGS=$old_CPPFLAGS
22422        LIBS="$old_LIBS"
22423 fi
22424
22425
22426 export OPENSSL_LIBS
22427
22428
22429 echo "$as_me:$LINENO: checking for off_t" >&5
22430 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22431 if test "${ac_cv_type_off_t+set}" = set; then
22432   echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22434   cat >conftest.$ac_ext <<_ACEOF
22435 /* confdefs.h.  */
22436 _ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h.  */
22440 $ac_includes_default
22441 int
22442 main ()
22443 {
22444 if ((off_t *) 0)
22445   return 0;
22446 if (sizeof (off_t))
22447   return 0;
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22454   (eval $ac_compile) 2>conftest.er1
22455   ac_status=$?
22456   grep -v '^ *+' conftest.er1 >conftest.err
22457   rm -f conftest.er1
22458   cat conftest.err >&5
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } &&
22461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463   (eval $ac_try) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; } &&
22467          { ac_try='test -s conftest.$ac_objext'
22468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469   (eval $ac_try) 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); }; }; then
22473   ac_cv_type_off_t=yes
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478 ac_cv_type_off_t=no
22479 fi
22480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22481 fi
22482 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22483 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22484 if test $ac_cv_type_off_t = yes; then
22485   :
22486 else
22487
22488 cat >>confdefs.h <<_ACEOF
22489 #define off_t long
22490 _ACEOF
22491
22492 fi
22493
22494 echo "$as_me:$LINENO: checking for pid_t" >&5
22495 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22496 if test "${ac_cv_type_pid_t+set}" = set; then
22497   echo $ECHO_N "(cached) $ECHO_C" >&6
22498 else
22499   cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h.  */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h.  */
22505 $ac_includes_default
22506 int
22507 main ()
22508 {
22509 if ((pid_t *) 0)
22510   return 0;
22511 if (sizeof (pid_t))
22512   return 0;
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 rm -f conftest.$ac_objext
22518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22519   (eval $ac_compile) 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } &&
22526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528   (eval $ac_try) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); }; } &&
22532          { ac_try='test -s conftest.$ac_objext'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; }; then
22538   ac_cv_type_pid_t=yes
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_cv_type_pid_t=no
22544 fi
22545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 fi
22547 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22548 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22549 if test $ac_cv_type_pid_t = yes; then
22550   :
22551 else
22552
22553 cat >>confdefs.h <<_ACEOF
22554 #define pid_t int
22555 _ACEOF
22556
22557 fi
22558
22559 echo "$as_me:$LINENO: checking for size_t" >&5
22560 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22561 if test "${ac_cv_type_size_t+set}" = set; then
22562   echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564   cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h.  */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h.  */
22570 $ac_includes_default
22571 int
22572 main ()
22573 {
22574 if ((size_t *) 0)
22575   return 0;
22576 if (sizeof (size_t))
22577   return 0;
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22584   (eval $ac_compile) 2>conftest.er1
22585   ac_status=$?
22586   grep -v '^ *+' conftest.er1 >conftest.err
22587   rm -f conftest.er1
22588   cat conftest.err >&5
22589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590   (exit $ac_status); } &&
22591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593   (eval $ac_try) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); }; } &&
22597          { ac_try='test -s conftest.$ac_objext'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }; then
22603   ac_cv_type_size_t=yes
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608 ac_cv_type_size_t=no
22609 fi
22610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22611 fi
22612 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22613 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22614 if test $ac_cv_type_size_t = yes; then
22615   :
22616 else
22617
22618 cat >>confdefs.h <<_ACEOF
22619 #define size_t unsigned
22620 _ACEOF
22621
22622 fi
22623
22624 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22625 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22626 if test "${ac_cv_type_uid_t+set}" = set; then
22627   echo $ECHO_N "(cached) $ECHO_C" >&6
22628 else
22629   cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h.  */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h.  */
22635 #include <sys/types.h>
22636
22637 _ACEOF
22638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22639   $EGREP "uid_t" >/dev/null 2>&1; then
22640   ac_cv_type_uid_t=yes
22641 else
22642   ac_cv_type_uid_t=no
22643 fi
22644 rm -f conftest*
22645
22646 fi
22647 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22648 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22649 if test $ac_cv_type_uid_t = no; then
22650
22651 cat >>confdefs.h <<\_ACEOF
22652 #define uid_t int
22653 _ACEOF
22654
22655
22656 cat >>confdefs.h <<\_ACEOF
22657 #define gid_t int
22658 _ACEOF
22659
22660 fi
22661
22662
22663
22664   echo "$as_me:$LINENO: checking for socklen_t" >&5
22665 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22666 if test "${ac_cv_type_socklen_t+set}" = set; then
22667   echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669    ac_cv_type_socklen_t=no
22670       cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h.  */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h.  */
22676 #ifdef HAVE_SYS_TYPES_H
22677 #include <sys/types.h>
22678 #endif
22679 #ifdef HAVE_SYS_SOCKET_H
22680 #include <sys/socket.h>
22681 #endif
22682
22683 int
22684 main ()
22685 {
22686 socklen_t foo
22687   ;
22688   return 0;
22689 }
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22693   (eval $ac_compile) 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } &&
22700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702   (eval $ac_try) 2>&5
22703   ac_status=$?
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); }; } &&
22706          { ac_try='test -s conftest.$ac_objext'
22707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708   (eval $ac_try) 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); }; }; then
22712   ac_cv_type_socklen_t=yes
22713 else
22714   echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22716
22717 fi
22718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22719
22720
22721 fi
22722 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22723 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22724
22725   if test "$ac_cv_type_socklen_t" != "yes"; then
22726
22727 cat >>confdefs.h <<\_ACEOF
22728 #define socklen_t int
22729 _ACEOF
22730
22731   fi
22732
22733
22734
22735   echo "$as_me:$LINENO: checking for uint8_t" >&5
22736 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22737 if test "${ac_cv_type_uint8_t+set}" = set; then
22738   echo $ECHO_N "(cached) $ECHO_C" >&6
22739 else
22740    ac_cv_type_uint8_t=no
22741       cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h.  */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h.  */
22747 #ifdef HAVE_INTTYPES_H
22748 #include <inttypes.h>
22749 #endif
22750 #ifdef HAVE_STDINT_H
22751 #include <stdint.h>
22752 #endif
22753
22754 int
22755 main ()
22756 {
22757 uint8_t foo
22758   ;
22759   return 0;
22760 }
22761 _ACEOF
22762 rm -f conftest.$ac_objext
22763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22764   (eval $ac_compile) 2>conftest.er1
22765   ac_status=$?
22766   grep -v '^ *+' conftest.er1 >conftest.err
22767   rm -f conftest.er1
22768   cat conftest.err >&5
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); } &&
22771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773   (eval $ac_try) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); }; } &&
22777          { ac_try='test -s conftest.$ac_objext'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; }; then
22783   ac_cv_type_uint8_t=yes
22784 else
22785   echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 fi
22789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22790
22791
22792 fi
22793 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22794 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22795
22796   if test "$ac_cv_type_uint8_t" != "yes"; then
22797
22798 cat >>confdefs.h <<\_ACEOF
22799 #define uint8_t unsigned char
22800 _ACEOF
22801
22802   fi
22803
22804
22805
22806   echo "$as_me:$LINENO: checking for uint16_t" >&5
22807 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22808 if test "${ac_cv_type_uint16_t+set}" = set; then
22809   echo $ECHO_N "(cached) $ECHO_C" >&6
22810 else
22811    ac_cv_type_uint16_t=no
22812       cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h.  */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h.  */
22818 #ifdef HAVE_INTTYPES_H
22819 #include <inttypes.h>
22820 #endif
22821 #ifdef HAVE_STDINT_H
22822 #include <stdint.h>
22823 #endif
22824
22825 int
22826 main ()
22827 {
22828 uint16_t foo
22829   ;
22830   return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22835   (eval $ac_compile) 2>conftest.er1
22836   ac_status=$?
22837   grep -v '^ *+' conftest.er1 >conftest.err
22838   rm -f conftest.er1
22839   cat conftest.err >&5
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); } &&
22842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844   (eval $ac_try) 2>&5
22845   ac_status=$?
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); }; } &&
22848          { ac_try='test -s conftest.$ac_objext'
22849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850   (eval $ac_try) 2>&5
22851   ac_status=$?
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); }; }; then
22854   ac_cv_type_uint16_t=yes
22855 else
22856   echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859 fi
22860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22861
22862
22863 fi
22864 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22865 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22866
22867   if test "$ac_cv_type_uint16_t" != "yes"; then
22868
22869 cat >>confdefs.h <<\_ACEOF
22870 #define uint16_t unsigned short
22871 _ACEOF
22872
22873   fi
22874
22875
22876
22877   echo "$as_me:$LINENO: checking for uint32_t" >&5
22878 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22879 if test "${ac_cv_type_uint32_t+set}" = set; then
22880   echo $ECHO_N "(cached) $ECHO_C" >&6
22881 else
22882    ac_cv_type_uint32_t=no
22883       cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h.  */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h.  */
22889 #ifdef HAVE_INTTYPES_H
22890 #include <inttypes.h>
22891 #endif
22892 #ifdef HAVE_STDINT_H
22893 #include <stdint.h>
22894 #endif
22895
22896 int
22897 main ()
22898 {
22899 uint32_t foo
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext
22905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22906   (eval $ac_compile) 2>conftest.er1
22907   ac_status=$?
22908   grep -v '^ *+' conftest.er1 >conftest.err
22909   rm -f conftest.er1
22910   cat conftest.err >&5
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } &&
22913          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; } &&
22919          { ac_try='test -s conftest.$ac_objext'
22920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921   (eval $ac_try) 2>&5
22922   ac_status=$?
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); }; }; then
22925   ac_cv_type_uint32_t=yes
22926 else
22927   echo "$as_me: failed program was:" >&5
22928 sed 's/^/| /' conftest.$ac_ext >&5
22929
22930 fi
22931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22932
22933
22934 fi
22935 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22936 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22937
22938   if test "$ac_cv_type_uint32_t" != "yes"; then
22939
22940 cat >>confdefs.h <<\_ACEOF
22941 #define uint32_t unsigned int
22942 _ACEOF
22943
22944   fi
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970 for ac_func in \
22971         getopt_long \
22972         lockf \
22973         strsignal \
22974         sigaction \
22975         sigprocmask \
22976         pthread_sigmask \
22977         snprintf \
22978         vsnprintf \
22979         setsid \
22980         strncasecmp \
22981         strcasecmp \
22982         localtime_r \
22983         ctime_r \
22984         gmtime_r \
22985         strsep \
22986         inet_aton \
22987         inet_pton \
22988         inet_ntop \
22989         gethostname \
22990         setlinebuf \
22991         setvbuf \
22992         getusershell \
22993         initgroups
22994
22995 do
22996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22997 echo "$as_me:$LINENO: checking for $ac_func" >&5
22998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22999 if eval "test \"\${$as_ac_var+set}\" = set"; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002   cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23010 #define $ac_func innocuous_$ac_func
23011
23012 /* System header to define __stub macros and hopefully few prototypes,
23013     which can conflict with char $ac_func (); below.
23014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23015     <limits.h> exists even on freestanding compilers.  */
23016
23017 #ifdef __STDC__
23018 # include <limits.h>
23019 #else
23020 # include <assert.h>
23021 #endif
23022
23023 #undef $ac_func
23024
23025 /* Override any gcc2 internal prototype to avoid an error.  */
23026 #ifdef __cplusplus
23027 extern "C"
23028 {
23029 #endif
23030 /* We use char because int might match the return type of a gcc2
23031    builtin and then its argument prototype would still apply.  */
23032 char $ac_func ();
23033 /* The GNU C library defines this for functions which it implements
23034     to always fail with ENOSYS.  Some functions are actually named
23035     something starting with __ and the normal name is an alias.  */
23036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23037 choke me
23038 #else
23039 char (*f) () = $ac_func;
23040 #endif
23041 #ifdef __cplusplus
23042 }
23043 #endif
23044
23045 int
23046 main ()
23047 {
23048 return f != $ac_func;
23049   ;
23050   return 0;
23051 }
23052 _ACEOF
23053 rm -f conftest.$ac_objext conftest$ac_exeext
23054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23055   (eval $ac_link) 2>conftest.er1
23056   ac_status=$?
23057   grep -v '^ *+' conftest.er1 >conftest.err
23058   rm -f conftest.er1
23059   cat conftest.err >&5
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); } &&
23062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064   (eval $ac_try) 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); }; } &&
23068          { ac_try='test -s conftest$ac_exeext'
23069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070   (eval $ac_try) 2>&5
23071   ac_status=$?
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); }; }; then
23074   eval "$as_ac_var=yes"
23075 else
23076   echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23078
23079 eval "$as_ac_var=no"
23080 fi
23081 rm -f conftest.err conftest.$ac_objext \
23082       conftest$ac_exeext conftest.$ac_ext
23083 fi
23084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23086 if test `eval echo '${'$as_ac_var'}'` = yes; then
23087   cat >>confdefs.h <<_ACEOF
23088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23089 _ACEOF
23090
23091 fi
23092 done
23093
23094 for ac_func in \
23095         crypt \
23096         strncasecmp \
23097         strcasecmp \
23098         inet_aton \
23099         gethostname \
23100         setlinebuf \
23101         getusershell \
23102         endusershell
23103
23104 do
23105 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23106 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23107 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23108   echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23110   cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116
23117 #include <stdio.h>
23118 #include <string.h>
23119 #ifdef HAVE_UNISTD_H
23120 #include <unistd.h>
23121 #endif
23122 #ifdef HAVE_CRYPT_H
23123 #include <crypt.h>
23124 #endif
23125 #ifdef HAVE_ERRNO_H
23126 #include <errno.h>
23127 #endif
23128 #ifdef HAVE_RESOURCE_H
23129 #include <resource.h>
23130 #endif
23131 #ifdef HAVE_GETOPT_H
23132 #include <getopt.h>
23133 #endif
23134 #ifdef HAVE_MALLOC_H
23135 #include <malloc.h>
23136 #endif
23137 #ifdef HAVE_UTMP_H
23138 #include <utmp.h>
23139 #endif
23140 #ifdef HAVE_UTMPX_H
23141 #include <utmpx.h>
23142 #endif
23143 #ifdef HAVE_SYS_SELECT_H
23144 #include <sys/select.h>
23145 #endif
23146 #ifdef HAVE_DLFCN_H
23147 #include <dlfcn.h>
23148 #endif
23149 #ifdef HAVE_REGEX_H
23150 #include <regex.h>
23151 #endif
23152 #ifdef HAVE_SYSLOG_H
23153 #include <syslog.h>
23154 #endif
23155 #ifdef HAVE_INTTYPES_H
23156 #include <inttypes.h>
23157 #endif
23158 #ifdef HAVE_STDINT_H
23159 #include <stdint.h>
23160 #endif
23161 #ifdef HAVE_ARPA_INET_H
23162 #include <arpa/inet.h>
23163 #endif
23164
23165 int
23166 main ()
23167 {
23168 char *(*pfn) = (char *(*)) $ac_func
23169   ;
23170   return 0;
23171 }
23172 _ACEOF
23173 rm -f conftest.$ac_objext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23175   (eval $ac_compile) 2>conftest.er1
23176   ac_status=$?
23177   grep -v '^ *+' conftest.er1 >conftest.err
23178   rm -f conftest.er1
23179   cat conftest.err >&5
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); } &&
23182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23184   (eval $ac_try) 2>&5
23185   ac_status=$?
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); }; } &&
23188          { ac_try='test -s conftest.$ac_objext'
23189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190   (eval $ac_try) 2>&5
23191   ac_status=$?
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); }; }; then
23194   eval "radius_cv_decl_needed_$ac_func=no"
23195 else
23196   echo "$as_me: failed program was:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23198
23199 eval "radius_cv_decl_needed_$ac_func=yes"
23200 fi
23201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23202 fi
23203
23204 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23205   echo "$as_me:$LINENO: result: yes" >&5
23206 echo "${ECHO_T}yes" >&6
23207   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23208   cat >>confdefs.h <<_ACEOF
23209 #define $radius_tr_decl 1
23210 _ACEOF
23211
23212 else
23213   echo "$as_me:$LINENO: result: no" >&5
23214 echo "${ECHO_T}no" >&6
23215 fi
23216
23217 done
23218
23219
23220 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23221 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23222 if test "${ac_cv_type_signal+set}" = set; then
23223   echo $ECHO_N "(cached) $ECHO_C" >&6
23224 else
23225   cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h.  */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h.  */
23231 #include <sys/types.h>
23232 #include <signal.h>
23233 #ifdef signal
23234 # undef signal
23235 #endif
23236 #ifdef __cplusplus
23237 extern "C" void (*signal (int, void (*)(int)))(int);
23238 #else
23239 void (*signal ()) ();
23240 #endif
23241
23242 int
23243 main ()
23244 {
23245 int i;
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest.$ac_objext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23252   (eval $ac_compile) 2>conftest.er1
23253   ac_status=$?
23254   grep -v '^ *+' conftest.er1 >conftest.err
23255   rm -f conftest.er1
23256   cat conftest.err >&5
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } &&
23259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261   (eval $ac_try) 2>&5
23262   ac_status=$?
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); }; } &&
23265          { ac_try='test -s conftest.$ac_objext'
23266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267   (eval $ac_try) 2>&5
23268   ac_status=$?
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); }; }; then
23271   ac_cv_type_signal=void
23272 else
23273   echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23275
23276 ac_cv_type_signal=int
23277 fi
23278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23279 fi
23280 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23281 echo "${ECHO_T}$ac_cv_type_signal" >&6
23282
23283 cat >>confdefs.h <<_ACEOF
23284 #define RETSIGTYPE $ac_cv_type_signal
23285 _ACEOF
23286
23287
23288
23289 if test "x$ac_cv_header_utmpx_h" = "xyes"
23290 then
23291
23292   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23293 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23294
23295
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302
23303 #include <utmpx.h>
23304 #ifndef offsetof
23305 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23306 #endif
23307
23308 int
23309 main ()
23310 {
23311  int foo = offsetof(struct utmpx, ut_xtime)
23312   ;
23313   return 0;
23314 }
23315 _ACEOF
23316 rm -f conftest.$ac_objext
23317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23318   (eval $ac_compile) 2>conftest.er1
23319   ac_status=$?
23320   grep -v '^ *+' conftest.er1 >conftest.err
23321   rm -f conftest.er1
23322   cat conftest.err >&5
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); } &&
23325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327   (eval $ac_try) 2>&5
23328   ac_status=$?
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); }; } &&
23331          { ac_try='test -s conftest.$ac_objext'
23332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333   (eval $ac_try) 2>&5
23334   ac_status=$?
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); }; }; then
23337   has_element=" "
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342 has_element=
23343 fi
23344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23345
23346   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23347   if test "x$has_element" != "x"; then
23348     echo "$as_me:$LINENO: result: yes" >&5
23349 echo "${ECHO_T}yes" >&6
23350     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23351   else
23352     echo "$as_me:$LINENO: result: no" >&5
23353 echo "${ECHO_T}no" >&6
23354     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23355  fi
23356
23357  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23358  then
23359
23360 cat >>confdefs.h <<\_ACEOF
23361 #define ut_xtime ut_tv.tv_sec
23362 _ACEOF
23363
23364  fi
23365 fi
23366
23367
23368   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23369 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23370
23371
23372   cat >conftest.$ac_ext <<_ACEOF
23373 /* confdefs.h.  */
23374 _ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h.  */
23378
23379 #include <netinet/in.h>
23380 #ifndef offsetof
23381 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23382 #endif
23383
23384 int
23385 main ()
23386 {
23387  int foo = offsetof(struct in_pktinfo, ipi_addr)
23388   ;
23389   return 0;
23390 }
23391 _ACEOF
23392 rm -f conftest.$ac_objext
23393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23394   (eval $ac_compile) 2>conftest.er1
23395   ac_status=$?
23396   grep -v '^ *+' conftest.er1 >conftest.err
23397   rm -f conftest.er1
23398   cat conftest.err >&5
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); } &&
23401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403   (eval $ac_try) 2>&5
23404   ac_status=$?
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); }; } &&
23407          { ac_try='test -s conftest.$ac_objext'
23408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409   (eval $ac_try) 2>&5
23410   ac_status=$?
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); }; }; then
23413   has_element=" "
23414 else
23415   echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23417
23418 has_element=
23419 fi
23420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23421
23422   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23423   if test "x$has_element" != "x"; then
23424     echo "$as_me:$LINENO: result: yes" >&5
23425 echo "${ECHO_T}yes" >&6
23426     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23427   else
23428     echo "$as_me:$LINENO: result: no" >&5
23429 echo "${ECHO_T}no" >&6
23430     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23431  fi
23432
23433 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23434 then
23435
23436 cat >>confdefs.h <<\_ACEOF
23437 #define HAVE_IP_PKTINFO
23438 _ACEOF
23439
23440 fi
23441
23442
23443 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23444 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23445 if test "${ac_cv_c_const+set}" = set; then
23446   echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448   cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454
23455 int
23456 main ()
23457 {
23458 /* FIXME: Include the comments suggested by Paul. */
23459 #ifndef __cplusplus
23460   /* Ultrix mips cc rejects this.  */
23461   typedef int charset[2];
23462   const charset x;
23463   /* SunOS 4.1.1 cc rejects this.  */
23464   char const *const *ccp;
23465   char **p;
23466   /* NEC SVR4.0.2 mips cc rejects this.  */
23467   struct point {int x, y;};
23468   static struct point const zero = {0,0};
23469   /* AIX XL C 1.02.0.0 rejects this.
23470      It does not let you subtract one const X* pointer from another in
23471      an arm of an if-expression whose if-part is not a constant
23472      expression */
23473   const char *g = "string";
23474   ccp = &g + (g ? g-g : 0);
23475   /* HPUX 7.0 cc rejects these. */
23476   ++ccp;
23477   p = (char**) ccp;
23478   ccp = (char const *const *) p;
23479   { /* SCO 3.2v4 cc rejects this.  */
23480     char *t;
23481     char const *s = 0 ? (char *) 0 : (char const *) 0;
23482
23483     *t++ = 0;
23484   }
23485   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23486     int x[] = {25, 17};
23487     const int *foo = &x[0];
23488     ++foo;
23489   }
23490   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23491     typedef const int *iptr;
23492     iptr p = 0;
23493     ++p;
23494   }
23495   { /* AIX XL C 1.02.0.0 rejects this saying
23496        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23497     struct s { int j; const int *ap[3]; };
23498     struct s *b; b->j = 5;
23499   }
23500   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23501     const int foo = 10;
23502   }
23503 #endif
23504
23505   ;
23506   return 0;
23507 }
23508 _ACEOF
23509 rm -f conftest.$ac_objext
23510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23511   (eval $ac_compile) 2>conftest.er1
23512   ac_status=$?
23513   grep -v '^ *+' conftest.er1 >conftest.err
23514   rm -f conftest.er1
23515   cat conftest.err >&5
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); } &&
23518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520   (eval $ac_try) 2>&5
23521   ac_status=$?
23522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523   (exit $ac_status); }; } &&
23524          { ac_try='test -s conftest.$ac_objext'
23525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526   (eval $ac_try) 2>&5
23527   ac_status=$?
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); }; }; then
23530   ac_cv_c_const=yes
23531 else
23532   echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23534
23535 ac_cv_c_const=no
23536 fi
23537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23538 fi
23539 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23540 echo "${ECHO_T}$ac_cv_c_const" >&6
23541 if test $ac_cv_c_const = no; then
23542
23543 cat >>confdefs.h <<\_ACEOF
23544 #define const
23545 _ACEOF
23546
23547 fi
23548
23549
23550 echo "$as_me:$LINENO: checking type of OS" >&5
23551 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23552 OS=`uname -s`
23553 echo "$as_me:$LINENO: result: $OS" >&5
23554 echo "${ECHO_T}$OS" >&6
23555 if test "$OS" = "OS/2"; then
23556         LIBPREFIX=
23557 else
23558         LIBPREFIX=lib
23559 fi
23560
23561
23562 if test "x$GCC" = "xyes"; then
23563     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23564 fi
23565
23566 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23567 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23568 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23569   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23570   CFLAGS="$CFLAGS $devflags"
23571   INSTALLSTRIP=""
23572   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23573 echo "${ECHO_T}yes.  Using $devflags" >&6
23574 else
23575   devflags=""
23576   CFLAGS="$CFLAGS -DNDEBUG"
23577   INSTALLSTRIP="-s"
23578   echo "$as_me:$LINENO: result: no." >&5
23579 echo "${ECHO_T}no." >&6
23580 fi
23581
23582
23583 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23584 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23585 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23586   echo $ECHO_N "(cached) $ECHO_C" >&6
23587 else
23588   ac_check_lib_save_LIBS=$LIBS
23589 LIBS="-lcrypt  $LIBS"
23590 cat >conftest.$ac_ext <<_ACEOF
23591 /* confdefs.h.  */
23592 _ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h.  */
23596
23597 /* Override any gcc2 internal prototype to avoid an error.  */
23598 #ifdef __cplusplus
23599 extern "C"
23600 #endif
23601 /* We use char because int might match the return type of a gcc2
23602    builtin and then its argument prototype would still apply.  */
23603 char crypt ();
23604 int
23605 main ()
23606 {
23607 crypt ();
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext conftest$ac_exeext
23613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23614   (eval $ac_link) 2>conftest.er1
23615   ac_status=$?
23616   grep -v '^ *+' conftest.er1 >conftest.err
23617   rm -f conftest.er1
23618   cat conftest.err >&5
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); } &&
23621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623   (eval $ac_try) 2>&5
23624   ac_status=$?
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); }; } &&
23627          { ac_try='test -s conftest$ac_exeext'
23628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629   (eval $ac_try) 2>&5
23630   ac_status=$?
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); }; }; then
23633   ac_cv_lib_crypt_crypt=yes
23634 else
23635   echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23637
23638 ac_cv_lib_crypt_crypt=no
23639 fi
23640 rm -f conftest.err conftest.$ac_objext \
23641       conftest$ac_exeext conftest.$ac_ext
23642 LIBS=$ac_check_lib_save_LIBS
23643 fi
23644 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23645 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23646 if test $ac_cv_lib_crypt_crypt = yes; then
23647   CRYPTLIB="-lcrypt"
23648
23649 fi
23650
23651 if test "$CRYPTLIB" != ""; then
23652
23653 cat >>confdefs.h <<\_ACEOF
23654 #define HAVE_CRYPT
23655 _ACEOF
23656
23657 else
23658   echo "$as_me:$LINENO: checking for crypt" >&5
23659 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23660 if test "${ac_cv_func_crypt+set}" = set; then
23661   echo $ECHO_N "(cached) $ECHO_C" >&6
23662 else
23663   cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h.  */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h.  */
23669 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23671 #define crypt innocuous_crypt
23672
23673 /* System header to define __stub macros and hopefully few prototypes,
23674     which can conflict with char crypt (); below.
23675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23676     <limits.h> exists even on freestanding compilers.  */
23677
23678 #ifdef __STDC__
23679 # include <limits.h>
23680 #else
23681 # include <assert.h>
23682 #endif
23683
23684 #undef crypt
23685
23686 /* Override any gcc2 internal prototype to avoid an error.  */
23687 #ifdef __cplusplus
23688 extern "C"
23689 {
23690 #endif
23691 /* We use char because int might match the return type of a gcc2
23692    builtin and then its argument prototype would still apply.  */
23693 char crypt ();
23694 /* The GNU C library defines this for functions which it implements
23695     to always fail with ENOSYS.  Some functions are actually named
23696     something starting with __ and the normal name is an alias.  */
23697 #if defined (__stub_crypt) || defined (__stub___crypt)
23698 choke me
23699 #else
23700 char (*f) () = crypt;
23701 #endif
23702 #ifdef __cplusplus
23703 }
23704 #endif
23705
23706 int
23707 main ()
23708 {
23709 return f != crypt;
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23716   (eval $ac_link) 2>conftest.er1
23717   ac_status=$?
23718   grep -v '^ *+' conftest.er1 >conftest.err
23719   rm -f conftest.er1
23720   cat conftest.err >&5
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); } &&
23723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725   (eval $ac_try) 2>&5
23726   ac_status=$?
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); }; } &&
23729          { ac_try='test -s conftest$ac_exeext'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; }; then
23735   ac_cv_func_crypt=yes
23736 else
23737   echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ac_cv_func_crypt=no
23741 fi
23742 rm -f conftest.err conftest.$ac_objext \
23743       conftest$ac_exeext conftest.$ac_ext
23744 fi
23745 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23746 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23747 if test $ac_cv_func_crypt = yes; then
23748
23749 cat >>confdefs.h <<\_ACEOF
23750 #define HAVE_CRYPT
23751 _ACEOF
23752
23753 fi
23754
23755 fi
23756
23757 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23758 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23759 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23760   echo $ECHO_N "(cached) $ECHO_C" >&6
23761 else
23762   ac_check_lib_save_LIBS=$LIBS
23763 LIBS="-lcipher  $LIBS"
23764 cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h.  */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h.  */
23770
23771 /* Override any gcc2 internal prototype to avoid an error.  */
23772 #ifdef __cplusplus
23773 extern "C"
23774 #endif
23775 /* We use char because int might match the return type of a gcc2
23776    builtin and then its argument prototype would still apply.  */
23777 char setkey ();
23778 int
23779 main ()
23780 {
23781 setkey ();
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext conftest$ac_exeext
23787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23788   (eval $ac_link) 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } &&
23795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797   (eval $ac_try) 2>&5
23798   ac_status=$?
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); }; } &&
23801          { ac_try='test -s conftest$ac_exeext'
23802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803   (eval $ac_try) 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; }; then
23807   ac_cv_lib_cipher_setkey=yes
23808 else
23809   echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812 ac_cv_lib_cipher_setkey=no
23813 fi
23814 rm -f conftest.err conftest.$ac_objext \
23815       conftest$ac_exeext conftest.$ac_ext
23816 LIBS=$ac_check_lib_save_LIBS
23817 fi
23818 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23819 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23820 if test $ac_cv_lib_cipher_setkey = yes; then
23821   CRYPTLIB="${CRYPTLIB} -lcipher"
23822
23823 fi
23824
23825
23826
23827 if test "x$WITH_SNMP" = "xyes"; then
23828
23829
23830
23831
23832 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23833 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23834
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841
23842 #ifdef HAVE_SYS_TYPES_H
23843 #include <sys/types.h>
23844 #endif
23845 #ifdef HAVE_STDINT_H
23846 #include <stdint.h>
23847 #endif
23848 #ifdef HAVE_STDIO_H
23849 #include <stdio.h>
23850 #endif
23851 #ifdef HAVE_NETDB_H
23852 #include <netdb.h>
23853 #endif
23854 #ifdef HAVE_UNISTD_H
23855 #include <unistd.h>
23856 #endif
23857 #include <ucd-snmp/ucd-snmp-config.h>
23858 #include <ucd-snmp/asn1.h>
23859 #include <ucd-snmp/snmp.h>
23860 #include <ucd-snmp/snmp_impl.h>
23861 int
23862 main ()
23863 {
23864  int a = 1;
23865   ;
23866   return 0;
23867 }
23868 _ACEOF
23869 rm -f conftest.$ac_objext
23870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23871   (eval $ac_compile) 2>conftest.er1
23872   ac_status=$?
23873   grep -v '^ *+' conftest.er1 >conftest.err
23874   rm -f conftest.er1
23875   cat conftest.err >&5
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); } &&
23878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880   (eval $ac_try) 2>&5
23881   ac_status=$?
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); }; } &&
23884          { ac_try='test -s conftest.$ac_objext'
23885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886   (eval $ac_try) 2>&5
23887   ac_status=$?
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); }; }; then
23890   SNMP_INCLUDE="";ucdsnmp=yes
23891 else
23892   echo "$as_me: failed program was:" >&5
23893 sed 's/^/| /' conftest.$ac_ext >&5
23894
23895 ucdsnmp=
23896 fi
23897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23898
23899 if test "x$ucdsnmp" = "x"; then
23900   old_CFLAGS="$CFLAGS"
23901   for try in /usr/include /usr/local/include $snmp_include_dir; do
23902     CFLAGS="$old_CFLAGS -I$try"
23903     cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h.  */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h.  */
23909
23910 #ifdef HAVE_SYS_TYPES_H
23911 #include <sys/types.h>
23912 #endif
23913 #ifdef HAVE_STDINT_H
23914 #include <stdint.h>
23915 #endif
23916 #ifdef HAVE_STDIO_H
23917 #include <stdio.h>
23918 #endif
23919 #ifdef HAVE_NETDB_H
23920 #include <netdb.h>
23921 #endif
23922 #ifdef HAVE_UNISTD_H
23923 #include <unistd.h>
23924 #endif
23925 #include <ucd-snmp/ucd-snmp-config.h>
23926 #include <ucd-snmp/asn1.h>
23927 #include <ucd-snmp/snmp.h>
23928 #include <ucd-snmp/snmp_impl.h>
23929 int
23930 main ()
23931 {
23932  int a = 1;
23933   ;
23934   return 0;
23935 }
23936 _ACEOF
23937 rm -f conftest.$ac_objext
23938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23939   (eval $ac_compile) 2>conftest.er1
23940   ac_status=$?
23941   grep -v '^ *+' conftest.er1 >conftest.err
23942   rm -f conftest.er1
23943   cat conftest.err >&5
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); } &&
23946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948   (eval $ac_try) 2>&5
23949   ac_status=$?
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); }; } &&
23952          { ac_try='test -s conftest.$ac_objext'
23953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23954   (eval $ac_try) 2>&5
23955   ac_status=$?
23956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); }; }; then
23958   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23959 else
23960   echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23962
23963 ucdsnmp=
23964 fi
23965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23966     if test "x$ucdsnmp" != "x"; then
23967       break;
23968     fi
23969   done
23970   CFLAGS="$old_CFLAGS"
23971 fi
23972
23973 if test "x$ucdsnmp" = "x"; then
23974   old_CFLAGS="$CFLAGS"
23975   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23976     CFLAGS="$old_CFLAGS -I$try"
23977 cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h.  */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h.  */
23983
23984 #ifdef HAVE_SYS_TYPES_H
23985 #include <sys/types.h>
23986 #endif
23987 #ifdef HAVE_STDINT_H
23988 #include <stdint.h>
23989 #endif
23990 #ifdef HAVE_STDIO_H
23991 #include <stdio.h>
23992 #endif
23993 #ifdef HAVE_NETDB_H
23994 #include <netdb.h>
23995 #endif
23996 #ifdef HAVE_UNISTD_H
23997 #include <unistd.h>
23998 #endif
23999 #include <asn1.h>
24000 #include <snmp.h>
24001 #include <snmp_impl.h>
24002 int
24003 main ()
24004 {
24005  int a = 1;
24006   ;
24007   return 0;
24008 }
24009 _ACEOF
24010 rm -f conftest.$ac_objext
24011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24012   (eval $ac_compile) 2>conftest.er1
24013   ac_status=$?
24014   grep -v '^ *+' conftest.er1 >conftest.err
24015   rm -f conftest.er1
24016   cat conftest.err >&5
24017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018   (exit $ac_status); } &&
24019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021   (eval $ac_try) 2>&5
24022   ac_status=$?
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); }; } &&
24025          { ac_try='test -s conftest.$ac_objext'
24026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027   (eval $ac_try) 2>&5
24028   ac_status=$?
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); }; }; then
24031   SNMP_INCLUDE="";ucdsnmp=no
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036 ucdsnmp=
24037 fi
24038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24039     if test "x$ucdsnmp" != "x"; then
24040       break;
24041     fi
24042   done
24043   CFLAGS="$old_CFLAGS"
24044 fi
24045
24046 if test "x$ucdsnmp" = "x"; then
24047   old_CFLAGS="$CFLAGS"
24048   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24049     CFLAGS="$old_CFLAGS -I$try"
24050     cat >conftest.$ac_ext <<_ACEOF
24051 /* confdefs.h.  */
24052 _ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h.  */
24056
24057 #ifdef HAVE_SYS_TYPES_H
24058 #include <sys/types.h>
24059 #endif
24060 #ifdef HAVE_STDINT_H
24061 #include <stdint.h>
24062 #endif
24063 #ifdef HAVE_STDIO_H
24064 #include <stdio.h>
24065 #endif
24066 #ifdef HAVE_NETDB_H
24067 #include <netdb.h>
24068 #endif
24069 #ifdef HAVE_UNISTD_H
24070 #include <unistd.h>
24071 #endif
24072 #include <asn1.h>
24073 #include <snmp.h>
24074 #include <snmp_impl.h>
24075 int
24076 main ()
24077 {
24078  int a = 1;
24079   ;
24080   return 0;
24081 }
24082 _ACEOF
24083 rm -f conftest.$ac_objext
24084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24085   (eval $ac_compile) 2>conftest.er1
24086   ac_status=$?
24087   grep -v '^ *+' conftest.er1 >conftest.err
24088   rm -f conftest.er1
24089   cat conftest.err >&5
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } &&
24092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094   (eval $ac_try) 2>&5
24095   ac_status=$?
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); }; } &&
24098          { ac_try='test -s conftest.$ac_objext'
24099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100   (eval $ac_try) 2>&5
24101   ac_status=$?
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); }; }; then
24104   SNMP_INCLUDE="-I$try";ucdsnmp=no
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109 ucdsnmp=
24110 fi
24111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24112     if test "x$ucdsnmp" != "x"; then
24113       break;
24114     fi
24115   done
24116   CFLAGS="$old_CFLAGS"
24117 fi
24118
24119 if test "x$ucdsnmp" = "x"; then
24120   echo "$as_me:$LINENO: result: no" >&5
24121 echo "${ECHO_T}no" >&6
24122 else
24123   if test "x$ucdsnmp" = "xyes"; then
24124     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24125 echo "${ECHO_T}(ucd-snmp)yes" >&6
24126
24127 cat >>confdefs.h <<\_ACEOF
24128 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24129 _ACEOF
24130
24131   else
24132     echo "$as_me:$LINENO: result: yes" >&5
24133 echo "${ECHO_T}yes" >&6
24134
24135 cat >>confdefs.h <<\_ACEOF
24136 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24137 _ACEOF
24138
24139   fi
24140   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24141 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24142
24143   old_LIBS="$LIBS"
24144   LIBS="$old_LIBS -lsnmp"
24145   cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h.  */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h.  */
24151 extern char snmp_build_var_op();
24152 int
24153 main ()
24154 {
24155  snmp_build_var_op()
24156   ;
24157   return 0;
24158 }
24159 _ACEOF
24160 rm -f conftest.$ac_objext conftest$ac_exeext
24161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24162   (eval $ac_link) 2>conftest.er1
24163   ac_status=$?
24164   grep -v '^ *+' conftest.er1 >conftest.err
24165   rm -f conftest.er1
24166   cat conftest.err >&5
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); } &&
24169          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171   (eval $ac_try) 2>&5
24172   ac_status=$?
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); }; } &&
24175          { ac_try='test -s conftest$ac_exeext'
24176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177   (eval $ac_try) 2>&5
24178   ac_status=$?
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); }; }; then
24181   SNMP_LIBS="-lsnmp"
24182 else
24183   echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 SNMP_LIBS=
24187 fi
24188 rm -f conftest.err conftest.$ac_objext \
24189       conftest$ac_exeext conftest.$ac_ext
24190
24191   if test "x$SNMP_LIBS" = "x"; then
24192     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24193       LIBS="$old_LIBS -L$try -lsnmp"
24194       cat >conftest.$ac_ext <<_ACEOF
24195 /* confdefs.h.  */
24196 _ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h.  */
24200 extern char snmp_build_var_op();
24201 int
24202 main ()
24203 {
24204  snmp_build_var_op()
24205   ;
24206   return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest.$ac_objext conftest$ac_exeext
24210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24211   (eval $ac_link) 2>conftest.er1
24212   ac_status=$?
24213   grep -v '^ *+' conftest.er1 >conftest.err
24214   rm -f conftest.er1
24215   cat conftest.err >&5
24216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217   (exit $ac_status); } &&
24218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220   (eval $ac_try) 2>&5
24221   ac_status=$?
24222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223   (exit $ac_status); }; } &&
24224          { ac_try='test -s conftest$ac_exeext'
24225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226   (eval $ac_try) 2>&5
24227   ac_status=$?
24228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); }; }; then
24230   SNMP_LIBS="-L$try -lsnmp"
24231 else
24232   echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24234
24235 SNMP_LIBS=
24236 fi
24237 rm -f conftest.err conftest.$ac_objext \
24238       conftest$ac_exeext conftest.$ac_ext
24239       if test "x$SNMP_LIBS" != "x"; then
24240         break;
24241       fi
24242       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24243       cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h.  */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h.  */
24249 extern char snmp_build_var_op();
24250 int
24251 main ()
24252 {
24253  snmp_build_var_op()
24254   ;
24255   return 0;
24256 }
24257 _ACEOF
24258 rm -f conftest.$ac_objext conftest$ac_exeext
24259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260   (eval $ac_link) 2>conftest.er1
24261   ac_status=$?
24262   grep -v '^ *+' conftest.er1 >conftest.err
24263   rm -f conftest.er1
24264   cat conftest.err >&5
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } &&
24267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269   (eval $ac_try) 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; } &&
24273          { ac_try='test -s conftest$ac_exeext'
24274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275   (eval $ac_try) 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; }; then
24279   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24280 else
24281   echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284 SNMP_LIBS=
24285 fi
24286 rm -f conftest.err conftest.$ac_objext \
24287       conftest$ac_exeext conftest.$ac_ext
24288       if test "x$SNMP_LIBS" != "x"; then
24289         break;
24290       fi
24291       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24292       cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h.  */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h.  */
24298 extern char snmp_build_var_op();
24299 int
24300 main ()
24301 {
24302  snmp_build_var_op()
24303   ;
24304   return 0;
24305 }
24306 _ACEOF
24307 rm -f conftest.$ac_objext conftest$ac_exeext
24308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24309   (eval $ac_link) 2>conftest.er1
24310   ac_status=$?
24311   grep -v '^ *+' conftest.er1 >conftest.err
24312   rm -f conftest.er1
24313   cat conftest.err >&5
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); } &&
24316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318   (eval $ac_try) 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); }; } &&
24322          { ac_try='test -s conftest$ac_exeext'
24323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324   (eval $ac_try) 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24329 else
24330   echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333 SNMP_LIBS=
24334 fi
24335 rm -f conftest.err conftest.$ac_objext \
24336       conftest$ac_exeext conftest.$ac_ext
24337       if test "x$SNMP_LIBS" != "x"; then
24338         break;
24339       fi
24340     done
24341   fi
24342   LIBS="$old_LIBS"
24343
24344           CFLAGS="$old_CFLAGS"
24345   if test "x$SNMP_LIBS" = "x"; then
24346     echo "$as_me:$LINENO: result: no" >&5
24347 echo "${ECHO_T}no" >&6
24348     SNMP_INCLUDE=
24349   else
24350     echo "$as_me:$LINENO: result: yes" >&5
24351 echo "${ECHO_T}yes" >&6
24352
24353 cat >>confdefs.h <<\_ACEOF
24354 #define WITH_SNMP
24355 _ACEOF
24356
24357
24358 cat >>confdefs.h <<\_ACEOF
24359 #define HAVE_LIBSNMP
24360 _ACEOF
24361
24362   fi
24363 fi
24364
24365 fi
24366
24367
24368 cat >>confdefs.h <<\_ACEOF
24369 #define GNUSTYLE 1
24370 _ACEOF
24371
24372
24373 cat >>confdefs.h <<\_ACEOF
24374 #define SYSVSTYLE 2
24375 _ACEOF
24376
24377
24378 cat >>confdefs.h <<\_ACEOF
24379 #define BSDSTYLE 3
24380 _ACEOF
24381
24382 gethostbyaddrrstyle=""
24383 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24384 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24385 case "$host" in
24386 *-freebsd*)
24387
24388 cat >>confdefs.h <<\_ACEOF
24389 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24390 _ACEOF
24391
24392         gethostbyaddrrstyle=BSD
24393         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24394 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24395         ;;
24396 esac
24397 if test "x$gethostbyaddrrstyle" = "x"; then
24398         cat >conftest.$ac_ext <<_ACEOF
24399 /* confdefs.h.  */
24400 _ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h.  */
24404
24405 #include <stdio.h>
24406 #include <netdb.h>
24407
24408 int
24409 main ()
24410 {
24411  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24412   ;
24413   return 0;
24414 }
24415 _ACEOF
24416 rm -f conftest.$ac_objext conftest$ac_exeext
24417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24418   (eval $ac_link) 2>conftest.er1
24419   ac_status=$?
24420   grep -v '^ *+' conftest.er1 >conftest.err
24421   rm -f conftest.er1
24422   cat conftest.err >&5
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); } &&
24425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427   (eval $ac_try) 2>&5
24428   ac_status=$?
24429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430   (exit $ac_status); }; } &&
24431          { ac_try='test -s conftest$ac_exeext'
24432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24433   (eval $ac_try) 2>&5
24434   ac_status=$?
24435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436   (exit $ac_status); }; }; then
24437
24438
24439 cat >>confdefs.h <<\_ACEOF
24440 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24441 _ACEOF
24442
24443         gethostbyaddrrstyle=GNU
24444
24445 else
24446   echo "$as_me: failed program was:" >&5
24447 sed 's/^/| /' conftest.$ac_ext >&5
24448
24449 fi
24450 rm -f conftest.err conftest.$ac_objext \
24451       conftest$ac_exeext conftest.$ac_ext
24452 fi
24453 if test "x$gethostbyaddrrstyle" = "x"; then
24454         cat >conftest.$ac_ext <<_ACEOF
24455 /* confdefs.h.  */
24456 _ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h.  */
24460
24461 #include <stdio.h>
24462 #include <netdb.h>
24463
24464 int
24465 main ()
24466 {
24467  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24468   ;
24469   return 0;
24470 }
24471 _ACEOF
24472 rm -f conftest.$ac_objext conftest$ac_exeext
24473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24474   (eval $ac_link) 2>conftest.er1
24475   ac_status=$?
24476   grep -v '^ *+' conftest.er1 >conftest.err
24477   rm -f conftest.er1
24478   cat conftest.err >&5
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); } &&
24481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483   (eval $ac_try) 2>&5
24484   ac_status=$?
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); }; } &&
24487          { ac_try='test -s conftest$ac_exeext'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; }; then
24493
24494
24495 cat >>confdefs.h <<\_ACEOF
24496 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24497 _ACEOF
24498
24499                 gethostbyaddrrstyle=SYSV
24500
24501 else
24502   echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24504
24505 fi
24506 rm -f conftest.err conftest.$ac_objext \
24507       conftest$ac_exeext conftest.$ac_ext
24508 fi
24509 if test "x$gethostbyaddrrstyle" = "x"; then
24510         cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h.  */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h.  */
24516
24517 #include <stdio.h>
24518 #include <netdb.h>
24519
24520 int
24521 main ()
24522 {
24523  gethostbyaddr(NULL, 0, 0)
24524   ;
24525   return 0;
24526 }
24527 _ACEOF
24528 rm -f conftest.$ac_objext conftest$ac_exeext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24530   (eval $ac_link) 2>conftest.er1
24531   ac_status=$?
24532   grep -v '^ *+' conftest.er1 >conftest.err
24533   rm -f conftest.er1
24534   cat conftest.err >&5
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); } &&
24537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539   (eval $ac_try) 2>&5
24540   ac_status=$?
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); }; } &&
24543          { ac_try='test -s conftest$ac_exeext'
24544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545   (eval $ac_try) 2>&5
24546   ac_status=$?
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); }; }; then
24549
24550
24551 cat >>confdefs.h <<\_ACEOF
24552 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24553 _ACEOF
24554
24555                 gethostbyaddrrstyle=BSD
24556
24557 else
24558   echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24560
24561 fi
24562 rm -f conftest.err conftest.$ac_objext \
24563       conftest$ac_exeext conftest.$ac_ext
24564 fi
24565
24566 if test "x$gethostbyaddrrstyle" = "x"; then
24567         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24568 echo "${ECHO_T}none!  It must not exist, here." >&6
24569 else
24570         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24571 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24572 fi
24573
24574 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24575         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24576 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24577 fi
24578
24579 gethostbynamerstyle=""
24580 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24581 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24582 cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588
24589 #include <stdio.h>
24590 #include <netdb.h>
24591
24592 int
24593 main ()
24594 {
24595  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24596   ;
24597   return 0;
24598 }
24599 _ACEOF
24600 rm -f conftest.$ac_objext conftest$ac_exeext
24601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24602   (eval $ac_link) 2>conftest.er1
24603   ac_status=$?
24604   grep -v '^ *+' conftest.er1 >conftest.err
24605   rm -f conftest.er1
24606   cat conftest.err >&5
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } &&
24609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611   (eval $ac_try) 2>&5
24612   ac_status=$?
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); }; } &&
24615          { ac_try='test -s conftest$ac_exeext'
24616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617   (eval $ac_try) 2>&5
24618   ac_status=$?
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); }; }; then
24621
24622
24623 cat >>confdefs.h <<\_ACEOF
24624 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24625 _ACEOF
24626
24627         gethostbynamerstyle=GNU
24628
24629 else
24630   echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633 fi
24634 rm -f conftest.err conftest.$ac_objext \
24635       conftest$ac_exeext conftest.$ac_ext
24636 if test "x$gethostbynamerstyle" = "x"; then
24637         cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h.  */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h.  */
24643
24644 #include <stdio.h>
24645 #include <netdb.h>
24646
24647 int
24648 main ()
24649 {
24650  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24651   ;
24652   return 0;
24653 }
24654 _ACEOF
24655 rm -f conftest.$ac_objext conftest$ac_exeext
24656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24657   (eval $ac_link) 2>conftest.er1
24658   ac_status=$?
24659   grep -v '^ *+' conftest.er1 >conftest.err
24660   rm -f conftest.er1
24661   cat conftest.err >&5
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } &&
24664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666   (eval $ac_try) 2>&5
24667   ac_status=$?
24668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669   (exit $ac_status); }; } &&
24670          { ac_try='test -s conftest$ac_exeext'
24671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672   (eval $ac_try) 2>&5
24673   ac_status=$?
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); }; }; then
24676
24677
24678 cat >>confdefs.h <<\_ACEOF
24679 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24680 _ACEOF
24681
24682                 gethostbynamerstyle=SYSV
24683
24684 else
24685   echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 fi
24689 rm -f conftest.err conftest.$ac_objext \
24690       conftest$ac_exeext conftest.$ac_ext
24691 fi
24692 if test "x$gethostbynamerstyle" = "x"; then
24693         cat >conftest.$ac_ext <<_ACEOF
24694 /* confdefs.h.  */
24695 _ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h.  */
24699
24700 #include <stdio.h>
24701 #include <netdb.h>
24702
24703 int
24704 main ()
24705 {
24706  gethostbyname(NULL)
24707   ;
24708   return 0;
24709 }
24710 _ACEOF
24711 rm -f conftest.$ac_objext conftest$ac_exeext
24712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24713   (eval $ac_link) 2>conftest.er1
24714   ac_status=$?
24715   grep -v '^ *+' conftest.er1 >conftest.err
24716   rm -f conftest.er1
24717   cat conftest.err >&5
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); } &&
24720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722   (eval $ac_try) 2>&5
24723   ac_status=$?
24724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725   (exit $ac_status); }; } &&
24726          { ac_try='test -s conftest$ac_exeext'
24727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728   (eval $ac_try) 2>&5
24729   ac_status=$?
24730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731   (exit $ac_status); }; }; then
24732
24733
24734 cat >>confdefs.h <<\_ACEOF
24735 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24736 _ACEOF
24737
24738                 gethostbynamerstyle=BSD
24739
24740 else
24741   echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744 fi
24745 rm -f conftest.err conftest.$ac_objext \
24746       conftest$ac_exeext conftest.$ac_ext
24747 fi
24748
24749 if test "x$gethostbynamerstyle" = "x"; then
24750         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24751 echo "${ECHO_T}none!  It must not exist, here." >&6
24752 else
24753         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24754 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24755 fi
24756
24757 if test "x$gethostbynamerstyle" = "xBSD"; then
24758         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24759 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24760 fi
24761
24762
24763 cat >>confdefs.h <<\_ACEOF
24764 #define POSIXSTYLE 1
24765 _ACEOF
24766
24767
24768 cat >>confdefs.h <<\_ACEOF
24769 #define SOLARISSTYLE 2
24770 _ACEOF
24771
24772 ctimerstyle=""
24773 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24774 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24775 cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h.  */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h.  */
24781
24782 #include <time.h>
24783
24784 int
24785 main ()
24786 {
24787  ctime_r(NULL, NULL, 0)
24788   ;
24789   return 0;
24790 }
24791 _ACEOF
24792 rm -f conftest.$ac_objext conftest$ac_exeext
24793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24794   (eval $ac_link) 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } &&
24801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803   (eval $ac_try) 2>&5
24804   ac_status=$?
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); }; } &&
24807          { ac_try='test -s conftest$ac_exeext'
24808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809   (eval $ac_try) 2>&5
24810   ac_status=$?
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); }; }; then
24813
24814
24815 cat >>confdefs.h <<\_ACEOF
24816 #define CTIMERSTYLE SOLARISSTYLE
24817 _ACEOF
24818
24819         ctimerstyle="SOLARIS"
24820
24821 else
24822   echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24824
24825 fi
24826 rm -f conftest.err conftest.$ac_objext \
24827       conftest$ac_exeext conftest.$ac_ext
24828 if test "x$ctimerstyle" = "x"; then
24829         cat >conftest.$ac_ext <<_ACEOF
24830 /* confdefs.h.  */
24831 _ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h.  */
24835
24836 #include <time.h>
24837
24838 int
24839 main ()
24840 {
24841  ctime_r(NULL, NULL)
24842   ;
24843   return 0;
24844 }
24845 _ACEOF
24846 rm -f conftest.$ac_objext conftest$ac_exeext
24847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24848   (eval $ac_link) 2>conftest.er1
24849   ac_status=$?
24850   grep -v '^ *+' conftest.er1 >conftest.err
24851   rm -f conftest.er1
24852   cat conftest.err >&5
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } &&
24855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); }; } &&
24861          { ac_try='test -s conftest$ac_exeext'
24862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863   (eval $ac_try) 2>&5
24864   ac_status=$?
24865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866   (exit $ac_status); }; }; then
24867
24868
24869 cat >>confdefs.h <<\_ACEOF
24870 #define CTIMERSTYLE POSIXSTYLE
24871 _ACEOF
24872
24873                 ctimerstyle="POSIX"
24874
24875 else
24876   echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24878
24879 fi
24880 rm -f conftest.err conftest.$ac_objext \
24881       conftest$ac_exeext conftest.$ac_ext
24882 fi
24883
24884 if test "x$ctimerstyle" = "x"; then
24885         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24886 echo "${ECHO_T}none!  It must not exist, here." >&6
24887 else
24888         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24889 echo "${ECHO_T}${ctimerstyle}-style" >&6
24890 fi
24891
24892 HOSTINFO=$host
24893
24894
24895
24896 top_builddir=`pwd`
24897 export top_builddir
24898 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24899 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24900
24901
24902
24903 if test "x$INCLTDL" != "x";then
24904   INCLTDL='-I${top_builddir}/''libltdl'
24905 fi
24906
24907
24908
24909 mysubdirs=
24910 if test "x$EXPERIMENTAL" = "xyes"; then
24911   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24912     mysubdirs=`echo $bar`
24913 else
24914         for bar in `cat src/modules/stable`; do
24915     if test -f src/modules/$bar/configure; then
24916       mysubdirs="$mysubdirs src/modules/$bar"
24917     fi
24918   done
24919 fi
24920
24921 MODULES=
24922 if test "x$EXPERIMENTAL" = "xyes"; then
24923   for foo in `ls -1 src/modules | grep rlm_`; do
24924     MODULES="$MODULES $foo"
24925   done
24926 else
24927             for foo in `cat src/modules/stable`; do
24928     MODULES="$MODULES $foo"
24929    done
24930 fi
24931
24932
24933
24934 subdirs="$subdirs $mysubdirs"
24935
24936
24937
24938
24939           ac_config_commands="$ac_config_commands stamp-h"
24940
24941           ac_config_commands="$ac_config_commands build-radpaths-h"
24942
24943           ac_config_commands="$ac_config_commands main-chmod"
24944
24945           ac_config_commands="$ac_config_commands scripts-chmod"
24946
24947
24948
24949
24950
24951 USE_SHARED_LIBS=$enable_shared
24952
24953 USE_STATIC_LIBS=$enable_static
24954
24955
24956
24957
24958
24959 export CFLAGS LIBS
24960
24961                                                                                                                                             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"
24962 cat >confcache <<\_ACEOF
24963 # This file is a shell script that caches the results of configure
24964 # tests run on this system so they can be shared between configure
24965 # scripts and configure runs, see configure's option --config-cache.
24966 # It is not useful on other systems.  If it contains results you don't
24967 # want to keep, you may remove or edit it.
24968 #
24969 # config.status only pays attention to the cache file if you give it
24970 # the --recheck option to rerun configure.
24971 #
24972 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24973 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24974 # following values.
24975
24976 _ACEOF
24977
24978 # The following way of writing the cache mishandles newlines in values,
24979 # but we know of no workaround that is simple, portable, and efficient.
24980 # So, don't put newlines in cache variables' values.
24981 # Ultrix sh set writes to stderr and can't be redirected directly,
24982 # and sets the high bit in the cache file unless we assign to the vars.
24983 {
24984   (set) 2>&1 |
24985     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24986     *ac_space=\ *)
24987       # `set' does not quote correctly, so add quotes (double-quote
24988       # substitution turns \\\\ into \\, and sed turns \\ into \).
24989       sed -n \
24990         "s/'/'\\\\''/g;
24991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24992       ;;
24993     *)
24994       # `set' quotes correctly as required by POSIX, so do not add quotes.
24995       sed -n \
24996         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24997       ;;
24998     esac;
24999 } |
25000   sed '
25001      t clear
25002      : clear
25003      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25004      t end
25005      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25006      : end' >>confcache
25007 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25008   if test -w $cache_file; then
25009     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25010     cat confcache >$cache_file
25011   else
25012     echo "not updating unwritable cache $cache_file"
25013   fi
25014 fi
25015 rm -f confcache
25016
25017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25018 # Let make expand exec_prefix.
25019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25020
25021 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25022 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25023 # trailing colons and then remove the whole line if VPATH becomes empty
25024 # (actually we leave an empty line to preserve line numbers).
25025 if test "x$srcdir" = x.; then
25026   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25027 s/:*\$(srcdir):*/:/;
25028 s/:*\${srcdir}:*/:/;
25029 s/:*@srcdir@:*/:/;
25030 s/^\([^=]*=[     ]*\):*/\1/;
25031 s/:*$//;
25032 s/^[^=]*=[       ]*$//;
25033 }'
25034 fi
25035
25036 DEFS=-DHAVE_CONFIG_H
25037
25038 ac_libobjs=
25039 ac_ltlibobjs=
25040 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25041   # 1. Remove the extension, and $U if already installed.
25042   ac_i=`echo "$ac_i" |
25043          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25044   # 2. Add them.
25045   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25046   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25047 done
25048 LIBOBJS=$ac_libobjs
25049
25050 LTLIBOBJS=$ac_ltlibobjs
25051
25052
25053
25054 : ${CONFIG_STATUS=./config.status}
25055 ac_clean_files_save=$ac_clean_files
25056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25057 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25058 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25059 cat >$CONFIG_STATUS <<_ACEOF
25060 #! $SHELL
25061 # Generated by $as_me.
25062 # Run this file to recreate the current configuration.
25063 # Compiler output produced by configure, useful for debugging
25064 # configure, is in config.log if it exists.
25065
25066 debug=false
25067 ac_cs_recheck=false
25068 ac_cs_silent=false
25069 SHELL=\${CONFIG_SHELL-$SHELL}
25070 _ACEOF
25071
25072 cat >>$CONFIG_STATUS <<\_ACEOF
25073 ## --------------------- ##
25074 ## M4sh Initialization.  ##
25075 ## --------------------- ##
25076
25077 # Be Bourne compatible
25078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25079   emulate sh
25080   NULLCMD=:
25081   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25082   # is contrary to our usage.  Disable this feature.
25083   alias -g '${1+"$@"}'='"$@"'
25084 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25085   set -o posix
25086 fi
25087 DUALCASE=1; export DUALCASE # for MKS sh
25088
25089 # Support unset when possible.
25090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25091   as_unset=unset
25092 else
25093   as_unset=false
25094 fi
25095
25096
25097 # Work around bugs in pre-3.0 UWIN ksh.
25098 $as_unset ENV MAIL MAILPATH
25099 PS1='$ '
25100 PS2='> '
25101 PS4='+ '
25102
25103 # NLS nuisances.
25104 for as_var in \
25105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25107   LC_TELEPHONE LC_TIME
25108 do
25109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25110     eval $as_var=C; export $as_var
25111   else
25112     $as_unset $as_var
25113   fi
25114 done
25115
25116 # Required to use basename.
25117 if expr a : '\(a\)' >/dev/null 2>&1; then
25118   as_expr=expr
25119 else
25120   as_expr=false
25121 fi
25122
25123 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25124   as_basename=basename
25125 else
25126   as_basename=false
25127 fi
25128
25129
25130 # Name of the executable.
25131 as_me=`$as_basename "$0" ||
25132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25133          X"$0" : 'X\(//\)$' \| \
25134          X"$0" : 'X\(/\)$' \| \
25135          .     : '\(.\)' 2>/dev/null ||
25136 echo X/"$0" |
25137     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25138           /^X\/\(\/\/\)$/{ s//\1/; q; }
25139           /^X\/\(\/\).*/{ s//\1/; q; }
25140           s/.*/./; q'`
25141
25142
25143 # PATH needs CR, and LINENO needs CR and PATH.
25144 # Avoid depending upon Character Ranges.
25145 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25146 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25147 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25148 as_cr_digits='0123456789'
25149 as_cr_alnum=$as_cr_Letters$as_cr_digits
25150
25151 # The user is always right.
25152 if test "${PATH_SEPARATOR+set}" != set; then
25153   echo "#! /bin/sh" >conf$$.sh
25154   echo  "exit 0"   >>conf$$.sh
25155   chmod +x conf$$.sh
25156   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25157     PATH_SEPARATOR=';'
25158   else
25159     PATH_SEPARATOR=:
25160   fi
25161   rm -f conf$$.sh
25162 fi
25163
25164
25165   as_lineno_1=$LINENO
25166   as_lineno_2=$LINENO
25167   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25168   test "x$as_lineno_1" != "x$as_lineno_2" &&
25169   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25170   # Find who we are.  Look in the path if we contain no path at all
25171   # relative or not.
25172   case $0 in
25173     *[\\/]* ) as_myself=$0 ;;
25174     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25175 for as_dir in $PATH
25176 do
25177   IFS=$as_save_IFS
25178   test -z "$as_dir" && as_dir=.
25179   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25180 done
25181
25182        ;;
25183   esac
25184   # We did not find ourselves, most probably we were run as `sh COMMAND'
25185   # in which case we are not to be found in the path.
25186   if test "x$as_myself" = x; then
25187     as_myself=$0
25188   fi
25189   if test ! -f "$as_myself"; then
25190     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25191 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25192    { (exit 1); exit 1; }; }
25193   fi
25194   case $CONFIG_SHELL in
25195   '')
25196     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25198 do
25199   IFS=$as_save_IFS
25200   test -z "$as_dir" && as_dir=.
25201   for as_base in sh bash ksh sh5; do
25202          case $as_dir in
25203          /*)
25204            if ("$as_dir/$as_base" -c '
25205   as_lineno_1=$LINENO
25206   as_lineno_2=$LINENO
25207   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25208   test "x$as_lineno_1" != "x$as_lineno_2" &&
25209   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25210              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25211              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25212              CONFIG_SHELL=$as_dir/$as_base
25213              export CONFIG_SHELL
25214              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25215            fi;;
25216          esac
25217        done
25218 done
25219 ;;
25220   esac
25221
25222   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25223   # uniformly replaced by the line number.  The first 'sed' inserts a
25224   # line-number line before each line; the second 'sed' does the real
25225   # work.  The second script uses 'N' to pair each line-number line
25226   # with the numbered line, and appends trailing '-' during
25227   # substitution so that $LINENO is not a special case at line end.
25228   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25229   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25230   sed '=' <$as_myself |
25231     sed '
25232       N
25233       s,$,-,
25234       : loop
25235       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25236       t loop
25237       s,-$,,
25238       s,^['$as_cr_digits']*\n,,
25239     ' >$as_me.lineno &&
25240   chmod +x $as_me.lineno ||
25241     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25242 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25243    { (exit 1); exit 1; }; }
25244
25245   # Don't try to exec as it changes $[0], causing all sort of problems
25246   # (the dirname of $[0] is not the place where we might find the
25247   # original and so on.  Autoconf is especially sensible to this).
25248   . ./$as_me.lineno
25249   # Exit status is that of the last command.
25250   exit
25251 }
25252
25253
25254 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25255   *c*,-n*) ECHO_N= ECHO_C='
25256 ' ECHO_T='      ' ;;
25257   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25258   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25259 esac
25260
25261 if expr a : '\(a\)' >/dev/null 2>&1; then
25262   as_expr=expr
25263 else
25264   as_expr=false
25265 fi
25266
25267 rm -f conf$$ conf$$.exe conf$$.file
25268 echo >conf$$.file
25269 if ln -s conf$$.file conf$$ 2>/dev/null; then
25270   # We could just check for DJGPP; but this test a) works b) is more generic
25271   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25272   if test -f conf$$.exe; then
25273     # Don't use ln at all; we don't have any links
25274     as_ln_s='cp -p'
25275   else
25276     as_ln_s='ln -s'
25277   fi
25278 elif ln conf$$.file conf$$ 2>/dev/null; then
25279   as_ln_s=ln
25280 else
25281   as_ln_s='cp -p'
25282 fi
25283 rm -f conf$$ conf$$.exe conf$$.file
25284
25285 if mkdir -p . 2>/dev/null; then
25286   as_mkdir_p=:
25287 else
25288   test -d ./-p && rmdir ./-p
25289   as_mkdir_p=false
25290 fi
25291
25292 as_executable_p="test -f"
25293
25294 # Sed expression to map a string onto a valid CPP name.
25295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25296
25297 # Sed expression to map a string onto a valid variable name.
25298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25299
25300
25301 # IFS
25302 # We need space, tab and new line, in precisely that order.
25303 as_nl='
25304 '
25305 IFS="   $as_nl"
25306
25307 # CDPATH.
25308 $as_unset CDPATH
25309
25310 exec 6>&1
25311
25312 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25313 # report actual input values of CONFIG_FILES etc. instead of their
25314 # values after options handling.  Logging --version etc. is OK.
25315 exec 5>>config.log
25316 {
25317   echo
25318   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25319 ## Running $as_me. ##
25320 _ASBOX
25321 } >&5
25322 cat >&5 <<_CSEOF
25323
25324 This file was extended by $as_me, which was
25325 generated by GNU Autoconf 2.59.  Invocation command line was
25326
25327   CONFIG_FILES    = $CONFIG_FILES
25328   CONFIG_HEADERS  = $CONFIG_HEADERS
25329   CONFIG_LINKS    = $CONFIG_LINKS
25330   CONFIG_COMMANDS = $CONFIG_COMMANDS
25331   $ $0 $@
25332
25333 _CSEOF
25334 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25335 echo >&5
25336 _ACEOF
25337
25338 # Files that config.status was made for.
25339 if test -n "$ac_config_files"; then
25340   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25341 fi
25342
25343 if test -n "$ac_config_headers"; then
25344   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25345 fi
25346
25347 if test -n "$ac_config_links"; then
25348   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25349 fi
25350
25351 if test -n "$ac_config_commands"; then
25352   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25353 fi
25354
25355 cat >>$CONFIG_STATUS <<\_ACEOF
25356
25357 ac_cs_usage="\
25358 \`$as_me' instantiates files from templates according to the
25359 current configuration.
25360
25361 Usage: $0 [OPTIONS] [FILE]...
25362
25363   -h, --help       print this help, then exit
25364   -V, --version    print version number, then exit
25365   -q, --quiet      do not print progress messages
25366   -d, --debug      don't remove temporary files
25367       --recheck    update $as_me by reconfiguring in the same conditions
25368   --file=FILE[:TEMPLATE]
25369                    instantiate the configuration file FILE
25370   --header=FILE[:TEMPLATE]
25371                    instantiate the configuration header FILE
25372
25373 Configuration files:
25374 $config_files
25375
25376 Configuration headers:
25377 $config_headers
25378
25379 Configuration commands:
25380 $config_commands
25381
25382 Report bugs to <bug-autoconf@gnu.org>."
25383 _ACEOF
25384
25385 cat >>$CONFIG_STATUS <<_ACEOF
25386 ac_cs_version="\\
25387 config.status
25388 configured by $0, generated by GNU Autoconf 2.59,
25389   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25390
25391 Copyright (C) 2003 Free Software Foundation, Inc.
25392 This config.status script is free software; the Free Software Foundation
25393 gives unlimited permission to copy, distribute and modify it."
25394 srcdir=$srcdir
25395 _ACEOF
25396
25397 cat >>$CONFIG_STATUS <<\_ACEOF
25398 # If no file are specified by the user, then we need to provide default
25399 # value.  By we need to know if files were specified by the user.
25400 ac_need_defaults=:
25401 while test $# != 0
25402 do
25403   case $1 in
25404   --*=*)
25405     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25406     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25407     ac_shift=:
25408     ;;
25409   -*)
25410     ac_option=$1
25411     ac_optarg=$2
25412     ac_shift=shift
25413     ;;
25414   *) # This is not an option, so the user has probably given explicit
25415      # arguments.
25416      ac_option=$1
25417      ac_need_defaults=false;;
25418   esac
25419
25420   case $ac_option in
25421   # Handling of the options.
25422 _ACEOF
25423 cat >>$CONFIG_STATUS <<\_ACEOF
25424   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25425     ac_cs_recheck=: ;;
25426   --version | --vers* | -V )
25427     echo "$ac_cs_version"; exit 0 ;;
25428   --he | --h)
25429     # Conflict between --help and --header
25430     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25431 Try \`$0 --help' for more information." >&5
25432 echo "$as_me: error: ambiguous option: $1
25433 Try \`$0 --help' for more information." >&2;}
25434    { (exit 1); exit 1; }; };;
25435   --help | --hel | -h )
25436     echo "$ac_cs_usage"; exit 0 ;;
25437   --debug | --d* | -d )
25438     debug=: ;;
25439   --file | --fil | --fi | --f )
25440     $ac_shift
25441     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25442     ac_need_defaults=false;;
25443   --header | --heade | --head | --hea )
25444     $ac_shift
25445     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25446     ac_need_defaults=false;;
25447   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25448   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25449     ac_cs_silent=: ;;
25450
25451   # This is an error.
25452   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25453 Try \`$0 --help' for more information." >&5
25454 echo "$as_me: error: unrecognized option: $1
25455 Try \`$0 --help' for more information." >&2;}
25456    { (exit 1); exit 1; }; } ;;
25457
25458   *) ac_config_targets="$ac_config_targets $1" ;;
25459
25460   esac
25461   shift
25462 done
25463
25464 ac_configure_extra_args=
25465
25466 if $ac_cs_silent; then
25467   exec 6>/dev/null
25468   ac_configure_extra_args="$ac_configure_extra_args --silent"
25469 fi
25470
25471 _ACEOF
25472 cat >>$CONFIG_STATUS <<_ACEOF
25473 if \$ac_cs_recheck; then
25474   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25475   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25476 fi
25477
25478 _ACEOF
25479
25480
25481
25482
25483
25484 cat >>$CONFIG_STATUS <<\_ACEOF
25485 for ac_config_target in $ac_config_targets
25486 do
25487   case "$ac_config_target" in
25488   # Handling of arguments.
25489   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25490   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25491   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25492   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25493   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25494   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25495   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25496   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25497   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25498   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25499   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25500   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25501   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25502   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25503   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25504   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25505   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25506   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25507   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25508   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25510    { (exit 1); exit 1; }; };;
25511   esac
25512 done
25513
25514 # If the user did not use the arguments to specify the items to instantiate,
25515 # then the envvar interface is used.  Set only those that are not.
25516 # We use the long form for the default assignment because of an extremely
25517 # bizarre bug on SunOS 4.1.3.
25518 if $ac_need_defaults; then
25519   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25520   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25521   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25522 fi
25523
25524 # Have a temporary directory for convenience.  Make it in the build tree
25525 # simply because there is no reason to put it here, and in addition,
25526 # creating and moving files from /tmp can sometimes cause problems.
25527 # Create a temporary directory, and hook for its removal unless debugging.
25528 $debug ||
25529 {
25530   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25531   trap '{ (exit 1); exit 1; }' 1 2 13 15
25532 }
25533
25534 # Create a (secure) tmp directory for tmp files.
25535
25536 {
25537   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25538   test -n "$tmp" && test -d "$tmp"
25539 }  ||
25540 {
25541   tmp=./confstat$$-$RANDOM
25542   (umask 077 && mkdir $tmp)
25543 } ||
25544 {
25545    echo "$me: cannot create a temporary directory in ." >&2
25546    { (exit 1); exit 1; }
25547 }
25548
25549 _ACEOF
25550
25551 cat >>$CONFIG_STATUS <<_ACEOF
25552
25553 #
25554 # CONFIG_FILES section.
25555 #
25556
25557 # No need to generate the scripts if there are no CONFIG_FILES.
25558 # This happens for instance when ./config.status config.h
25559 if test -n "\$CONFIG_FILES"; then
25560   # Protect against being on the right side of a sed subst in config.status.
25561   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25562    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25563 s,@SHELL@,$SHELL,;t t
25564 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25565 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25566 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25567 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25568 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25569 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25570 s,@exec_prefix@,$exec_prefix,;t t
25571 s,@prefix@,$prefix,;t t
25572 s,@program_transform_name@,$program_transform_name,;t t
25573 s,@bindir@,$bindir,;t t
25574 s,@sbindir@,$sbindir,;t t
25575 s,@libexecdir@,$libexecdir,;t t
25576 s,@datadir@,$datadir,;t t
25577 s,@sysconfdir@,$sysconfdir,;t t
25578 s,@sharedstatedir@,$sharedstatedir,;t t
25579 s,@localstatedir@,$localstatedir,;t t
25580 s,@libdir@,$libdir,;t t
25581 s,@includedir@,$includedir,;t t
25582 s,@oldincludedir@,$oldincludedir,;t t
25583 s,@infodir@,$infodir,;t t
25584 s,@mandir@,$mandir,;t t
25585 s,@build_alias@,$build_alias,;t t
25586 s,@host_alias@,$host_alias,;t t
25587 s,@target_alias@,$target_alias,;t t
25588 s,@DEFS@,$DEFS,;t t
25589 s,@ECHO_C@,$ECHO_C,;t t
25590 s,@ECHO_N@,$ECHO_N,;t t
25591 s,@ECHO_T@,$ECHO_T,;t t
25592 s,@LIBS@,$LIBS,;t t
25593 s,@CC@,$CC,;t t
25594 s,@CFLAGS@,$CFLAGS,;t t
25595 s,@LDFLAGS@,$LDFLAGS,;t t
25596 s,@CPPFLAGS@,$CPPFLAGS,;t t
25597 s,@ac_ct_CC@,$ac_ct_CC,;t t
25598 s,@EXEEXT@,$EXEEXT,;t t
25599 s,@OBJEXT@,$OBJEXT,;t t
25600 s,@CPP@,$CPP,;t t
25601 s,@EGREP@,$EGREP,;t t
25602 s,@RANLIB@,$RANLIB,;t t
25603 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25604 s,@abs_top_builddir@,$abs_top_builddir,;t t
25605 s,@GMAKE@,$GMAKE,;t t
25606 s,@MAKE@,$MAKE,;t t
25607 s,@subdirs@,$subdirs,;t t
25608 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25609 s,@LIBTOOL@,$LIBTOOL,;t t
25610 s,@build@,$build,;t t
25611 s,@build_cpu@,$build_cpu,;t t
25612 s,@build_vendor@,$build_vendor,;t t
25613 s,@build_os@,$build_os,;t t
25614 s,@host@,$host,;t t
25615 s,@host_cpu@,$host_cpu,;t t
25616 s,@host_vendor@,$host_vendor,;t t
25617 s,@host_os@,$host_os,;t t
25618 s,@LN_S@,$LN_S,;t t
25619 s,@ECHO@,$ECHO,;t t
25620 s,@AR@,$AR,;t t
25621 s,@ac_ct_AR@,$ac_ct_AR,;t t
25622 s,@STRIP@,$STRIP,;t t
25623 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25624 s,@CXX@,$CXX,;t t
25625 s,@CXXFLAGS@,$CXXFLAGS,;t t
25626 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25627 s,@CXXCPP@,$CXXCPP,;t t
25628 s,@F77@,$F77,;t t
25629 s,@FFLAGS@,$FFLAGS,;t t
25630 s,@ac_ct_F77@,$ac_ct_F77,;t t
25631 s,@logdir@,$logdir,;t t
25632 s,@radacctdir@,$radacctdir,;t t
25633 s,@raddbdir@,$raddbdir,;t t
25634 s,@PERL@,$PERL,;t t
25635 s,@SNMPGET@,$SNMPGET,;t t
25636 s,@SNMPWALK@,$SNMPWALK,;t t
25637 s,@RUSERS@,$RUSERS,;t t
25638 s,@ACLOCAL@,$ACLOCAL,;t t
25639 s,@AUTOCONF@,$AUTOCONF,;t t
25640 s,@AUTOHEADER@,$AUTOHEADER,;t t
25641 s,@LOCATE@,$LOCATE,;t t
25642 s,@DIRNAME@,$DIRNAME,;t t
25643 s,@GREP@,$GREP,;t t
25644 s,@REGEX@,$REGEX,;t t
25645 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25646 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25647 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25648 s,@LIBPREFIX@,$LIBPREFIX,;t t
25649 s,@CRYPTLIB@,$CRYPTLIB,;t t
25650 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25651 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25652 s,@HOSTINFO@,$HOSTINFO,;t t
25653 s,@LIBLTDL@,$LIBLTDL,;t t
25654 s,@INCLTDL@,$INCLTDL,;t t
25655 s,@MODULES@,$MODULES,;t t
25656 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25657 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25658 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25659 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25660 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25661 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25662 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25663 s,@LIBOBJS@,$LIBOBJS,;t t
25664 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25665 CEOF
25666
25667 _ACEOF
25668
25669   cat >>$CONFIG_STATUS <<\_ACEOF
25670   # Split the substitutions into bite-sized pieces for seds with
25671   # small command number limits, like on Digital OSF/1 and HP-UX.
25672   ac_max_sed_lines=48
25673   ac_sed_frag=1 # Number of current file.
25674   ac_beg=1 # First line for current file.
25675   ac_end=$ac_max_sed_lines # Line after last line for current file.
25676   ac_more_lines=:
25677   ac_sed_cmds=
25678   while $ac_more_lines; do
25679     if test $ac_beg -gt 1; then
25680       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25681     else
25682       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25683     fi
25684     if test ! -s $tmp/subs.frag; then
25685       ac_more_lines=false
25686     else
25687       # The purpose of the label and of the branching condition is to
25688       # speed up the sed processing (if there are no `@' at all, there
25689       # is no need to browse any of the substitutions).
25690       # These are the two extra sed commands mentioned above.
25691       (echo ':t
25692   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25693       if test -z "$ac_sed_cmds"; then
25694         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25695       else
25696         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25697       fi
25698       ac_sed_frag=`expr $ac_sed_frag + 1`
25699       ac_beg=$ac_end
25700       ac_end=`expr $ac_end + $ac_max_sed_lines`
25701     fi
25702   done
25703   if test -z "$ac_sed_cmds"; then
25704     ac_sed_cmds=cat
25705   fi
25706 fi # test -n "$CONFIG_FILES"
25707
25708 _ACEOF
25709 cat >>$CONFIG_STATUS <<\_ACEOF
25710 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25711   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25712   case $ac_file in
25713   - | *:- | *:-:* ) # input from stdin
25714         cat >$tmp/stdin
25715         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25716         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25717   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25718         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25719   * )   ac_file_in=$ac_file.in ;;
25720   esac
25721
25722   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25723   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25725          X"$ac_file" : 'X\(//\)[^/]' \| \
25726          X"$ac_file" : 'X\(//\)$' \| \
25727          X"$ac_file" : 'X\(/\)' \| \
25728          .     : '\(.\)' 2>/dev/null ||
25729 echo X"$ac_file" |
25730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25731           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25732           /^X\(\/\/\)$/{ s//\1/; q; }
25733           /^X\(\/\).*/{ s//\1/; q; }
25734           s/.*/./; q'`
25735   { if $as_mkdir_p; then
25736     mkdir -p "$ac_dir"
25737   else
25738     as_dir="$ac_dir"
25739     as_dirs=
25740     while test ! -d "$as_dir"; do
25741       as_dirs="$as_dir $as_dirs"
25742       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25744          X"$as_dir" : 'X\(//\)[^/]' \| \
25745          X"$as_dir" : 'X\(//\)$' \| \
25746          X"$as_dir" : 'X\(/\)' \| \
25747          .     : '\(.\)' 2>/dev/null ||
25748 echo X"$as_dir" |
25749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25751           /^X\(\/\/\)$/{ s//\1/; q; }
25752           /^X\(\/\).*/{ s//\1/; q; }
25753           s/.*/./; q'`
25754     done
25755     test ! -n "$as_dirs" || mkdir $as_dirs
25756   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25757 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25758    { (exit 1); exit 1; }; }; }
25759
25760   ac_builddir=.
25761
25762 if test "$ac_dir" != .; then
25763   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25764   # A "../" for each directory in $ac_dir_suffix.
25765   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25766 else
25767   ac_dir_suffix= ac_top_builddir=
25768 fi
25769
25770 case $srcdir in
25771   .)  # No --srcdir option.  We are building in place.
25772     ac_srcdir=.
25773     if test -z "$ac_top_builddir"; then
25774        ac_top_srcdir=.
25775     else
25776        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25777     fi ;;
25778   [\\/]* | ?:[\\/]* )  # Absolute path.
25779     ac_srcdir=$srcdir$ac_dir_suffix;
25780     ac_top_srcdir=$srcdir ;;
25781   *) # Relative path.
25782     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25783     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25784 esac
25785
25786 # Do not use `cd foo && pwd` to compute absolute paths, because
25787 # the directories may not exist.
25788 case `pwd` in
25789 .) ac_abs_builddir="$ac_dir";;
25790 *)
25791   case "$ac_dir" in
25792   .) ac_abs_builddir=`pwd`;;
25793   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25794   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25795   esac;;
25796 esac
25797 case $ac_abs_builddir in
25798 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25799 *)
25800   case ${ac_top_builddir}. in
25801   .) ac_abs_top_builddir=$ac_abs_builddir;;
25802   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25803   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25804   esac;;
25805 esac
25806 case $ac_abs_builddir in
25807 .) ac_abs_srcdir=$ac_srcdir;;
25808 *)
25809   case $ac_srcdir in
25810   .) ac_abs_srcdir=$ac_abs_builddir;;
25811   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25812   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25813   esac;;
25814 esac
25815 case $ac_abs_builddir in
25816 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25817 *)
25818   case $ac_top_srcdir in
25819   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25820   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25821   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25822   esac;;
25823 esac
25824
25825
25826
25827   # Let's still pretend it is `configure' which instantiates (i.e., don't
25828   # use $as_me), people would be surprised to read:
25829   #    /* config.h.  Generated by config.status.  */
25830   if test x"$ac_file" = x-; then
25831     configure_input=
25832   else
25833     configure_input="$ac_file.  "
25834   fi
25835   configure_input=$configure_input"Generated from `echo $ac_file_in |
25836                                      sed 's,.*/,,'` by configure."
25837
25838   # First look for the input files in the build tree, otherwise in the
25839   # src tree.
25840   ac_file_inputs=`IFS=:
25841     for f in $ac_file_in; do
25842       case $f in
25843       -) echo $tmp/stdin ;;
25844       [\\/$]*)
25845          # Absolute (can't be DOS-style, as IFS=:)
25846          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25847 echo "$as_me: error: cannot find input file: $f" >&2;}
25848    { (exit 1); exit 1; }; }
25849          echo "$f";;
25850       *) # Relative
25851          if test -f "$f"; then
25852            # Build tree
25853            echo "$f"
25854          elif test -f "$srcdir/$f"; then
25855            # Source tree
25856            echo "$srcdir/$f"
25857          else
25858            # /dev/null tree
25859            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25860 echo "$as_me: error: cannot find input file: $f" >&2;}
25861    { (exit 1); exit 1; }; }
25862          fi;;
25863       esac
25864     done` || { (exit 1); exit 1; }
25865
25866   if test x"$ac_file" != x-; then
25867     { echo "$as_me:$LINENO: creating $ac_file" >&5
25868 echo "$as_me: creating $ac_file" >&6;}
25869     rm -f "$ac_file"
25870   fi
25871 _ACEOF
25872 cat >>$CONFIG_STATUS <<_ACEOF
25873   sed "$ac_vpsub
25874 $extrasub
25875 _ACEOF
25876 cat >>$CONFIG_STATUS <<\_ACEOF
25877 :t
25878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25879 s,@configure_input@,$configure_input,;t t
25880 s,@srcdir@,$ac_srcdir,;t t
25881 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25882 s,@top_srcdir@,$ac_top_srcdir,;t t
25883 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25884 s,@builddir@,$ac_builddir,;t t
25885 s,@abs_builddir@,$ac_abs_builddir,;t t
25886 s,@top_builddir@,$ac_top_builddir,;t t
25887 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25888 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25889   rm -f $tmp/stdin
25890   if test x"$ac_file" != x-; then
25891     mv $tmp/out $ac_file
25892   else
25893     cat $tmp/out
25894     rm -f $tmp/out
25895   fi
25896
25897 done
25898 _ACEOF
25899 cat >>$CONFIG_STATUS <<\_ACEOF
25900
25901 #
25902 # CONFIG_HEADER section.
25903 #
25904
25905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25907 #
25908 # ac_d sets the value in "#define NAME VALUE" lines.
25909 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25910 ac_dB='[         ].*$,\1#\2'
25911 ac_dC=' '
25912 ac_dD=',;t'
25913 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25914 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25915 ac_uB='$,\1#\2define\3'
25916 ac_uC=' '
25917 ac_uD=',;t'
25918
25919 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25920   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25921   case $ac_file in
25922   - | *:- | *:-:* ) # input from stdin
25923         cat >$tmp/stdin
25924         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25925         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25926   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25927         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25928   * )   ac_file_in=$ac_file.in ;;
25929   esac
25930
25931   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25932 echo "$as_me: creating $ac_file" >&6;}
25933
25934   # First look for the input files in the build tree, otherwise in the
25935   # src tree.
25936   ac_file_inputs=`IFS=:
25937     for f in $ac_file_in; do
25938       case $f in
25939       -) echo $tmp/stdin ;;
25940       [\\/$]*)
25941          # Absolute (can't be DOS-style, as IFS=:)
25942          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25943 echo "$as_me: error: cannot find input file: $f" >&2;}
25944    { (exit 1); exit 1; }; }
25945          # Do quote $f, to prevent DOS paths from being IFS'd.
25946          echo "$f";;
25947       *) # Relative
25948          if test -f "$f"; then
25949            # Build tree
25950            echo "$f"
25951          elif test -f "$srcdir/$f"; then
25952            # Source tree
25953            echo "$srcdir/$f"
25954          else
25955            # /dev/null tree
25956            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25957 echo "$as_me: error: cannot find input file: $f" >&2;}
25958    { (exit 1); exit 1; }; }
25959          fi;;
25960       esac
25961     done` || { (exit 1); exit 1; }
25962   # Remove the trailing spaces.
25963   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25964
25965 _ACEOF
25966
25967 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25968 # `conftest.undefs', that substitutes the proper values into
25969 # config.h.in to produce config.h.  The first handles `#define'
25970 # templates, and the second `#undef' templates.
25971 # And first: Protect against being on the right side of a sed subst in
25972 # config.status.  Protect against being in an unquoted here document
25973 # in config.status.
25974 rm -f conftest.defines conftest.undefs
25975 # Using a here document instead of a string reduces the quoting nightmare.
25976 # Putting comments in sed scripts is not portable.
25977 #
25978 # `end' is used to avoid that the second main sed command (meant for
25979 # 0-ary CPP macros) applies to n-ary macro definitions.
25980 # See the Autoconf documentation for `clear'.
25981 cat >confdef2sed.sed <<\_ACEOF
25982 s/[\\&,]/\\&/g
25983 s,[\\$`],\\&,g
25984 t clear
25985 : clear
25986 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25987 t end
25988 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25989 : end
25990 _ACEOF
25991 # If some macros were called several times there might be several times
25992 # the same #defines, which is useless.  Nevertheless, we may not want to
25993 # sort them, since we want the *last* AC-DEFINE to be honored.
25994 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25995 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25996 rm -f confdef2sed.sed
25997
25998 # This sed command replaces #undef with comments.  This is necessary, for
25999 # example, in the case of _POSIX_SOURCE, which is predefined and required
26000 # on some systems where configure will not decide to define it.
26001 cat >>conftest.undefs <<\_ACEOF
26002 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26003 _ACEOF
26004
26005 # Break up conftest.defines because some shells have a limit on the size
26006 # of here documents, and old seds have small limits too (100 cmds).
26007 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26008 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26009 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26010 echo '  :' >>$CONFIG_STATUS
26011 rm -f conftest.tail
26012 while grep . conftest.defines >/dev/null
26013 do
26014   # Write a limited-size here document to $tmp/defines.sed.
26015   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26016   # Speed up: don't consider the non `#define' lines.
26017   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26018   # Work around the forget-to-reset-the-flag bug.
26019   echo 't clr' >>$CONFIG_STATUS
26020   echo ': clr' >>$CONFIG_STATUS
26021   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26022   echo 'CEOF
26023   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26024   rm -f $tmp/in
26025   mv $tmp/out $tmp/in
26026 ' >>$CONFIG_STATUS
26027   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26028   rm -f conftest.defines
26029   mv conftest.tail conftest.defines
26030 done
26031 rm -f conftest.defines
26032 echo '  fi # grep' >>$CONFIG_STATUS
26033 echo >>$CONFIG_STATUS
26034
26035 # Break up conftest.undefs because some shells have a limit on the size
26036 # of here documents, and old seds have small limits too (100 cmds).
26037 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26038 rm -f conftest.tail
26039 while grep . conftest.undefs >/dev/null
26040 do
26041   # Write a limited-size here document to $tmp/undefs.sed.
26042   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26043   # Speed up: don't consider the non `#undef'
26044   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26045   # Work around the forget-to-reset-the-flag bug.
26046   echo 't clr' >>$CONFIG_STATUS
26047   echo ': clr' >>$CONFIG_STATUS
26048   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26049   echo 'CEOF
26050   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26051   rm -f $tmp/in
26052   mv $tmp/out $tmp/in
26053 ' >>$CONFIG_STATUS
26054   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26055   rm -f conftest.undefs
26056   mv conftest.tail conftest.undefs
26057 done
26058 rm -f conftest.undefs
26059
26060 cat >>$CONFIG_STATUS <<\_ACEOF
26061   # Let's still pretend it is `configure' which instantiates (i.e., don't
26062   # use $as_me), people would be surprised to read:
26063   #    /* config.h.  Generated by config.status.  */
26064   if test x"$ac_file" = x-; then
26065     echo "/* Generated by configure.  */" >$tmp/config.h
26066   else
26067     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26068   fi
26069   cat $tmp/in >>$tmp/config.h
26070   rm -f $tmp/in
26071   if test x"$ac_file" != x-; then
26072     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26073       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26074 echo "$as_me: $ac_file is unchanged" >&6;}
26075     else
26076       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26078          X"$ac_file" : 'X\(//\)[^/]' \| \
26079          X"$ac_file" : 'X\(//\)$' \| \
26080          X"$ac_file" : 'X\(/\)' \| \
26081          .     : '\(.\)' 2>/dev/null ||
26082 echo X"$ac_file" |
26083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26085           /^X\(\/\/\)$/{ s//\1/; q; }
26086           /^X\(\/\).*/{ s//\1/; q; }
26087           s/.*/./; q'`
26088       { if $as_mkdir_p; then
26089     mkdir -p "$ac_dir"
26090   else
26091     as_dir="$ac_dir"
26092     as_dirs=
26093     while test ! -d "$as_dir"; do
26094       as_dirs="$as_dir $as_dirs"
26095       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26097          X"$as_dir" : 'X\(//\)[^/]' \| \
26098          X"$as_dir" : 'X\(//\)$' \| \
26099          X"$as_dir" : 'X\(/\)' \| \
26100          .     : '\(.\)' 2>/dev/null ||
26101 echo X"$as_dir" |
26102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26104           /^X\(\/\/\)$/{ s//\1/; q; }
26105           /^X\(\/\).*/{ s//\1/; q; }
26106           s/.*/./; q'`
26107     done
26108     test ! -n "$as_dirs" || mkdir $as_dirs
26109   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26111    { (exit 1); exit 1; }; }; }
26112
26113       rm -f $ac_file
26114       mv $tmp/config.h $ac_file
26115     fi
26116   else
26117     cat $tmp/config.h
26118     rm -f $tmp/config.h
26119   fi
26120 done
26121 _ACEOF
26122 cat >>$CONFIG_STATUS <<\_ACEOF
26123
26124 #
26125 # CONFIG_COMMANDS section.
26126 #
26127 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26128   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26129   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26130   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26131 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26132          X"$ac_dest" : 'X\(//\)[^/]' \| \
26133          X"$ac_dest" : 'X\(//\)$' \| \
26134          X"$ac_dest" : 'X\(/\)' \| \
26135          .     : '\(.\)' 2>/dev/null ||
26136 echo X"$ac_dest" |
26137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26139           /^X\(\/\/\)$/{ s//\1/; q; }
26140           /^X\(\/\).*/{ s//\1/; q; }
26141           s/.*/./; q'`
26142   { if $as_mkdir_p; then
26143     mkdir -p "$ac_dir"
26144   else
26145     as_dir="$ac_dir"
26146     as_dirs=
26147     while test ! -d "$as_dir"; do
26148       as_dirs="$as_dir $as_dirs"
26149       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26151          X"$as_dir" : 'X\(//\)[^/]' \| \
26152          X"$as_dir" : 'X\(//\)$' \| \
26153          X"$as_dir" : 'X\(/\)' \| \
26154          .     : '\(.\)' 2>/dev/null ||
26155 echo X"$as_dir" |
26156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26158           /^X\(\/\/\)$/{ s//\1/; q; }
26159           /^X\(\/\).*/{ s//\1/; q; }
26160           s/.*/./; q'`
26161     done
26162     test ! -n "$as_dirs" || mkdir $as_dirs
26163   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26165    { (exit 1); exit 1; }; }; }
26166
26167   ac_builddir=.
26168
26169 if test "$ac_dir" != .; then
26170   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26171   # A "../" for each directory in $ac_dir_suffix.
26172   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26173 else
26174   ac_dir_suffix= ac_top_builddir=
26175 fi
26176
26177 case $srcdir in
26178   .)  # No --srcdir option.  We are building in place.
26179     ac_srcdir=.
26180     if test -z "$ac_top_builddir"; then
26181        ac_top_srcdir=.
26182     else
26183        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26184     fi ;;
26185   [\\/]* | ?:[\\/]* )  # Absolute path.
26186     ac_srcdir=$srcdir$ac_dir_suffix;
26187     ac_top_srcdir=$srcdir ;;
26188   *) # Relative path.
26189     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26190     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26191 esac
26192
26193 # Do not use `cd foo && pwd` to compute absolute paths, because
26194 # the directories may not exist.
26195 case `pwd` in
26196 .) ac_abs_builddir="$ac_dir";;
26197 *)
26198   case "$ac_dir" in
26199   .) ac_abs_builddir=`pwd`;;
26200   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26201   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26202   esac;;
26203 esac
26204 case $ac_abs_builddir in
26205 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26206 *)
26207   case ${ac_top_builddir}. in
26208   .) ac_abs_top_builddir=$ac_abs_builddir;;
26209   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26210   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26211   esac;;
26212 esac
26213 case $ac_abs_builddir in
26214 .) ac_abs_srcdir=$ac_srcdir;;
26215 *)
26216   case $ac_srcdir in
26217   .) ac_abs_srcdir=$ac_abs_builddir;;
26218   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26219   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26220   esac;;
26221 esac
26222 case $ac_abs_builddir in
26223 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26224 *)
26225   case $ac_top_srcdir in
26226   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26227   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26228   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26229   esac;;
26230 esac
26231
26232
26233   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26234 echo "$as_me: executing $ac_dest commands" >&6;}
26235   case $ac_dest in
26236     stamp-h ) echo timestamp > src/include/stamp-h ;;
26237     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26238     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26239     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26240   esac
26241 done
26242 _ACEOF
26243
26244 cat >>$CONFIG_STATUS <<\_ACEOF
26245
26246 { (exit 0); exit 0; }
26247 _ACEOF
26248 chmod +x $CONFIG_STATUS
26249 ac_clean_files=$ac_clean_files_save
26250
26251
26252 # configure is writing to config.log, and then calls config.status.
26253 # config.status does its own redirection, appending to config.log.
26254 # Unfortunately, on DOS this fails, as config.log is still kept open
26255 # by configure, so config.status won't be able to write to it; its
26256 # output is simply discarded.  So we exec the FD to /dev/null,
26257 # effectively closing config.log, so it can be properly (re)opened and
26258 # appended to by config.status.  When coming back to configure, we
26259 # need to make the FD available again.
26260 if test "$no_create" != yes; then
26261   ac_cs_success=:
26262   ac_config_status_args=
26263   test "$silent" = yes &&
26264     ac_config_status_args="$ac_config_status_args --quiet"
26265   exec 5>/dev/null
26266   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26267   exec 5>>config.log
26268   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26269   # would make configure fail if this is the last instruction.
26270   $ac_cs_success || { (exit 1); exit 1; }
26271 fi
26272
26273 #
26274 # CONFIG_SUBDIRS section.
26275 #
26276 if test "$no_recursion" != yes; then
26277
26278   # Remove --cache-file and --srcdir arguments so they do not pile up.
26279   ac_sub_configure_args=
26280   ac_prev=
26281   for ac_arg in $ac_configure_args; do
26282     if test -n "$ac_prev"; then
26283       ac_prev=
26284       continue
26285     fi
26286     case $ac_arg in
26287     -cache-file | --cache-file | --cache-fil | --cache-fi \
26288     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26289       ac_prev=cache_file ;;
26290     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26291     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26292     | --c=*)
26293       ;;
26294     --config-cache | -C)
26295       ;;
26296     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26297       ac_prev=srcdir ;;
26298     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26299       ;;
26300     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26301       ac_prev=prefix ;;
26302     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26303       ;;
26304     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26305     esac
26306   done
26307
26308   # Always prepend --prefix to ensure using the same prefix
26309   # in subdir configurations.
26310   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26311
26312   ac_popdir=`pwd`
26313   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26314
26315     # Do not complain, so a configure script can configure whichever
26316     # parts of a large source tree are present.
26317     test -d $srcdir/$ac_dir || continue
26318
26319     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26320 echo "$as_me: configuring in $ac_dir" >&6;}
26321     { if $as_mkdir_p; then
26322     mkdir -p "$ac_dir"
26323   else
26324     as_dir="$ac_dir"
26325     as_dirs=
26326     while test ! -d "$as_dir"; do
26327       as_dirs="$as_dir $as_dirs"
26328       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26330          X"$as_dir" : 'X\(//\)[^/]' \| \
26331          X"$as_dir" : 'X\(//\)$' \| \
26332          X"$as_dir" : 'X\(/\)' \| \
26333          .     : '\(.\)' 2>/dev/null ||
26334 echo X"$as_dir" |
26335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26336           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26337           /^X\(\/\/\)$/{ s//\1/; q; }
26338           /^X\(\/\).*/{ s//\1/; q; }
26339           s/.*/./; q'`
26340     done
26341     test ! -n "$as_dirs" || mkdir $as_dirs
26342   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26343 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26344    { (exit 1); exit 1; }; }; }
26345
26346     ac_builddir=.
26347
26348 if test "$ac_dir" != .; then
26349   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26350   # A "../" for each directory in $ac_dir_suffix.
26351   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26352 else
26353   ac_dir_suffix= ac_top_builddir=
26354 fi
26355
26356 case $srcdir in
26357   .)  # No --srcdir option.  We are building in place.
26358     ac_srcdir=.
26359     if test -z "$ac_top_builddir"; then
26360        ac_top_srcdir=.
26361     else
26362        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26363     fi ;;
26364   [\\/]* | ?:[\\/]* )  # Absolute path.
26365     ac_srcdir=$srcdir$ac_dir_suffix;
26366     ac_top_srcdir=$srcdir ;;
26367   *) # Relative path.
26368     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26369     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26370 esac
26371
26372 # Do not use `cd foo && pwd` to compute absolute paths, because
26373 # the directories may not exist.
26374 case `pwd` in
26375 .) ac_abs_builddir="$ac_dir";;
26376 *)
26377   case "$ac_dir" in
26378   .) ac_abs_builddir=`pwd`;;
26379   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26380   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26381   esac;;
26382 esac
26383 case $ac_abs_builddir in
26384 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26385 *)
26386   case ${ac_top_builddir}. in
26387   .) ac_abs_top_builddir=$ac_abs_builddir;;
26388   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26389   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26390   esac;;
26391 esac
26392 case $ac_abs_builddir in
26393 .) ac_abs_srcdir=$ac_srcdir;;
26394 *)
26395   case $ac_srcdir in
26396   .) ac_abs_srcdir=$ac_abs_builddir;;
26397   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26398   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26399   esac;;
26400 esac
26401 case $ac_abs_builddir in
26402 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26403 *)
26404   case $ac_top_srcdir in
26405   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26406   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26407   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26408   esac;;
26409 esac
26410
26411
26412     cd $ac_dir
26413
26414     # Check for guested configure; otherwise get Cygnus style configure.
26415     if test -f $ac_srcdir/configure.gnu; then
26416       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26417     elif test -f $ac_srcdir/configure; then
26418       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26419     elif test -f $ac_srcdir/configure.in; then
26420       ac_sub_configure=$ac_configure
26421     else
26422       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26423 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26424       ac_sub_configure=
26425     fi
26426
26427     # The recursion is here.
26428     if test -n "$ac_sub_configure"; then
26429       # Make the cache file name correct relative to the subdirectory.
26430       case $cache_file in
26431       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26432       *) # Relative path.
26433         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26434       esac
26435
26436       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26437 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26438       # The eval makes quoting arguments work.
26439       eval $ac_sub_configure $ac_sub_configure_args \
26440            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26441         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26442 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26443    { (exit 1); exit 1; }; }
26444     fi
26445
26446     cd "$ac_popdir"
26447   done
26448 fi
26449