Rerun autoconf after acinlude.m4 1.27 "use ucd-snmp-config.h with ucd-snmp"
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.205 .
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 GETCONF LFS_CFLAGS LFS_LDFLAGS LFS_LIBS 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   --enable-shared[=PKGS]
1025                           build shared libraries [default=yes]
1026   --enable-static[=PKGS]
1027                           build static libraries [default=yes]
1028   --enable-fast-install[=PKGS]
1029                           optimize for fast installation [default=yes]
1030   --disable-libtool-lock  avoid locking (might break parallel builds)
1031   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1032   --enable-developer               Enables features of interest to developers.
1033
1034 Optional Packages:
1035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1037   --with-system-libtool              try to use libtool installed in your system default=use our own
1038   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039   --with-pic              try to use only PIC/non-PIC objects [default=use
1040                           both]
1041   --with-tags[=TAGS]
1042                           include additional configurations [automatic]
1043   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1044   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1045   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1046   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1047   --with-threads          Use threads, if available.  (default=yes)
1048   --with-snmp             Compile in SNMP support. (default=yes)
1049   --with-large-files      Compile in large (2G+) file support. (default=no)
1050   --with-static-modules=QUOTED-MODULE-LIST
1051   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1052   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1053   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1054   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1055   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1056   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1057
1058 Some influential environment variables:
1059   CC          C compiler command
1060   CFLAGS      C compiler flags
1061   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1062               nonstandard directory <lib dir>
1063   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064               headers in a nonstandard directory <include dir>
1065   CPP         C preprocessor
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CXXCPP      C++ preprocessor
1069   F77         Fortran 77 compiler command
1070   FFLAGS      Fortran 77 compiler flags
1071
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1074
1075 _ACEOF
1076 fi
1077
1078 if test "$ac_init_help" = "recursive"; then
1079   # If there are subdirs, report their specific --help.
1080   ac_popdir=`pwd`
1081   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082     test -d $ac_dir || continue
1083     ac_builddir=.
1084
1085 if test "$ac_dir" != .; then
1086   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087   # A "../" for each directory in $ac_dir_suffix.
1088   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 else
1090   ac_dir_suffix= ac_top_builddir=
1091 fi
1092
1093 case $srcdir in
1094   .)  # No --srcdir option.  We are building in place.
1095     ac_srcdir=.
1096     if test -z "$ac_top_builddir"; then
1097        ac_top_srcdir=.
1098     else
1099        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100     fi ;;
1101   [\\/]* | ?:[\\/]* )  # Absolute path.
1102     ac_srcdir=$srcdir$ac_dir_suffix;
1103     ac_top_srcdir=$srcdir ;;
1104   *) # Relative path.
1105     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 esac
1108
1109 # Do not use `cd foo && pwd` to compute absolute paths, because
1110 # the directories may not exist.
1111 case `pwd` in
1112 .) ac_abs_builddir="$ac_dir";;
1113 *)
1114   case "$ac_dir" in
1115   .) ac_abs_builddir=`pwd`;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *)
1123   case ${ac_top_builddir}. in
1124   .) ac_abs_top_builddir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_srcdir=$ac_srcdir;;
1131 *)
1132   case $ac_srcdir in
1133   .) ac_abs_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *)
1141   case $ac_top_srcdir in
1142   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145   esac;;
1146 esac
1147
1148     cd $ac_dir
1149     # Check for guested configure; otherwise get Cygnus style configure.
1150     if test -f $ac_srcdir/configure.gnu; then
1151       echo
1152       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1153     elif test -f $ac_srcdir/configure; then
1154       echo
1155       $SHELL $ac_srcdir/configure  --help=recursive
1156     elif test -f $ac_srcdir/configure.ac ||
1157            test -f $ac_srcdir/configure.in; then
1158       echo
1159       $ac_configure --help
1160     else
1161       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162     fi
1163     cd "$ac_popdir"
1164   done
1165 fi
1166
1167 test -n "$ac_init_help" && exit 0
1168 if $ac_init_version; then
1169   cat <<\_ACEOF
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by $as_me, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1511
1512
1513 RADIUSD_MAJOR_VERSION=1
1514 RADIUSD_MINOR_VERSION=1.0-pre0
1515 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1516
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$CC"; then
1532   ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537   IFS=$as_save_IFS
1538   test -z "$as_dir" && as_dir=.
1539   for ac_exec_ext in '' $ac_executable_extensions; do
1540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543     break 2
1544   fi
1545 done
1546 done
1547
1548 fi
1549 fi
1550 CC=$ac_cv_prog_CC
1551 if test -n "$CC"; then
1552   echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 fi
1560 if test -z "$ac_cv_prog_CC"; then
1561   ac_ct_CC=$CC
1562   # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$ac_ct_CC"; then
1570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_ac_ct_CC="gcc"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597   CC=$ac_ct_CC
1598 else
1599   CC="$ac_cv_prog_CC"
1600 fi
1601
1602 if test -z "$CC"; then
1603   if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}cc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="cc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684   # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694   ac_prog_rejected=no
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703        ac_prog_rejected=yes
1704        continue
1705      fi
1706     ac_cv_prog_CC="cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 if test $ac_prog_rejected = yes; then
1714   # We found a bogon in the path, so make sure we never use it.
1715   set dummy $ac_cv_prog_CC
1716   shift
1717   if test $# != 0; then
1718     # We chose a different compiler from the bogus one.
1719     # However, it has the same basename, so the bogon will be chosen
1720     # first if we set CC to just the basename; use the full file name.
1721     shift
1722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1723   fi
1724 fi
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729   echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 fi
1737 if test -z "$CC"; then
1738   if test -n "$ac_tool_prefix"; then
1739   for ac_prog in cl
1740   do
1741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776     test -n "$CC" && break
1777   done
1778 fi
1779 if test -z "$CC"; then
1780   ac_ct_CC=$CC
1781   for ac_prog in cl
1782 do
1783   # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_CC"; then
1791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_CC="$ac_prog"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   test -n "$ac_ct_CC" && break
1819 done
1820
1821   CC=$ac_ct_CC
1822 fi
1823
1824 fi
1825
1826
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835      "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838   (eval $ac_compiler --version </dev/null >&5) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843   (eval $ac_compiler -v </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848   (eval $ac_compiler -V </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852
1853 cat >conftest.$ac_ext <<_ACEOF
1854 /* confdefs.h.  */
1855 _ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h.  */
1859
1860 int
1861 main ()
1862 {
1863
1864   ;
1865   return 0;
1866 }
1867 _ACEOF
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1872 # of exeext.
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877   (eval $ac_link_default) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; then
1881   # Find the output, starting from the most likely.  This scheme is
1882 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1883 # resort.
1884
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1887 ac_cv_exeext=
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1890 do
1891   test -f "$ac_file" || continue
1892   case $ac_file in
1893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1894         ;;
1895     conftest.$ac_ext )
1896         # This is the source file.
1897         ;;
1898     [ab].out )
1899         # We found the default executable, but exeext='' is most
1900         # certainly right.
1901         break;;
1902     *.* )
1903         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904         # FIXME: I believe we export ac_cv_exeext for Libtool,
1905         # but it would be cool to find out if it's true.  Does anybody
1906         # maintain Libtool? --akim.
1907         export ac_cv_exeext
1908         break;;
1909     * )
1910         break;;
1911   esac
1912 done
1913 else
1914   echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&2;}
1921    { (exit 77); exit 77; }; }
1922 fi
1923
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1927
1928 # Check the compiler produces executables we can run.  If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1931 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935   if { ac_try='./$ac_file'
1936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937   (eval $ac_try) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; }; then
1941     cross_compiling=no
1942   else
1943     if test "$cross_compiling" = maybe; then
1944         cross_compiling=yes
1945     else
1946         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&2;}
1952    { (exit 1); exit 1; }; }
1953     fi
1954   fi
1955 fi
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1958
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run.  If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1967
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971   (eval $ac_link) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }; then
1975   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1978 # `rm'.
1979 for ac_file in conftest.exe conftest conftest.*; do
1980   test -f "$ac_file" || continue
1981   case $ac_file in
1982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1983     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1984           export ac_cv_exeext
1985           break;;
1986     * ) break;;
1987   esac
1988 done
1989 else
1990   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2000
2001 rm -f conftest.$ac_ext
2002 EXEEXT=$ac_cv_exeext
2003 ac_exeext=$EXEEXT
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   cat >conftest.$ac_ext <<_ACEOF
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026   (eval $ac_compile) 2>&5
2027   ac_status=$?
2028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029   (exit $ac_status); }; then
2030   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2031   case $ac_file in
2032     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2033     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034        break;;
2035   esac
2036 done
2037 else
2038   echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045    { (exit 1); exit 1; }; }
2046 fi
2047
2048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT=$ac_cv_objext
2053 ac_objext=$OBJEXT
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   cat >conftest.$ac_ext <<_ACEOF
2060 /* confdefs.h.  */
2061 _ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h.  */
2065
2066 int
2067 main ()
2068 {
2069 #ifndef __GNUC__
2070        choke me
2071 #endif
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079   (eval $ac_compile) 2>conftest.er1
2080   ac_status=$?
2081   grep -v '^ *+' conftest.er1 >conftest.err
2082   rm -f conftest.er1
2083   cat conftest.err >&5
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; } &&
2092          { ac_try='test -s conftest.$ac_objext'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; }; then
2098   ac_compiler_gnu=yes
2099 else
2100   echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_compiler_gnu=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2107
2108 fi
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS=${CFLAGS+set}
2113 ac_save_CFLAGS=$CFLAGS
2114 CFLAGS="-g"
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>conftest.er1
2138   ac_status=$?
2139   grep -v '^ *+' conftest.er1 >conftest.err
2140   rm -f conftest.er1
2141   cat conftest.err >&5
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); } &&
2144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146   (eval $ac_try) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; } &&
2150          { ac_try='test -s conftest.$ac_objext'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; }; then
2156   ac_cv_prog_cc_g=yes
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_cv_prog_cc_g=no
2162 fi
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168   CFLAGS=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170   if test "$GCC" = yes; then
2171     CFLAGS="-g -O2"
2172   else
2173     CFLAGS="-g"
2174   fi
2175 else
2176   if test "$GCC" = yes; then
2177     CFLAGS="-O2"
2178   else
2179     CFLAGS=
2180   fi
2181 fi
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   ac_cv_prog_cc_stdc=no
2188 ac_save_CC=$CC
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195 #include <stdarg.h>
2196 #include <stdio.h>
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2203      char **p;
2204      int i;
2205 {
2206   return p[i];
2207 }
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2209 {
2210   char *s;
2211   va_list v;
2212   va_start (v,p);
2213   s = g (p, va_arg (v,int));
2214   va_end (v);
2215   return s;
2216 }
2217
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2219    function prototypes and stuff, but not '\xHH' hex character constants.
2220    These don't provoke an error unfortunately, instead are silently treated
2221    as 'x'.  The following induces an error, until -std1 is added to get
2222    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2223    array size at least.  It's necessary to write '\x00'==0 to get something
2224    that's true only with -std1.  */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2226
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2231 int argc;
2232 char **argv;
2233 int
2234 main ()
2235 {
2236 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX                   -qlanglvl=ansi
2244 # Ultrix and OSF/1      -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2247 # SVR4                  -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2249 do
2250   CC="$ac_save_CC $ac_arg"
2251   rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253   (eval $ac_compile) 2>conftest.er1
2254   ac_status=$?
2255   grep -v '^ *+' conftest.er1 >conftest.err
2256   rm -f conftest.er1
2257   cat conftest.err >&5
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); } &&
2260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   ac_cv_prog_cc_stdc=$ac_arg
2273 break
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext
2280 done
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2282 CC=$ac_save_CC
2283
2284 fi
2285
2286 case "x$ac_cv_prog_cc_stdc" in
2287   x|xno)
2288     echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2290   *)
2291     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293     CC="$CC $ac_cv_prog_cc_stdc" ;;
2294 esac
2295
2296 # Some people use a C++ compiler to compile C.  Since we use `exit',
2297 # in C++ we need to declare it.  In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #ifndef __cplusplus
2302   choke me
2303 #endif
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   for ac_declaration in \
2327    '' \
2328    'extern "C" void std::exit (int) throw (); using std::exit;' \
2329    'extern "C" void std::exit (int); using std::exit;' \
2330    'extern "C" void exit (int) throw ();' \
2331    'extern "C" void exit (int);' \
2332    'void exit (int);'
2333 do
2334   cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 $ac_declaration
2341 #include <stdlib.h>
2342 int
2343 main ()
2344 {
2345 exit (42);
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352   (eval $ac_compile) 2>conftest.er1
2353   ac_status=$?
2354   grep -v '^ *+' conftest.er1 >conftest.err
2355   rm -f conftest.er1
2356   cat conftest.err >&5
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); } &&
2359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361   (eval $ac_try) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }; } &&
2365          { ac_try='test -s conftest.$ac_objext'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; }; then
2371   :
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 continue
2377 fi
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379   cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385 $ac_declaration
2386 int
2387 main ()
2388 {
2389 exit (42);
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>conftest.er1
2397   ac_status=$?
2398   grep -v '^ *+' conftest.er1 >conftest.err
2399   rm -f conftest.er1
2400   cat conftest.err >&5
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; } &&
2409          { ac_try='test -s conftest.$ac_objext'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   break
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 fi
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422 done
2423 rm -f conftest*
2424 if test -n "$ac_declaration"; then
2425   echo '#ifdef __cplusplus' >>confdefs.h
2426   echo $ac_declaration      >>confdefs.h
2427   echo '#endif'             >>confdefs.h
2428 fi
2429
2430 else
2431   echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 fi
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2450 # On Suns, sometimes $CPP names a directory.
2451 if test -n "$CPP" && test -d "$CPP"; then
2452   CPP=
2453 fi
2454 if test -z "$CPP"; then
2455   if test "${ac_cv_prog_CPP+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458       # Double quotes because CPP needs to be expanded
2459     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2460     do
2461       ac_preproc_ok=false
2462 for ac_c_preproc_warn_flag in '' yes
2463 do
2464   # Use a header file that comes with gcc, so configuring glibc
2465   # with a fresh cross-compiler works.
2466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467   # <limits.h> exists even on freestanding compilers.
2468   # On the NeXT, cc -E runs the code through the compiler's parser,
2469   # not just through cpp. "Syntax error" is here to catch this case.
2470   cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476 #ifdef __STDC__
2477 # include <limits.h>
2478 #else
2479 # include <assert.h>
2480 #endif
2481                      Syntax error
2482 _ACEOF
2483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2485   ac_status=$?
2486   grep -v '^ *+' conftest.er1 >conftest.err
2487   rm -f conftest.er1
2488   cat conftest.err >&5
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); } >/dev/null; then
2491   if test -s conftest.err; then
2492     ac_cpp_err=$ac_c_preproc_warn_flag
2493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2494   else
2495     ac_cpp_err=
2496   fi
2497 else
2498   ac_cpp_err=yes
2499 fi
2500 if test -z "$ac_cpp_err"; then
2501   :
2502 else
2503   echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506   # Broken: fails on valid input.
2507 continue
2508 fi
2509 rm -f conftest.err conftest.$ac_ext
2510
2511   # OK, works on sane cases.  Now check whether non-existent headers
2512   # can be detected and how.
2513   cat >conftest.$ac_ext <<_ACEOF
2514 /* confdefs.h.  */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h.  */
2519 #include <ac_nonexistent.h>
2520 _ACEOF
2521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } >/dev/null; then
2529   if test -s conftest.err; then
2530     ac_cpp_err=$ac_c_preproc_warn_flag
2531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2532   else
2533     ac_cpp_err=
2534   fi
2535 else
2536   ac_cpp_err=yes
2537 fi
2538 if test -z "$ac_cpp_err"; then
2539   # Broken: success on invalid input.
2540 continue
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545   # Passes both tests.
2546 ac_preproc_ok=:
2547 break
2548 fi
2549 rm -f conftest.err conftest.$ac_ext
2550
2551 done
2552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2553 rm -f conftest.err conftest.$ac_ext
2554 if $ac_preproc_ok; then
2555   break
2556 fi
2557
2558     done
2559     ac_cv_prog_CPP=$CPP
2560
2561 fi
2562   CPP=$ac_cv_prog_CPP
2563 else
2564   ac_cv_prog_CPP=$CPP
2565 fi
2566 echo "$as_me:$LINENO: result: $CPP" >&5
2567 echo "${ECHO_T}$CPP" >&6
2568 ac_preproc_ok=false
2569 for ac_c_preproc_warn_flag in '' yes
2570 do
2571   # Use a header file that comes with gcc, so configuring glibc
2572   # with a fresh cross-compiler works.
2573   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2574   # <limits.h> exists even on freestanding compilers.
2575   # On the NeXT, cc -E runs the code through the compiler's parser,
2576   # not just through cpp. "Syntax error" is here to catch this case.
2577   cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583 #ifdef __STDC__
2584 # include <limits.h>
2585 #else
2586 # include <assert.h>
2587 #endif
2588                      Syntax error
2589 _ACEOF
2590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } >/dev/null; then
2598   if test -s conftest.err; then
2599     ac_cpp_err=$ac_c_preproc_warn_flag
2600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2601   else
2602     ac_cpp_err=
2603   fi
2604 else
2605   ac_cpp_err=yes
2606 fi
2607 if test -z "$ac_cpp_err"; then
2608   :
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613   # Broken: fails on valid input.
2614 continue
2615 fi
2616 rm -f conftest.err conftest.$ac_ext
2617
2618   # OK, works on sane cases.  Now check whether non-existent headers
2619   # can be detected and how.
2620   cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h.  */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h.  */
2626 #include <ac_nonexistent.h>
2627 _ACEOF
2628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2630   ac_status=$?
2631   grep -v '^ *+' conftest.er1 >conftest.err
2632   rm -f conftest.er1
2633   cat conftest.err >&5
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } >/dev/null; then
2636   if test -s conftest.err; then
2637     ac_cpp_err=$ac_c_preproc_warn_flag
2638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2639   else
2640     ac_cpp_err=
2641   fi
2642 else
2643   ac_cpp_err=yes
2644 fi
2645 if test -z "$ac_cpp_err"; then
2646   # Broken: success on invalid input.
2647 continue
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652   # Passes both tests.
2653 ac_preproc_ok=:
2654 break
2655 fi
2656 rm -f conftest.err conftest.$ac_ext
2657
2658 done
2659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2660 rm -f conftest.err conftest.$ac_ext
2661 if $ac_preproc_ok; then
2662   :
2663 else
2664   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2667 See \`config.log' for more details." >&2;}
2668    { (exit 1); exit 1; }; }
2669 fi
2670
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676
2677
2678 echo "$as_me:$LINENO: checking for egrep" >&5
2679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2680 if test "${ac_cv_prog_egrep+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2684     then ac_cv_prog_egrep='grep -E'
2685     else ac_cv_prog_egrep='egrep'
2686     fi
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2690  EGREP=$ac_cv_prog_egrep
2691
2692
2693 if test $ac_cv_c_compiler_gnu = yes; then
2694     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2695 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2696 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699     ac_pattern="Autoconf.*'x'"
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 #include <sgtty.h>
2707 Autoconf TIOCGETP
2708 _ACEOF
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2711   ac_cv_prog_gcc_traditional=yes
2712 else
2713   ac_cv_prog_gcc_traditional=no
2714 fi
2715 rm -f conftest*
2716
2717
2718   if test $ac_cv_prog_gcc_traditional = no; then
2719     cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h.  */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h.  */
2725 #include <termio.h>
2726 Autoconf TCGETA
2727 _ACEOF
2728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2729   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2730   ac_cv_prog_gcc_traditional=yes
2731 fi
2732 rm -f conftest*
2733
2734   fi
2735 fi
2736 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2737 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2738   if test $ac_cv_prog_gcc_traditional = yes; then
2739     CC="$CC -traditional"
2740   fi
2741 fi
2742
2743 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2744 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2745 if test "${ac_cv_prog_suncc+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   cat > conftest.c <<EOF
2749 #ifdef __SUNPRO_C
2750   yes;
2751 #endif
2752 EOF
2753 if { ac_try='${CC-cc} -E conftest.c'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2759   ac_cv_prog_suncc=yes
2760 else
2761   ac_cv_prog_suncc=no
2762 fi
2763 fi
2764 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2765 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2766 if test -n "$ac_tool_prefix"; then
2767   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_RANLIB+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$RANLIB"; then
2775   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790
2791 fi
2792 fi
2793 RANLIB=$ac_cv_prog_RANLIB
2794 if test -n "$RANLIB"; then
2795   echo "$as_me:$LINENO: result: $RANLIB" >&5
2796 echo "${ECHO_T}$RANLIB" >&6
2797 else
2798   echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2800 fi
2801
2802 fi
2803 if test -z "$ac_cv_prog_RANLIB"; then
2804   ac_ct_RANLIB=$RANLIB
2805   # Extract the first word of "ranlib", so it can be a program name with args.
2806 set dummy ranlib; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   if test -n "$ac_ct_RANLIB"; then
2813   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820   for ac_exec_ext in '' $ac_executable_extensions; do
2821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822     ac_cv_prog_ac_ct_RANLIB="ranlib"
2823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827 done
2828
2829   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2830 fi
2831 fi
2832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2833 if test -n "$ac_ct_RANLIB"; then
2834   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2835 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2836 else
2837   echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841   RANLIB=$ac_ct_RANLIB
2842 else
2843   RANLIB="$ac_cv_prog_RANLIB"
2844 fi
2845
2846
2847 abs_top_builddir=`pwd`
2848
2849
2850
2851 PACKAGE=freeradius
2852
2853
2854 echo "$as_me:$LINENO: checking for AIX" >&5
2855 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2856 cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862 #ifdef _AIX
2863   yes
2864 #endif
2865
2866 _ACEOF
2867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868   $EGREP "yes" >/dev/null 2>&1; then
2869   echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6
2871 cat >>confdefs.h <<\_ACEOF
2872 #define _ALL_SOURCE 1
2873 _ACEOF
2874
2875 else
2876   echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2878 fi
2879 rm -f conftest*
2880
2881
2882
2883 # Extract the first word of "gmake", so it can be a program name with args.
2884 set dummy gmake; ac_word=$2
2885 echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887 if test "${ac_cv_prog_GMAKE+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   if test -n "$GMAKE"; then
2891   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898   for ac_exec_ext in '' $ac_executable_extensions; do
2899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900     ac_cv_prog_GMAKE="yes"
2901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902     break 2
2903   fi
2904 done
2905 done
2906
2907   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
2908 fi
2909 fi
2910 GMAKE=$ac_cv_prog_GMAKE
2911 if test -n "$GMAKE"; then
2912   echo "$as_me:$LINENO: result: $GMAKE" >&5
2913 echo "${ECHO_T}$GMAKE" >&6
2914 else
2915   echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2917 fi
2918
2919 if test $GMAKE = no; then
2920   # Extract the first word of "make", so it can be a program name with args.
2921 set dummy make; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_path_MAKE+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   case $MAKE in
2928   [\\/]* | ?:[\\/]*)
2929   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2930   ;;
2931   *)
2932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937   for ac_exec_ext in '' $ac_executable_extensions; do
2938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944 done
2945
2946   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
2947   ;;
2948 esac
2949 fi
2950 MAKE=$ac_cv_path_MAKE
2951
2952 if test -n "$MAKE"; then
2953   echo "$as_me:$LINENO: result: $MAKE" >&5
2954 echo "${ECHO_T}$MAKE" >&6
2955 else
2956   echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2958 fi
2959
2960 else
2961   # Extract the first word of "gmake", so it can be a program name with args.
2962 set dummy gmake; ac_word=$2
2963 echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965 if test "${ac_cv_path_MAKE+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   case $MAKE in
2969   [\\/]* | ?:[\\/]*)
2970   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2971   ;;
2972   *)
2973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978   for ac_exec_ext in '' $ac_executable_extensions; do
2979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985 done
2986
2987   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
2988   ;;
2989 esac
2990 fi
2991 MAKE=$ac_cv_path_MAKE
2992
2993 if test -n "$MAKE"; then
2994   echo "$as_me:$LINENO: result: $MAKE" >&5
2995 echo "${ECHO_T}$MAKE" >&6
2996 else
2997   echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6
2999 fi
3000
3001 fi
3002 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3003 if test -z "$makever"; then
3004   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3005                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3006 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3007                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3008    { (exit 1); exit 1; }; }
3009 fi
3010
3011   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3012 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3013 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   ac_check_lib_save_LIBS=$LIBS
3017 LIBS="-lltdl  $LIBS"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024
3025 /* Override any gcc2 internal prototype to avoid an error.  */
3026 #ifdef __cplusplus
3027 extern "C"
3028 #endif
3029 /* We use char because int might match the return type of a gcc2
3030    builtin and then its argument prototype would still apply.  */
3031 char lt_dlinit ();
3032 int
3033 main ()
3034 {
3035 lt_dlinit ();
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext conftest$ac_exeext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3042   (eval $ac_link) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051   (eval $ac_try) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; } &&
3055          { ac_try='test -s conftest$ac_exeext'
3056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057   (eval $ac_try) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   ac_cv_lib_ltdl_lt_dlinit=yes
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 ac_cv_lib_ltdl_lt_dlinit=no
3067 fi
3068 rm -f conftest.err conftest.$ac_objext \
3069       conftest$ac_exeext conftest.$ac_ext
3070 LIBS=$ac_check_lib_save_LIBS
3071 fi
3072 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3073 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3074 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3075   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3076 else
3077   if test x"$enable_ltdl_install" = xno; then
3078      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3079 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3080    else
3081      enable_ltdl_install=yes
3082    fi
3083
3084 fi
3085
3086   if test x"$enable_ltdl_install" = x"yes"; then
3087     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3088     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3089     LTDLINCL='-I${top_srcdir}/''libltdl'
3090   else
3091     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3092     LIBLTDL="-lltdl"
3093     LTDLINCL=
3094   fi
3095   # For backwards non-gettext consistent compatibility...
3096   INCLTDL="$LTDLINCL"
3097
3098 ac_aux_dir=
3099 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3100   if test -f $ac_dir/install-sh; then
3101     ac_aux_dir=$ac_dir
3102     ac_install_sh="$ac_aux_dir/install-sh -c"
3103     break
3104   elif test -f $ac_dir/install.sh; then
3105     ac_aux_dir=$ac_dir
3106     ac_install_sh="$ac_aux_dir/install.sh -c"
3107     break
3108   elif test -f $ac_dir/shtool; then
3109     ac_aux_dir=$ac_dir
3110     ac_install_sh="$ac_aux_dir/shtool install -c"
3111     break
3112   fi
3113 done
3114 if test -z "$ac_aux_dir"; then
3115   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3116 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3117    { (exit 1); exit 1; }; }
3118 fi
3119 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3120 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3121 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3122
3123
3124    LIBLTDLPATH=
3125    if test x"$enable_ltdl_install" = x"yes"; then
3126
3127
3128 subdirs="$subdirs 'libltdl'"
3129
3130      LIBLTDLPATH=libltdl
3131     fi
3132
3133
3134
3135 # Check whether --enable-shared or --disable-shared was given.
3136 if test "${enable_shared+set}" = set; then
3137   enableval="$enable_shared"
3138   p=${PACKAGE-default}
3139     case $enableval in
3140     yes) enable_shared=yes ;;
3141     no) enable_shared=no ;;
3142     *)
3143       enable_shared=no
3144       # Look at the argument we got.  We use all the common list separators.
3145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3146       for pkg in $enableval; do
3147         IFS="$lt_save_ifs"
3148         if test "X$pkg" = "X$p"; then
3149           enable_shared=yes
3150         fi
3151       done
3152       IFS="$lt_save_ifs"
3153       ;;
3154     esac
3155 else
3156   enable_shared=yes
3157 fi;
3158
3159 # Check whether --enable-static or --disable-static was given.
3160 if test "${enable_static+set}" = set; then
3161   enableval="$enable_static"
3162   p=${PACKAGE-default}
3163     case $enableval in
3164     yes) enable_static=yes ;;
3165     no) enable_static=no ;;
3166     *)
3167      enable_static=no
3168       # Look at the argument we got.  We use all the common list separators.
3169       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3170       for pkg in $enableval; do
3171         IFS="$lt_save_ifs"
3172         if test "X$pkg" = "X$p"; then
3173           enable_static=yes
3174         fi
3175       done
3176       IFS="$lt_save_ifs"
3177       ;;
3178     esac
3179 else
3180   enable_static=yes
3181 fi;
3182
3183 # Check whether --enable-fast-install or --disable-fast-install was given.
3184 if test "${enable_fast_install+set}" = set; then
3185   enableval="$enable_fast_install"
3186   p=${PACKAGE-default}
3187     case $enableval in
3188     yes) enable_fast_install=yes ;;
3189     no) enable_fast_install=no ;;
3190     *)
3191       enable_fast_install=no
3192       # Look at the argument we got.  We use all the common list separators.
3193       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3194       for pkg in $enableval; do
3195         IFS="$lt_save_ifs"
3196         if test "X$pkg" = "X$p"; then
3197           enable_fast_install=yes
3198         fi
3199       done
3200       IFS="$lt_save_ifs"
3201       ;;
3202     esac
3203 else
3204   enable_fast_install=yes
3205 fi;
3206
3207 # Make sure we can run config.sub.
3208 $ac_config_sub sun4 >/dev/null 2>&1 ||
3209   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3210 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3211    { (exit 1); exit 1; }; }
3212
3213 echo "$as_me:$LINENO: checking build system type" >&5
3214 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3215 if test "${ac_cv_build+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   ac_cv_build_alias=$build_alias
3219 test -z "$ac_cv_build_alias" &&
3220   ac_cv_build_alias=`$ac_config_guess`
3221 test -z "$ac_cv_build_alias" &&
3222   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3223 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3224    { (exit 1); exit 1; }; }
3225 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3226   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3227 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3228    { (exit 1); exit 1; }; }
3229
3230 fi
3231 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3232 echo "${ECHO_T}$ac_cv_build" >&6
3233 build=$ac_cv_build
3234 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3235 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3236 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3237
3238
3239 echo "$as_me:$LINENO: checking host system type" >&5
3240 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3241 if test "${ac_cv_host+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244   ac_cv_host_alias=$host_alias
3245 test -z "$ac_cv_host_alias" &&
3246   ac_cv_host_alias=$ac_cv_build_alias
3247 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3248   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3249 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3250    { (exit 1); exit 1; }; }
3251
3252 fi
3253 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3254 echo "${ECHO_T}$ac_cv_host" >&6
3255 host=$ac_cv_host
3256 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3257 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3258 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3259
3260
3261 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3262 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3263 if test "${lt_cv_path_SED+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   # Loop through the user's path and test for sed and gsed.
3267 # Then use that list of sed's as ones to test for truncation.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273   for lt_ac_prog in sed gsed; do
3274     for ac_exec_ext in '' $ac_executable_extensions; do
3275       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3276         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3277       fi
3278     done
3279   done
3280 done
3281 lt_ac_max=0
3282 lt_ac_count=0
3283 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3284 # along with /bin/sed that truncates output.
3285 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3286   test ! -f $lt_ac_sed && break
3287   cat /dev/null > conftest.in
3288   lt_ac_count=0
3289   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3290   # Check for GNU sed and select it if it is found.
3291   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3292     lt_cv_path_SED=$lt_ac_sed
3293     break
3294   fi
3295   while true; do
3296     cat conftest.in conftest.in >conftest.tmp
3297     mv conftest.tmp conftest.in
3298     cp conftest.in conftest.nl
3299     echo >>conftest.nl
3300     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3301     cmp -s conftest.out conftest.nl || break
3302     # 10000 chars as input seems more than enough
3303     test $lt_ac_count -gt 10 && break
3304     lt_ac_count=`expr $lt_ac_count + 1`
3305     if test $lt_ac_count -gt $lt_ac_max; then
3306       lt_ac_max=$lt_ac_count
3307       lt_cv_path_SED=$lt_ac_sed
3308     fi
3309   done
3310 done
3311 SED=$lt_cv_path_SED
3312
3313 fi
3314
3315 echo "$as_me:$LINENO: result: $SED" >&5
3316 echo "${ECHO_T}$SED" >&6
3317
3318
3319 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then
3321   withval="$with_gnu_ld"
3322   test "$withval" = no || with_gnu_ld=yes
3323 else
3324   with_gnu_ld=no
3325 fi;
3326 ac_prog=ld
3327 if test "$GCC" = yes; then
3328   # Check if gcc -print-prog-name=ld gives a path.
3329   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3330 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3331   case $host in
3332   *-*-mingw*)
3333     # gcc leaves a trailing carriage return which upsets mingw
3334     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3335   *)
3336     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3337   esac
3338   case $ac_prog in
3339     # Accept absolute paths.
3340     [\\/]* | ?:[\\/]*)
3341       re_direlt='/[^/][^/]*/\.\./'
3342       # Canonicalize the pathname of ld
3343       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3344       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3345         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3346       done
3347       test -z "$LD" && LD="$ac_prog"
3348       ;;
3349   "")
3350     # If it fails, then pretend we aren't using GCC.
3351     ac_prog=ld
3352     ;;
3353   *)
3354     # If it is relative, then search for the first ld in PATH.
3355     with_gnu_ld=unknown
3356     ;;
3357   esac
3358 elif test "$with_gnu_ld" = yes; then
3359   echo "$as_me:$LINENO: checking for GNU ld" >&5
3360 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3361 else
3362   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3363 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3364 fi
3365 if test "${lt_cv_path_LD+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   if test -z "$LD"; then
3369   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3370   for ac_dir in $PATH; do
3371     IFS="$lt_save_ifs"
3372     test -z "$ac_dir" && ac_dir=.
3373     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3374       lt_cv_path_LD="$ac_dir/$ac_prog"
3375       # Check to see if the program is GNU ld.  I'd rather use --version,
3376       # but apparently some GNU ld's only accept -v.
3377       # Break only if it was the GNU/non-GNU ld that we prefer.
3378       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3379       *GNU* | *'with BFD'*)
3380         test "$with_gnu_ld" != no && break
3381         ;;
3382       *)
3383         test "$with_gnu_ld" != yes && break
3384         ;;
3385       esac
3386     fi
3387   done
3388   IFS="$lt_save_ifs"
3389 else
3390   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3391 fi
3392 fi
3393
3394 LD="$lt_cv_path_LD"
3395 if test -n "$LD"; then
3396   echo "$as_me:$LINENO: result: $LD" >&5
3397 echo "${ECHO_T}$LD" >&6
3398 else
3399   echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3401 fi
3402 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3403 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3404    { (exit 1); exit 1; }; }
3405 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3406 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3407 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3411 case `$LD -v 2>&1 </dev/null` in
3412 *GNU* | *'with BFD'*)
3413   lt_cv_prog_gnu_ld=yes
3414   ;;
3415 *)
3416   lt_cv_prog_gnu_ld=no
3417   ;;
3418 esac
3419 fi
3420 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3421 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3422 with_gnu_ld=$lt_cv_prog_gnu_ld
3423
3424
3425 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3426 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3427 if test "${lt_cv_ld_reload_flag+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   lt_cv_ld_reload_flag='-r'
3431 fi
3432 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3433 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3434 reload_flag=$lt_cv_ld_reload_flag
3435 case $reload_flag in
3436 "" | " "*) ;;
3437 *) reload_flag=" $reload_flag" ;;
3438 esac
3439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3440
3441 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3442 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3443 if test "${lt_cv_path_NM+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   if test -n "$NM"; then
3447   # Let the user override the test.
3448   lt_cv_path_NM="$NM"
3449 else
3450   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3451   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3452     IFS="$lt_save_ifs"
3453     test -z "$ac_dir" && ac_dir=.
3454     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3455     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3456       # Check to see if the nm accepts a BSD-compat flag.
3457       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3458       #   nm: unknown option "B" ignored
3459       # Tru64's nm complains that /dev/null is an invalid object file
3460       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3461       */dev/null* | *'Invalid file or object type'*)
3462         lt_cv_path_NM="$tmp_nm -B"
3463         break
3464         ;;
3465       *)
3466         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3467         */dev/null*)
3468           lt_cv_path_NM="$tmp_nm -p"
3469           break
3470           ;;
3471         *)
3472           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3473           continue # so that we can try to find one that supports BSD flags
3474           ;;
3475         esac
3476       esac
3477     fi
3478   done
3479   IFS="$lt_save_ifs"
3480   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3481 fi
3482 fi
3483 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3484 echo "${ECHO_T}$lt_cv_path_NM" >&6
3485 NM="$lt_cv_path_NM"
3486
3487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3489 LN_S=$as_ln_s
3490 if test "$LN_S" = "ln -s"; then
3491   echo "$as_me:$LINENO: result: yes" >&5
3492 echo "${ECHO_T}yes" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3495 echo "${ECHO_T}no, using $LN_S" >&6
3496 fi
3497
3498 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3499 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3500 if test "${lt_cv_deplibs_check_method+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   lt_cv_file_magic_cmd='$MAGIC_CMD'
3504 lt_cv_file_magic_test_file=
3505 lt_cv_deplibs_check_method='unknown'
3506 # Need to set the preceding variable on all platforms that support
3507 # interlibrary dependencies.
3508 # 'none' -- dependencies not supported.
3509 # `unknown' -- same as none, but documents that we really don't know.
3510 # 'pass_all' -- all dependencies passed with no checks.
3511 # 'test_compile' -- check by making test program.
3512 # 'file_magic [[regex]]' -- check by looking for files in library path
3513 # which responds to the $file_magic_cmd with a given extended regex.
3514 # If you have `file' or equivalent on your system and you're not sure
3515 # whether `pass_all' will *always* work, you probably want this one.
3516
3517 case $host_os in
3518 aix4* | aix5*)
3519   lt_cv_deplibs_check_method=pass_all
3520   ;;
3521
3522 beos*)
3523   lt_cv_deplibs_check_method=pass_all
3524   ;;
3525
3526 bsdi4*)
3527   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3528   lt_cv_file_magic_cmd='/usr/bin/file -L'
3529   lt_cv_file_magic_test_file=/shlib/libc.so
3530   ;;
3531
3532 cygwin*)
3533   # func_win32_libid is a shell function defined in ltmain.sh
3534   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3535   lt_cv_file_magic_cmd='func_win32_libid'
3536   ;;
3537
3538 mingw* | pw32*)
3539   # Base MSYS/MinGW do not provide the 'file' command needed by
3540   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3541   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3542   lt_cv_file_magic_cmd='$OBJDUMP -f'
3543   ;;
3544
3545 darwin* | rhapsody*)
3546   lt_cv_deplibs_check_method=pass_all
3547   ;;
3548
3549 freebsd* | kfreebsd*-gnu)
3550   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3551     case $host_cpu in
3552     i*86 )
3553       # Not sure whether the presence of OpenBSD here was a mistake.
3554       # Let's accept both of them until this is cleared up.
3555       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3556       lt_cv_file_magic_cmd=/usr/bin/file
3557       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3558       ;;
3559     esac
3560   else
3561     lt_cv_deplibs_check_method=pass_all
3562   fi
3563   ;;
3564
3565 gnu*)
3566   lt_cv_deplibs_check_method=pass_all
3567   ;;
3568
3569 hpux10.20* | hpux11*)
3570   lt_cv_file_magic_cmd=/usr/bin/file
3571   case "$host_cpu" in
3572   ia64*)
3573     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3574     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3575     ;;
3576   hppa*64*)
3577     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]'
3578     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3579     ;;
3580   *)
3581     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3582     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3583     ;;
3584   esac
3585   ;;
3586
3587 irix5* | irix6* | nonstopux*)
3588   case $LD in
3589   *-32|*"-32 ") libmagic=32-bit;;
3590   *-n32|*"-n32 ") libmagic=N32;;
3591   *-64|*"-64 ") libmagic=64-bit;;
3592   *) libmagic=never-match;;
3593   esac
3594   lt_cv_deplibs_check_method=pass_all
3595   ;;
3596
3597 # This must be Linux ELF.
3598 linux*)
3599   lt_cv_deplibs_check_method=pass_all
3600   ;;
3601
3602 netbsd* | knetbsd*-gnu)
3603   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3604     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3605   else
3606     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3607   fi
3608   ;;
3609
3610 newos6*)
3611   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3612   lt_cv_file_magic_cmd=/usr/bin/file
3613   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3614   ;;
3615
3616 nto-qnx*)
3617   lt_cv_deplibs_check_method=unknown
3618   ;;
3619
3620 openbsd*)
3621   lt_cv_file_magic_cmd=/usr/bin/file
3622   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3623   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3624     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3625   else
3626     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3627   fi
3628   ;;
3629
3630 osf3* | osf4* | osf5*)
3631   lt_cv_deplibs_check_method=pass_all
3632   ;;
3633
3634 sco3.2v5*)
3635   lt_cv_deplibs_check_method=pass_all
3636   ;;
3637
3638 solaris*)
3639   lt_cv_deplibs_check_method=pass_all
3640   ;;
3641
3642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3643   case $host_vendor in
3644   motorola)
3645     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]'
3646     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3647     ;;
3648   ncr)
3649     lt_cv_deplibs_check_method=pass_all
3650     ;;
3651   sequent)
3652     lt_cv_file_magic_cmd='/bin/file'
3653     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3654     ;;
3655   sni)
3656     lt_cv_file_magic_cmd='/bin/file'
3657     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3658     lt_cv_file_magic_test_file=/lib/libc.so
3659     ;;
3660   siemens)
3661     lt_cv_deplibs_check_method=pass_all
3662     ;;
3663   esac
3664   ;;
3665
3666 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3667   lt_cv_deplibs_check_method=pass_all
3668   ;;
3669 esac
3670
3671 fi
3672 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3673 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3674 file_magic_cmd=$lt_cv_file_magic_cmd
3675 deplibs_check_method=$lt_cv_deplibs_check_method
3676 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3677
3678
3679
3680
3681 # If no C compiler was specified, use CC.
3682 LTCC=${LTCC-"$CC"}
3683
3684 # Allow CC to be a program name with arguments.
3685 compiler=$CC
3686
3687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3688 if test "${enable_libtool_lock+set}" = set; then
3689   enableval="$enable_libtool_lock"
3690
3691 fi;
3692 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3693
3694 # Some flags need to be propagated to the compiler or linker for good
3695 # libtool support.
3696 case $host in
3697 ia64-*-hpux*)
3698   # Find out which ABI we are using.
3699   echo 'int i;' > conftest.$ac_ext
3700   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701   (eval $ac_compile) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; then
3705     case `/usr/bin/file conftest.$ac_objext` in
3706     *ELF-32*)
3707       HPUX_IA64_MODE="32"
3708       ;;
3709     *ELF-64*)
3710       HPUX_IA64_MODE="64"
3711       ;;
3712     esac
3713   fi
3714   rm -rf conftest*
3715   ;;
3716 *-*-irix6*)
3717   # Find out which ABI we are using.
3718   echo '#line 3718 "configure"' > conftest.$ac_ext
3719   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720   (eval $ac_compile) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; then
3724    if test "$lt_cv_prog_gnu_ld" = yes; then
3725     case `/usr/bin/file conftest.$ac_objext` in
3726     *32-bit*)
3727       LD="${LD-ld} -melf32bsmip"
3728       ;;
3729     *N32*)
3730       LD="${LD-ld} -melf32bmipn32"
3731       ;;
3732     *64-bit*)
3733       LD="${LD-ld} -melf64bmip"
3734       ;;
3735     esac
3736    else
3737     case `/usr/bin/file conftest.$ac_objext` in
3738     *32-bit*)
3739       LD="${LD-ld} -32"
3740       ;;
3741     *N32*)
3742       LD="${LD-ld} -n32"
3743       ;;
3744     *64-bit*)
3745       LD="${LD-ld} -64"
3746       ;;
3747     esac
3748    fi
3749   fi
3750   rm -rf conftest*
3751   ;;
3752
3753 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3754   # Find out which ABI we are using.
3755   echo 'int i;' > conftest.$ac_ext
3756   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757   (eval $ac_compile) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }; then
3761     case "`/usr/bin/file conftest.o`" in
3762     *32-bit*)
3763       case $host in
3764         x86_64-*linux*)
3765           LD="${LD-ld} -m elf_i386"
3766           ;;
3767         ppc64-*linux*|powerpc64-*linux*)
3768           LD="${LD-ld} -m elf32ppclinux"
3769           ;;
3770         s390x-*linux*)
3771           LD="${LD-ld} -m elf_s390"
3772           ;;
3773         sparc64-*linux*)
3774           LD="${LD-ld} -m elf32_sparc"
3775           ;;
3776       esac
3777       ;;
3778     *64-bit*)
3779       case $host in
3780         x86_64-*linux*)
3781           LD="${LD-ld} -m elf_x86_64"
3782           ;;
3783         ppc*-*linux*|powerpc*-*linux*)
3784           LD="${LD-ld} -m elf64ppc"
3785           ;;
3786         s390*-*linux*)
3787           LD="${LD-ld} -m elf64_s390"
3788           ;;
3789         sparc*-*linux*)
3790           LD="${LD-ld} -m elf64_sparc"
3791           ;;
3792       esac
3793       ;;
3794     esac
3795   fi
3796   rm -rf conftest*
3797   ;;
3798
3799 *-*-sco3.2v5*)
3800   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3801   SAVE_CFLAGS="$CFLAGS"
3802   CFLAGS="$CFLAGS -belf"
3803   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3804 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3805 if test "${lt_cv_cc_needs_belf+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813
3814      cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831   (eval $ac_link) 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } &&
3838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840   (eval $ac_try) 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); }; } &&
3844          { ac_try='test -s conftest$ac_exeext'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; }; then
3850   lt_cv_cc_needs_belf=yes
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 lt_cv_cc_needs_belf=no
3856 fi
3857 rm -f conftest.err conftest.$ac_objext \
3858       conftest$ac_exeext conftest.$ac_ext
3859      ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
3865 fi
3866 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3867 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3868   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3869     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3870     CFLAGS="$SAVE_CFLAGS"
3871   fi
3872   ;;
3873
3874 esac
3875
3876 need_locks="$enable_libtool_lock"
3877
3878
3879 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3880 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3881 if test "${ac_cv_header_stdc+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #include <stdlib.h>
3891 #include <stdarg.h>
3892 #include <string.h>
3893 #include <float.h>
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905   (eval $ac_compile) 2>conftest.er1
3906   ac_status=$?
3907   grep -v '^ *+' conftest.er1 >conftest.err
3908   rm -f conftest.er1
3909   cat conftest.err >&5
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); } &&
3912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914   (eval $ac_try) 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); }; } &&
3918          { ac_try='test -s conftest.$ac_objext'
3919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920   (eval $ac_try) 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }; }; then
3924   ac_cv_header_stdc=yes
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 ac_cv_header_stdc=no
3930 fi
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932
3933 if test $ac_cv_header_stdc = yes; then
3934   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 #include <string.h>
3942
3943 _ACEOF
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945   $EGREP "memchr" >/dev/null 2>&1; then
3946   :
3947 else
3948   ac_cv_header_stdc=no
3949 fi
3950 rm -f conftest*
3951
3952 fi
3953
3954 if test $ac_cv_header_stdc = yes; then
3955   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3956   cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #include <stdlib.h>
3963
3964 _ACEOF
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966   $EGREP "free" >/dev/null 2>&1; then
3967   :
3968 else
3969   ac_cv_header_stdc=no
3970 fi
3971 rm -f conftest*
3972
3973 fi
3974
3975 if test $ac_cv_header_stdc = yes; then
3976   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3977   if test "$cross_compiling" = yes; then
3978   :
3979 else
3980   cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h.  */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h.  */
3986 #include <ctype.h>
3987 #if ((' ' & 0x0FF) == 0x020)
3988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3990 #else
3991 # define ISLOWER(c) \
3992                    (('a' <= (c) && (c) <= 'i') \
3993                      || ('j' <= (c) && (c) <= 'r') \
3994                      || ('s' <= (c) && (c) <= 'z'))
3995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3996 #endif
3997
3998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3999 int
4000 main ()
4001 {
4002   int i;
4003   for (i = 0; i < 256; i++)
4004     if (XOR (islower (i), ISLOWER (i))
4005         || toupper (i) != TOUPPER (i))
4006       exit(2);
4007   exit (0);
4008 }
4009 _ACEOF
4010 rm -f conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012   (eval $ac_link) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017   (eval $ac_try) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }; }; then
4021   :
4022 else
4023   echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 ( exit $ac_status )
4028 ac_cv_header_stdc=no
4029 fi
4030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4031 fi
4032 fi
4033 fi
4034 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4035 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4036 if test $ac_cv_header_stdc = yes; then
4037
4038 cat >>confdefs.h <<\_ACEOF
4039 #define STDC_HEADERS 1
4040 _ACEOF
4041
4042 fi
4043
4044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4055                   inttypes.h stdint.h unistd.h
4056 do
4057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4058 echo "$as_me:$LINENO: checking for $ac_header" >&5
4059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 $ac_includes_default
4070
4071 #include <$ac_header>
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075   (eval $ac_compile) 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } &&
4082          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; } &&
4088          { ac_try='test -s conftest.$ac_objext'
4089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090   (eval $ac_try) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; }; then
4094   eval "$as_ac_Header=yes"
4095 else
4096   echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 eval "$as_ac_Header=no"
4100 fi
4101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 fi
4103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106   cat >>confdefs.h <<_ACEOF
4107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4108 _ACEOF
4109
4110 fi
4111
4112 done
4113
4114
4115
4116 for ac_header in dlfcn.h
4117 do
4118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4120   echo "$as_me:$LINENO: checking for $ac_header" >&5
4121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 fi
4125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4127 else
4128   # Is the header compilable?
4129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 $ac_includes_default
4138 #include <$ac_header>
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142   (eval $ac_compile) 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } &&
4149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151   (eval $ac_try) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; } &&
4155          { ac_try='test -s conftest.$ac_objext'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; }; then
4161   ac_header_compiler=yes
4162 else
4163   echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166 ac_header_compiler=no
4167 fi
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4170 echo "${ECHO_T}$ac_header_compiler" >&6
4171
4172 # Is the header present?
4173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4175 cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 #include <$ac_header>
4182 _ACEOF
4183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4185   ac_status=$?
4186   grep -v '^ *+' conftest.er1 >conftest.err
4187   rm -f conftest.er1
4188   cat conftest.err >&5
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } >/dev/null; then
4191   if test -s conftest.err; then
4192     ac_cpp_err=$ac_c_preproc_warn_flag
4193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4194   else
4195     ac_cpp_err=
4196   fi
4197 else
4198   ac_cpp_err=yes
4199 fi
4200 if test -z "$ac_cpp_err"; then
4201   ac_header_preproc=yes
4202 else
4203   echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206   ac_header_preproc=no
4207 fi
4208 rm -f conftest.err conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4210 echo "${ECHO_T}$ac_header_preproc" >&6
4211
4212 # So?  What about this header?
4213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4214   yes:no: )
4215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4219     ac_header_preproc=yes
4220     ;;
4221   no:yes:* )
4222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4234     (
4235       cat <<\_ASBOX
4236 ## ------------------------------------------ ##
4237 ## Report this to the AC_PACKAGE_NAME lists.  ##
4238 ## ------------------------------------------ ##
4239 _ASBOX
4240     ) |
4241       sed "s/^/$as_me: WARNING:     /" >&2
4242     ;;
4243 esac
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   eval "$as_ac_Header=\$ac_header_preproc"
4250 fi
4251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4253
4254 fi
4255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4256   cat >>confdefs.h <<_ACEOF
4257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4258 _ACEOF
4259
4260 fi
4261
4262 done
4263
4264 ac_ext=cc
4265 ac_cpp='$CXXCPP $CPPFLAGS'
4266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4269 if test -n "$ac_tool_prefix"; then
4270   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4271   do
4272     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_CXX+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   if test -n "$CXX"; then
4280   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296 fi
4297 fi
4298 CXX=$ac_cv_prog_CXX
4299 if test -n "$CXX"; then
4300   echo "$as_me:$LINENO: result: $CXX" >&5
4301 echo "${ECHO_T}$CXX" >&6
4302 else
4303   echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4305 fi
4306
4307     test -n "$CXX" && break
4308   done
4309 fi
4310 if test -z "$CXX"; then
4311   ac_ct_CXX=$CXX
4312   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4313 do
4314   # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   if test -n "$ac_ct_CXX"; then
4322   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_exec_ext in '' $ac_executable_extensions; do
4330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     ac_cv_prog_ac_ct_CXX="$ac_prog"
4332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336 done
4337
4338 fi
4339 fi
4340 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4341 if test -n "$ac_ct_CXX"; then
4342   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4343 echo "${ECHO_T}$ac_ct_CXX" >&6
4344 else
4345   echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4347 fi
4348
4349   test -n "$ac_ct_CXX" && break
4350 done
4351 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4352
4353   CXX=$ac_ct_CXX
4354 fi
4355
4356
4357 # Provide some information about the compiler.
4358 echo "$as_me:$LINENO:" \
4359      "checking for C++ compiler version" >&5
4360 ac_compiler=`set X $ac_compile; echo $2`
4361 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4362   (eval $ac_compiler --version </dev/null >&5) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4367   (eval $ac_compiler -v </dev/null >&5) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4372   (eval $ac_compiler -V </dev/null >&5) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }
4376
4377 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4378 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4379 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388
4389 int
4390 main ()
4391 {
4392 #ifndef __GNUC__
4393        choke me
4394 #endif
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402   (eval $ac_compile) 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; } &&
4415          { ac_try='test -s conftest.$ac_objext'
4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417   (eval $ac_try) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; }; then
4421   ac_compiler_gnu=yes
4422 else
4423   echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426 ac_compiler_gnu=no
4427 fi
4428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4430
4431 fi
4432 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4433 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4434 GXX=`test $ac_compiler_gnu = yes && echo yes`
4435 ac_test_CXXFLAGS=${CXXFLAGS+set}
4436 ac_save_CXXFLAGS=$CXXFLAGS
4437 CXXFLAGS="-g"
4438 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4440 if test "${ac_cv_prog_cxx_g+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h.  */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h.  */
4449
4450 int
4451 main ()
4452 {
4453
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460   (eval $ac_compile) 2>conftest.er1
4461   ac_status=$?
4462   grep -v '^ *+' conftest.er1 >conftest.err
4463   rm -f conftest.er1
4464   cat conftest.err >&5
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } &&
4467          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; } &&
4473          { ac_try='test -s conftest.$ac_objext'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   ac_cv_prog_cxx_g=yes
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ac_cv_prog_cxx_g=no
4485 fi
4486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487 fi
4488 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4489 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4490 if test "$ac_test_CXXFLAGS" = set; then
4491   CXXFLAGS=$ac_save_CXXFLAGS
4492 elif test $ac_cv_prog_cxx_g = yes; then
4493   if test "$GXX" = yes; then
4494     CXXFLAGS="-g -O2"
4495   else
4496     CXXFLAGS="-g"
4497   fi
4498 else
4499   if test "$GXX" = yes; then
4500     CXXFLAGS="-O2"
4501   else
4502     CXXFLAGS=
4503   fi
4504 fi
4505 for ac_declaration in \
4506    '' \
4507    'extern "C" void std::exit (int) throw (); using std::exit;' \
4508    'extern "C" void std::exit (int); using std::exit;' \
4509    'extern "C" void exit (int) throw ();' \
4510    'extern "C" void exit (int);' \
4511    'void exit (int);'
4512 do
4513   cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 $ac_declaration
4520 #include <stdlib.h>
4521 int
4522 main ()
4523 {
4524 exit (42);
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531   (eval $ac_compile) 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } &&
4538          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540   (eval $ac_try) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; } &&
4544          { ac_try='test -s conftest.$ac_objext'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; }; then
4550   :
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 continue
4556 fi
4557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558   cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564 $ac_declaration
4565 int
4566 main ()
4567 {
4568 exit (42);
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575   (eval $ac_compile) 2>conftest.er1
4576   ac_status=$?
4577   grep -v '^ *+' conftest.er1 >conftest.err
4578   rm -f conftest.er1
4579   cat conftest.err >&5
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } &&
4582          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584   (eval $ac_try) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; } &&
4588          { ac_try='test -s conftest.$ac_objext'
4589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590   (eval $ac_try) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; }; then
4594   break
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 fi
4600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601 done
4602 rm -f conftest*
4603 if test -n "$ac_declaration"; then
4604   echo '#ifdef __cplusplus' >>confdefs.h
4605   echo $ac_declaration      >>confdefs.h
4606   echo '#endif'             >>confdefs.h
4607 fi
4608
4609 ac_ext=cc
4610 ac_cpp='$CXXCPP $CPPFLAGS'
4611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4614
4615 ac_ext=cc
4616 ac_cpp='$CXXCPP $CPPFLAGS'
4617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4620 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4621 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4622 if test -z "$CXXCPP"; then
4623   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626       # Double quotes because CXXCPP needs to be expanded
4627     for CXXCPP in "$CXX -E" "/lib/cpp"
4628     do
4629       ac_preproc_ok=false
4630 for ac_cxx_preproc_warn_flag in '' yes
4631 do
4632   # Use a header file that comes with gcc, so configuring glibc
4633   # with a fresh cross-compiler works.
4634   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635   # <limits.h> exists even on freestanding compilers.
4636   # On the NeXT, cc -E runs the code through the compiler's parser,
4637   # not just through cpp. "Syntax error" is here to catch this case.
4638   cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644 #ifdef __STDC__
4645 # include <limits.h>
4646 #else
4647 # include <assert.h>
4648 #endif
4649                      Syntax error
4650 _ACEOF
4651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4653   ac_status=$?
4654   grep -v '^ *+' conftest.er1 >conftest.err
4655   rm -f conftest.er1
4656   cat conftest.err >&5
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); } >/dev/null; then
4659   if test -s conftest.err; then
4660     ac_cpp_err=$ac_cxx_preproc_warn_flag
4661     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4662   else
4663     ac_cpp_err=
4664   fi
4665 else
4666   ac_cpp_err=yes
4667 fi
4668 if test -z "$ac_cpp_err"; then
4669   :
4670 else
4671   echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674   # Broken: fails on valid input.
4675 continue
4676 fi
4677 rm -f conftest.err conftest.$ac_ext
4678
4679   # OK, works on sane cases.  Now check whether non-existent headers
4680   # can be detected and how.
4681   cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687 #include <ac_nonexistent.h>
4688 _ACEOF
4689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } >/dev/null; then
4697   if test -s conftest.err; then
4698     ac_cpp_err=$ac_cxx_preproc_warn_flag
4699     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4700   else
4701     ac_cpp_err=
4702   fi
4703 else
4704   ac_cpp_err=yes
4705 fi
4706 if test -z "$ac_cpp_err"; then
4707   # Broken: success on invalid input.
4708 continue
4709 else
4710   echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713   # Passes both tests.
4714 ac_preproc_ok=:
4715 break
4716 fi
4717 rm -f conftest.err conftest.$ac_ext
4718
4719 done
4720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4721 rm -f conftest.err conftest.$ac_ext
4722 if $ac_preproc_ok; then
4723   break
4724 fi
4725
4726     done
4727     ac_cv_prog_CXXCPP=$CXXCPP
4728
4729 fi
4730   CXXCPP=$ac_cv_prog_CXXCPP
4731 else
4732   ac_cv_prog_CXXCPP=$CXXCPP
4733 fi
4734 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4735 echo "${ECHO_T}$CXXCPP" >&6
4736 ac_preproc_ok=false
4737 for ac_cxx_preproc_warn_flag in '' yes
4738 do
4739   # Use a header file that comes with gcc, so configuring glibc
4740   # with a fresh cross-compiler works.
4741   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742   # <limits.h> exists even on freestanding compilers.
4743   # On the NeXT, cc -E runs the code through the compiler's parser,
4744   # not just through cpp. "Syntax error" is here to catch this case.
4745   cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h.  */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h.  */
4751 #ifdef __STDC__
4752 # include <limits.h>
4753 #else
4754 # include <assert.h>
4755 #endif
4756                      Syntax error
4757 _ACEOF
4758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4760   ac_status=$?
4761   grep -v '^ *+' conftest.er1 >conftest.err
4762   rm -f conftest.er1
4763   cat conftest.err >&5
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } >/dev/null; then
4766   if test -s conftest.err; then
4767     ac_cpp_err=$ac_cxx_preproc_warn_flag
4768     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4769   else
4770     ac_cpp_err=
4771   fi
4772 else
4773   ac_cpp_err=yes
4774 fi
4775 if test -z "$ac_cpp_err"; then
4776   :
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781   # Broken: fails on valid input.
4782 continue
4783 fi
4784 rm -f conftest.err conftest.$ac_ext
4785
4786   # OK, works on sane cases.  Now check whether non-existent headers
4787   # can be detected and how.
4788   cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h.  */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h.  */
4794 #include <ac_nonexistent.h>
4795 _ACEOF
4796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4798   ac_status=$?
4799   grep -v '^ *+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } >/dev/null; then
4804   if test -s conftest.err; then
4805     ac_cpp_err=$ac_cxx_preproc_warn_flag
4806     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4807   else
4808     ac_cpp_err=
4809   fi
4810 else
4811   ac_cpp_err=yes
4812 fi
4813 if test -z "$ac_cpp_err"; then
4814   # Broken: success on invalid input.
4815 continue
4816 else
4817   echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820   # Passes both tests.
4821 ac_preproc_ok=:
4822 break
4823 fi
4824 rm -f conftest.err conftest.$ac_ext
4825
4826 done
4827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828 rm -f conftest.err conftest.$ac_ext
4829 if $ac_preproc_ok; then
4830   :
4831 else
4832   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4833 See \`config.log' for more details." >&5
4834 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4835 See \`config.log' for more details." >&2;}
4836    { (exit 1); exit 1; }; }
4837 fi
4838
4839 ac_ext=cc
4840 ac_cpp='$CXXCPP $CPPFLAGS'
4841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4844
4845
4846 ac_ext=f
4847 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4848 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4850 if test -n "$ac_tool_prefix"; then
4851   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4852   do
4853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857 if test "${ac_cv_prog_F77+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$F77"; then
4861   ac_cv_prog_F77="$F77" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876
4877 fi
4878 fi
4879 F77=$ac_cv_prog_F77
4880 if test -n "$F77"; then
4881   echo "$as_me:$LINENO: result: $F77" >&5
4882 echo "${ECHO_T}$F77" >&6
4883 else
4884   echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4886 fi
4887
4888     test -n "$F77" && break
4889   done
4890 fi
4891 if test -z "$F77"; then
4892   ac_ct_F77=$F77
4893   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4894 do
4895   # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$ac_ct_F77"; then
4903   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912     ac_cv_prog_ac_ct_F77="$ac_prog"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918
4919 fi
4920 fi
4921 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4922 if test -n "$ac_ct_F77"; then
4923   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4924 echo "${ECHO_T}$ac_ct_F77" >&6
4925 else
4926   echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930   test -n "$ac_ct_F77" && break
4931 done
4932
4933   F77=$ac_ct_F77
4934 fi
4935
4936
4937 # Provide some information about the compiler.
4938 echo "$as_me:4938:" \
4939      "checking for Fortran 77 compiler version" >&5
4940 ac_compiler=`set X $ac_compile; echo $2`
4941 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4942   (eval $ac_compiler --version </dev/null >&5) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }
4946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4947   (eval $ac_compiler -v </dev/null >&5) 2>&5
4948   ac_status=$?
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); }
4951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4952   (eval $ac_compiler -V </dev/null >&5) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); }
4956 rm -f a.out
4957
4958 # If we don't use `.F' as extension, the preprocessor is not run on the
4959 # input file.  (Note that this only needs to work for GNU compilers.)
4960 ac_save_ext=$ac_ext
4961 ac_ext=F
4962 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4963 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4964 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   cat >conftest.$ac_ext <<_ACEOF
4968       program main
4969 #ifndef __GNUC__
4970        choke me
4971 #endif
4972
4973       end
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977   (eval $ac_compile) 2>conftest.er1
4978   ac_status=$?
4979   grep -v '^ *+' conftest.er1 >conftest.err
4980   rm -f conftest.er1
4981   cat conftest.err >&5
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } &&
4984          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; } &&
4990          { ac_try='test -s conftest.$ac_objext'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; }; then
4996   ac_compiler_gnu=yes
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ac_compiler_gnu=no
5002 fi
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5005
5006 fi
5007 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5008 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5009 ac_ext=$ac_save_ext
5010 ac_test_FFLAGS=${FFLAGS+set}
5011 ac_save_FFLAGS=$FFLAGS
5012 FFLAGS=
5013 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5014 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5015 if test "${ac_cv_prog_f77_g+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   FFLAGS=-g
5019 cat >conftest.$ac_ext <<_ACEOF
5020       program main
5021
5022       end
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026   (eval $ac_compile) 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } &&
5033          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035   (eval $ac_try) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); }; } &&
5039          { ac_try='test -s conftest.$ac_objext'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_cv_prog_f77_g=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_cv_prog_f77_g=no
5051 fi
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053
5054 fi
5055 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5056 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5057 if test "$ac_test_FFLAGS" = set; then
5058   FFLAGS=$ac_save_FFLAGS
5059 elif test $ac_cv_prog_f77_g = yes; then
5060   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5061     FFLAGS="-g -O2"
5062   else
5063     FFLAGS="-g"
5064   fi
5065 else
5066   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5067     FFLAGS="-O2"
5068   else
5069     FFLAGS=
5070   fi
5071 fi
5072
5073 G77=`test $ac_compiler_gnu = yes && echo yes`
5074 ac_ext=c
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079
5080
5081
5082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5083
5084 # find the maximum length of command line arguments
5085 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5086 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5087 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090     i=0
5091   teststring="ABCD"
5092
5093   case $build_os in
5094   msdosdjgpp*)
5095     # On DJGPP, this test can blow up pretty badly due to problems in libc
5096     # (any single argument exceeding 2000 bytes causes a buffer overrun
5097     # during glob expansion).  Even if it were fixed, the result of this
5098     # check would be larger than it should be.
5099     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5100     ;;
5101
5102   gnu*)
5103     # Under GNU Hurd, this test is not required because there is
5104     # no limit to the length of command line arguments.
5105     # Libtool will interpret -1 as no limit whatsoever
5106     lt_cv_sys_max_cmd_len=-1;
5107     ;;
5108
5109   cygwin* | mingw*)
5110     # On Win9x/ME, this test blows up -- it succeeds, but takes
5111     # about 5 minutes as the teststring grows exponentially.
5112     # Worse, since 9x/ME are not pre-emptively multitasking,
5113     # you end up with a "frozen" computer, even though with patience
5114     # the test eventually succeeds (with a max line length of 256k).
5115     # Instead, let's just punt: use the minimum linelength reported by
5116     # all of the supported platforms: 8192 (on NT/2K/XP).
5117     lt_cv_sys_max_cmd_len=8192;
5118     ;;
5119
5120   amigaos*)
5121     # On AmigaOS with pdksh, this test takes hours, literally.
5122     # So we just punt and use a minimum line length of 8192.
5123     lt_cv_sys_max_cmd_len=8192;
5124     ;;
5125
5126  *)
5127     # If test is not a shell built-in, we'll probably end up computing a
5128     # maximum length that is only half of the actual maximum length, but
5129     # we can't tell.
5130     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5131                = "XX$teststring") >/dev/null 2>&1 &&
5132             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5133             lt_cv_sys_max_cmd_len=$new_result &&
5134             test $i != 17 # 1/2 MB should be enough
5135     do
5136       i=`expr $i + 1`
5137       teststring=$teststring$teststring
5138     done
5139     teststring=
5140     # Add a significant safety factor because C++ compilers can tack on massive
5141     # amounts of additional arguments before passing them to the linker.
5142     # It appears as though 1/2 is a usable value.
5143     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5144     ;;
5145   esac
5146
5147 fi
5148
5149 if test -n $lt_cv_sys_max_cmd_len ; then
5150   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5151 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5152 else
5153   echo "$as_me:$LINENO: result: none" >&5
5154 echo "${ECHO_T}none" >&6
5155 fi
5156
5157
5158
5159
5160 # Check for command to grab the raw symbol name followed by C symbol from nm.
5161 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5162 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5163 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166
5167 # These are sane defaults that work on at least a few old systems.
5168 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5169
5170 # Character class describing NM global symbol codes.
5171 symcode='[BCDEGRST]'
5172
5173 # Regexp to match symbols that can be accessed directly from C.
5174 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5175
5176 # Transform the above into a raw symbol and a C symbol.
5177 symxfrm='\1 \2\3 \3'
5178
5179 # Transform an extracted symbol line into a proper C declaration
5180 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5181
5182 # Transform an extracted symbol line into symbol name and symbol address
5183 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'"
5184
5185 # Define system-specific variables.
5186 case $host_os in
5187 aix*)
5188   symcode='[BCDT]'
5189   ;;
5190 cygwin* | mingw* | pw32*)
5191   symcode='[ABCDGISTW]'
5192   ;;
5193 hpux*) # Its linker distinguishes data from code symbols
5194   if test "$host_cpu" = ia64; then
5195     symcode='[ABCDEGRST]'
5196   fi
5197   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5198   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'"
5199   ;;
5200 irix* | nonstopux*)
5201   symcode='[BCDEGRST]'
5202   ;;
5203 osf*)
5204   symcode='[BCDEGQRST]'
5205   ;;
5206 solaris* | sysv5*)
5207   symcode='[BDRT]'
5208   ;;
5209 sysv4)
5210   symcode='[DFNSTU]'
5211   ;;
5212 esac
5213
5214 # Handle CRLF in mingw tool chain
5215 opt_cr=
5216 case $build_os in
5217 mingw*)
5218   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5219   ;;
5220 esac
5221
5222 # If we're using GNU nm, then use its standard symbol codes.
5223 case `$NM -V 2>&1` in
5224 *GNU* | *'with BFD'*)
5225   symcode='[ABCDGIRSTW]' ;;
5226 esac
5227
5228 # Try without a prefix undercore, then with it.
5229 for ac_symprfx in "" "_"; do
5230
5231   # Write the raw and C identifiers.
5232   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5233
5234   # Check to see that the pipe works correctly.
5235   pipe_works=no
5236
5237   rm -f conftest*
5238   cat > conftest.$ac_ext <<EOF
5239 #ifdef __cplusplus
5240 extern "C" {
5241 #endif
5242 char nm_test_var;
5243 void nm_test_func(){}
5244 #ifdef __cplusplus
5245 }
5246 #endif
5247 int main(){nm_test_var='a';nm_test_func();return(0);}
5248 EOF
5249
5250   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251   (eval $ac_compile) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; then
5255     # Now try to grab the symbols.
5256     nlist=conftest.nm
5257     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5258   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } && test -s "$nlist"; then
5262       # Try sorting and uniquifying the output.
5263       if sort "$nlist" | uniq > "$nlist"T; then
5264         mv -f "$nlist"T "$nlist"
5265       else
5266         rm -f "$nlist"T
5267       fi
5268
5269       # Make sure that we snagged all the symbols we need.
5270       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5271         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5272           cat <<EOF > conftest.$ac_ext
5273 #ifdef __cplusplus
5274 extern "C" {
5275 #endif
5276
5277 EOF
5278           # Now generate the symbol file.
5279           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5280
5281           cat <<EOF >> conftest.$ac_ext
5282 #if defined (__STDC__) && __STDC__
5283 # define lt_ptr_t void *
5284 #else
5285 # define lt_ptr_t char *
5286 # define const
5287 #endif
5288
5289 /* The mapping between symbol names and symbols. */
5290 const struct {
5291   const char *name;
5292   lt_ptr_t address;
5293 }
5294 lt_preloaded_symbols[] =
5295 {
5296 EOF
5297           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5298           cat <<\EOF >> conftest.$ac_ext
5299   {0, (lt_ptr_t) 0}
5300 };
5301
5302 #ifdef __cplusplus
5303 }
5304 #endif
5305 EOF
5306           # Now try linking the two files.
5307           mv conftest.$ac_objext conftstm.$ac_objext
5308           lt_save_LIBS="$LIBS"
5309           lt_save_CFLAGS="$CFLAGS"
5310           LIBS="conftstm.$ac_objext"
5311           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5312           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313   (eval $ac_link) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5317             pipe_works=yes
5318           fi
5319           LIBS="$lt_save_LIBS"
5320           CFLAGS="$lt_save_CFLAGS"
5321         else
5322           echo "cannot find nm_test_func in $nlist" >&5
5323         fi
5324       else
5325         echo "cannot find nm_test_var in $nlist" >&5
5326       fi
5327     else
5328       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5329     fi
5330   else
5331     echo "$progname: failed program was:" >&5
5332     cat conftest.$ac_ext >&5
5333   fi
5334   rm -f conftest* conftst*
5335
5336   # Do not use the global_symbol_pipe unless it works.
5337   if test "$pipe_works" = yes; then
5338     break
5339   else
5340     lt_cv_sys_global_symbol_pipe=
5341   fi
5342 done
5343
5344 fi
5345
5346 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5347   lt_cv_sys_global_symbol_to_cdecl=
5348 fi
5349 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5350   echo "$as_me:$LINENO: result: failed" >&5
5351 echo "${ECHO_T}failed" >&6
5352 else
5353   echo "$as_me:$LINENO: result: ok" >&5
5354 echo "${ECHO_T}ok" >&6
5355 fi
5356
5357 echo "$as_me:$LINENO: checking for objdir" >&5
5358 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5359 if test "${lt_cv_objdir+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   rm -f .libs 2>/dev/null
5363 mkdir .libs 2>/dev/null
5364 if test -d .libs; then
5365   lt_cv_objdir=.libs
5366 else
5367   # MS-DOS does not allow filenames that begin with a dot.
5368   lt_cv_objdir=_libs
5369 fi
5370 rmdir .libs 2>/dev/null
5371 fi
5372 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5373 echo "${ECHO_T}$lt_cv_objdir" >&6
5374 objdir=$lt_cv_objdir
5375
5376
5377
5378
5379
5380 case $host_os in
5381 aix3*)
5382   # AIX sometimes has problems with the GCC collect2 program.  For some
5383   # reason, if we set the COLLECT_NAMES environment variable, the problems
5384   # vanish in a puff of smoke.
5385   if test "X${COLLECT_NAMES+set}" != Xset; then
5386     COLLECT_NAMES=
5387     export COLLECT_NAMES
5388   fi
5389   ;;
5390 esac
5391
5392 # Sed substitution that helps us do robust quoting.  It backslashifies
5393 # metacharacters that are still active within double-quoted strings.
5394 Xsed='sed -e s/^X//'
5395 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5396
5397 # Same as above, but do not quote variable references.
5398 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5399
5400 # Sed substitution to delay expansion of an escaped shell variable in a
5401 # double_quote_subst'ed string.
5402 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5403
5404 # Sed substitution to avoid accidental globbing in evaled expressions
5405 no_glob_subst='s/\*/\\\*/g'
5406
5407 # Constants:
5408 rm="rm -f"
5409
5410 # Global variables:
5411 default_ofile=libtool
5412 can_build_shared=yes
5413
5414 # All known linkers require a `.a' archive for static linking (except M$VC,
5415 # which needs '.lib').
5416 libext=a
5417 ltmain="$ac_aux_dir/ltmain.sh"
5418 ofile="$default_ofile"
5419 with_gnu_ld="$lt_cv_prog_gnu_ld"
5420
5421 if test -n "$ac_tool_prefix"; then
5422   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}ar; ac_word=$2
5424 echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426 if test "${ac_cv_prog_AR+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   if test -n "$AR"; then
5430   ac_cv_prog_AR="$AR" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437   for ac_exec_ext in '' $ac_executable_extensions; do
5438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439     ac_cv_prog_AR="${ac_tool_prefix}ar"
5440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444 done
5445
5446 fi
5447 fi
5448 AR=$ac_cv_prog_AR
5449 if test -n "$AR"; then
5450   echo "$as_me:$LINENO: result: $AR" >&5
5451 echo "${ECHO_T}$AR" >&6
5452 else
5453   echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455 fi
5456
5457 fi
5458 if test -z "$ac_cv_prog_AR"; then
5459   ac_ct_AR=$AR
5460   # Extract the first word of "ar", so it can be a program name with args.
5461 set dummy ar; ac_word=$2
5462 echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   if test -n "$ac_ct_AR"; then
5468   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475   for ac_exec_ext in '' $ac_executable_extensions; do
5476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_prog_ac_ct_AR="ar"
5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482 done
5483
5484   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5485 fi
5486 fi
5487 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5488 if test -n "$ac_ct_AR"; then
5489   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5490 echo "${ECHO_T}$ac_ct_AR" >&6
5491 else
5492   echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6
5494 fi
5495
5496   AR=$ac_ct_AR
5497 else
5498   AR="$ac_cv_prog_AR"
5499 fi
5500
5501 if test -n "$ac_tool_prefix"; then
5502   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5504 echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506 if test "${ac_cv_prog_RANLIB+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   if test -n "$RANLIB"; then
5510   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517   for ac_exec_ext in '' $ac_executable_extensions; do
5518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521     break 2
5522   fi
5523 done
5524 done
5525
5526 fi
5527 fi
5528 RANLIB=$ac_cv_prog_RANLIB
5529 if test -n "$RANLIB"; then
5530   echo "$as_me:$LINENO: result: $RANLIB" >&5
5531 echo "${ECHO_T}$RANLIB" >&6
5532 else
5533   echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5535 fi
5536
5537 fi
5538 if test -z "$ac_cv_prog_RANLIB"; then
5539   ac_ct_RANLIB=$RANLIB
5540   # Extract the first word of "ranlib", so it can be a program name with args.
5541 set dummy ranlib; ac_word=$2
5542 echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   if test -n "$ac_ct_RANLIB"; then
5548   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553   IFS=$as_save_IFS
5554   test -z "$as_dir" && as_dir=.
5555   for ac_exec_ext in '' $ac_executable_extensions; do
5556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557     ac_cv_prog_ac_ct_RANLIB="ranlib"
5558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559     break 2
5560   fi
5561 done
5562 done
5563
5564   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5565 fi
5566 fi
5567 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5568 if test -n "$ac_ct_RANLIB"; then
5569   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5570 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5571 else
5572   echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5574 fi
5575
5576   RANLIB=$ac_ct_RANLIB
5577 else
5578   RANLIB="$ac_cv_prog_RANLIB"
5579 fi
5580
5581 if test -n "$ac_tool_prefix"; then
5582   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5583 set dummy ${ac_tool_prefix}strip; ac_word=$2
5584 echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586 if test "${ac_cv_prog_STRIP+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   if test -n "$STRIP"; then
5590   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597   for ac_exec_ext in '' $ac_executable_extensions; do
5598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604 done
5605
5606 fi
5607 fi
5608 STRIP=$ac_cv_prog_STRIP
5609 if test -n "$STRIP"; then
5610   echo "$as_me:$LINENO: result: $STRIP" >&5
5611 echo "${ECHO_T}$STRIP" >&6
5612 else
5613   echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615 fi
5616
5617 fi
5618 if test -z "$ac_cv_prog_STRIP"; then
5619   ac_ct_STRIP=$STRIP
5620   # Extract the first word of "strip", so it can be a program name with args.
5621 set dummy strip; ac_word=$2
5622 echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   if test -n "$ac_ct_STRIP"; then
5628   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635   for ac_exec_ext in '' $ac_executable_extensions; do
5636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637     ac_cv_prog_ac_ct_STRIP="strip"
5638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639     break 2
5640   fi
5641 done
5642 done
5643
5644   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5645 fi
5646 fi
5647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5648 if test -n "$ac_ct_STRIP"; then
5649   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5650 echo "${ECHO_T}$ac_ct_STRIP" >&6
5651 else
5652   echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5654 fi
5655
5656   STRIP=$ac_ct_STRIP
5657 else
5658   STRIP="$ac_cv_prog_STRIP"
5659 fi
5660
5661
5662 old_CC="$CC"
5663 old_CFLAGS="$CFLAGS"
5664
5665 # Set sane defaults for various variables
5666 test -z "$AR" && AR=ar
5667 test -z "$AR_FLAGS" && AR_FLAGS=cru
5668 test -z "$AS" && AS=as
5669 test -z "$CC" && CC=cc
5670 test -z "$LTCC" && LTCC=$CC
5671 test -z "$DLLTOOL" && DLLTOOL=dlltool
5672 test -z "$LD" && LD=ld
5673 test -z "$LN_S" && LN_S="ln -s"
5674 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5675 test -z "$NM" && NM=nm
5676 test -z "$SED" && SED=sed
5677 test -z "$OBJDUMP" && OBJDUMP=objdump
5678 test -z "$RANLIB" && RANLIB=:
5679 test -z "$STRIP" && STRIP=:
5680 test -z "$ac_objext" && ac_objext=o
5681
5682 # Determine commands to create old-style static archives.
5683 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5684 old_postinstall_cmds='chmod 644 $oldlib'
5685 old_postuninstall_cmds=
5686
5687 if test -n "$RANLIB"; then
5688   case $host_os in
5689   openbsd*)
5690     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5691     ;;
5692   *)
5693     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5694     ;;
5695   esac
5696   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5697 fi
5698
5699 # Only perform the check for file, if the check method requires it
5700 case $deplibs_check_method in
5701 file_magic*)
5702   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5703     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5704 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   case $MAGIC_CMD in
5709 [\\/*] |  ?:[\\/]*)
5710   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5711   ;;
5712 *)
5713   lt_save_MAGIC_CMD="$MAGIC_CMD"
5714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5715   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5716   for ac_dir in $ac_dummy; do
5717     IFS="$lt_save_ifs"
5718     test -z "$ac_dir" && ac_dir=.
5719     if test -f $ac_dir/${ac_tool_prefix}file; then
5720       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5721       if test -n "$file_magic_test_file"; then
5722         case $deplibs_check_method in
5723         "file_magic "*)
5724           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5725           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5726           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5727             $EGREP "$file_magic_regex" > /dev/null; then
5728             :
5729           else
5730             cat <<EOF 1>&2
5731
5732 *** Warning: the command libtool uses to detect shared libraries,
5733 *** $file_magic_cmd, produces output that libtool cannot recognize.
5734 *** The result is that libtool may fail to recognize shared libraries
5735 *** as such.  This will affect the creation of libtool libraries that
5736 *** depend on shared libraries, but programs linked with such libtool
5737 *** libraries will work regardless of this problem.  Nevertheless, you
5738 *** may want to report the problem to your system manager and/or to
5739 *** bug-libtool@gnu.org
5740
5741 EOF
5742           fi ;;
5743         esac
5744       fi
5745       break
5746     fi
5747   done
5748   IFS="$lt_save_ifs"
5749   MAGIC_CMD="$lt_save_MAGIC_CMD"
5750   ;;
5751 esac
5752 fi
5753
5754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5755 if test -n "$MAGIC_CMD"; then
5756   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5757 echo "${ECHO_T}$MAGIC_CMD" >&6
5758 else
5759   echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5761 fi
5762
5763 if test -z "$lt_cv_path_MAGIC_CMD"; then
5764   if test -n "$ac_tool_prefix"; then
5765     echo "$as_me:$LINENO: checking for file" >&5
5766 echo $ECHO_N "checking for file... $ECHO_C" >&6
5767 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   case $MAGIC_CMD in
5771 [\\/*] |  ?:[\\/]*)
5772   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5773   ;;
5774 *)
5775   lt_save_MAGIC_CMD="$MAGIC_CMD"
5776   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5777   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5778   for ac_dir in $ac_dummy; do
5779     IFS="$lt_save_ifs"
5780     test -z "$ac_dir" && ac_dir=.
5781     if test -f $ac_dir/file; then
5782       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5783       if test -n "$file_magic_test_file"; then
5784         case $deplibs_check_method in
5785         "file_magic "*)
5786           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5787           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5788           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5789             $EGREP "$file_magic_regex" > /dev/null; then
5790             :
5791           else
5792             cat <<EOF 1>&2
5793
5794 *** Warning: the command libtool uses to detect shared libraries,
5795 *** $file_magic_cmd, produces output that libtool cannot recognize.
5796 *** The result is that libtool may fail to recognize shared libraries
5797 *** as such.  This will affect the creation of libtool libraries that
5798 *** depend on shared libraries, but programs linked with such libtool
5799 *** libraries will work regardless of this problem.  Nevertheless, you
5800 *** may want to report the problem to your system manager and/or to
5801 *** bug-libtool@gnu.org
5802
5803 EOF
5804           fi ;;
5805         esac
5806       fi
5807       break
5808     fi
5809   done
5810   IFS="$lt_save_ifs"
5811   MAGIC_CMD="$lt_save_MAGIC_CMD"
5812   ;;
5813 esac
5814 fi
5815
5816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5817 if test -n "$MAGIC_CMD"; then
5818   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5819 echo "${ECHO_T}$MAGIC_CMD" >&6
5820 else
5821   echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5823 fi
5824
5825   else
5826     MAGIC_CMD=:
5827   fi
5828 fi
5829
5830   fi
5831   ;;
5832 esac
5833
5834 enable_dlopen=yes
5835 enable_win32_dll=no
5836
5837 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5838 if test "${enable_libtool_lock+set}" = set; then
5839   enableval="$enable_libtool_lock"
5840
5841 fi;
5842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5843
5844
5845 # Check whether --with-pic or --without-pic was given.
5846 if test "${with_pic+set}" = set; then
5847   withval="$with_pic"
5848   pic_mode="$withval"
5849 else
5850   pic_mode=default
5851 fi;
5852 test -z "$pic_mode" && pic_mode=default
5853
5854 # Use C for the default configuration in the libtool script
5855 tagname=
5856 lt_save_CC="$CC"
5857 ac_ext=c
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862
5863
5864 # Source file extension for C test sources.
5865 ac_ext=c
5866
5867 # Object file extension for compiled C test sources.
5868 objext=o
5869 objext=$objext
5870
5871 # Code to be used in simple compile tests
5872 lt_simple_compile_test_code="int some_variable = 0;\n"
5873
5874 # Code to be used in simple link tests
5875 lt_simple_link_test_code='int main(){return(0);}\n'
5876
5877
5878 # If no C compiler was specified, use CC.
5879 LTCC=${LTCC-"$CC"}
5880
5881 # Allow CC to be a program name with arguments.
5882 compiler=$CC
5883
5884
5885 #
5886 # Check for any special shared library compilation flags.
5887 #
5888 lt_prog_cc_shlib=
5889 if test "$GCC" = no; then
5890   case $host_os in
5891   sco3.2v5*)
5892     lt_prog_cc_shlib='-belf'
5893     ;;
5894   esac
5895 fi
5896 if test -n "$lt_prog_cc_shlib"; then
5897   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5898 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5899   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5900   else
5901     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5902 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5903     lt_cv_prog_cc_can_build_shared=no
5904   fi
5905 fi
5906
5907
5908 #
5909 # Check to make sure the static flag actually works.
5910 #
5911 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5912 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5913 if test "${lt_prog_compiler_static_works+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   lt_prog_compiler_static_works=no
5917    save_LDFLAGS="$LDFLAGS"
5918    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5919    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5920    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5921      # The compiler can only warn and ignore the option if not recognized
5922      # So say no if there are warnings
5923      if test -s conftest.err; then
5924        # Append any errors to the config.log.
5925        cat conftest.err 1>&5
5926      else
5927        lt_prog_compiler_static_works=yes
5928      fi
5929    fi
5930    $rm conftest*
5931    LDFLAGS="$save_LDFLAGS"
5932
5933 fi
5934 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5935 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5936
5937 if test x"$lt_prog_compiler_static_works" = xyes; then
5938     :
5939 else
5940     lt_prog_compiler_static=
5941 fi
5942
5943
5944
5945
5946 lt_prog_compiler_no_builtin_flag=
5947
5948 if test "$GCC" = yes; then
5949   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5950
5951
5952 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5953 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5954 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   lt_cv_prog_compiler_rtti_exceptions=no
5958   ac_outfile=conftest.$ac_objext
5959    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5960    lt_compiler_flag="-fno-rtti -fno-exceptions"
5961    # Insert the option either (1) after the last *FLAGS variable, or
5962    # (2) before a word containing "conftest.", or (3) at the end.
5963    # Note that $ac_compile itself does not contain backslashes and begins
5964    # with a dollar sign (not a hyphen), so the echo should work correctly.
5965    # The option is referenced via a variable to avoid confusing sed.
5966    lt_compile=`echo "$ac_compile" | $SED \
5967    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5968    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5969    -e 's:$: $lt_compiler_flag:'`
5970    (eval echo "\"\$as_me:5970: $lt_compile\"" >&5)
5971    (eval "$lt_compile" 2>conftest.err)
5972    ac_status=$?
5973    cat conftest.err >&5
5974    echo "$as_me:5974: \$? = $ac_status" >&5
5975    if (exit $ac_status) && test -s "$ac_outfile"; then
5976      # The compiler can only warn and ignore the option if not recognized
5977      # So say no if there are warnings
5978      if test ! -s conftest.err; then
5979        lt_cv_prog_compiler_rtti_exceptions=yes
5980      fi
5981    fi
5982    $rm conftest*
5983
5984 fi
5985 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5986 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5987
5988 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5989     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5990 else
5991     :
5992 fi
5993
5994 fi
5995
5996 lt_prog_compiler_wl=
5997 lt_prog_compiler_pic=
5998 lt_prog_compiler_static=
5999
6000 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6001 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6002
6003   if test "$GCC" = yes; then
6004     lt_prog_compiler_wl='-Wl,'
6005     lt_prog_compiler_static='-static'
6006
6007     case $host_os in
6008       aix*)
6009       # All AIX code is PIC.
6010       if test "$host_cpu" = ia64; then
6011         # AIX 5 now supports IA64 processor
6012         lt_prog_compiler_static='-Bstatic'
6013       fi
6014       ;;
6015
6016     amigaos*)
6017       # FIXME: we need at least 68020 code to build shared libraries, but
6018       # adding the `-m68020' flag to GCC prevents building anything better,
6019       # like `-m68040'.
6020       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6021       ;;
6022
6023     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6024       # PIC is the default for these OSes.
6025       ;;
6026
6027     mingw* | pw32* | os2*)
6028       # This hack is so that the source file can tell whether it is being
6029       # built for inclusion in a dll (and should export symbols for example).
6030       lt_prog_compiler_pic='-DDLL_EXPORT'
6031       ;;
6032
6033     darwin* | rhapsody*)
6034       # PIC is the default on this platform
6035       # Common symbols not allowed in MH_DYLIB files
6036       lt_prog_compiler_pic='-fno-common'
6037       ;;
6038
6039     msdosdjgpp*)
6040       # Just because we use GCC doesn't mean we suddenly get shared libraries
6041       # on systems that don't support them.
6042       lt_prog_compiler_can_build_shared=no
6043       enable_shared=no
6044       ;;
6045
6046     sysv4*MP*)
6047       if test -d /usr/nec; then
6048         lt_prog_compiler_pic=-Kconform_pic
6049       fi
6050       ;;
6051
6052     hpux*)
6053       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6054       # not for PA HP-UX.
6055       case "$host_cpu" in
6056       hppa*64*|ia64*)
6057         # +Z the default
6058         ;;
6059       *)
6060         lt_prog_compiler_pic='-fPIC'
6061         ;;
6062       esac
6063       ;;
6064
6065     *)
6066       lt_prog_compiler_pic='-fPIC'
6067       ;;
6068     esac
6069   else
6070     # PORTME Check for flag to pass linker flags through the system compiler.
6071     case $host_os in
6072     aix*)
6073       lt_prog_compiler_wl='-Wl,'
6074       if test "$host_cpu" = ia64; then
6075         # AIX 5 now supports IA64 processor
6076         lt_prog_compiler_static='-Bstatic'
6077       else
6078         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6079       fi
6080       ;;
6081
6082     mingw* | pw32* | os2*)
6083       # This hack is so that the source file can tell whether it is being
6084       # built for inclusion in a dll (and should export symbols for example).
6085       lt_prog_compiler_pic='-DDLL_EXPORT'
6086       ;;
6087
6088     hpux9* | hpux10* | hpux11*)
6089       lt_prog_compiler_wl='-Wl,'
6090       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6091       # not for PA HP-UX.
6092       case "$host_cpu" in
6093       hppa*64*|ia64*)
6094         # +Z the default
6095         ;;
6096       *)
6097         lt_prog_compiler_pic='+Z'
6098         ;;
6099       esac
6100       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6101       lt_prog_compiler_static='${wl}-a ${wl}archive'
6102       ;;
6103
6104     irix5* | irix6* | nonstopux*)
6105       lt_prog_compiler_wl='-Wl,'
6106       # PIC (with -KPIC) is the default.
6107       lt_prog_compiler_static='-non_shared'
6108       ;;
6109
6110     newsos6)
6111       lt_prog_compiler_pic='-KPIC'
6112       lt_prog_compiler_static='-Bstatic'
6113       ;;
6114
6115     linux*)
6116       case $CC in
6117       icc* | ecc*)
6118         lt_prog_compiler_wl='-Wl,'
6119         lt_prog_compiler_pic='-KPIC'
6120         lt_prog_compiler_static='-static'
6121         ;;
6122       ccc*)
6123         lt_prog_compiler_wl='-Wl,'
6124         # All Alpha code is PIC.
6125         lt_prog_compiler_static='-non_shared'
6126         ;;
6127       esac
6128       ;;
6129
6130     osf3* | osf4* | osf5*)
6131       lt_prog_compiler_wl='-Wl,'
6132       # All OSF/1 code is PIC.
6133       lt_prog_compiler_static='-non_shared'
6134       ;;
6135
6136     sco3.2v5*)
6137       lt_prog_compiler_pic='-Kpic'
6138       lt_prog_compiler_static='-dn'
6139       ;;
6140
6141     solaris*)
6142       lt_prog_compiler_wl='-Wl,'
6143       lt_prog_compiler_pic='-KPIC'
6144       lt_prog_compiler_static='-Bstatic'
6145       ;;
6146
6147     sunos4*)
6148       lt_prog_compiler_wl='-Qoption ld '
6149       lt_prog_compiler_pic='-PIC'
6150       lt_prog_compiler_static='-Bstatic'
6151       ;;
6152
6153     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6154       lt_prog_compiler_wl='-Wl,'
6155       lt_prog_compiler_pic='-KPIC'
6156       lt_prog_compiler_static='-Bstatic'
6157       ;;
6158
6159     sysv4*MP*)
6160       if test -d /usr/nec ;then
6161         lt_prog_compiler_pic='-Kconform_pic'
6162         lt_prog_compiler_static='-Bstatic'
6163       fi
6164       ;;
6165
6166     uts4*)
6167       lt_prog_compiler_pic='-pic'
6168       lt_prog_compiler_static='-Bstatic'
6169       ;;
6170
6171     *)
6172       lt_prog_compiler_can_build_shared=no
6173       ;;
6174     esac
6175   fi
6176
6177 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6178 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6179
6180 #
6181 # Check to make sure the PIC flag actually works.
6182 #
6183 if test -n "$lt_prog_compiler_pic"; then
6184
6185 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6186 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6187 if test "${lt_prog_compiler_pic_works+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   lt_prog_compiler_pic_works=no
6191   ac_outfile=conftest.$ac_objext
6192    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6193    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6194    # Insert the option either (1) after the last *FLAGS variable, or
6195    # (2) before a word containing "conftest.", or (3) at the end.
6196    # Note that $ac_compile itself does not contain backslashes and begins
6197    # with a dollar sign (not a hyphen), so the echo should work correctly.
6198    # The option is referenced via a variable to avoid confusing sed.
6199    lt_compile=`echo "$ac_compile" | $SED \
6200    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6202    -e 's:$: $lt_compiler_flag:'`
6203    (eval echo "\"\$as_me:6203: $lt_compile\"" >&5)
6204    (eval "$lt_compile" 2>conftest.err)
6205    ac_status=$?
6206    cat conftest.err >&5
6207    echo "$as_me:6207: \$? = $ac_status" >&5
6208    if (exit $ac_status) && test -s "$ac_outfile"; then
6209      # The compiler can only warn and ignore the option if not recognized
6210      # So say no if there are warnings
6211      if test ! -s conftest.err; then
6212        lt_prog_compiler_pic_works=yes
6213      fi
6214    fi
6215    $rm conftest*
6216
6217 fi
6218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6219 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6220
6221 if test x"$lt_prog_compiler_pic_works" = xyes; then
6222     case $lt_prog_compiler_pic in
6223      "" | " "*) ;;
6224      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6225      esac
6226 else
6227     lt_prog_compiler_pic=
6228      lt_prog_compiler_can_build_shared=no
6229 fi
6230
6231 fi
6232 case "$host_os" in
6233   # For platforms which do not support PIC, -DPIC is meaningless:
6234   *djgpp*)
6235     lt_prog_compiler_pic=
6236     ;;
6237   *)
6238     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6239     ;;
6240 esac
6241
6242 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6243 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6244 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   lt_cv_prog_compiler_c_o=no
6248    $rm -r conftest 2>/dev/null
6249    mkdir conftest
6250    cd conftest
6251    mkdir out
6252    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6253
6254    lt_compiler_flag="-o out/conftest2.$ac_objext"
6255    # Insert the option either (1) after the last *FLAGS variable, or
6256    # (2) before a word containing "conftest.", or (3) at the end.
6257    # Note that $ac_compile itself does not contain backslashes and begins
6258    # with a dollar sign (not a hyphen), so the echo should work correctly.
6259    lt_compile=`echo "$ac_compile" | $SED \
6260    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6262    -e 's:$: $lt_compiler_flag:'`
6263    (eval echo "\"\$as_me:6263: $lt_compile\"" >&5)
6264    (eval "$lt_compile" 2>out/conftest.err)
6265    ac_status=$?
6266    cat out/conftest.err >&5
6267    echo "$as_me:6267: \$? = $ac_status" >&5
6268    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6269    then
6270      # The compiler can only warn and ignore the option if not recognized
6271      # So say no if there are warnings
6272      if test ! -s out/conftest.err; then
6273        lt_cv_prog_compiler_c_o=yes
6274      fi
6275    fi
6276    chmod u+w .
6277    $rm conftest*
6278    # SGI C++ compiler will create directory out/ii_files/ for
6279    # template instantiation
6280    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6281    $rm out/* && rmdir out
6282    cd ..
6283    rmdir conftest
6284    $rm conftest*
6285
6286 fi
6287 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6288 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6289
6290
6291 hard_links="nottested"
6292 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6293   # do not overwrite the value of need_locks provided by the user
6294   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6295 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6296   hard_links=yes
6297   $rm conftest*
6298   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6299   touch conftest.a
6300   ln conftest.a conftest.b 2>&5 || hard_links=no
6301   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6302   echo "$as_me:$LINENO: result: $hard_links" >&5
6303 echo "${ECHO_T}$hard_links" >&6
6304   if test "$hard_links" = no; then
6305     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6306 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6307     need_locks=warn
6308   fi
6309 else
6310   need_locks=no
6311 fi
6312
6313 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6314 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6315
6316   runpath_var=
6317   allow_undefined_flag=
6318   enable_shared_with_static_runtimes=no
6319   archive_cmds=
6320   archive_expsym_cmds=
6321   old_archive_From_new_cmds=
6322   old_archive_from_expsyms_cmds=
6323   export_dynamic_flag_spec=
6324   whole_archive_flag_spec=
6325   thread_safe_flag_spec=
6326   hardcode_libdir_flag_spec=
6327   hardcode_libdir_flag_spec_ld=
6328   hardcode_libdir_separator=
6329   hardcode_direct=no
6330   hardcode_minus_L=no
6331   hardcode_shlibpath_var=unsupported
6332   link_all_deplibs=unknown
6333   hardcode_automatic=no
6334   module_cmds=
6335   module_expsym_cmds=
6336   always_export_symbols=no
6337   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6338   # include_expsyms should be a list of space-separated symbols to be *always*
6339   # included in the symbol list
6340   include_expsyms=
6341   # exclude_expsyms can be an extended regexp of symbols to exclude
6342   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6343   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6344   # as well as any symbol that contains `d'.
6345   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6346   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6347   # platforms (ab)use it in PIC code, but their linkers get confused if
6348   # the symbol is explicitly referenced.  Since portable code cannot
6349   # rely on this symbol name, it's probably fine to never include it in
6350   # preloaded symbol tables.
6351   extract_expsyms_cmds=
6352
6353   case $host_os in
6354   cygwin* | mingw* | pw32*)
6355     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6356     # When not using gcc, we currently assume that we are using
6357     # Microsoft Visual C++.
6358     if test "$GCC" != yes; then
6359       with_gnu_ld=no
6360     fi
6361     ;;
6362   openbsd*)
6363     with_gnu_ld=no
6364     ;;
6365   esac
6366
6367   ld_shlibs=yes
6368   if test "$with_gnu_ld" = yes; then
6369     # If archive_cmds runs LD, not CC, wlarc should be empty
6370     wlarc='${wl}'
6371
6372     # See if GNU ld supports shared libraries.
6373     case $host_os in
6374     aix3* | aix4* | aix5*)
6375       # On AIX/PPC, the GNU linker is very broken
6376       if test "$host_cpu" != ia64; then
6377         ld_shlibs=no
6378         cat <<EOF 1>&2
6379
6380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6381 *** to be unable to reliably create shared libraries on AIX.
6382 *** Therefore, libtool is disabling shared libraries support.  If you
6383 *** really care for shared libraries, you may want to modify your PATH
6384 *** so that a non-GNU linker is found, and then restart.
6385
6386 EOF
6387       fi
6388       ;;
6389
6390     amigaos*)
6391       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)'
6392       hardcode_libdir_flag_spec='-L$libdir'
6393       hardcode_minus_L=yes
6394
6395       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6396       # that the semantics of dynamic libraries on AmigaOS, at least up
6397       # to version 4, is to share data among multiple programs linked
6398       # with the same dynamic library.  Since this doesn't match the
6399       # behavior of shared libraries on other platforms, we can't use
6400       # them.
6401       ld_shlibs=no
6402       ;;
6403
6404     beos*)
6405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6406         allow_undefined_flag=unsupported
6407         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6408         # support --undefined.  This deserves some investigation.  FIXME
6409         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6410       else
6411         ld_shlibs=no
6412       fi
6413       ;;
6414
6415     cygwin* | mingw* | pw32*)
6416       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6417       # as there is no search path for DLLs.
6418       hardcode_libdir_flag_spec='-L$libdir'
6419       allow_undefined_flag=unsupported
6420       always_export_symbols=no
6421       enable_shared_with_static_runtimes=yes
6422       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6423
6424       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6425         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6426         # If the export-symbols file already is a .def file (1st line
6427         # is EXPORTS), use it as is; otherwise, prepend...
6428         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6429           cp $export_symbols $output_objdir/$soname.def;
6430         else
6431           echo EXPORTS > $output_objdir/$soname.def;
6432           cat $export_symbols >> $output_objdir/$soname.def;
6433         fi~
6434         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6435       else
6436         ld_shlibs=no
6437       fi
6438       ;;
6439
6440     netbsd* | knetbsd*-gnu)
6441       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6442         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6443         wlarc=
6444       else
6445         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6446         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6447       fi
6448       ;;
6449
6450     solaris* | sysv5*)
6451       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6452         ld_shlibs=no
6453         cat <<EOF 1>&2
6454
6455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6456 *** create shared libraries on Solaris systems.  Therefore, libtool
6457 *** is disabling shared libraries support.  We urge you to upgrade GNU
6458 *** binutils to release 2.9.1 or newer.  Another option is to modify
6459 *** your PATH or compiler configuration so that the native linker is
6460 *** used, and then restart.
6461
6462 EOF
6463       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6464         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6465         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6466       else
6467         ld_shlibs=no
6468       fi
6469       ;;
6470
6471     sunos4*)
6472       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6473       wlarc=
6474       hardcode_direct=yes
6475       hardcode_shlibpath_var=no
6476       ;;
6477
6478   linux*)
6479     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6480         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6481         archive_cmds="$tmp_archive_cmds"
6482       supports_anon_versioning=no
6483       case `$LD -v 2>/dev/null` in
6484         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6485         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6486         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6487         *\ 2.11.*) ;; # other 2.11 versions
6488         *) supports_anon_versioning=yes ;;
6489       esac
6490       if test $supports_anon_versioning = yes; then
6491         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6493 $echo "local: *; };" >> $output_objdir/$libname.ver~
6494         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6495       else
6496         archive_expsym_cmds="$tmp_archive_cmds"
6497       fi
6498       link_all_deplibs=no
6499     else
6500       ld_shlibs=no
6501     fi
6502     ;;
6503
6504     *)
6505       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6506         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6507         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6508       else
6509         ld_shlibs=no
6510       fi
6511       ;;
6512     esac
6513
6514     if test "$ld_shlibs" = yes; then
6515       runpath_var=LD_RUN_PATH
6516       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6517       export_dynamic_flag_spec='${wl}--export-dynamic'
6518       # ancient GNU ld didn't support --whole-archive et. al.
6519       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6520         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6521       else
6522         whole_archive_flag_spec=
6523       fi
6524     fi
6525   else
6526     # PORTME fill in a description of your system's linker (not GNU ld)
6527     case $host_os in
6528     aix3*)
6529       allow_undefined_flag=unsupported
6530       always_export_symbols=yes
6531       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'
6532       # Note: this linker hardcodes the directories in LIBPATH if there
6533       # are no directories specified by -L.
6534       hardcode_minus_L=yes
6535       if test "$GCC" = yes && test -z "$link_static_flag"; then
6536         # Neither direct hardcoding nor static linking is supported with a
6537         # broken collect2.
6538         hardcode_direct=unsupported
6539       fi
6540       ;;
6541
6542     aix4* | aix5*)
6543       if test "$host_cpu" = ia64; then
6544         # On IA64, the linker does run time linking by default, so we don't
6545         # have to do anything special.
6546         aix_use_runtimelinking=no
6547         exp_sym_flag='-Bexport'
6548         no_entry_flag=""
6549       else
6550         # If we're using GNU nm, then we don't want the "-C" option.
6551         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6552         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6553           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'
6554         else
6555           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'
6556         fi
6557         aix_use_runtimelinking=no
6558
6559         # Test if we are trying to use run time linking or normal
6560         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6561         # need to do runtime linking.
6562         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6563           for ld_flag in $LDFLAGS; do
6564           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6565             aix_use_runtimelinking=yes
6566             break
6567           fi
6568           done
6569         esac
6570
6571         exp_sym_flag='-bexport'
6572         no_entry_flag='-bnoentry'
6573       fi
6574
6575       # When large executables or shared objects are built, AIX ld can
6576       # have problems creating the table of contents.  If linking a library
6577       # or program results in "error TOC overflow" add -mminimal-toc to
6578       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6579       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6580
6581       archive_cmds=''
6582       hardcode_direct=yes
6583       hardcode_libdir_separator=':'
6584       link_all_deplibs=yes
6585
6586       if test "$GCC" = yes; then
6587         case $host_os in aix4.012|aix4.012.*)
6588         # We only want to do this on AIX 4.2 and lower, the check
6589         # below for broken collect2 doesn't work under 4.3+
6590           collect2name=`${CC} -print-prog-name=collect2`
6591           if test -f "$collect2name" && \
6592            strings "$collect2name" | grep resolve_lib_name >/dev/null
6593           then
6594           # We have reworked collect2
6595           hardcode_direct=yes
6596           else
6597           # We have old collect2
6598           hardcode_direct=unsupported
6599           # It fails to find uninstalled libraries when the uninstalled
6600           # path is not listed in the libpath.  Setting hardcode_minus_L
6601           # to unsupported forces relinking
6602           hardcode_minus_L=yes
6603           hardcode_libdir_flag_spec='-L$libdir'
6604           hardcode_libdir_separator=
6605           fi
6606         esac
6607         shared_flag='-shared'
6608       else
6609         # not using gcc
6610         if test "$host_cpu" = ia64; then
6611         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6612         # chokes on -Wl,-G. The following line is correct:
6613           shared_flag='-G'
6614         else
6615         if test "$aix_use_runtimelinking" = yes; then
6616             shared_flag='${wl}-G'
6617           else
6618             shared_flag='${wl}-bM:SRE'
6619         fi
6620         fi
6621       fi
6622
6623       # It seems that -bexpall does not export symbols beginning with
6624       # underscore (_), so it is better to generate a list of symbols to export.
6625       always_export_symbols=yes
6626       if test "$aix_use_runtimelinking" = yes; then
6627         # Warning - without using the other runtime loading flags (-brtl),
6628         # -berok will link without error, but may produce a broken library.
6629         allow_undefined_flag='-berok'
6630        # Determine the default libpath from the value encoded in an empty executable.
6631        cat >conftest.$ac_ext <<_ACEOF
6632 /* confdefs.h.  */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h.  */
6637
6638 int
6639 main ()
6640 {
6641
6642   ;
6643   return 0;
6644 }
6645 _ACEOF
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648   (eval $ac_link) 2>conftest.er1
6649   ac_status=$?
6650   grep -v '^ *+' conftest.er1 >conftest.err
6651   rm -f conftest.er1
6652   cat conftest.err >&5
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } &&
6655          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; } &&
6661          { ac_try='test -s conftest$ac_exeext'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; }; then
6667
6668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6669 }'`
6670 # Check for a 64-bit object if we didn't find anything.
6671 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; }
6672 }'`; fi
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 fi
6678 rm -f conftest.err conftest.$ac_objext \
6679       conftest$ac_exeext conftest.$ac_ext
6680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6681
6682        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6683         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"
6684        else
6685         if test "$host_cpu" = ia64; then
6686           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6687           allow_undefined_flag="-z nodefs"
6688           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"
6689         else
6690          # Determine the default libpath from the value encoded in an empty executable.
6691          cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h.  */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h.  */
6697
6698 int
6699 main ()
6700 {
6701
6702   ;
6703   return 0;
6704 }
6705 _ACEOF
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6708   (eval $ac_link) 2>conftest.er1
6709   ac_status=$?
6710   grep -v '^ *+' conftest.er1 >conftest.err
6711   rm -f conftest.er1
6712   cat conftest.err >&5
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); } &&
6715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717   (eval $ac_try) 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); }; } &&
6721          { ac_try='test -s conftest$ac_exeext'
6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723   (eval $ac_try) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; }; then
6727
6728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6729 }'`
6730 # Check for a 64-bit object if we didn't find anything.
6731 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; }
6732 }'`; fi
6733 else
6734   echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 fi
6738 rm -f conftest.err conftest.$ac_objext \
6739       conftest$ac_exeext conftest.$ac_ext
6740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6741
6742          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6743           # Warning - without using the other run time loading flags,
6744           # -berok will link without error, but may produce a broken library.
6745           no_undefined_flag=' ${wl}-bernotok'
6746           allow_undefined_flag=' ${wl}-berok'
6747           # -bexpall does not export symbols beginning with underscore (_)
6748           always_export_symbols=yes
6749           # Exported symbols can be pulled into shared objects from archives
6750           whole_archive_flag_spec=' '
6751           archive_cmds_need_lc=yes
6752           # This is similar to how AIX traditionally builds it's shared libraries.
6753           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'
6754         fi
6755       fi
6756       ;;
6757
6758     amigaos*)
6759       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)'
6760       hardcode_libdir_flag_spec='-L$libdir'
6761       hardcode_minus_L=yes
6762       # see comment about different semantics on the GNU ld section
6763       ld_shlibs=no
6764       ;;
6765
6766     bsdi4*)
6767       export_dynamic_flag_spec=-rdynamic
6768       ;;
6769
6770     cygwin* | mingw* | pw32*)
6771       # When not using gcc, we currently assume that we are using
6772       # Microsoft Visual C++.
6773       # hardcode_libdir_flag_spec is actually meaningless, as there is
6774       # no search path for DLLs.
6775       hardcode_libdir_flag_spec=' '
6776       allow_undefined_flag=unsupported
6777       # Tell ltmain to make .lib files, not .a files.
6778       libext=lib
6779       # Tell ltmain to make .dll files, not .so files.
6780       shrext_cmds=".dll"
6781       # FIXME: Setting linknames here is a bad hack.
6782       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6783       # The linker will automatically build a .lib file if we build a DLL.
6784       old_archive_From_new_cmds='true'
6785       # FIXME: Should let the user specify the lib program.
6786       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6787       fix_srcfile_path='`cygpath -w "$srcfile"`'
6788       enable_shared_with_static_runtimes=yes
6789       ;;
6790
6791     darwin* | rhapsody*)
6792     if test "$GXX" = yes ; then
6793       archive_cmds_need_lc=no
6794       case "$host_os" in
6795       rhapsody* | darwin1.[012])
6796         allow_undefined_flag='-undefined suppress'
6797         ;;
6798       *) # Darwin 1.3 on
6799       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6800         allow_undefined_flag='-flat_namespace -undefined suppress'
6801       else
6802         case ${MACOSX_DEPLOYMENT_TARGET} in
6803           10.[012])
6804             allow_undefined_flag='-flat_namespace -undefined suppress'
6805             ;;
6806           10.*)
6807             allow_undefined_flag='-undefined dynamic_lookup'
6808             ;;
6809         esac
6810       fi
6811         ;;
6812       esac
6813         lt_int_apple_cc_single_mod=no
6814         output_verbose_link_cmd='echo'
6815         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6816           lt_int_apple_cc_single_mod=yes
6817         fi
6818         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6819           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6820         else
6821         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'
6822       fi
6823       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6824       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6825         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6826           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}'
6827         else
6828           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}'
6829         fi
6830           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}'
6831       hardcode_direct=no
6832       hardcode_automatic=yes
6833       hardcode_shlibpath_var=unsupported
6834       whole_archive_flag_spec='-all_load $convenience'
6835       link_all_deplibs=yes
6836     else
6837       ld_shlibs=no
6838     fi
6839       ;;
6840
6841     dgux*)
6842       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6843       hardcode_libdir_flag_spec='-L$libdir'
6844       hardcode_shlibpath_var=no
6845       ;;
6846
6847     freebsd1*)
6848       ld_shlibs=no
6849       ;;
6850
6851     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6852     # support.  Future versions do this automatically, but an explicit c++rt0.o
6853     # does not break anything, and helps significantly (at the cost of a little
6854     # extra space).
6855     freebsd2.2*)
6856       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6857       hardcode_libdir_flag_spec='-R$libdir'
6858       hardcode_direct=yes
6859       hardcode_shlibpath_var=no
6860       ;;
6861
6862     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6863     freebsd2*)
6864       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6865       hardcode_direct=yes
6866       hardcode_minus_L=yes
6867       hardcode_shlibpath_var=no
6868       ;;
6869
6870     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6871     freebsd* | kfreebsd*-gnu)
6872       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6873       hardcode_libdir_flag_spec='-R$libdir'
6874       hardcode_direct=yes
6875       hardcode_shlibpath_var=no
6876       ;;
6877
6878     hpux9*)
6879       if test "$GCC" = yes; then
6880         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'
6881       else
6882         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'
6883       fi
6884       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6885       hardcode_libdir_separator=:
6886       hardcode_direct=yes
6887
6888       # hardcode_minus_L: Not really in the search PATH,
6889       # but as the default location of the library.
6890       hardcode_minus_L=yes
6891       export_dynamic_flag_spec='${wl}-E'
6892       ;;
6893
6894     hpux10* | hpux11*)
6895       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6896         case "$host_cpu" in
6897         hppa*64*|ia64*)
6898           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6899           ;;
6900         *)
6901           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6902           ;;
6903         esac
6904       else
6905         case "$host_cpu" in
6906         hppa*64*|ia64*)
6907           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6908           ;;
6909         *)
6910           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6911           ;;
6912         esac
6913       fi
6914       if test "$with_gnu_ld" = no; then
6915         case "$host_cpu" in
6916         hppa*64*)
6917           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6918           hardcode_libdir_flag_spec_ld='+b $libdir'
6919           hardcode_libdir_separator=:
6920           hardcode_direct=no
6921           hardcode_shlibpath_var=no
6922           ;;
6923         ia64*)
6924           hardcode_libdir_flag_spec='-L$libdir'
6925           hardcode_direct=no
6926           hardcode_shlibpath_var=no
6927
6928           # hardcode_minus_L: Not really in the search PATH,
6929           # but as the default location of the library.
6930           hardcode_minus_L=yes
6931           ;;
6932         *)
6933           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6934           hardcode_libdir_separator=:
6935           hardcode_direct=yes
6936           export_dynamic_flag_spec='${wl}-E'
6937
6938           # hardcode_minus_L: Not really in the search PATH,
6939           # but as the default location of the library.
6940           hardcode_minus_L=yes
6941           ;;
6942         esac
6943       fi
6944       ;;
6945
6946     irix5* | irix6* | nonstopux*)
6947       if test "$GCC" = yes; then
6948         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'
6949       else
6950         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'
6951         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6952       fi
6953       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6954       hardcode_libdir_separator=:
6955       link_all_deplibs=yes
6956       ;;
6957
6958     netbsd* | knetbsd*-gnu)
6959       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6960         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6961       else
6962         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6963       fi
6964       hardcode_libdir_flag_spec='-R$libdir'
6965       hardcode_direct=yes
6966       hardcode_shlibpath_var=no
6967       ;;
6968
6969     newsos6)
6970       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971       hardcode_direct=yes
6972       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6973       hardcode_libdir_separator=:
6974       hardcode_shlibpath_var=no
6975       ;;
6976
6977     openbsd*)
6978       hardcode_direct=yes
6979       hardcode_shlibpath_var=no
6980       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6981         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6982         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6983         export_dynamic_flag_spec='${wl}-E'
6984       else
6985        case $host_os in
6986          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6987            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6988            hardcode_libdir_flag_spec='-R$libdir'
6989            ;;
6990          *)
6991            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6992            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6993            ;;
6994        esac
6995       fi
6996       ;;
6997
6998     os2*)
6999       hardcode_libdir_flag_spec='-L$libdir'
7000       hardcode_minus_L=yes
7001       allow_undefined_flag=unsupported
7002       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'
7003       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7004       ;;
7005
7006     osf3*)
7007       if test "$GCC" = yes; then
7008         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7009         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'
7010       else
7011         allow_undefined_flag=' -expect_unresolved \*'
7012         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'
7013       fi
7014       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7015       hardcode_libdir_separator=:
7016       ;;
7017
7018     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7019       if test "$GCC" = yes; then
7020         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7021         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'
7022         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7023       else
7024         allow_undefined_flag=' -expect_unresolved \*'
7025         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'
7026         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7027         $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'
7028
7029         # Both c and cxx compiler support -rpath directly
7030         hardcode_libdir_flag_spec='-rpath $libdir'
7031       fi
7032       hardcode_libdir_separator=:
7033       ;;
7034
7035     sco3.2v5*)
7036       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7037       hardcode_shlibpath_var=no
7038       export_dynamic_flag_spec='${wl}-Bexport'
7039       runpath_var=LD_RUN_PATH
7040       hardcode_runpath_var=yes
7041       ;;
7042
7043     solaris*)
7044       no_undefined_flag=' -z text'
7045       if test "$GCC" = yes; then
7046         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7047         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7048           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7049       else
7050         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7051         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7052         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7053       fi
7054       hardcode_libdir_flag_spec='-R$libdir'
7055       hardcode_shlibpath_var=no
7056       case $host_os in
7057       solaris2.[0-5] | solaris2.[0-5].*) ;;
7058       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7059         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7060       esac
7061       link_all_deplibs=yes
7062       ;;
7063
7064     sunos4*)
7065       if test "x$host_vendor" = xsequent; then
7066         # Use $CC to link under sequent, because it throws in some extra .o
7067         # files that make .init and .fini sections work.
7068         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7069       else
7070         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7071       fi
7072       hardcode_libdir_flag_spec='-L$libdir'
7073       hardcode_direct=yes
7074       hardcode_minus_L=yes
7075       hardcode_shlibpath_var=no
7076       ;;
7077
7078     sysv4)
7079       case $host_vendor in
7080         sni)
7081           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7082           hardcode_direct=yes # is this really true???
7083         ;;
7084         siemens)
7085           ## LD is ld it makes a PLAMLIB
7086           ## CC just makes a GrossModule.
7087           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7088           reload_cmds='$CC -r -o $output$reload_objs'
7089           hardcode_direct=no
7090         ;;
7091         motorola)
7092           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7093           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7094         ;;
7095       esac
7096       runpath_var='LD_RUN_PATH'
7097       hardcode_shlibpath_var=no
7098       ;;
7099
7100     sysv4.3*)
7101       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7102       hardcode_shlibpath_var=no
7103       export_dynamic_flag_spec='-Bexport'
7104       ;;
7105
7106     sysv4*MP*)
7107       if test -d /usr/nec; then
7108         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7109         hardcode_shlibpath_var=no
7110         runpath_var=LD_RUN_PATH
7111         hardcode_runpath_var=yes
7112         ld_shlibs=yes
7113       fi
7114       ;;
7115
7116     sysv4.2uw2*)
7117       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7118       hardcode_direct=yes
7119       hardcode_minus_L=no
7120       hardcode_shlibpath_var=no
7121       hardcode_runpath_var=yes
7122       runpath_var=LD_RUN_PATH
7123       ;;
7124
7125    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7126       no_undefined_flag='${wl}-z ${wl}text'
7127       if test "$GCC" = yes; then
7128         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7129       else
7130         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7131       fi
7132       runpath_var='LD_RUN_PATH'
7133       hardcode_shlibpath_var=no
7134       ;;
7135
7136     sysv5*)
7137       no_undefined_flag=' -z text'
7138       # $CC -shared without GNU ld will not create a library from C++
7139       # object files and a static libstdc++, better avoid it by now
7140       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7141       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7142                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7143       hardcode_libdir_flag_spec=
7144       hardcode_shlibpath_var=no
7145       runpath_var='LD_RUN_PATH'
7146       ;;
7147
7148     uts4*)
7149       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7150       hardcode_libdir_flag_spec='-L$libdir'
7151       hardcode_shlibpath_var=no
7152       ;;
7153
7154     *)
7155       ld_shlibs=no
7156       ;;
7157     esac
7158   fi
7159
7160 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7161 echo "${ECHO_T}$ld_shlibs" >&6
7162 test "$ld_shlibs" = no && can_build_shared=no
7163
7164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7165 if test "$GCC" = yes; then
7166   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7167 fi
7168
7169 #
7170 # Do we need to explicitly link libc?
7171 #
7172 case "x$archive_cmds_need_lc" in
7173 x|xyes)
7174   # Assume -lc should be added
7175   archive_cmds_need_lc=yes
7176
7177   if test "$enable_shared" = yes && test "$GCC" = yes; then
7178     case $archive_cmds in
7179     *'~'*)
7180       # FIXME: we may have to deal with multi-command sequences.
7181       ;;
7182     '$CC '*)
7183       # Test whether the compiler implicitly links with -lc since on some
7184       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7185       # to ld, don't add -lc before -lgcc.
7186       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7188       $rm conftest*
7189       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7190
7191       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192   (eval $ac_compile) 2>&5
7193   ac_status=$?
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); } 2>conftest.err; then
7196         soname=conftest
7197         lib=conftest
7198         libobjs=conftest.$ac_objext
7199         deplibs=
7200         wl=$lt_prog_compiler_wl
7201         compiler_flags=-v
7202         linker_flags=-v
7203         verstring=
7204         output_objdir=.
7205         libname=conftest
7206         lt_save_allow_undefined_flag=$allow_undefined_flag
7207         allow_undefined_flag=
7208         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7209   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }
7213         then
7214           archive_cmds_need_lc=no
7215         else
7216           archive_cmds_need_lc=yes
7217         fi
7218         allow_undefined_flag=$lt_save_allow_undefined_flag
7219       else
7220         cat conftest.err 1>&5
7221       fi
7222       $rm conftest*
7223       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7224 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7225       ;;
7226     esac
7227   fi
7228   ;;
7229 esac
7230
7231 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7233 library_names_spec=
7234 libname_spec='lib$name'
7235 soname_spec=
7236 shrext_cmds=".so"
7237 postinstall_cmds=
7238 postuninstall_cmds=
7239 finish_cmds=
7240 finish_eval=
7241 shlibpath_var=
7242 shlibpath_overrides_runpath=unknown
7243 version_type=none
7244 dynamic_linker="$host_os ld.so"
7245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7246 if test "$GCC" = yes; then
7247   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7248   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7249     # if the path contains ";" then we assume it to be the separator
7250     # otherwise default to the standard path separator (i.e. ":") - it is
7251     # assumed that no part of a normal pathname contains ";" but that should
7252     # okay in the real world where ";" in dirpaths is itself problematic.
7253     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7254   else
7255     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7256   fi
7257 else
7258   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7259 fi
7260 need_lib_prefix=unknown
7261 hardcode_into_libs=no
7262
7263 # when you set need_version to no, make sure it does not cause -set_version
7264 # flags to be left without arguments
7265 need_version=unknown
7266
7267 case $host_os in
7268 aix3*)
7269   version_type=linux
7270   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7271   shlibpath_var=LIBPATH
7272
7273   # AIX 3 has no versioning support, so we append a major version to the name.
7274   soname_spec='${libname}${release}${shared_ext}$major'
7275   ;;
7276
7277 aix4* | aix5*)
7278   version_type=linux
7279   need_lib_prefix=no
7280   need_version=no
7281   hardcode_into_libs=yes
7282   if test "$host_cpu" = ia64; then
7283     # AIX 5 supports IA64
7284     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7285     shlibpath_var=LD_LIBRARY_PATH
7286   else
7287     # With GCC up to 2.95.x, collect2 would create an import file
7288     # for dependence libraries.  The import file would start with
7289     # the line `#! .'.  This would cause the generated library to
7290     # depend on `.', always an invalid library.  This was fixed in
7291     # development snapshots of GCC prior to 3.0.
7292     case $host_os in
7293       aix4 | aix4.[01] | aix4.[01].*)
7294       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7295            echo ' yes '
7296            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7297         :
7298       else
7299         can_build_shared=no
7300       fi
7301       ;;
7302     esac
7303     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7304     # soname into executable. Probably we can add versioning support to
7305     # collect2, so additional links can be useful in future.
7306     if test "$aix_use_runtimelinking" = yes; then
7307       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7308       # instead of lib<name>.a to let people know that these are not
7309       # typical AIX shared libraries.
7310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7311     else
7312       # We preserve .a as extension for shared libraries through AIX4.2
7313       # and later when we are not doing run time linking.
7314       library_names_spec='${libname}${release}.a $libname.a'
7315       soname_spec='${libname}${release}${shared_ext}$major'
7316     fi
7317     shlibpath_var=LIBPATH
7318   fi
7319   ;;
7320
7321 amigaos*)
7322   library_names_spec='$libname.ixlibrary $libname.a'
7323   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7324   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'
7325   ;;
7326
7327 beos*)
7328   library_names_spec='${libname}${shared_ext}'
7329   dynamic_linker="$host_os ld.so"
7330   shlibpath_var=LIBRARY_PATH
7331   ;;
7332
7333 bsdi4*)
7334   version_type=linux
7335   need_version=no
7336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337   soname_spec='${libname}${release}${shared_ext}$major'
7338   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7339   shlibpath_var=LD_LIBRARY_PATH
7340   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7341   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7342   # the default ld.so.conf also contains /usr/contrib/lib and
7343   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7344   # libtool to hard-code these into programs
7345   ;;
7346
7347 cygwin* | mingw* | pw32*)
7348   version_type=windows
7349   shrext_cmds=".dll"
7350   need_version=no
7351   need_lib_prefix=no
7352
7353   case $GCC,$host_os in
7354   yes,cygwin* | yes,mingw* | yes,pw32*)
7355     library_names_spec='$libname.dll.a'
7356     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7357     postinstall_cmds='base_file=`basename \${file}`~
7358       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7359       dldir=$destdir/`dirname \$dlpath`~
7360       test -d \$dldir || mkdir -p \$dldir~
7361       $install_prog $dir/$dlname \$dldir/$dlname'
7362     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7363       dlpath=$dir/\$dldll~
7364        $rm \$dlpath'
7365     shlibpath_overrides_runpath=yes
7366
7367     case $host_os in
7368     cygwin*)
7369       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7370       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7371       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7372       ;;
7373     mingw*)
7374       # MinGW DLLs use traditional 'lib' prefix
7375       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7376       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7377       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7378         # It is most probably a Windows format PATH printed by
7379         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7380         # path with ; separators, and with drive letters. We can handle the
7381         # drive letters (cygwin fileutils understands them), so leave them,
7382         # especially as we might pass files found there to a mingw objdump,
7383         # which wouldn't understand a cygwinified path. Ahh.
7384         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7385       else
7386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7387       fi
7388       ;;
7389     pw32*)
7390       # pw32 DLLs use 'pw' prefix rather than 'lib'
7391       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7392       ;;
7393     esac
7394     ;;
7395
7396   *)
7397     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7398     ;;
7399   esac
7400   dynamic_linker='Win32 ld.exe'
7401   # FIXME: first we should search . and the directory the executable is in
7402   shlibpath_var=PATH
7403   ;;
7404
7405 darwin* | rhapsody*)
7406   dynamic_linker="$host_os dyld"
7407   version_type=darwin
7408   need_lib_prefix=no
7409   need_version=no
7410   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7411   soname_spec='${libname}${release}${major}$shared_ext'
7412   shlibpath_overrides_runpath=yes
7413   shlibpath_var=DYLD_LIBRARY_PATH
7414   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7415   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7416   if test "$GCC" = yes; then
7417     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"`
7418   else
7419     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7420   fi
7421   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7422   ;;
7423
7424 dgux*)
7425   version_type=linux
7426   need_lib_prefix=no
7427   need_version=no
7428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7429   soname_spec='${libname}${release}${shared_ext}$major'
7430   shlibpath_var=LD_LIBRARY_PATH
7431   ;;
7432
7433 freebsd1*)
7434   dynamic_linker=no
7435   ;;
7436
7437 kfreebsd*-gnu)
7438   version_type=linux
7439   need_lib_prefix=no
7440   need_version=no
7441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7442   soname_spec='${libname}${release}${shared_ext}$major'
7443   shlibpath_var=LD_LIBRARY_PATH
7444   shlibpath_overrides_runpath=no
7445   hardcode_into_libs=yes
7446   dynamic_linker='GNU ld.so'
7447   ;;
7448
7449 freebsd*)
7450   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7451   version_type=freebsd-$objformat
7452   case $version_type in
7453     freebsd-elf*)
7454       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7455       need_version=no
7456       need_lib_prefix=no
7457       ;;
7458     freebsd-*)
7459       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7460       need_version=yes
7461       ;;
7462   esac
7463   shlibpath_var=LD_LIBRARY_PATH
7464   case $host_os in
7465   freebsd2*)
7466     shlibpath_overrides_runpath=yes
7467     ;;
7468   freebsd3.01* | freebsdelf3.01*)
7469     shlibpath_overrides_runpath=yes
7470     hardcode_into_libs=yes
7471     ;;
7472   *) # from 3.2 on
7473     shlibpath_overrides_runpath=no
7474     hardcode_into_libs=yes
7475     ;;
7476   esac
7477   ;;
7478
7479 gnu*)
7480   version_type=linux
7481   need_lib_prefix=no
7482   need_version=no
7483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7484   soname_spec='${libname}${release}${shared_ext}$major'
7485   shlibpath_var=LD_LIBRARY_PATH
7486   hardcode_into_libs=yes
7487   ;;
7488
7489 hpux9* | hpux10* | hpux11*)
7490   # Give a soname corresponding to the major version so that dld.sl refuses to
7491   # link against other versions.
7492   version_type=sunos
7493   need_lib_prefix=no
7494   need_version=no
7495   case "$host_cpu" in
7496   ia64*)
7497     shrext_cmds='.so'
7498     hardcode_into_libs=yes
7499     dynamic_linker="$host_os dld.so"
7500     shlibpath_var=LD_LIBRARY_PATH
7501     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503     soname_spec='${libname}${release}${shared_ext}$major'
7504     if test "X$HPUX_IA64_MODE" = X32; then
7505       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7506     else
7507       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7508     fi
7509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7510     ;;
7511    hppa*64*)
7512      shrext_cmds='.sl'
7513      hardcode_into_libs=yes
7514      dynamic_linker="$host_os dld.sl"
7515      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7516      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7517      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7518      soname_spec='${libname}${release}${shared_ext}$major'
7519      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7520      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7521      ;;
7522    *)
7523     shrext_cmds='.sl'
7524     dynamic_linker="$host_os dld.sl"
7525     shlibpath_var=SHLIB_PATH
7526     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7528     soname_spec='${libname}${release}${shared_ext}$major'
7529     ;;
7530   esac
7531   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7532   postinstall_cmds='chmod 555 $lib'
7533   ;;
7534
7535 irix5* | irix6* | nonstopux*)
7536   case $host_os in
7537     nonstopux*) version_type=nonstopux ;;
7538     *)
7539         if test "$lt_cv_prog_gnu_ld" = yes; then
7540                 version_type=linux
7541         else
7542                 version_type=irix
7543         fi ;;
7544   esac
7545   need_lib_prefix=no
7546   need_version=no
7547   soname_spec='${libname}${release}${shared_ext}$major'
7548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7549   case $host_os in
7550   irix5* | nonstopux*)
7551     libsuff= shlibsuff=
7552     ;;
7553   *)
7554     case $LD in # libtool.m4 will add one of these switches to LD
7555     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7556       libsuff= shlibsuff= libmagic=32-bit;;
7557     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7558       libsuff=32 shlibsuff=N32 libmagic=N32;;
7559     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7560       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7561     *) libsuff= shlibsuff= libmagic=never-match;;
7562     esac
7563     ;;
7564   esac
7565   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7566   shlibpath_overrides_runpath=no
7567   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7568   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7569   hardcode_into_libs=yes
7570   ;;
7571
7572 # No shared lib support for Linux oldld, aout, or coff.
7573 linux*oldld* | linux*aout* | linux*coff*)
7574   dynamic_linker=no
7575   ;;
7576
7577 # This must be Linux ELF.
7578 linux*)
7579   version_type=linux
7580   need_lib_prefix=no
7581   need_version=no
7582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7583   soname_spec='${libname}${release}${shared_ext}$major'
7584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7585   shlibpath_var=LD_LIBRARY_PATH
7586   shlibpath_overrides_runpath=no
7587   # This implies no fast_install, which is unacceptable.
7588   # Some rework will be needed to allow for fast_install
7589   # before this can be enabled.
7590   hardcode_into_libs=yes
7591
7592   # Append ld.so.conf contents to the search path
7593   if test -f /etc/ld.so.conf; then
7594     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7595     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7596   fi
7597
7598   # We used to test for /lib/ld.so.1 and disable shared libraries on
7599   # powerpc, because MkLinux only supported shared libraries with the
7600   # GNU dynamic linker.  Since this was broken with cross compilers,
7601   # most powerpc-linux boxes support dynamic linking these days and
7602   # people can always --disable-shared, the test was removed, and we
7603   # assume the GNU/Linux dynamic linker is in use.
7604   dynamic_linker='GNU/Linux ld.so'
7605   ;;
7606
7607 knetbsd*-gnu)
7608   version_type=linux
7609   need_lib_prefix=no
7610   need_version=no
7611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7612   soname_spec='${libname}${release}${shared_ext}$major'
7613   shlibpath_var=LD_LIBRARY_PATH
7614   shlibpath_overrides_runpath=no
7615   hardcode_into_libs=yes
7616   dynamic_linker='GNU ld.so'
7617   ;;
7618
7619 netbsd*)
7620   version_type=sunos
7621   need_lib_prefix=no
7622   need_version=no
7623   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7625     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7626     dynamic_linker='NetBSD (a.out) ld.so'
7627   else
7628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7629     soname_spec='${libname}${release}${shared_ext}$major'
7630     dynamic_linker='NetBSD ld.elf_so'
7631   fi
7632   shlibpath_var=LD_LIBRARY_PATH
7633   shlibpath_overrides_runpath=yes
7634   hardcode_into_libs=yes
7635   ;;
7636
7637 newsos6)
7638   version_type=linux
7639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7640   shlibpath_var=LD_LIBRARY_PATH
7641   shlibpath_overrides_runpath=yes
7642   ;;
7643
7644 nto-qnx*)
7645   version_type=linux
7646   need_lib_prefix=no
7647   need_version=no
7648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7649   soname_spec='${libname}${release}${shared_ext}$major'
7650   shlibpath_var=LD_LIBRARY_PATH
7651   shlibpath_overrides_runpath=yes
7652   ;;
7653
7654 openbsd*)
7655   version_type=sunos
7656   need_lib_prefix=no
7657   need_version=yes
7658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7660   shlibpath_var=LD_LIBRARY_PATH
7661   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7662     case $host_os in
7663       openbsd2.[89] | openbsd2.[89].*)
7664         shlibpath_overrides_runpath=no
7665         ;;
7666       *)
7667         shlibpath_overrides_runpath=yes
7668         ;;
7669       esac
7670   else
7671     shlibpath_overrides_runpath=yes
7672   fi
7673   ;;
7674
7675 os2*)
7676   libname_spec='$name'
7677   shrext_cmds=".dll"
7678   need_lib_prefix=no
7679   library_names_spec='$libname${shared_ext} $libname.a'
7680   dynamic_linker='OS/2 ld.exe'
7681   shlibpath_var=LIBPATH
7682   ;;
7683
7684 osf3* | osf4* | osf5*)
7685   version_type=osf
7686   need_lib_prefix=no
7687   need_version=no
7688   soname_spec='${libname}${release}${shared_ext}$major'
7689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7690   shlibpath_var=LD_LIBRARY_PATH
7691   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7692   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7693   ;;
7694
7695 sco3.2v5*)
7696   version_type=osf
7697   soname_spec='${libname}${release}${shared_ext}$major'
7698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7699   shlibpath_var=LD_LIBRARY_PATH
7700   ;;
7701
7702 solaris*)
7703   version_type=linux
7704   need_lib_prefix=no
7705   need_version=no
7706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7707   soname_spec='${libname}${release}${shared_ext}$major'
7708   shlibpath_var=LD_LIBRARY_PATH
7709   shlibpath_overrides_runpath=yes
7710   hardcode_into_libs=yes
7711   # ldd complains unless libraries are executable
7712   postinstall_cmds='chmod +x $lib'
7713   ;;
7714
7715 sunos4*)
7716   version_type=sunos
7717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7719   shlibpath_var=LD_LIBRARY_PATH
7720   shlibpath_overrides_runpath=yes
7721   if test "$with_gnu_ld" = yes; then
7722     need_lib_prefix=no
7723   fi
7724   need_version=yes
7725   ;;
7726
7727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7728   version_type=linux
7729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730   soname_spec='${libname}${release}${shared_ext}$major'
7731   shlibpath_var=LD_LIBRARY_PATH
7732   case $host_vendor in
7733     sni)
7734       shlibpath_overrides_runpath=no
7735       need_lib_prefix=no
7736       export_dynamic_flag_spec='${wl}-Blargedynsym'
7737       runpath_var=LD_RUN_PATH
7738       ;;
7739     siemens)
7740       need_lib_prefix=no
7741       ;;
7742     motorola)
7743       need_lib_prefix=no
7744       need_version=no
7745       shlibpath_overrides_runpath=no
7746       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7747       ;;
7748   esac
7749   ;;
7750
7751 sysv4*MP*)
7752   if test -d /usr/nec ;then
7753     version_type=linux
7754     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7755     soname_spec='$libname${shared_ext}.$major'
7756     shlibpath_var=LD_LIBRARY_PATH
7757   fi
7758   ;;
7759
7760 uts4*)
7761   version_type=linux
7762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7763   soname_spec='${libname}${release}${shared_ext}$major'
7764   shlibpath_var=LD_LIBRARY_PATH
7765   ;;
7766
7767 *)
7768   dynamic_linker=no
7769   ;;
7770 esac
7771 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7772 echo "${ECHO_T}$dynamic_linker" >&6
7773 test "$dynamic_linker" = no && can_build_shared=no
7774
7775 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7776 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7777 hardcode_action=
7778 if test -n "$hardcode_libdir_flag_spec" || \
7779    test -n "$runpath_var " || \
7780    test "X$hardcode_automatic"="Xyes" ; then
7781
7782   # We can hardcode non-existant directories.
7783   if test "$hardcode_direct" != no &&
7784      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7785      # have to relink, otherwise we might link with an installed library
7786      # when we should be linking with a yet-to-be-installed one
7787      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7788      test "$hardcode_minus_L" != no; then
7789     # Linking always hardcodes the temporary library directory.
7790     hardcode_action=relink
7791   else
7792     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7793     hardcode_action=immediate
7794   fi
7795 else
7796   # We cannot hardcode anything, or else we can only hardcode existing
7797   # directories.
7798   hardcode_action=unsupported
7799 fi
7800 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7801 echo "${ECHO_T}$hardcode_action" >&6
7802
7803 if test "$hardcode_action" = relink; then
7804   # Fast installation is not supported
7805   enable_fast_install=no
7806 elif test "$shlibpath_overrides_runpath" = yes ||
7807      test "$enable_shared" = no; then
7808   # Fast installation is not necessary
7809   enable_fast_install=needless
7810 fi
7811
7812 striplib=
7813 old_striplib=
7814 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7815 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7816 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7817   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7818   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7819   echo "$as_me:$LINENO: result: yes" >&5
7820 echo "${ECHO_T}yes" >&6
7821 else
7822 # FIXME - insert some real tests, host_os isn't really good enough
7823   case $host_os in
7824    darwin*)
7825        if test -n "$STRIP" ; then
7826          striplib="$STRIP -x"
7827          echo "$as_me:$LINENO: result: yes" >&5
7828 echo "${ECHO_T}yes" >&6
7829        else
7830   echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832 fi
7833        ;;
7834    *)
7835   echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6
7837     ;;
7838   esac
7839 fi
7840
7841 if test "x$enable_dlopen" != xyes; then
7842   enable_dlopen=unknown
7843   enable_dlopen_self=unknown
7844   enable_dlopen_self_static=unknown
7845 else
7846   lt_cv_dlopen=no
7847   lt_cv_dlopen_libs=
7848
7849   case $host_os in
7850   beos*)
7851     lt_cv_dlopen="load_add_on"
7852     lt_cv_dlopen_libs=
7853     lt_cv_dlopen_self=yes
7854     ;;
7855
7856   mingw* | pw32*)
7857     lt_cv_dlopen="LoadLibrary"
7858     lt_cv_dlopen_libs=
7859    ;;
7860
7861   cygwin*)
7862     lt_cv_dlopen="dlopen"
7863     lt_cv_dlopen_libs=
7864    ;;
7865
7866   darwin*)
7867   # if libdl is installed we need to link against it
7868     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7869 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873   ac_check_lib_save_LIBS=$LIBS
7874 LIBS="-ldl  $LIBS"
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h.  */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h.  */
7881
7882 /* Override any gcc2 internal prototype to avoid an error.  */
7883 #ifdef __cplusplus
7884 extern "C"
7885 #endif
7886 /* We use char because int might match the return type of a gcc2
7887    builtin and then its argument prototype would still apply.  */
7888 char dlopen ();
7889 int
7890 main ()
7891 {
7892 dlopen ();
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899   (eval $ac_link) 2>conftest.er1
7900   ac_status=$?
7901   grep -v '^ *+' conftest.er1 >conftest.err
7902   rm -f conftest.er1
7903   cat conftest.err >&5
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } &&
7906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest$ac_exeext'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   ac_cv_lib_dl_dlopen=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 ac_cv_lib_dl_dlopen=no
7924 fi
7925 rm -f conftest.err conftest.$ac_objext \
7926       conftest$ac_exeext conftest.$ac_ext
7927 LIBS=$ac_check_lib_save_LIBS
7928 fi
7929 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7931 if test $ac_cv_lib_dl_dlopen = yes; then
7932   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7933 else
7934
7935     lt_cv_dlopen="dyld"
7936     lt_cv_dlopen_libs=
7937     lt_cv_dlopen_self=yes
7938
7939 fi
7940
7941    ;;
7942
7943   *)
7944     echo "$as_me:$LINENO: checking for shl_load" >&5
7945 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7946 if test "${ac_cv_func_shl_load+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7957 #define shl_load innocuous_shl_load
7958
7959 /* System header to define __stub macros and hopefully few prototypes,
7960     which can conflict with char shl_load (); below.
7961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7962     <limits.h> exists even on freestanding compilers.  */
7963
7964 #ifdef __STDC__
7965 # include <limits.h>
7966 #else
7967 # include <assert.h>
7968 #endif
7969
7970 #undef shl_load
7971
7972 /* Override any gcc2 internal prototype to avoid an error.  */
7973 #ifdef __cplusplus
7974 extern "C"
7975 {
7976 #endif
7977 /* We use char because int might match the return type of a gcc2
7978    builtin and then its argument prototype would still apply.  */
7979 char shl_load ();
7980 /* The GNU C library defines this for functions which it implements
7981     to always fail with ENOSYS.  Some functions are actually named
7982     something starting with __ and the normal name is an alias.  */
7983 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7984 choke me
7985 #else
7986 char (*f) () = shl_load;
7987 #endif
7988 #ifdef __cplusplus
7989 }
7990 #endif
7991
7992 int
7993 main ()
7994 {
7995 return f != shl_load;
7996   ;
7997   return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8002   (eval $ac_link) 2>conftest.er1
8003   ac_status=$?
8004   grep -v '^ *+' conftest.er1 >conftest.err
8005   rm -f conftest.er1
8006   cat conftest.err >&5
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); } &&
8009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; } &&
8015          { ac_try='test -s conftest$ac_exeext'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021   ac_cv_func_shl_load=yes
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 ac_cv_func_shl_load=no
8027 fi
8028 rm -f conftest.err conftest.$ac_objext \
8029       conftest$ac_exeext conftest.$ac_ext
8030 fi
8031 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8032 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8033 if test $ac_cv_func_shl_load = yes; then
8034   lt_cv_dlopen="shl_load"
8035 else
8036   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8037 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8038 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   ac_check_lib_save_LIBS=$LIBS
8042 LIBS="-ldld  $LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049
8050 /* Override any gcc2 internal prototype to avoid an error.  */
8051 #ifdef __cplusplus
8052 extern "C"
8053 #endif
8054 /* We use char because int might match the return type of a gcc2
8055    builtin and then its argument prototype would still apply.  */
8056 char shl_load ();
8057 int
8058 main ()
8059 {
8060 shl_load ();
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067   (eval $ac_link) 2>conftest.er1
8068   ac_status=$?
8069   grep -v '^ *+' conftest.er1 >conftest.err
8070   rm -f conftest.er1
8071   cat conftest.err >&5
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } &&
8074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076   (eval $ac_try) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); }; } &&
8080          { ac_try='test -s conftest$ac_exeext'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086   ac_cv_lib_dld_shl_load=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091 ac_cv_lib_dld_shl_load=no
8092 fi
8093 rm -f conftest.err conftest.$ac_objext \
8094       conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8096 fi
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8098 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8099 if test $ac_cv_lib_dld_shl_load = yes; then
8100   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8101 else
8102   echo "$as_me:$LINENO: checking for dlopen" >&5
8103 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8104 if test "${ac_cv_func_dlopen+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8115 #define dlopen innocuous_dlopen
8116
8117 /* System header to define __stub macros and hopefully few prototypes,
8118     which can conflict with char dlopen (); below.
8119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8120     <limits.h> exists even on freestanding compilers.  */
8121
8122 #ifdef __STDC__
8123 # include <limits.h>
8124 #else
8125 # include <assert.h>
8126 #endif
8127
8128 #undef dlopen
8129
8130 /* Override any gcc2 internal prototype to avoid an error.  */
8131 #ifdef __cplusplus
8132 extern "C"
8133 {
8134 #endif
8135 /* We use char because int might match the return type of a gcc2
8136    builtin and then its argument prototype would still apply.  */
8137 char dlopen ();
8138 /* The GNU C library defines this for functions which it implements
8139     to always fail with ENOSYS.  Some functions are actually named
8140     something starting with __ and the normal name is an alias.  */
8141 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8142 choke me
8143 #else
8144 char (*f) () = dlopen;
8145 #endif
8146 #ifdef __cplusplus
8147 }
8148 #endif
8149
8150 int
8151 main ()
8152 {
8153 return f != dlopen;
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160   (eval $ac_link) 2>conftest.er1
8161   ac_status=$?
8162   grep -v '^ *+' conftest.er1 >conftest.err
8163   rm -f conftest.er1
8164   cat conftest.err >&5
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } &&
8167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; } &&
8173          { ac_try='test -s conftest$ac_exeext'
8174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175   (eval $ac_try) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   ac_cv_func_dlopen=yes
8180 else
8181   echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184 ac_cv_func_dlopen=no
8185 fi
8186 rm -f conftest.err conftest.$ac_objext \
8187       conftest$ac_exeext conftest.$ac_ext
8188 fi
8189 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8190 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8191 if test $ac_cv_func_dlopen = yes; then
8192   lt_cv_dlopen="dlopen"
8193 else
8194   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8197   echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199   ac_check_lib_save_LIBS=$LIBS
8200 LIBS="-ldl  $LIBS"
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207
8208 /* Override any gcc2 internal prototype to avoid an error.  */
8209 #ifdef __cplusplus
8210 extern "C"
8211 #endif
8212 /* We use char because int might match the return type of a gcc2
8213    builtin and then its argument prototype would still apply.  */
8214 char dlopen ();
8215 int
8216 main ()
8217 {
8218 dlopen ();
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8225   (eval $ac_link) 2>conftest.er1
8226   ac_status=$?
8227   grep -v '^ *+' conftest.er1 >conftest.err
8228   rm -f conftest.er1
8229   cat conftest.err >&5
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; } &&
8238          { ac_try='test -s conftest$ac_exeext'
8239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240   (eval $ac_try) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); }; }; then
8244   ac_cv_lib_dl_dlopen=yes
8245 else
8246   echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 ac_cv_lib_dl_dlopen=no
8250 fi
8251 rm -f conftest.err conftest.$ac_objext \
8252       conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8254 fi
8255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8256 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8257 if test $ac_cv_lib_dl_dlopen = yes; then
8258   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8259 else
8260   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8261 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8262 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   ac_check_lib_save_LIBS=$LIBS
8266 LIBS="-lsvld  $LIBS"
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273
8274 /* Override any gcc2 internal prototype to avoid an error.  */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 /* We use char because int might match the return type of a gcc2
8279    builtin and then its argument prototype would still apply.  */
8280 char dlopen ();
8281 int
8282 main ()
8283 {
8284 dlopen ();
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291   (eval $ac_link) 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; } &&
8304          { ac_try='test -s conftest$ac_exeext'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   ac_cv_lib_svld_dlopen=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_lib_svld_dlopen=no
8316 fi
8317 rm -f conftest.err conftest.$ac_objext \
8318       conftest$ac_exeext conftest.$ac_ext
8319 LIBS=$ac_check_lib_save_LIBS
8320 fi
8321 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8322 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8323 if test $ac_cv_lib_svld_dlopen = yes; then
8324   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8325 else
8326   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8327 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8328 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   ac_check_lib_save_LIBS=$LIBS
8332 LIBS="-ldld  $LIBS"
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339
8340 /* Override any gcc2 internal prototype to avoid an error.  */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345    builtin and then its argument prototype would still apply.  */
8346 char dld_link ();
8347 int
8348 main ()
8349 {
8350 dld_link ();
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357   (eval $ac_link) 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   ac_cv_lib_dld_dld_link=yes
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 ac_cv_lib_dld_dld_link=no
8382 fi
8383 rm -f conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8389 if test $ac_cv_lib_dld_dld_link = yes; then
8390   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8391 fi
8392
8393
8394 fi
8395
8396
8397 fi
8398
8399
8400 fi
8401
8402
8403 fi
8404
8405
8406 fi
8407
8408     ;;
8409   esac
8410
8411   if test "x$lt_cv_dlopen" != xno; then
8412     enable_dlopen=yes
8413   else
8414     enable_dlopen=no
8415   fi
8416
8417   case $lt_cv_dlopen in
8418   dlopen)
8419     save_CPPFLAGS="$CPPFLAGS"
8420     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8421
8422     save_LDFLAGS="$LDFLAGS"
8423     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8424
8425     save_LIBS="$LIBS"
8426     LIBS="$lt_cv_dlopen_libs $LIBS"
8427
8428     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8429 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8430 if test "${lt_cv_dlopen_self+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433           if test "$cross_compiling" = yes; then :
8434   lt_cv_dlopen_self=cross
8435 else
8436   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8437   lt_status=$lt_dlunknown
8438   cat > conftest.$ac_ext <<EOF
8439 #line 8439 "configure"
8440 #include "confdefs.h"
8441
8442 #if HAVE_DLFCN_H
8443 #include <dlfcn.h>
8444 #endif
8445
8446 #include <stdio.h>
8447
8448 #ifdef RTLD_GLOBAL
8449 #  define LT_DLGLOBAL           RTLD_GLOBAL
8450 #else
8451 #  ifdef DL_GLOBAL
8452 #    define LT_DLGLOBAL         DL_GLOBAL
8453 #  else
8454 #    define LT_DLGLOBAL         0
8455 #  endif
8456 #endif
8457
8458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8459    find out it does not work in some platform. */
8460 #ifndef LT_DLLAZY_OR_NOW
8461 #  ifdef RTLD_LAZY
8462 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8463 #  else
8464 #    ifdef DL_LAZY
8465 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8466 #    else
8467 #      ifdef RTLD_NOW
8468 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8469 #      else
8470 #        ifdef DL_NOW
8471 #          define LT_DLLAZY_OR_NOW      DL_NOW
8472 #        else
8473 #          define LT_DLLAZY_OR_NOW      0
8474 #        endif
8475 #      endif
8476 #    endif
8477 #  endif
8478 #endif
8479
8480 #ifdef __cplusplus
8481 extern "C" void exit (int);
8482 #endif
8483
8484 void fnord() { int i=42;}
8485 int main ()
8486 {
8487   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8488   int status = $lt_dlunknown;
8489
8490   if (self)
8491     {
8492       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8493       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8494       /* dlclose (self); */
8495     }
8496
8497     exit (status);
8498 }
8499 EOF
8500   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8505     (./conftest; exit; ) 2>/dev/null
8506     lt_status=$?
8507     case x$lt_status in
8508       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8509       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8510       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8511     esac
8512   else :
8513     # compilation failed
8514     lt_cv_dlopen_self=no
8515   fi
8516 fi
8517 rm -fr conftest*
8518
8519
8520 fi
8521 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8522 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8523
8524     if test "x$lt_cv_dlopen_self" = xyes; then
8525       LDFLAGS="$LDFLAGS $link_static_flag"
8526       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8527 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8528 if test "${lt_cv_dlopen_self_static+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531           if test "$cross_compiling" = yes; then :
8532   lt_cv_dlopen_self_static=cross
8533 else
8534   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8535   lt_status=$lt_dlunknown
8536   cat > conftest.$ac_ext <<EOF
8537 #line 8537 "configure"
8538 #include "confdefs.h"
8539
8540 #if HAVE_DLFCN_H
8541 #include <dlfcn.h>
8542 #endif
8543
8544 #include <stdio.h>
8545
8546 #ifdef RTLD_GLOBAL
8547 #  define LT_DLGLOBAL           RTLD_GLOBAL
8548 #else
8549 #  ifdef DL_GLOBAL
8550 #    define LT_DLGLOBAL         DL_GLOBAL
8551 #  else
8552 #    define LT_DLGLOBAL         0
8553 #  endif
8554 #endif
8555
8556 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8557    find out it does not work in some platform. */
8558 #ifndef LT_DLLAZY_OR_NOW
8559 #  ifdef RTLD_LAZY
8560 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8561 #  else
8562 #    ifdef DL_LAZY
8563 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8564 #    else
8565 #      ifdef RTLD_NOW
8566 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8567 #      else
8568 #        ifdef DL_NOW
8569 #          define LT_DLLAZY_OR_NOW      DL_NOW
8570 #        else
8571 #          define LT_DLLAZY_OR_NOW      0
8572 #        endif
8573 #      endif
8574 #    endif
8575 #  endif
8576 #endif
8577
8578 #ifdef __cplusplus
8579 extern "C" void exit (int);
8580 #endif
8581
8582 void fnord() { int i=42;}
8583 int main ()
8584 {
8585   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8586   int status = $lt_dlunknown;
8587
8588   if (self)
8589     {
8590       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8591       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8592       /* dlclose (self); */
8593     }
8594
8595     exit (status);
8596 }
8597 EOF
8598   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599   (eval $ac_link) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8603     (./conftest; exit; ) 2>/dev/null
8604     lt_status=$?
8605     case x$lt_status in
8606       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8607       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8608       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8609     esac
8610   else :
8611     # compilation failed
8612     lt_cv_dlopen_self_static=no
8613   fi
8614 fi
8615 rm -fr conftest*
8616
8617
8618 fi
8619 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8620 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8621     fi
8622
8623     CPPFLAGS="$save_CPPFLAGS"
8624     LDFLAGS="$save_LDFLAGS"
8625     LIBS="$save_LIBS"
8626     ;;
8627   esac
8628
8629   case $lt_cv_dlopen_self in
8630   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8631   *) enable_dlopen_self=unknown ;;
8632   esac
8633
8634   case $lt_cv_dlopen_self_static in
8635   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8636   *) enable_dlopen_self_static=unknown ;;
8637   esac
8638 fi
8639
8640
8641 # Report which librarie types wil actually be built
8642 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8643 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8644 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8645 echo "${ECHO_T}$can_build_shared" >&6
8646
8647 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8648 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8649 test "$can_build_shared" = "no" && enable_shared=no
8650
8651 # On AIX, shared libraries and static libraries use the same namespace, and
8652 # are all built from PIC.
8653 case "$host_os" in
8654 aix3*)
8655   test "$enable_shared" = yes && enable_static=no
8656   if test -n "$RANLIB"; then
8657     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8658     postinstall_cmds='$RANLIB $lib'
8659   fi
8660   ;;
8661
8662 aix4* | aix5*)
8663   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8664     test "$enable_shared" = yes && enable_static=no
8665   fi
8666   ;;
8667   darwin* | rhapsody*)
8668   if test "$GCC" = yes; then
8669     archive_cmds_need_lc=no
8670     case "$host_os" in
8671     rhapsody* | darwin1.[012])
8672       allow_undefined_flag='-undefined suppress'
8673       ;;
8674     *) # Darwin 1.3 on
8675       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8676         allow_undefined_flag='-flat_namespace -undefined suppress'
8677       else
8678         case ${MACOSX_DEPLOYMENT_TARGET} in
8679           10.[012])
8680             allow_undefined_flag='-flat_namespace -undefined suppress'
8681             ;;
8682           10.*)
8683             allow_undefined_flag='-undefined dynamic_lookup'
8684             ;;
8685         esac
8686       fi
8687       ;;
8688     esac
8689     output_verbose_link_cmd='echo'
8690     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8691     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8692     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8693     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}'
8694     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}'
8695     hardcode_direct=no
8696     hardcode_automatic=yes
8697     hardcode_shlibpath_var=unsupported
8698     whole_archive_flag_spec='-all_load $convenience'
8699     link_all_deplibs=yes
8700   else
8701     ld_shlibs=no
8702   fi
8703     ;;
8704 esac
8705 echo "$as_me:$LINENO: result: $enable_shared" >&5
8706 echo "${ECHO_T}$enable_shared" >&6
8707
8708 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8710 # Make sure either enable_shared or enable_static is yes.
8711 test "$enable_shared" = yes || enable_static=yes
8712 echo "$as_me:$LINENO: result: $enable_static" >&5
8713 echo "${ECHO_T}$enable_static" >&6
8714
8715 # The else clause should only fire when bootstrapping the
8716 # libtool distribution, otherwise you forgot to ship ltmain.sh
8717 # with your package, and you will get complaints that there are
8718 # no rules to generate ltmain.sh.
8719 if test -f "$ltmain"; then
8720   # See if we are running on zsh, and set the options which allow our commands through
8721   # without removal of \ escapes.
8722   if test -n "${ZSH_VERSION+set}" ; then
8723     setopt NO_GLOB_SUBST
8724   fi
8725   # Now quote all the things that may contain metacharacters while being
8726   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8727   # variables and quote the copies for generation of the libtool script.
8728   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8729     SED SHELL STRIP \
8730     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8731     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8732     deplibs_check_method reload_flag reload_cmds need_locks \
8733     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8734     lt_cv_sys_global_symbol_to_c_name_address \
8735     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8736     old_postinstall_cmds old_postuninstall_cmds \
8737     compiler \
8738     CC \
8739     LD \
8740     lt_prog_compiler_wl \
8741     lt_prog_compiler_pic \
8742     lt_prog_compiler_static \
8743     lt_prog_compiler_no_builtin_flag \
8744     export_dynamic_flag_spec \
8745     thread_safe_flag_spec \
8746     whole_archive_flag_spec \
8747     enable_shared_with_static_runtimes \
8748     old_archive_cmds \
8749     old_archive_from_new_cmds \
8750     predep_objects \
8751     postdep_objects \
8752     predeps \
8753     postdeps \
8754     compiler_lib_search_path \
8755     archive_cmds \
8756     archive_expsym_cmds \
8757     postinstall_cmds \
8758     postuninstall_cmds \
8759     old_archive_from_expsyms_cmds \
8760     allow_undefined_flag \
8761     no_undefined_flag \
8762     export_symbols_cmds \
8763     hardcode_libdir_flag_spec \
8764     hardcode_libdir_flag_spec_ld \
8765     hardcode_libdir_separator \
8766     hardcode_automatic \
8767     module_cmds \
8768     module_expsym_cmds \
8769     lt_cv_prog_compiler_c_o \
8770     exclude_expsyms \
8771     include_expsyms; do
8772
8773     case $var in
8774     old_archive_cmds | \
8775     old_archive_from_new_cmds | \
8776     archive_cmds | \
8777     archive_expsym_cmds | \
8778     module_cmds | \
8779     module_expsym_cmds | \
8780     old_archive_from_expsyms_cmds | \
8781     export_symbols_cmds | \
8782     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8783     postinstall_cmds | postuninstall_cmds | \
8784     old_postinstall_cmds | old_postuninstall_cmds | \
8785     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8786       # Double-quote double-evaled strings.
8787       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8788       ;;
8789     *)
8790       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8791       ;;
8792     esac
8793   done
8794
8795   case $lt_echo in
8796   *'\$0 --fallback-echo"')
8797     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8798     ;;
8799   esac
8800
8801 cfgfile="${ofile}T"
8802   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8803   $rm -f "$cfgfile"
8804   { echo "$as_me:$LINENO: creating $ofile" >&5
8805 echo "$as_me: creating $ofile" >&6;}
8806
8807   cat <<__EOF__ >> "$cfgfile"
8808 #! $SHELL
8809
8810 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8811 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8812 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8813 #
8814 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8815 # Free Software Foundation, Inc.
8816 #
8817 # This file is part of GNU Libtool:
8818 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8819 #
8820 # This program is free software; you can redistribute it and/or modify
8821 # it under the terms of the GNU General Public License as published by
8822 # the Free Software Foundation; either version 2 of the License, or
8823 # (at your option) any later version.
8824 #
8825 # This program is distributed in the hope that it will be useful, but
8826 # WITHOUT ANY WARRANTY; without even the implied warranty of
8827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8828 # General Public License for more details.
8829 #
8830 # You should have received a copy of the GNU General Public License
8831 # along with this program; if not, write to the Free Software
8832 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8833 #
8834 # As a special exception to the GNU General Public License, if you
8835 # distribute this file as part of a program that contains a
8836 # configuration script generated by Autoconf, you may include it under
8837 # the same distribution terms that you use for the rest of that program.
8838
8839 # A sed program that does not truncate output.
8840 SED=$lt_SED
8841
8842 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8843 Xsed="$SED -e s/^X//"
8844
8845 # The HP-UX ksh and POSIX shell print the target directory to stdout
8846 # if CDPATH is set.
8847 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8848
8849 # The names of the tagged configurations supported by this script.
8850 available_tags=
8851
8852 # ### BEGIN LIBTOOL CONFIG
8853
8854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8855
8856 # Shell to use when invoking shell scripts.
8857 SHELL=$lt_SHELL
8858
8859 # Whether or not to build shared libraries.
8860 build_libtool_libs=$enable_shared
8861
8862 # Whether or not to build static libraries.
8863 build_old_libs=$enable_static
8864
8865 # Whether or not to add -lc for building shared libraries.
8866 build_libtool_need_lc=$archive_cmds_need_lc
8867
8868 # Whether or not to disallow shared libs when runtime libs are static
8869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8870
8871 # Whether or not to optimize for fast installation.
8872 fast_install=$enable_fast_install
8873
8874 # The host system.
8875 host_alias=$host_alias
8876 host=$host
8877
8878 # An echo program that does not interpret backslashes.
8879 echo=$lt_echo
8880
8881 # The archiver.
8882 AR=$lt_AR
8883 AR_FLAGS=$lt_AR_FLAGS
8884
8885 # A C compiler.
8886 LTCC=$lt_LTCC
8887
8888 # A language-specific compiler.
8889 CC=$lt_compiler
8890
8891 # Is the compiler the GNU C compiler?
8892 with_gcc=$GCC
8893
8894 # An ERE matcher.
8895 EGREP=$lt_EGREP
8896
8897 # The linker used to build libraries.
8898 LD=$lt_LD
8899
8900 # Whether we need hard or soft links.
8901 LN_S=$lt_LN_S
8902
8903 # A BSD-compatible nm program.
8904 NM=$lt_NM
8905
8906 # A symbol stripping program
8907 STRIP=$lt_STRIP
8908
8909 # Used to examine libraries when file_magic_cmd begins "file"
8910 MAGIC_CMD=$MAGIC_CMD
8911
8912 # Used on cygwin: DLL creation program.
8913 DLLTOOL="$DLLTOOL"
8914
8915 # Used on cygwin: object dumper.
8916 OBJDUMP="$OBJDUMP"
8917
8918 # Used on cygwin: assembler.
8919 AS="$AS"
8920
8921 # The name of the directory that contains temporary libtool files.
8922 objdir=$objdir
8923
8924 # How to create reloadable object files.
8925 reload_flag=$lt_reload_flag
8926 reload_cmds=$lt_reload_cmds
8927
8928 # How to pass a linker flag through the compiler.
8929 wl=$lt_lt_prog_compiler_wl
8930
8931 # Object file suffix (normally "o").
8932 objext="$ac_objext"
8933
8934 # Old archive suffix (normally "a").
8935 libext="$libext"
8936
8937 # Shared library suffix (normally ".so").
8938 shrext_cmds='$shrext_cmds'
8939
8940 # Executable file suffix (normally "").
8941 exeext="$exeext"
8942
8943 # Additional compiler flags for building library objects.
8944 pic_flag=$lt_lt_prog_compiler_pic
8945 pic_mode=$pic_mode
8946
8947 # What is the maximum length of a command?
8948 max_cmd_len=$lt_cv_sys_max_cmd_len
8949
8950 # Does compiler simultaneously support -c and -o options?
8951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8952
8953 # Must we lock files when doing compilation ?
8954 need_locks=$lt_need_locks
8955
8956 # Do we need the lib prefix for modules?
8957 need_lib_prefix=$need_lib_prefix
8958
8959 # Do we need a version for libraries?
8960 need_version=$need_version
8961
8962 # Whether dlopen is supported.
8963 dlopen_support=$enable_dlopen
8964
8965 # Whether dlopen of programs is supported.
8966 dlopen_self=$enable_dlopen_self
8967
8968 # Whether dlopen of statically linked programs is supported.
8969 dlopen_self_static=$enable_dlopen_self_static
8970
8971 # Compiler flag to prevent dynamic linking.
8972 link_static_flag=$lt_lt_prog_compiler_static
8973
8974 # Compiler flag to turn off builtin functions.
8975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8976
8977 # Compiler flag to allow reflexive dlopens.
8978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8979
8980 # Compiler flag to generate shared objects directly from archives.
8981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8982
8983 # Compiler flag to generate thread-safe objects.
8984 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8985
8986 # Library versioning type.
8987 version_type=$version_type
8988
8989 # Format of library name prefix.
8990 libname_spec=$lt_libname_spec
8991
8992 # List of archive names.  First name is the real one, the rest are links.
8993 # The last name is the one that the linker finds with -lNAME.
8994 library_names_spec=$lt_library_names_spec
8995
8996 # The coded name of the library, if different from the real name.
8997 soname_spec=$lt_soname_spec
8998
8999 # Commands used to build and install an old-style archive.
9000 RANLIB=$lt_RANLIB
9001 old_archive_cmds=$lt_old_archive_cmds
9002 old_postinstall_cmds=$lt_old_postinstall_cmds
9003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9004
9005 # Create an old-style archive from a shared archive.
9006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9007
9008 # Create a temporary old-style archive to link instead of a shared archive.
9009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9010
9011 # Commands used to build and install a shared archive.
9012 archive_cmds=$lt_archive_cmds
9013 archive_expsym_cmds=$lt_archive_expsym_cmds
9014 postinstall_cmds=$lt_postinstall_cmds
9015 postuninstall_cmds=$lt_postuninstall_cmds
9016
9017 # Commands used to build a loadable module (assumed same as above if empty)
9018 module_cmds=$lt_module_cmds
9019 module_expsym_cmds=$lt_module_expsym_cmds
9020
9021 # Commands to strip libraries.
9022 old_striplib=$lt_old_striplib
9023 striplib=$lt_striplib
9024
9025 # Dependencies to place before the objects being linked to create a
9026 # shared library.
9027 predep_objects=$lt_predep_objects
9028
9029 # Dependencies to place after the objects being linked to create a
9030 # shared library.
9031 postdep_objects=$lt_postdep_objects
9032
9033 # Dependencies to place before the objects being linked to create a
9034 # shared library.
9035 predeps=$lt_predeps
9036
9037 # Dependencies to place after the objects being linked to create a
9038 # shared library.
9039 postdeps=$lt_postdeps
9040
9041 # The library search path used internally by the compiler when linking
9042 # a shared library.
9043 compiler_lib_search_path=$lt_compiler_lib_search_path
9044
9045 # Method to check whether dependent libraries are shared objects.
9046 deplibs_check_method=$lt_deplibs_check_method
9047
9048 # Command to use when deplibs_check_method == file_magic.
9049 file_magic_cmd=$lt_file_magic_cmd
9050
9051 # Flag that allows shared libraries with undefined symbols to be built.
9052 allow_undefined_flag=$lt_allow_undefined_flag
9053
9054 # Flag that forces no undefined symbols.
9055 no_undefined_flag=$lt_no_undefined_flag
9056
9057 # Commands used to finish a libtool library installation in a directory.
9058 finish_cmds=$lt_finish_cmds
9059
9060 # Same as above, but a single script fragment to be evaled but not shown.
9061 finish_eval=$lt_finish_eval
9062
9063 # Take the output of nm and produce a listing of raw symbols and C names.
9064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9065
9066 # Transform the output of nm in a proper C declaration
9067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9068
9069 # Transform the output of nm in a C name address pair
9070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9071
9072 # This is the shared library runtime path variable.
9073 runpath_var=$runpath_var
9074
9075 # This is the shared library path variable.
9076 shlibpath_var=$shlibpath_var
9077
9078 # Is shlibpath searched before the hard-coded library search path?
9079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9080
9081 # How to hardcode a shared library path into an executable.
9082 hardcode_action=$hardcode_action
9083
9084 # Whether we should hardcode library paths into libraries.
9085 hardcode_into_libs=$hardcode_into_libs
9086
9087 # Flag to hardcode \$libdir into a binary during linking.
9088 # This must work even if \$libdir does not exist.
9089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9090
9091 # If ld is used when linking, flag to hardcode \$libdir into
9092 # a binary during linking. This must work even if \$libdir does
9093 # not exist.
9094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9095
9096 # Whether we need a single -rpath flag with a separated argument.
9097 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9098
9099 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9100 # resulting binary.
9101 hardcode_direct=$hardcode_direct
9102
9103 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9104 # resulting binary.
9105 hardcode_minus_L=$hardcode_minus_L
9106
9107 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9108 # the resulting binary.
9109 hardcode_shlibpath_var=$hardcode_shlibpath_var
9110
9111 # Set to yes if building a shared library automatically hardcodes DIR into the library
9112 # and all subsequent libraries and executables linked against it.
9113 hardcode_automatic=$hardcode_automatic
9114
9115 # Variables whose values should be saved in libtool wrapper scripts and
9116 # restored at relink time.
9117 variables_saved_for_relink="$variables_saved_for_relink"
9118
9119 # Whether libtool must link a program against all its dependency libraries.
9120 link_all_deplibs=$link_all_deplibs
9121
9122 # Compile-time system search path for libraries
9123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9124
9125 # Run-time system search path for libraries
9126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9127
9128 # Fix the shell variable \$srcfile for the compiler.
9129 fix_srcfile_path="$fix_srcfile_path"
9130
9131 # Set to yes if exported symbols are required.
9132 always_export_symbols=$always_export_symbols
9133
9134 # The commands to list exported symbols.
9135 export_symbols_cmds=$lt_export_symbols_cmds
9136
9137 # The commands to extract the exported symbol list from a shared archive.
9138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9139
9140 # Symbols that should not be listed in the preloaded symbols.
9141 exclude_expsyms=$lt_exclude_expsyms
9142
9143 # Symbols that must always be exported.
9144 include_expsyms=$lt_include_expsyms
9145
9146 # ### END LIBTOOL CONFIG
9147
9148 __EOF__
9149
9150
9151   case $host_os in
9152   aix3*)
9153     cat <<\EOF >> "$cfgfile"
9154
9155 # AIX sometimes has problems with the GCC collect2 program.  For some
9156 # reason, if we set the COLLECT_NAMES environment variable, the problems
9157 # vanish in a puff of smoke.
9158 if test "X${COLLECT_NAMES+set}" != Xset; then
9159   COLLECT_NAMES=
9160   export COLLECT_NAMES
9161 fi
9162 EOF
9163     ;;
9164   esac
9165
9166   # We use sed instead of cat because bash on DJGPP gets confused if
9167   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9168   # text mode, it properly converts lines to CR/LF.  This bash problem
9169   # is reportedly fixed, but why not run on old versions too?
9170   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9171
9172   mv -f "$cfgfile" "$ofile" || \
9173     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9174   chmod +x "$ofile"
9175
9176 else
9177   # If there is no Makefile yet, we rely on a make rule to execute
9178   # `config.status --recheck' to rerun these tests and create the
9179   # libtool script then.
9180   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9181   if test -f "$ltmain_in"; then
9182     test -f Makefile && make "$ltmain"
9183   fi
9184 fi
9185
9186
9187 ac_ext=c
9188 ac_cpp='$CPP $CPPFLAGS'
9189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9192
9193 CC="$lt_save_CC"
9194
9195
9196 # Check whether --with-tags or --without-tags was given.
9197 if test "${with_tags+set}" = set; then
9198   withval="$with_tags"
9199   tagnames="$withval"
9200 fi;
9201
9202 if test -f "$ltmain" && test -n "$tagnames"; then
9203   if test ! -f "${ofile}"; then
9204     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9205 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9206   fi
9207
9208   if test -z "$LTCC"; then
9209     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9210     if test -z "$LTCC"; then
9211       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9212 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9213     else
9214       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9215 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9216     fi
9217   fi
9218
9219   # Extract list of available tagged configurations in $ofile.
9220   # Note that this assumes the entire list is on one line.
9221   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9222
9223   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9224   for tagname in $tagnames; do
9225     IFS="$lt_save_ifs"
9226     # Check whether tagname contains only valid characters
9227     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9228     "") ;;
9229     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9230 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9231    { (exit 1); exit 1; }; }
9232         ;;
9233     esac
9234
9235     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9236     then
9237       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9238 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9239    { (exit 1); exit 1; }; }
9240     fi
9241
9242     # Update the list of available tags.
9243     if test -n "$tagname"; then
9244       echo appending configuration tag \"$tagname\" to $ofile
9245
9246       case $tagname in
9247       CXX)
9248         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9249           ac_ext=cc
9250 ac_cpp='$CXXCPP $CPPFLAGS'
9251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9254
9255
9256
9257
9258 archive_cmds_need_lc_CXX=no
9259 allow_undefined_flag_CXX=
9260 always_export_symbols_CXX=no
9261 archive_expsym_cmds_CXX=
9262 export_dynamic_flag_spec_CXX=
9263 hardcode_direct_CXX=no
9264 hardcode_libdir_flag_spec_CXX=
9265 hardcode_libdir_flag_spec_ld_CXX=
9266 hardcode_libdir_separator_CXX=
9267 hardcode_minus_L_CXX=no
9268 hardcode_automatic_CXX=no
9269 module_cmds_CXX=
9270 module_expsym_cmds_CXX=
9271 link_all_deplibs_CXX=unknown
9272 old_archive_cmds_CXX=$old_archive_cmds
9273 no_undefined_flag_CXX=
9274 whole_archive_flag_spec_CXX=
9275 enable_shared_with_static_runtimes_CXX=no
9276
9277 # Dependencies to place before and after the object being linked:
9278 predep_objects_CXX=
9279 postdep_objects_CXX=
9280 predeps_CXX=
9281 postdeps_CXX=
9282 compiler_lib_search_path_CXX=
9283
9284 # Source file extension for C++ test sources.
9285 ac_ext=cc
9286
9287 # Object file extension for compiled C++ test sources.
9288 objext=o
9289 objext_CXX=$objext
9290
9291 # Code to be used in simple compile tests
9292 lt_simple_compile_test_code="int some_variable = 0;\n"
9293
9294 # Code to be used in simple link tests
9295 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9296
9297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9298
9299 # If no C compiler was specified, use CC.
9300 LTCC=${LTCC-"$CC"}
9301
9302 # Allow CC to be a program name with arguments.
9303 compiler=$CC
9304
9305
9306 # Allow CC to be a program name with arguments.
9307 lt_save_CC=$CC
9308 lt_save_LD=$LD
9309 lt_save_GCC=$GCC
9310 GCC=$GXX
9311 lt_save_with_gnu_ld=$with_gnu_ld
9312 lt_save_path_LD=$lt_cv_path_LD
9313 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9314   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9315 else
9316   unset lt_cv_prog_gnu_ld
9317 fi
9318 if test -n "${lt_cv_path_LDCXX+set}"; then
9319   lt_cv_path_LD=$lt_cv_path_LDCXX
9320 else
9321   unset lt_cv_path_LD
9322 fi
9323 test -z "${LDCXX+set}" || LD=$LDCXX
9324 CC=${CXX-"c++"}
9325 compiler=$CC
9326 compiler_CXX=$CC
9327 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9328
9329 # We don't want -fno-exception wen compiling C++ code, so set the
9330 # no_builtin_flag separately
9331 if test "$GXX" = yes; then
9332   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9333 else
9334   lt_prog_compiler_no_builtin_flag_CXX=
9335 fi
9336
9337 if test "$GXX" = yes; then
9338   # Set up default GNU C++ configuration
9339
9340
9341 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9342 if test "${with_gnu_ld+set}" = set; then
9343   withval="$with_gnu_ld"
9344   test "$withval" = no || with_gnu_ld=yes
9345 else
9346   with_gnu_ld=no
9347 fi;
9348 ac_prog=ld
9349 if test "$GCC" = yes; then
9350   # Check if gcc -print-prog-name=ld gives a path.
9351   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9352 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9353   case $host in
9354   *-*-mingw*)
9355     # gcc leaves a trailing carriage return which upsets mingw
9356     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9357   *)
9358     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9359   esac
9360   case $ac_prog in
9361     # Accept absolute paths.
9362     [\\/]* | ?:[\\/]*)
9363       re_direlt='/[^/][^/]*/\.\./'
9364       # Canonicalize the pathname of ld
9365       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9366       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9367         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9368       done
9369       test -z "$LD" && LD="$ac_prog"
9370       ;;
9371   "")
9372     # If it fails, then pretend we aren't using GCC.
9373     ac_prog=ld
9374     ;;
9375   *)
9376     # If it is relative, then search for the first ld in PATH.
9377     with_gnu_ld=unknown
9378     ;;
9379   esac
9380 elif test "$with_gnu_ld" = yes; then
9381   echo "$as_me:$LINENO: checking for GNU ld" >&5
9382 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9383 else
9384   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9385 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9386 fi
9387 if test "${lt_cv_path_LD+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   if test -z "$LD"; then
9391   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9392   for ac_dir in $PATH; do
9393     IFS="$lt_save_ifs"
9394     test -z "$ac_dir" && ac_dir=.
9395     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9396       lt_cv_path_LD="$ac_dir/$ac_prog"
9397       # Check to see if the program is GNU ld.  I'd rather use --version,
9398       # but apparently some GNU ld's only accept -v.
9399       # Break only if it was the GNU/non-GNU ld that we prefer.
9400       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9401       *GNU* | *'with BFD'*)
9402         test "$with_gnu_ld" != no && break
9403         ;;
9404       *)
9405         test "$with_gnu_ld" != yes && break
9406         ;;
9407       esac
9408     fi
9409   done
9410   IFS="$lt_save_ifs"
9411 else
9412   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9413 fi
9414 fi
9415
9416 LD="$lt_cv_path_LD"
9417 if test -n "$LD"; then
9418   echo "$as_me:$LINENO: result: $LD" >&5
9419 echo "${ECHO_T}$LD" >&6
9420 else
9421   echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6
9423 fi
9424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9426    { (exit 1); exit 1; }; }
9427 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9429 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9433 case `$LD -v 2>&1 </dev/null` in
9434 *GNU* | *'with BFD'*)
9435   lt_cv_prog_gnu_ld=yes
9436   ;;
9437 *)
9438   lt_cv_prog_gnu_ld=no
9439   ;;
9440 esac
9441 fi
9442 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9443 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9444 with_gnu_ld=$lt_cv_prog_gnu_ld
9445
9446
9447
9448   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9449   # archiving commands below assume that GNU ld is being used.
9450   if test "$with_gnu_ld" = yes; then
9451     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452     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'
9453
9454     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9455     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9456
9457     # If archive_cmds runs LD, not CC, wlarc should be empty
9458     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9459     #     investigate it a little bit more. (MM)
9460     wlarc='${wl}'
9461
9462     # ancient GNU ld didn't support --whole-archive et. al.
9463     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9464         grep 'no-whole-archive' > /dev/null; then
9465       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9466     else
9467       whole_archive_flag_spec_CXX=
9468     fi
9469   else
9470     with_gnu_ld=no
9471     wlarc=
9472
9473     # A generic and very simple default shared library creation
9474     # command for GNU C++ for the case where it uses the native
9475     # linker, instead of GNU ld.  If possible, this setting should
9476     # overridden to take advantage of the native linker features on
9477     # the platform it is being used on.
9478     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9479   fi
9480
9481   # Commands to make compiler produce verbose output that lists
9482   # what "hidden" libraries, object files and flags are used when
9483   # linking a shared library.
9484   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9485
9486 else
9487   GXX=no
9488   with_gnu_ld=no
9489   wlarc=
9490 fi
9491
9492 # PORTME: fill in a description of your system's C++ link characteristics
9493 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9495 ld_shlibs_CXX=yes
9496 case $host_os in
9497   aix3*)
9498     # FIXME: insert proper C++ library support
9499     ld_shlibs_CXX=no
9500     ;;
9501   aix4* | aix5*)
9502     if test "$host_cpu" = ia64; then
9503       # On IA64, the linker does run time linking by default, so we don't
9504       # have to do anything special.
9505       aix_use_runtimelinking=no
9506       exp_sym_flag='-Bexport'
9507       no_entry_flag=""
9508     else
9509       aix_use_runtimelinking=no
9510
9511       # Test if we are trying to use run time linking or normal
9512       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9513       # need to do runtime linking.
9514       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9515         for ld_flag in $LDFLAGS; do
9516           case $ld_flag in
9517           *-brtl*)
9518             aix_use_runtimelinking=yes
9519             break
9520             ;;
9521           esac
9522         done
9523       esac
9524
9525       exp_sym_flag='-bexport'
9526       no_entry_flag='-bnoentry'
9527     fi
9528
9529     # When large executables or shared objects are built, AIX ld can
9530     # have problems creating the table of contents.  If linking a library
9531     # or program results in "error TOC overflow" add -mminimal-toc to
9532     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9533     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9534
9535     archive_cmds_CXX=''
9536     hardcode_direct_CXX=yes
9537     hardcode_libdir_separator_CXX=':'
9538     link_all_deplibs_CXX=yes
9539
9540     if test "$GXX" = yes; then
9541       case $host_os in aix4.012|aix4.012.*)
9542       # We only want to do this on AIX 4.2 and lower, the check
9543       # below for broken collect2 doesn't work under 4.3+
9544         collect2name=`${CC} -print-prog-name=collect2`
9545         if test -f "$collect2name" && \
9546            strings "$collect2name" | grep resolve_lib_name >/dev/null
9547         then
9548           # We have reworked collect2
9549           hardcode_direct_CXX=yes
9550         else
9551           # We have old collect2
9552           hardcode_direct_CXX=unsupported
9553           # It fails to find uninstalled libraries when the uninstalled
9554           # path is not listed in the libpath.  Setting hardcode_minus_L
9555           # to unsupported forces relinking
9556           hardcode_minus_L_CXX=yes
9557           hardcode_libdir_flag_spec_CXX='-L$libdir'
9558           hardcode_libdir_separator_CXX=
9559         fi
9560       esac
9561       shared_flag='-shared'
9562     else
9563       # not using gcc
9564       if test "$host_cpu" = ia64; then
9565         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566         # chokes on -Wl,-G. The following line is correct:
9567         shared_flag='-G'
9568       else
9569         if test "$aix_use_runtimelinking" = yes; then
9570           shared_flag='${wl}-G'
9571         else
9572           shared_flag='${wl}-bM:SRE'
9573         fi
9574       fi
9575     fi
9576
9577     # It seems that -bexpall does not export symbols beginning with
9578     # underscore (_), so it is better to generate a list of symbols to export.
9579     always_export_symbols_CXX=yes
9580     if test "$aix_use_runtimelinking" = yes; then
9581       # Warning - without using the other runtime loading flags (-brtl),
9582       # -berok will link without error, but may produce a broken library.
9583       allow_undefined_flag_CXX='-berok'
9584       # Determine the default libpath from the value encoded in an empty executable.
9585       cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591
9592 int
9593 main ()
9594 {
9595
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602   (eval $ac_link) 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } &&
9609          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611   (eval $ac_try) 2>&5
9612   ac_status=$?
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); }; } &&
9615          { ac_try='test -s conftest$ac_exeext'
9616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617   (eval $ac_try) 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; }; then
9621
9622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9623 }'`
9624 # Check for a 64-bit object if we didn't find anything.
9625 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; }
9626 }'`; fi
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 fi
9632 rm -f conftest.err conftest.$ac_objext \
9633       conftest$ac_exeext conftest.$ac_ext
9634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9635
9636       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9637
9638       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"
9639      else
9640       if test "$host_cpu" = ia64; then
9641         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9642         allow_undefined_flag_CXX="-z nodefs"
9643         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"
9644       else
9645         # Determine the default libpath from the value encoded in an empty executable.
9646         cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652
9653 int
9654 main ()
9655 {
9656
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663   (eval $ac_link) 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } &&
9670          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest$ac_exeext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682
9683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9684 }'`
9685 # Check for a 64-bit object if we didn't find anything.
9686 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; }
9687 }'`; fi
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 fi
9693 rm -f conftest.err conftest.$ac_objext \
9694       conftest$ac_exeext conftest.$ac_ext
9695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9696
9697         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9698         # Warning - without using the other run time loading flags,
9699         # -berok will link without error, but may produce a broken library.
9700         no_undefined_flag_CXX=' ${wl}-bernotok'
9701         allow_undefined_flag_CXX=' ${wl}-berok'
9702         # -bexpall does not export symbols beginning with underscore (_)
9703         always_export_symbols_CXX=yes
9704         # Exported symbols can be pulled into shared objects from archives
9705         whole_archive_flag_spec_CXX=' '
9706         archive_cmds_need_lc_CXX=yes
9707         # This is similar to how AIX traditionally builds it's shared libraries.
9708         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'
9709       fi
9710     fi
9711     ;;
9712   chorus*)
9713     case $cc_basename in
9714       *)
9715         # FIXME: insert proper C++ library support
9716         ld_shlibs_CXX=no
9717         ;;
9718     esac
9719     ;;
9720
9721   cygwin* | mingw* | pw32*)
9722     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9723     # as there is no search path for DLLs.
9724     hardcode_libdir_flag_spec_CXX='-L$libdir'
9725     allow_undefined_flag_CXX=unsupported
9726     always_export_symbols_CXX=no
9727     enable_shared_with_static_runtimes_CXX=yes
9728
9729     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9730       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'
9731       # If the export-symbols file already is a .def file (1st line
9732       # is EXPORTS), use it as is; otherwise, prepend...
9733       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9734         cp $export_symbols $output_objdir/$soname.def;
9735       else
9736         echo EXPORTS > $output_objdir/$soname.def;
9737         cat $export_symbols >> $output_objdir/$soname.def;
9738       fi~
9739       $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'
9740     else
9741       ld_shlibs_CXX=no
9742     fi
9743   ;;
9744
9745   darwin* | rhapsody*)
9746   if test "$GXX" = yes; then
9747     archive_cmds_need_lc_CXX=no
9748     case "$host_os" in
9749     rhapsody* | darwin1.[012])
9750       allow_undefined_flag_CXX='-undefined suppress'
9751       ;;
9752     *) # Darwin 1.3 on
9753       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9754         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9755       else
9756         case ${MACOSX_DEPLOYMENT_TARGET} in
9757           10.[012])
9758             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9759             ;;
9760           10.*)
9761             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9762             ;;
9763         esac
9764       fi
9765       ;;
9766     esac
9767     lt_int_apple_cc_single_mod=no
9768     output_verbose_link_cmd='echo'
9769     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9770       lt_int_apple_cc_single_mod=yes
9771     fi
9772     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9773       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9774     else
9775       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'
9776     fi
9777     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9778
9779     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9780     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9781       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}'
9782     else
9783       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}'
9784     fi
9785     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}'
9786     hardcode_direct_CXX=no
9787     hardcode_automatic_CXX=yes
9788     hardcode_shlibpath_var_CXX=unsupported
9789     whole_archive_flag_spec_CXX='-all_load $convenience'
9790     link_all_deplibs_CXX=yes
9791   else
9792     ld_shlibs_CXX=no
9793   fi
9794     ;;
9795
9796   dgux*)
9797     case $cc_basename in
9798       ec++)
9799         # FIXME: insert proper C++ library support
9800         ld_shlibs_CXX=no
9801         ;;
9802       ghcx)
9803         # Green Hills C++ Compiler
9804         # FIXME: insert proper C++ library support
9805         ld_shlibs_CXX=no
9806         ;;
9807       *)
9808         # FIXME: insert proper C++ library support
9809         ld_shlibs_CXX=no
9810         ;;
9811     esac
9812     ;;
9813   freebsd12*)
9814     # C++ shared libraries reported to be fairly broken before switch to ELF
9815     ld_shlibs_CXX=no
9816     ;;
9817   freebsd-elf*)
9818     archive_cmds_need_lc_CXX=no
9819     ;;
9820   freebsd* | kfreebsd*-gnu)
9821     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9822     # conventions
9823     ld_shlibs_CXX=yes
9824     ;;
9825   gnu*)
9826     ;;
9827   hpux9*)
9828     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9829     hardcode_libdir_separator_CXX=:
9830     export_dynamic_flag_spec_CXX='${wl}-E'
9831     hardcode_direct_CXX=yes
9832     hardcode_minus_L_CXX=yes # Not in the search PATH,
9833                                 # but as the default
9834                                 # location of the library.
9835
9836     case $cc_basename in
9837     CC)
9838       # FIXME: insert proper C++ library support
9839       ld_shlibs_CXX=no
9840       ;;
9841     aCC)
9842       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'
9843       # Commands to make compiler produce verbose output that lists
9844       # what "hidden" libraries, object files and flags are used when
9845       # linking a shared library.
9846       #
9847       # There doesn't appear to be a way to prevent this compiler from
9848       # explicitly linking system object files so we need to strip them
9849       # from the output so that they don't get included in the library
9850       # dependencies.
9851       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'
9852       ;;
9853     *)
9854       if test "$GXX" = yes; then
9855         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'
9856       else
9857         # FIXME: insert proper C++ library support
9858         ld_shlibs_CXX=no
9859       fi
9860       ;;
9861     esac
9862     ;;
9863   hpux10*|hpux11*)
9864     if test $with_gnu_ld = no; then
9865       case "$host_cpu" in
9866       hppa*64*)
9867         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9868         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9869         hardcode_libdir_separator_CXX=:
9870         ;;
9871       ia64*)
9872         hardcode_libdir_flag_spec_CXX='-L$libdir'
9873         ;;
9874       *)
9875         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9876         hardcode_libdir_separator_CXX=:
9877         export_dynamic_flag_spec_CXX='${wl}-E'
9878         ;;
9879       esac
9880     fi
9881     case "$host_cpu" in
9882     hppa*64*)
9883       hardcode_direct_CXX=no
9884       hardcode_shlibpath_var_CXX=no
9885       ;;
9886     ia64*)
9887       hardcode_direct_CXX=no
9888       hardcode_shlibpath_var_CXX=no
9889       hardcode_minus_L_CXX=yes # Not in the search PATH,
9890                                               # but as the default
9891                                               # location of the library.
9892       ;;
9893     *)
9894       hardcode_direct_CXX=yes
9895       hardcode_minus_L_CXX=yes # Not in the search PATH,
9896                                               # but as the default
9897                                               # location of the library.
9898       ;;
9899     esac
9900
9901     case $cc_basename in
9902       CC)
9903         # FIXME: insert proper C++ library support
9904         ld_shlibs_CXX=no
9905         ;;
9906       aCC)
9907         case "$host_cpu" in
9908         hppa*64*|ia64*)
9909           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9910           ;;
9911         *)
9912           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9913           ;;
9914         esac
9915         # Commands to make compiler produce verbose output that lists
9916         # what "hidden" libraries, object files and flags are used when
9917         # linking a shared library.
9918         #
9919         # There doesn't appear to be a way to prevent this compiler from
9920         # explicitly linking system object files so we need to strip them
9921         # from the output so that they don't get included in the library
9922         # dependencies.
9923         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'
9924         ;;
9925       *)
9926         if test "$GXX" = yes; then
9927           if test $with_gnu_ld = no; then
9928             case "$host_cpu" in
9929             ia64*|hppa*64*)
9930               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9931               ;;
9932             *)
9933               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'
9934               ;;
9935             esac
9936           fi
9937         else
9938           # FIXME: insert proper C++ library support
9939           ld_shlibs_CXX=no
9940         fi
9941         ;;
9942     esac
9943     ;;
9944   irix5* | irix6*)
9945     case $cc_basename in
9946       CC)
9947         # SGI C++
9948         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'
9949
9950         # Archives containing C++ object files must be created using
9951         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9952         # necessary to make sure instantiated templates are included
9953         # in the archive.
9954         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9955         ;;
9956       *)
9957         if test "$GXX" = yes; then
9958           if test "$with_gnu_ld" = no; then
9959             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'
9960           else
9961             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'
9962           fi
9963         fi
9964         link_all_deplibs_CXX=yes
9965         ;;
9966     esac
9967     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9968     hardcode_libdir_separator_CXX=:
9969     ;;
9970   linux*)
9971     case $cc_basename in
9972       KCC)
9973         # Kuck and Associates, Inc. (KAI) C++ Compiler
9974
9975         # KCC will only create a shared library if the output file
9976         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9977         # to its proper name (with version) after linking.
9978         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'
9979         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'
9980         # Commands to make compiler produce verbose output that lists
9981         # what "hidden" libraries, object files and flags are used when
9982         # linking a shared library.
9983         #
9984         # There doesn't appear to be a way to prevent this compiler from
9985         # explicitly linking system object files so we need to strip them
9986         # from the output so that they don't get included in the library
9987         # dependencies.
9988         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'
9989
9990         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9991         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9992
9993         # Archives containing C++ object files must be created using
9994         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9995         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9996         ;;
9997       icpc)
9998         # Intel C++
9999         with_gnu_ld=yes
10000         archive_cmds_need_lc_CXX=no
10001         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002         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'
10003         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10004         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10005         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10006         ;;
10007       cxx)
10008         # Compaq C++
10009         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010         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'
10011
10012         runpath_var=LD_RUN_PATH
10013         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10014         hardcode_libdir_separator_CXX=:
10015
10016         # Commands to make compiler produce verbose output that lists
10017         # what "hidden" libraries, object files and flags are used when
10018         # linking a shared library.
10019         #
10020         # There doesn't appear to be a way to prevent this compiler from
10021         # explicitly linking system object files so we need to strip them
10022         # from the output so that they don't get included in the library
10023         # dependencies.
10024         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'
10025         ;;
10026     esac
10027     ;;
10028   lynxos*)
10029     # FIXME: insert proper C++ library support
10030     ld_shlibs_CXX=no
10031     ;;
10032   m88k*)
10033     # FIXME: insert proper C++ library support
10034     ld_shlibs_CXX=no
10035     ;;
10036   mvs*)
10037     case $cc_basename in
10038       cxx)
10039         # FIXME: insert proper C++ library support
10040         ld_shlibs_CXX=no
10041         ;;
10042       *)
10043         # FIXME: insert proper C++ library support
10044         ld_shlibs_CXX=no
10045         ;;
10046     esac
10047     ;;
10048   netbsd* | knetbsd*-gnu)
10049     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10050       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10051       wlarc=
10052       hardcode_libdir_flag_spec_CXX='-R$libdir'
10053       hardcode_direct_CXX=yes
10054       hardcode_shlibpath_var_CXX=no
10055     fi
10056     # Workaround some broken pre-1.5 toolchains
10057     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10058     ;;
10059   osf3*)
10060     case $cc_basename in
10061       KCC)
10062         # Kuck and Associates, Inc. (KAI) C++ Compiler
10063
10064         # KCC will only create a shared library if the output file
10065         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10066         # to its proper name (with version) after linking.
10067         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'
10068
10069         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10070         hardcode_libdir_separator_CXX=:
10071
10072         # Archives containing C++ object files must be created using
10073         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10074         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10075
10076         ;;
10077       RCC)
10078         # Rational C++ 2.4.1
10079         # FIXME: insert proper C++ library support
10080         ld_shlibs_CXX=no
10081         ;;
10082       cxx)
10083         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10084         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'
10085
10086         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10087         hardcode_libdir_separator_CXX=:
10088
10089         # Commands to make compiler produce verbose output that lists
10090         # what "hidden" libraries, object files and flags are used when
10091         # linking a shared library.
10092         #
10093         # There doesn't appear to be a way to prevent this compiler from
10094         # explicitly linking system object files so we need to strip them
10095         # from the output so that they don't get included in the library
10096         # dependencies.
10097         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'
10098         ;;
10099       *)
10100         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10101           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10102           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'
10103
10104           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10105           hardcode_libdir_separator_CXX=:
10106
10107           # Commands to make compiler produce verbose output that lists
10108           # what "hidden" libraries, object files and flags are used when
10109           # linking a shared library.
10110           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10111
10112         else
10113           # FIXME: insert proper C++ library support
10114           ld_shlibs_CXX=no
10115         fi
10116         ;;
10117     esac
10118     ;;
10119   osf4* | osf5*)
10120     case $cc_basename in
10121       KCC)
10122         # Kuck and Associates, Inc. (KAI) C++ Compiler
10123
10124         # KCC will only create a shared library if the output file
10125         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10126         # to its proper name (with version) after linking.
10127         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'
10128
10129         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10130         hardcode_libdir_separator_CXX=:
10131
10132         # Archives containing C++ object files must be created using
10133         # the KAI C++ compiler.
10134         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10135         ;;
10136       RCC)
10137         # Rational C++ 2.4.1
10138         # FIXME: insert proper C++ library support
10139         ld_shlibs_CXX=no
10140         ;;
10141       cxx)
10142         allow_undefined_flag_CXX=' -expect_unresolved \*'
10143         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'
10144         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10145           echo "-hidden">> $lib.exp~
10146           $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~
10147           $rm $lib.exp'
10148
10149         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10150         hardcode_libdir_separator_CXX=:
10151
10152         # Commands to make compiler produce verbose output that lists
10153         # what "hidden" libraries, object files and flags are used when
10154         # linking a shared library.
10155         #
10156         # There doesn't appear to be a way to prevent this compiler from
10157         # explicitly linking system object files so we need to strip them
10158         # from the output so that they don't get included in the library
10159         # dependencies.
10160         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'
10161         ;;
10162       *)
10163         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10164           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10165          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'
10166
10167           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10168           hardcode_libdir_separator_CXX=:
10169
10170           # Commands to make compiler produce verbose output that lists
10171           # what "hidden" libraries, object files and flags are used when
10172           # linking a shared library.
10173           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10174
10175         else
10176           # FIXME: insert proper C++ library support
10177           ld_shlibs_CXX=no
10178         fi
10179         ;;
10180     esac
10181     ;;
10182   psos*)
10183     # FIXME: insert proper C++ library support
10184     ld_shlibs_CXX=no
10185     ;;
10186   sco*)
10187     archive_cmds_need_lc_CXX=no
10188     case $cc_basename in
10189       CC)
10190         # FIXME: insert proper C++ library support
10191         ld_shlibs_CXX=no
10192         ;;
10193       *)
10194         # FIXME: insert proper C++ library support
10195         ld_shlibs_CXX=no
10196         ;;
10197     esac
10198     ;;
10199   sunos4*)
10200     case $cc_basename in
10201       CC)
10202         # Sun C++ 4.x
10203         # FIXME: insert proper C++ library support
10204         ld_shlibs_CXX=no
10205         ;;
10206       lcc)
10207         # Lucid
10208         # FIXME: insert proper C++ library support
10209         ld_shlibs_CXX=no
10210         ;;
10211       *)
10212         # FIXME: insert proper C++ library support
10213         ld_shlibs_CXX=no
10214         ;;
10215     esac
10216     ;;
10217   solaris*)
10218     case $cc_basename in
10219       CC)
10220         # Sun C++ 4.2, 5.x and Centerline C++
10221         no_undefined_flag_CXX=' -zdefs'
10222         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10223         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10224         $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'
10225
10226         hardcode_libdir_flag_spec_CXX='-R$libdir'
10227         hardcode_shlibpath_var_CXX=no
10228         case $host_os in
10229           solaris2.0-5 | solaris2.0-5.*) ;;
10230           *)
10231             # The C++ compiler is used as linker so we must use $wl
10232             # flag to pass the commands to the underlying system
10233             # linker.
10234             # Supported since Solaris 2.6 (maybe 2.5.1?)
10235             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10236             ;;
10237         esac
10238         link_all_deplibs_CXX=yes
10239
10240         # Commands to make compiler produce verbose output that lists
10241         # what "hidden" libraries, object files and flags are used when
10242         # linking a shared library.
10243         #
10244         # There doesn't appear to be a way to prevent this compiler from
10245         # explicitly linking system object files so we need to strip them
10246         # from the output so that they don't get included in the library
10247         # dependencies.
10248         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'
10249
10250         # Archives containing C++ object files must be created using
10251         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10252         # necessary to make sure instantiated templates are included
10253         # in the archive.
10254         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10255         ;;
10256       gcx)
10257         # Green Hills C++ Compiler
10258         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10259
10260         # The C++ compiler must be used to create the archive.
10261         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10262         ;;
10263       *)
10264         # GNU C++ compiler with Solaris linker
10265         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10266           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10267           if $CC --version | grep -v '^2\.7' > /dev/null; then
10268             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10269             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10270                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10271
10272             # Commands to make compiler produce verbose output that lists
10273             # what "hidden" libraries, object files and flags are used when
10274             # linking a shared library.
10275             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10276           else
10277             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10278             # platform.
10279             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10280             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10281                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10282
10283             # Commands to make compiler produce verbose output that lists
10284             # what "hidden" libraries, object files and flags are used when
10285             # linking a shared library.
10286             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10287           fi
10288
10289           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10290         fi
10291         ;;
10292     esac
10293     ;;
10294   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10295     archive_cmds_need_lc_CXX=no
10296     ;;
10297   tandem*)
10298     case $cc_basename in
10299       NCC)
10300         # NonStop-UX NCC 3.20
10301         # FIXME: insert proper C++ library support
10302         ld_shlibs_CXX=no
10303         ;;
10304       *)
10305         # FIXME: insert proper C++ library support
10306         ld_shlibs_CXX=no
10307         ;;
10308     esac
10309     ;;
10310   vxworks*)
10311     # FIXME: insert proper C++ library support
10312     ld_shlibs_CXX=no
10313     ;;
10314   *)
10315     # FIXME: insert proper C++ library support
10316     ld_shlibs_CXX=no
10317     ;;
10318 esac
10319 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10320 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10321 test "$ld_shlibs_CXX" = no && can_build_shared=no
10322
10323 GCC_CXX="$GXX"
10324 LD_CXX="$LD"
10325
10326
10327 cat > conftest.$ac_ext <<EOF
10328 class Foo
10329 {
10330 public:
10331   Foo (void) { a = 0; }
10332 private:
10333   int a;
10334 };
10335 EOF
10336
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338   (eval $ac_compile) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; then
10342   # Parse the compiler output and extract the necessary
10343   # objects, libraries and library flags.
10344
10345   # Sentinel used to keep track of whether or not we are before
10346   # the conftest object file.
10347   pre_test_object_deps_done=no
10348
10349   # The `*' in the case matches for architectures that use `case' in
10350   # $output_verbose_cmd can trigger glob expansion during the loop
10351   # eval without this substitution.
10352   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10353
10354   for p in `eval $output_verbose_link_cmd`; do
10355     case $p in
10356
10357     -L* | -R* | -l*)
10358        # Some compilers place space between "-{L,R}" and the path.
10359        # Remove the space.
10360        if test $p = "-L" \
10361           || test $p = "-R"; then
10362          prev=$p
10363          continue
10364        else
10365          prev=
10366        fi
10367
10368        if test "$pre_test_object_deps_done" = no; then
10369          case $p in
10370          -L* | -R*)
10371            # Internal compiler library paths should come after those
10372            # provided the user.  The postdeps already come after the
10373            # user supplied libs so there is no need to process them.
10374            if test -z "$compiler_lib_search_path_CXX"; then
10375              compiler_lib_search_path_CXX="${prev}${p}"
10376            else
10377              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10378            fi
10379            ;;
10380          # The "-l" case would never come before the object being
10381          # linked, so don't bother handling this case.
10382          esac
10383        else
10384          if test -z "$postdeps_CXX"; then
10385            postdeps_CXX="${prev}${p}"
10386          else
10387            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10388          fi
10389        fi
10390        ;;
10391
10392     *.$objext)
10393        # This assumes that the test object file only shows up
10394        # once in the compiler output.
10395        if test "$p" = "conftest.$objext"; then
10396          pre_test_object_deps_done=yes
10397          continue
10398        fi
10399
10400        if test "$pre_test_object_deps_done" = no; then
10401          if test -z "$predep_objects_CXX"; then
10402            predep_objects_CXX="$p"
10403          else
10404            predep_objects_CXX="$predep_objects_CXX $p"
10405          fi
10406        else
10407          if test -z "$postdep_objects_CXX"; then
10408            postdep_objects_CXX="$p"
10409          else
10410            postdep_objects_CXX="$postdep_objects_CXX $p"
10411          fi
10412        fi
10413        ;;
10414
10415     *) ;; # Ignore the rest.
10416
10417     esac
10418   done
10419
10420   # Clean up.
10421   rm -f a.out a.exe
10422 else
10423   echo "libtool.m4: error: problem compiling CXX test program"
10424 fi
10425
10426 $rm -f confest.$objext
10427
10428 case " $postdeps_CXX " in
10429 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10430 esac
10431
10432 lt_prog_compiler_wl_CXX=
10433 lt_prog_compiler_pic_CXX=
10434 lt_prog_compiler_static_CXX=
10435
10436 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10437 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10438
10439   # C++ specific cases for pic, static, wl, etc.
10440   if test "$GXX" = yes; then
10441     lt_prog_compiler_wl_CXX='-Wl,'
10442     lt_prog_compiler_static_CXX='-static'
10443
10444     case $host_os in
10445     aix*)
10446       # All AIX code is PIC.
10447       if test "$host_cpu" = ia64; then
10448         # AIX 5 now supports IA64 processor
10449         lt_prog_compiler_static_CXX='-Bstatic'
10450       fi
10451       ;;
10452     amigaos*)
10453       # FIXME: we need at least 68020 code to build shared libraries, but
10454       # adding the `-m68020' flag to GCC prevents building anything better,
10455       # like `-m68040'.
10456       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10457       ;;
10458     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10459       # PIC is the default for these OSes.
10460       ;;
10461     mingw* | os2* | pw32*)
10462       # This hack is so that the source file can tell whether it is being
10463       # built for inclusion in a dll (and should export symbols for example).
10464       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10465       ;;
10466     darwin* | rhapsody*)
10467       # PIC is the default on this platform
10468       # Common symbols not allowed in MH_DYLIB files
10469       lt_prog_compiler_pic_CXX='-fno-common'
10470       ;;
10471     *djgpp*)
10472       # DJGPP does not support shared libraries at all
10473       lt_prog_compiler_pic_CXX=
10474       ;;
10475     sysv4*MP*)
10476       if test -d /usr/nec; then
10477         lt_prog_compiler_pic_CXX=-Kconform_pic
10478       fi
10479       ;;
10480     hpux*)
10481       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10482       # not for PA HP-UX.
10483       case "$host_cpu" in
10484       hppa*64*|ia64*)
10485         ;;
10486       *)
10487         lt_prog_compiler_pic_CXX='-fPIC'
10488         ;;
10489       esac
10490       ;;
10491     *)
10492       lt_prog_compiler_pic_CXX='-fPIC'
10493       ;;
10494     esac
10495   else
10496     case $host_os in
10497       aix4* | aix5*)
10498         # All AIX code is PIC.
10499         if test "$host_cpu" = ia64; then
10500           # AIX 5 now supports IA64 processor
10501           lt_prog_compiler_static_CXX='-Bstatic'
10502         else
10503           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10504         fi
10505         ;;
10506       chorus*)
10507         case $cc_basename in
10508         cxch68)
10509           # Green Hills C++ Compiler
10510           # _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"
10511           ;;
10512         esac
10513         ;;
10514       dgux*)
10515         case $cc_basename in
10516           ec++)
10517             lt_prog_compiler_pic_CXX='-KPIC'
10518             ;;
10519           ghcx)
10520             # Green Hills C++ Compiler
10521             lt_prog_compiler_pic_CXX='-pic'
10522             ;;
10523           *)
10524             ;;
10525         esac
10526         ;;
10527       freebsd* | kfreebsd*-gnu)
10528         # FreeBSD uses GNU C++
10529         ;;
10530       hpux9* | hpux10* | hpux11*)
10531         case $cc_basename in
10532           CC)
10533             lt_prog_compiler_wl_CXX='-Wl,'
10534             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10535             if test "$host_cpu" != ia64; then
10536               lt_prog_compiler_pic_CXX='+Z'
10537             fi
10538             ;;
10539           aCC)
10540             lt_prog_compiler_wl_CXX='-Wl,'
10541             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10542             case "$host_cpu" in
10543             hppa*64*|ia64*)
10544               # +Z the default
10545               ;;
10546             *)
10547               lt_prog_compiler_pic_CXX='+Z'
10548               ;;
10549             esac
10550             ;;
10551           *)
10552             ;;
10553         esac
10554         ;;
10555       irix5* | irix6* | nonstopux*)
10556         case $cc_basename in
10557           CC)
10558             lt_prog_compiler_wl_CXX='-Wl,'
10559             lt_prog_compiler_static_CXX='-non_shared'
10560             # CC pic flag -KPIC is the default.
10561             ;;
10562           *)
10563             ;;
10564         esac
10565         ;;
10566       linux*)
10567         case $cc_basename in
10568           KCC)
10569             # KAI C++ Compiler
10570             lt_prog_compiler_wl_CXX='--backend -Wl,'
10571             lt_prog_compiler_pic_CXX='-fPIC'
10572             ;;
10573           icpc)
10574             # Intel C++
10575             lt_prog_compiler_wl_CXX='-Wl,'
10576             lt_prog_compiler_pic_CXX='-KPIC'
10577             lt_prog_compiler_static_CXX='-static'
10578             ;;
10579           cxx)
10580             # Compaq C++
10581             # Make sure the PIC flag is empty.  It appears that all Alpha
10582             # Linux and Compaq Tru64 Unix objects are PIC.
10583             lt_prog_compiler_pic_CXX=
10584             lt_prog_compiler_static_CXX='-non_shared'
10585             ;;
10586           *)
10587             ;;
10588         esac
10589         ;;
10590       lynxos*)
10591         ;;
10592       m88k*)
10593         ;;
10594       mvs*)
10595         case $cc_basename in
10596           cxx)
10597             lt_prog_compiler_pic_CXX='-W c,exportall'
10598             ;;
10599           *)
10600             ;;
10601         esac
10602         ;;
10603       netbsd* | knetbsd*-gnu)
10604         ;;
10605       osf3* | osf4* | osf5*)
10606         case $cc_basename in
10607           KCC)
10608             lt_prog_compiler_wl_CXX='--backend -Wl,'
10609             ;;
10610           RCC)
10611             # Rational C++ 2.4.1
10612             lt_prog_compiler_pic_CXX='-pic'
10613             ;;
10614           cxx)
10615             # Digital/Compaq C++
10616             lt_prog_compiler_wl_CXX='-Wl,'
10617             # Make sure the PIC flag is empty.  It appears that all Alpha
10618             # Linux and Compaq Tru64 Unix objects are PIC.
10619             lt_prog_compiler_pic_CXX=
10620             lt_prog_compiler_static_CXX='-non_shared'
10621             ;;
10622           *)
10623             ;;
10624         esac
10625         ;;
10626       psos*)
10627         ;;
10628       sco*)
10629         case $cc_basename in
10630           CC)
10631             lt_prog_compiler_pic_CXX='-fPIC'
10632             ;;
10633           *)
10634             ;;
10635         esac
10636         ;;
10637       solaris*)
10638         case $cc_basename in
10639           CC)
10640             # Sun C++ 4.2, 5.x and Centerline C++
10641             lt_prog_compiler_pic_CXX='-KPIC'
10642             lt_prog_compiler_static_CXX='-Bstatic'
10643             lt_prog_compiler_wl_CXX='-Qoption ld '
10644             ;;
10645           gcx)
10646             # Green Hills C++ Compiler
10647             lt_prog_compiler_pic_CXX='-PIC'
10648             ;;
10649           *)
10650             ;;
10651         esac
10652         ;;
10653       sunos4*)
10654         case $cc_basename in
10655           CC)
10656             # Sun C++ 4.x
10657             lt_prog_compiler_pic_CXX='-pic'
10658             lt_prog_compiler_static_CXX='-Bstatic'
10659             ;;
10660           lcc)
10661             # Lucid
10662             lt_prog_compiler_pic_CXX='-pic'
10663             ;;
10664           *)
10665             ;;
10666         esac
10667         ;;
10668       tandem*)
10669         case $cc_basename in
10670           NCC)
10671             # NonStop-UX NCC 3.20
10672             lt_prog_compiler_pic_CXX='-KPIC'
10673             ;;
10674           *)
10675             ;;
10676         esac
10677         ;;
10678       unixware*)
10679         ;;
10680       vxworks*)
10681         ;;
10682       *)
10683         lt_prog_compiler_can_build_shared_CXX=no
10684         ;;
10685     esac
10686   fi
10687
10688 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10689 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10690
10691 #
10692 # Check to make sure the PIC flag actually works.
10693 #
10694 if test -n "$lt_prog_compiler_pic_CXX"; then
10695
10696 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10697 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10698 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   lt_prog_compiler_pic_works_CXX=no
10702   ac_outfile=conftest.$ac_objext
10703    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10704    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10705    # Insert the option either (1) after the last *FLAGS variable, or
10706    # (2) before a word containing "conftest.", or (3) at the end.
10707    # Note that $ac_compile itself does not contain backslashes and begins
10708    # with a dollar sign (not a hyphen), so the echo should work correctly.
10709    # The option is referenced via a variable to avoid confusing sed.
10710    lt_compile=`echo "$ac_compile" | $SED \
10711    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10713    -e 's:$: $lt_compiler_flag:'`
10714    (eval echo "\"\$as_me:10714: $lt_compile\"" >&5)
10715    (eval "$lt_compile" 2>conftest.err)
10716    ac_status=$?
10717    cat conftest.err >&5
10718    echo "$as_me:10718: \$? = $ac_status" >&5
10719    if (exit $ac_status) && test -s "$ac_outfile"; then
10720      # The compiler can only warn and ignore the option if not recognized
10721      # So say no if there are warnings
10722      if test ! -s conftest.err; then
10723        lt_prog_compiler_pic_works_CXX=yes
10724      fi
10725    fi
10726    $rm conftest*
10727
10728 fi
10729 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10730 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10731
10732 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10733     case $lt_prog_compiler_pic_CXX in
10734      "" | " "*) ;;
10735      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10736      esac
10737 else
10738     lt_prog_compiler_pic_CXX=
10739      lt_prog_compiler_can_build_shared_CXX=no
10740 fi
10741
10742 fi
10743 case "$host_os" in
10744   # For platforms which do not support PIC, -DPIC is meaningless:
10745   *djgpp*)
10746     lt_prog_compiler_pic_CXX=
10747     ;;
10748   *)
10749     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10750     ;;
10751 esac
10752
10753 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10754 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10755 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   lt_cv_prog_compiler_c_o_CXX=no
10759    $rm -r conftest 2>/dev/null
10760    mkdir conftest
10761    cd conftest
10762    mkdir out
10763    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10764
10765    lt_compiler_flag="-o out/conftest2.$ac_objext"
10766    # Insert the option either (1) after the last *FLAGS variable, or
10767    # (2) before a word containing "conftest.", or (3) at the end.
10768    # Note that $ac_compile itself does not contain backslashes and begins
10769    # with a dollar sign (not a hyphen), so the echo should work correctly.
10770    lt_compile=`echo "$ac_compile" | $SED \
10771    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10773    -e 's:$: $lt_compiler_flag:'`
10774    (eval echo "\"\$as_me:10774: $lt_compile\"" >&5)
10775    (eval "$lt_compile" 2>out/conftest.err)
10776    ac_status=$?
10777    cat out/conftest.err >&5
10778    echo "$as_me:10778: \$? = $ac_status" >&5
10779    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10780    then
10781      # The compiler can only warn and ignore the option if not recognized
10782      # So say no if there are warnings
10783      if test ! -s out/conftest.err; then
10784        lt_cv_prog_compiler_c_o_CXX=yes
10785      fi
10786    fi
10787    chmod u+w .
10788    $rm conftest*
10789    # SGI C++ compiler will create directory out/ii_files/ for
10790    # template instantiation
10791    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10792    $rm out/* && rmdir out
10793    cd ..
10794    rmdir conftest
10795    $rm conftest*
10796
10797 fi
10798 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10799 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10800
10801
10802 hard_links="nottested"
10803 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10804   # do not overwrite the value of need_locks provided by the user
10805   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10807   hard_links=yes
10808   $rm conftest*
10809   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10810   touch conftest.a
10811   ln conftest.a conftest.b 2>&5 || hard_links=no
10812   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10813   echo "$as_me:$LINENO: result: $hard_links" >&5
10814 echo "${ECHO_T}$hard_links" >&6
10815   if test "$hard_links" = no; then
10816     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10818     need_locks=warn
10819   fi
10820 else
10821   need_locks=no
10822 fi
10823
10824 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10825 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10826
10827   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10828   case $host_os in
10829   aix4* | aix5*)
10830     # If we're using GNU nm, then we don't want the "-C" option.
10831     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10832     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10833       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'
10834     else
10835       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'
10836     fi
10837     ;;
10838   pw32*)
10839     export_symbols_cmds_CXX="$ltdll_cmds"
10840   ;;
10841   cygwin* | mingw*)
10842     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10843   ;;
10844   linux*)
10845     link_all_deplibs_CXX=no
10846   ;;
10847   *)
10848     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10849   ;;
10850   esac
10851
10852 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10853 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10854 test "$ld_shlibs_CXX" = no && can_build_shared=no
10855
10856 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10857 if test "$GCC" = yes; then
10858   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10859 fi
10860
10861 #
10862 # Do we need to explicitly link libc?
10863 #
10864 case "x$archive_cmds_need_lc_CXX" in
10865 x|xyes)
10866   # Assume -lc should be added
10867   archive_cmds_need_lc_CXX=yes
10868
10869   if test "$enable_shared" = yes && test "$GCC" = yes; then
10870     case $archive_cmds_CXX in
10871     *'~'*)
10872       # FIXME: we may have to deal with multi-command sequences.
10873       ;;
10874     '$CC '*)
10875       # Test whether the compiler implicitly links with -lc since on some
10876       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877       # to ld, don't add -lc before -lgcc.
10878       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10880       $rm conftest*
10881       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10882
10883       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884   (eval $ac_compile) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } 2>conftest.err; then
10888         soname=conftest
10889         lib=conftest
10890         libobjs=conftest.$ac_objext
10891         deplibs=
10892         wl=$lt_prog_compiler_wl_CXX
10893         compiler_flags=-v
10894         linker_flags=-v
10895         verstring=
10896         output_objdir=.
10897         libname=conftest
10898         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10899         allow_undefined_flag_CXX=
10900         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10901   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }
10905         then
10906           archive_cmds_need_lc_CXX=no
10907         else
10908           archive_cmds_need_lc_CXX=yes
10909         fi
10910         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10911       else
10912         cat conftest.err 1>&5
10913       fi
10914       $rm conftest*
10915       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10916 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10917       ;;
10918     esac
10919   fi
10920   ;;
10921 esac
10922
10923 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10924 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10925 library_names_spec=
10926 libname_spec='lib$name'
10927 soname_spec=
10928 shrext_cmds=".so"
10929 postinstall_cmds=
10930 postuninstall_cmds=
10931 finish_cmds=
10932 finish_eval=
10933 shlibpath_var=
10934 shlibpath_overrides_runpath=unknown
10935 version_type=none
10936 dynamic_linker="$host_os ld.so"
10937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10938 if test "$GCC" = yes; then
10939   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10940   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10941     # if the path contains ";" then we assume it to be the separator
10942     # otherwise default to the standard path separator (i.e. ":") - it is
10943     # assumed that no part of a normal pathname contains ";" but that should
10944     # okay in the real world where ";" in dirpaths is itself problematic.
10945     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10946   else
10947     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10948   fi
10949 else
10950   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10951 fi
10952 need_lib_prefix=unknown
10953 hardcode_into_libs=no
10954
10955 # when you set need_version to no, make sure it does not cause -set_version
10956 # flags to be left without arguments
10957 need_version=unknown
10958
10959 case $host_os in
10960 aix3*)
10961   version_type=linux
10962   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10963   shlibpath_var=LIBPATH
10964
10965   # AIX 3 has no versioning support, so we append a major version to the name.
10966   soname_spec='${libname}${release}${shared_ext}$major'
10967   ;;
10968
10969 aix4* | aix5*)
10970   version_type=linux
10971   need_lib_prefix=no
10972   need_version=no
10973   hardcode_into_libs=yes
10974   if test "$host_cpu" = ia64; then
10975     # AIX 5 supports IA64
10976     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10977     shlibpath_var=LD_LIBRARY_PATH
10978   else
10979     # With GCC up to 2.95.x, collect2 would create an import file
10980     # for dependence libraries.  The import file would start with
10981     # the line `#! .'.  This would cause the generated library to
10982     # depend on `.', always an invalid library.  This was fixed in
10983     # development snapshots of GCC prior to 3.0.
10984     case $host_os in
10985       aix4 | aix4.[01] | aix4.[01].*)
10986       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10987            echo ' yes '
10988            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10989         :
10990       else
10991         can_build_shared=no
10992       fi
10993       ;;
10994     esac
10995     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10996     # soname into executable. Probably we can add versioning support to
10997     # collect2, so additional links can be useful in future.
10998     if test "$aix_use_runtimelinking" = yes; then
10999       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11000       # instead of lib<name>.a to let people know that these are not
11001       # typical AIX shared libraries.
11002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003     else
11004       # We preserve .a as extension for shared libraries through AIX4.2
11005       # and later when we are not doing run time linking.
11006       library_names_spec='${libname}${release}.a $libname.a'
11007       soname_spec='${libname}${release}${shared_ext}$major'
11008     fi
11009     shlibpath_var=LIBPATH
11010   fi
11011   ;;
11012
11013 amigaos*)
11014   library_names_spec='$libname.ixlibrary $libname.a'
11015   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11016   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'
11017   ;;
11018
11019 beos*)
11020   library_names_spec='${libname}${shared_ext}'
11021   dynamic_linker="$host_os ld.so"
11022   shlibpath_var=LIBRARY_PATH
11023   ;;
11024
11025 bsdi4*)
11026   version_type=linux
11027   need_version=no
11028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029   soname_spec='${libname}${release}${shared_ext}$major'
11030   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11033   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11034   # the default ld.so.conf also contains /usr/contrib/lib and
11035   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11036   # libtool to hard-code these into programs
11037   ;;
11038
11039 cygwin* | mingw* | pw32*)
11040   version_type=windows
11041   shrext_cmds=".dll"
11042   need_version=no
11043   need_lib_prefix=no
11044
11045   case $GCC,$host_os in
11046   yes,cygwin* | yes,mingw* | yes,pw32*)
11047     library_names_spec='$libname.dll.a'
11048     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11049     postinstall_cmds='base_file=`basename \${file}`~
11050       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11051       dldir=$destdir/`dirname \$dlpath`~
11052       test -d \$dldir || mkdir -p \$dldir~
11053       $install_prog $dir/$dlname \$dldir/$dlname'
11054     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11055       dlpath=$dir/\$dldll~
11056        $rm \$dlpath'
11057     shlibpath_overrides_runpath=yes
11058
11059     case $host_os in
11060     cygwin*)
11061       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11062       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11063       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11064       ;;
11065     mingw*)
11066       # MinGW DLLs use traditional 'lib' prefix
11067       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11068       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11069       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11070         # It is most probably a Windows format PATH printed by
11071         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11072         # path with ; separators, and with drive letters. We can handle the
11073         # drive letters (cygwin fileutils understands them), so leave them,
11074         # especially as we might pass files found there to a mingw objdump,
11075         # which wouldn't understand a cygwinified path. Ahh.
11076         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11077       else
11078         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11079       fi
11080       ;;
11081     pw32*)
11082       # pw32 DLLs use 'pw' prefix rather than 'lib'
11083       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11084       ;;
11085     esac
11086     ;;
11087
11088   *)
11089     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11090     ;;
11091   esac
11092   dynamic_linker='Win32 ld.exe'
11093   # FIXME: first we should search . and the directory the executable is in
11094   shlibpath_var=PATH
11095   ;;
11096
11097 darwin* | rhapsody*)
11098   dynamic_linker="$host_os dyld"
11099   version_type=darwin
11100   need_lib_prefix=no
11101   need_version=no
11102   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11103   soname_spec='${libname}${release}${major}$shared_ext'
11104   shlibpath_overrides_runpath=yes
11105   shlibpath_var=DYLD_LIBRARY_PATH
11106   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11107   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11108   if test "$GCC" = yes; then
11109     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"`
11110   else
11111     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11112   fi
11113   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11114   ;;
11115
11116 dgux*)
11117   version_type=linux
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11121   soname_spec='${libname}${release}${shared_ext}$major'
11122   shlibpath_var=LD_LIBRARY_PATH
11123   ;;
11124
11125 freebsd1*)
11126   dynamic_linker=no
11127   ;;
11128
11129 kfreebsd*-gnu)
11130   version_type=linux
11131   need_lib_prefix=no
11132   need_version=no
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   shlibpath_overrides_runpath=no
11137   hardcode_into_libs=yes
11138   dynamic_linker='GNU ld.so'
11139   ;;
11140
11141 freebsd*)
11142   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11143   version_type=freebsd-$objformat
11144   case $version_type in
11145     freebsd-elf*)
11146       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11147       need_version=no
11148       need_lib_prefix=no
11149       ;;
11150     freebsd-*)
11151       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11152       need_version=yes
11153       ;;
11154   esac
11155   shlibpath_var=LD_LIBRARY_PATH
11156   case $host_os in
11157   freebsd2*)
11158     shlibpath_overrides_runpath=yes
11159     ;;
11160   freebsd3.01* | freebsdelf3.01*)
11161     shlibpath_overrides_runpath=yes
11162     hardcode_into_libs=yes
11163     ;;
11164   *) # from 3.2 on
11165     shlibpath_overrides_runpath=no
11166     hardcode_into_libs=yes
11167     ;;
11168   esac
11169   ;;
11170
11171 gnu*)
11172   version_type=linux
11173   need_lib_prefix=no
11174   need_version=no
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   hardcode_into_libs=yes
11179   ;;
11180
11181 hpux9* | hpux10* | hpux11*)
11182   # Give a soname corresponding to the major version so that dld.sl refuses to
11183   # link against other versions.
11184   version_type=sunos
11185   need_lib_prefix=no
11186   need_version=no
11187   case "$host_cpu" in
11188   ia64*)
11189     shrext_cmds='.so'
11190     hardcode_into_libs=yes
11191     dynamic_linker="$host_os dld.so"
11192     shlibpath_var=LD_LIBRARY_PATH
11193     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195     soname_spec='${libname}${release}${shared_ext}$major'
11196     if test "X$HPUX_IA64_MODE" = X32; then
11197       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11198     else
11199       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11200     fi
11201     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11202     ;;
11203    hppa*64*)
11204      shrext_cmds='.sl'
11205      hardcode_into_libs=yes
11206      dynamic_linker="$host_os dld.sl"
11207      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11208      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11209      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210      soname_spec='${libname}${release}${shared_ext}$major'
11211      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11212      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11213      ;;
11214    *)
11215     shrext_cmds='.sl'
11216     dynamic_linker="$host_os dld.sl"
11217     shlibpath_var=SHLIB_PATH
11218     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220     soname_spec='${libname}${release}${shared_ext}$major'
11221     ;;
11222   esac
11223   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11224   postinstall_cmds='chmod 555 $lib'
11225   ;;
11226
11227 irix5* | irix6* | nonstopux*)
11228   case $host_os in
11229     nonstopux*) version_type=nonstopux ;;
11230     *)
11231         if test "$lt_cv_prog_gnu_ld" = yes; then
11232                 version_type=linux
11233         else
11234                 version_type=irix
11235         fi ;;
11236   esac
11237   need_lib_prefix=no
11238   need_version=no
11239   soname_spec='${libname}${release}${shared_ext}$major'
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11241   case $host_os in
11242   irix5* | nonstopux*)
11243     libsuff= shlibsuff=
11244     ;;
11245   *)
11246     case $LD in # libtool.m4 will add one of these switches to LD
11247     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11248       libsuff= shlibsuff= libmagic=32-bit;;
11249     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11250       libsuff=32 shlibsuff=N32 libmagic=N32;;
11251     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11252       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11253     *) libsuff= shlibsuff= libmagic=never-match;;
11254     esac
11255     ;;
11256   esac
11257   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11258   shlibpath_overrides_runpath=no
11259   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11260   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11261   hardcode_into_libs=yes
11262   ;;
11263
11264 # No shared lib support for Linux oldld, aout, or coff.
11265 linux*oldld* | linux*aout* | linux*coff*)
11266   dynamic_linker=no
11267   ;;
11268
11269 # This must be Linux ELF.
11270 linux*)
11271   version_type=linux
11272   need_lib_prefix=no
11273   need_version=no
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275   soname_spec='${libname}${release}${shared_ext}$major'
11276   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=no
11279   # This implies no fast_install, which is unacceptable.
11280   # Some rework will be needed to allow for fast_install
11281   # before this can be enabled.
11282   hardcode_into_libs=yes
11283
11284   # Append ld.so.conf contents to the search path
11285   if test -f /etc/ld.so.conf; then
11286     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11287     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11288   fi
11289
11290   # We used to test for /lib/ld.so.1 and disable shared libraries on
11291   # powerpc, because MkLinux only supported shared libraries with the
11292   # GNU dynamic linker.  Since this was broken with cross compilers,
11293   # most powerpc-linux boxes support dynamic linking these days and
11294   # people can always --disable-shared, the test was removed, and we
11295   # assume the GNU/Linux dynamic linker is in use.
11296   dynamic_linker='GNU/Linux ld.so'
11297   ;;
11298
11299 knetbsd*-gnu)
11300   version_type=linux
11301   need_lib_prefix=no
11302   need_version=no
11303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11304   soname_spec='${libname}${release}${shared_ext}$major'
11305   shlibpath_var=LD_LIBRARY_PATH
11306   shlibpath_overrides_runpath=no
11307   hardcode_into_libs=yes
11308   dynamic_linker='GNU ld.so'
11309   ;;
11310
11311 netbsd*)
11312   version_type=sunos
11313   need_lib_prefix=no
11314   need_version=no
11315   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11317     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11318     dynamic_linker='NetBSD (a.out) ld.so'
11319   else
11320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11321     soname_spec='${libname}${release}${shared_ext}$major'
11322     dynamic_linker='NetBSD ld.elf_so'
11323   fi
11324   shlibpath_var=LD_LIBRARY_PATH
11325   shlibpath_overrides_runpath=yes
11326   hardcode_into_libs=yes
11327   ;;
11328
11329 newsos6)
11330   version_type=linux
11331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332   shlibpath_var=LD_LIBRARY_PATH
11333   shlibpath_overrides_runpath=yes
11334   ;;
11335
11336 nto-qnx*)
11337   version_type=linux
11338   need_lib_prefix=no
11339   need_version=no
11340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341   soname_spec='${libname}${release}${shared_ext}$major'
11342   shlibpath_var=LD_LIBRARY_PATH
11343   shlibpath_overrides_runpath=yes
11344   ;;
11345
11346 openbsd*)
11347   version_type=sunos
11348   need_lib_prefix=no
11349   need_version=yes
11350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11352   shlibpath_var=LD_LIBRARY_PATH
11353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11354     case $host_os in
11355       openbsd2.[89] | openbsd2.[89].*)
11356         shlibpath_overrides_runpath=no
11357         ;;
11358       *)
11359         shlibpath_overrides_runpath=yes
11360         ;;
11361       esac
11362   else
11363     shlibpath_overrides_runpath=yes
11364   fi
11365   ;;
11366
11367 os2*)
11368   libname_spec='$name'
11369   shrext_cmds=".dll"
11370   need_lib_prefix=no
11371   library_names_spec='$libname${shared_ext} $libname.a'
11372   dynamic_linker='OS/2 ld.exe'
11373   shlibpath_var=LIBPATH
11374   ;;
11375
11376 osf3* | osf4* | osf5*)
11377   version_type=osf
11378   need_lib_prefix=no
11379   need_version=no
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382   shlibpath_var=LD_LIBRARY_PATH
11383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11385   ;;
11386
11387 sco3.2v5*)
11388   version_type=osf
11389   soname_spec='${libname}${release}${shared_ext}$major'
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391   shlibpath_var=LD_LIBRARY_PATH
11392   ;;
11393
11394 solaris*)
11395   version_type=linux
11396   need_lib_prefix=no
11397   need_version=no
11398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399   soname_spec='${libname}${release}${shared_ext}$major'
11400   shlibpath_var=LD_LIBRARY_PATH
11401   shlibpath_overrides_runpath=yes
11402   hardcode_into_libs=yes
11403   # ldd complains unless libraries are executable
11404   postinstall_cmds='chmod +x $lib'
11405   ;;
11406
11407 sunos4*)
11408   version_type=sunos
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11410   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   shlibpath_overrides_runpath=yes
11413   if test "$with_gnu_ld" = yes; then
11414     need_lib_prefix=no
11415   fi
11416   need_version=yes
11417   ;;
11418
11419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11420   version_type=linux
11421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422   soname_spec='${libname}${release}${shared_ext}$major'
11423   shlibpath_var=LD_LIBRARY_PATH
11424   case $host_vendor in
11425     sni)
11426       shlibpath_overrides_runpath=no
11427       need_lib_prefix=no
11428       export_dynamic_flag_spec='${wl}-Blargedynsym'
11429       runpath_var=LD_RUN_PATH
11430       ;;
11431     siemens)
11432       need_lib_prefix=no
11433       ;;
11434     motorola)
11435       need_lib_prefix=no
11436       need_version=no
11437       shlibpath_overrides_runpath=no
11438       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11439       ;;
11440   esac
11441   ;;
11442
11443 sysv4*MP*)
11444   if test -d /usr/nec ;then
11445     version_type=linux
11446     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11447     soname_spec='$libname${shared_ext}.$major'
11448     shlibpath_var=LD_LIBRARY_PATH
11449   fi
11450   ;;
11451
11452 uts4*)
11453   version_type=linux
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455   soname_spec='${libname}${release}${shared_ext}$major'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   ;;
11458
11459 *)
11460   dynamic_linker=no
11461   ;;
11462 esac
11463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11464 echo "${ECHO_T}$dynamic_linker" >&6
11465 test "$dynamic_linker" = no && can_build_shared=no
11466
11467 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11469 hardcode_action_CXX=
11470 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11471    test -n "$runpath_var CXX" || \
11472    test "X$hardcode_automatic_CXX"="Xyes" ; then
11473
11474   # We can hardcode non-existant directories.
11475   if test "$hardcode_direct_CXX" != no &&
11476      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11477      # have to relink, otherwise we might link with an installed library
11478      # when we should be linking with a yet-to-be-installed one
11479      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11480      test "$hardcode_minus_L_CXX" != no; then
11481     # Linking always hardcodes the temporary library directory.
11482     hardcode_action_CXX=relink
11483   else
11484     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11485     hardcode_action_CXX=immediate
11486   fi
11487 else
11488   # We cannot hardcode anything, or else we can only hardcode existing
11489   # directories.
11490   hardcode_action_CXX=unsupported
11491 fi
11492 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11493 echo "${ECHO_T}$hardcode_action_CXX" >&6
11494
11495 if test "$hardcode_action_CXX" = relink; then
11496   # Fast installation is not supported
11497   enable_fast_install=no
11498 elif test "$shlibpath_overrides_runpath" = yes ||
11499      test "$enable_shared" = no; then
11500   # Fast installation is not necessary
11501   enable_fast_install=needless
11502 fi
11503
11504 striplib=
11505 old_striplib=
11506 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11507 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11508 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11509   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11510   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11511   echo "$as_me:$LINENO: result: yes" >&5
11512 echo "${ECHO_T}yes" >&6
11513 else
11514 # FIXME - insert some real tests, host_os isn't really good enough
11515   case $host_os in
11516    darwin*)
11517        if test -n "$STRIP" ; then
11518          striplib="$STRIP -x"
11519          echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6
11521        else
11522   echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11524 fi
11525        ;;
11526    *)
11527   echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11529     ;;
11530   esac
11531 fi
11532
11533 if test "x$enable_dlopen" != xyes; then
11534   enable_dlopen=unknown
11535   enable_dlopen_self=unknown
11536   enable_dlopen_self_static=unknown
11537 else
11538   lt_cv_dlopen=no
11539   lt_cv_dlopen_libs=
11540
11541   case $host_os in
11542   beos*)
11543     lt_cv_dlopen="load_add_on"
11544     lt_cv_dlopen_libs=
11545     lt_cv_dlopen_self=yes
11546     ;;
11547
11548   mingw* | pw32*)
11549     lt_cv_dlopen="LoadLibrary"
11550     lt_cv_dlopen_libs=
11551    ;;
11552
11553   cygwin*)
11554     lt_cv_dlopen="dlopen"
11555     lt_cv_dlopen_libs=
11556    ;;
11557
11558   darwin*)
11559   # if libdl is installed we need to link against it
11560     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-ldl  $LIBS"
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h.  */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h.  */
11573
11574 /* Override any gcc2 internal prototype to avoid an error.  */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 /* We use char because int might match the return type of a gcc2
11579    builtin and then its argument prototype would still apply.  */
11580 char dlopen ();
11581 int
11582 main ()
11583 {
11584 dlopen ();
11585   ;
11586   return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591   (eval $ac_link) 2>conftest.er1
11592   ac_status=$?
11593   grep -v '^ *+' conftest.er1 >conftest.err
11594   rm -f conftest.er1
11595   cat conftest.err >&5
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; } &&
11604          { ac_try='test -s conftest$ac_exeext'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; }; then
11610   ac_cv_lib_dl_dlopen=yes
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 ac_cv_lib_dl_dlopen=no
11616 fi
11617 rm -f conftest.err conftest.$ac_objext \
11618       conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11620 fi
11621 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11622 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11623 if test $ac_cv_lib_dl_dlopen = yes; then
11624   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11625 else
11626
11627     lt_cv_dlopen="dyld"
11628     lt_cv_dlopen_libs=
11629     lt_cv_dlopen_self=yes
11630
11631 fi
11632
11633    ;;
11634
11635   *)
11636     echo "$as_me:$LINENO: checking for shl_load" >&5
11637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11638 if test "${ac_cv_func_shl_load+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define shl_load innocuous_shl_load
11650
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char shl_load (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11661
11662 #undef shl_load
11663
11664 /* Override any gcc2 internal prototype to avoid an error.  */
11665 #ifdef __cplusplus
11666 extern "C"
11667 {
11668 #endif
11669 /* We use char because int might match the return type of a gcc2
11670    builtin and then its argument prototype would still apply.  */
11671 char shl_load ();
11672 /* The GNU C library defines this for functions which it implements
11673     to always fail with ENOSYS.  Some functions are actually named
11674     something starting with __ and the normal name is an alias.  */
11675 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11676 choke me
11677 #else
11678 char (*f) () = shl_load;
11679 #endif
11680 #ifdef __cplusplus
11681 }
11682 #endif
11683
11684 int
11685 main ()
11686 {
11687 return f != shl_load;
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694   (eval $ac_link) 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } &&
11701          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703   (eval $ac_try) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; } &&
11707          { ac_try='test -s conftest$ac_exeext'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   ac_cv_func_shl_load=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718 ac_cv_func_shl_load=no
11719 fi
11720 rm -f conftest.err conftest.$ac_objext \
11721       conftest$ac_exeext conftest.$ac_ext
11722 fi
11723 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11724 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11725 if test $ac_cv_func_shl_load = yes; then
11726   lt_cv_dlopen="shl_load"
11727 else
11728   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11729 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11730 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11731   echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733   ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-ldld  $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741
11742 /* Override any gcc2 internal prototype to avoid an error.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 /* We use char because int might match the return type of a gcc2
11747    builtin and then its argument prototype would still apply.  */
11748 char shl_load ();
11749 int
11750 main ()
11751 {
11752 shl_load ();
11753   ;
11754   return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759   (eval $ac_link) 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } &&
11766          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768   (eval $ac_try) 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); }; } &&
11772          { ac_try='test -s conftest$ac_exeext'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   ac_cv_lib_dld_shl_load=yes
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 ac_cv_lib_dld_shl_load=no
11784 fi
11785 rm -f conftest.err conftest.$ac_objext \
11786       conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11788 fi
11789 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11790 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11791 if test $ac_cv_lib_dld_shl_load = yes; then
11792   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11793 else
11794   echo "$as_me:$LINENO: checking for dlopen" >&5
11795 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11796 if test "${ac_cv_func_dlopen+set}" = set; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799   cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h.  */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h.  */
11805 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11807 #define dlopen innocuous_dlopen
11808
11809 /* System header to define __stub macros and hopefully few prototypes,
11810     which can conflict with char dlopen (); below.
11811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11812     <limits.h> exists even on freestanding compilers.  */
11813
11814 #ifdef __STDC__
11815 # include <limits.h>
11816 #else
11817 # include <assert.h>
11818 #endif
11819
11820 #undef dlopen
11821
11822 /* Override any gcc2 internal prototype to avoid an error.  */
11823 #ifdef __cplusplus
11824 extern "C"
11825 {
11826 #endif
11827 /* We use char because int might match the return type of a gcc2
11828    builtin and then its argument prototype would still apply.  */
11829 char dlopen ();
11830 /* The GNU C library defines this for functions which it implements
11831     to always fail with ENOSYS.  Some functions are actually named
11832     something starting with __ and the normal name is an alias.  */
11833 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11834 choke me
11835 #else
11836 char (*f) () = dlopen;
11837 #endif
11838 #ifdef __cplusplus
11839 }
11840 #endif
11841
11842 int
11843 main ()
11844 {
11845 return f != dlopen;
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852   (eval $ac_link) 2>conftest.er1
11853   ac_status=$?
11854   grep -v '^ *+' conftest.er1 >conftest.err
11855   rm -f conftest.er1
11856   cat conftest.err >&5
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); } &&
11859          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861   (eval $ac_try) 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; } &&
11865          { ac_try='test -s conftest$ac_exeext'
11866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867   (eval $ac_try) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; }; then
11871   ac_cv_func_dlopen=yes
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 ac_cv_func_dlopen=no
11877 fi
11878 rm -f conftest.err conftest.$ac_objext \
11879       conftest$ac_exeext conftest.$ac_ext
11880 fi
11881 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11882 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11883 if test $ac_cv_func_dlopen = yes; then
11884   lt_cv_dlopen="dlopen"
11885 else
11886   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11887 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891   ac_check_lib_save_LIBS=$LIBS
11892 LIBS="-ldl  $LIBS"
11893 cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h.  */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h.  */
11899
11900 /* Override any gcc2 internal prototype to avoid an error.  */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 /* We use char because int might match the return type of a gcc2
11905    builtin and then its argument prototype would still apply.  */
11906 char dlopen ();
11907 int
11908 main ()
11909 {
11910 dlopen ();
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917   (eval $ac_link) 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; } &&
11930          { ac_try='test -s conftest$ac_exeext'
11931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932   (eval $ac_try) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; }; then
11936   ac_cv_lib_dl_dlopen=yes
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 ac_cv_lib_dl_dlopen=no
11942 fi
11943 rm -f conftest.err conftest.$ac_objext \
11944       conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11949 if test $ac_cv_lib_dl_dlopen = yes; then
11950   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11951 else
11952   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11953 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11955   echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957   ac_check_lib_save_LIBS=$LIBS
11958 LIBS="-lsvld  $LIBS"
11959 cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965
11966 /* Override any gcc2 internal prototype to avoid an error.  */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 /* We use char because int might match the return type of a gcc2
11971    builtin and then its argument prototype would still apply.  */
11972 char dlopen ();
11973 int
11974 main ()
11975 {
11976 dlopen ();
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 rm -f conftest.$ac_objext conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983   (eval $ac_link) 2>conftest.er1
11984   ac_status=$?
11985   grep -v '^ *+' conftest.er1 >conftest.err
11986   rm -f conftest.er1
11987   cat conftest.err >&5
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992   (eval $ac_try) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; } &&
11996          { ac_try='test -s conftest$ac_exeext'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; }; then
12002   ac_cv_lib_svld_dlopen=yes
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 ac_cv_lib_svld_dlopen=no
12008 fi
12009 rm -f conftest.err conftest.$ac_objext \
12010       conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12012 fi
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12014 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12015 if test $ac_cv_lib_svld_dlopen = yes; then
12016   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12017 else
12018   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12019 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   ac_check_lib_save_LIBS=$LIBS
12024 LIBS="-ldld  $LIBS"
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h.  */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h.  */
12031
12032 /* Override any gcc2 internal prototype to avoid an error.  */
12033 #ifdef __cplusplus
12034 extern "C"
12035 #endif
12036 /* We use char because int might match the return type of a gcc2
12037    builtin and then its argument prototype would still apply.  */
12038 char dld_link ();
12039 int
12040 main ()
12041 {
12042 dld_link ();
12043   ;
12044   return 0;
12045 }
12046 _ACEOF
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049   (eval $ac_link) 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058   (eval $ac_try) 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; } &&
12062          { ac_try='test -s conftest$ac_exeext'
12063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064   (eval $ac_try) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; }; then
12068   ac_cv_lib_dld_dld_link=yes
12069 else
12070   echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 ac_cv_lib_dld_dld_link=no
12074 fi
12075 rm -f conftest.err conftest.$ac_objext \
12076       conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12078 fi
12079 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12080 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12081 if test $ac_cv_lib_dld_dld_link = yes; then
12082   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12083 fi
12084
12085
12086 fi
12087
12088
12089 fi
12090
12091
12092 fi
12093
12094
12095 fi
12096
12097
12098 fi
12099
12100     ;;
12101   esac
12102
12103   if test "x$lt_cv_dlopen" != xno; then
12104     enable_dlopen=yes
12105   else
12106     enable_dlopen=no
12107   fi
12108
12109   case $lt_cv_dlopen in
12110   dlopen)
12111     save_CPPFLAGS="$CPPFLAGS"
12112     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12113
12114     save_LDFLAGS="$LDFLAGS"
12115     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12116
12117     save_LIBS="$LIBS"
12118     LIBS="$lt_cv_dlopen_libs $LIBS"
12119
12120     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12121 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12122 if test "${lt_cv_dlopen_self+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125           if test "$cross_compiling" = yes; then :
12126   lt_cv_dlopen_self=cross
12127 else
12128   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129   lt_status=$lt_dlunknown
12130   cat > conftest.$ac_ext <<EOF
12131 #line 12131 "configure"
12132 #include "confdefs.h"
12133
12134 #if HAVE_DLFCN_H
12135 #include <dlfcn.h>
12136 #endif
12137
12138 #include <stdio.h>
12139
12140 #ifdef RTLD_GLOBAL
12141 #  define LT_DLGLOBAL           RTLD_GLOBAL
12142 #else
12143 #  ifdef DL_GLOBAL
12144 #    define LT_DLGLOBAL         DL_GLOBAL
12145 #  else
12146 #    define LT_DLGLOBAL         0
12147 #  endif
12148 #endif
12149
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151    find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12153 #  ifdef RTLD_LAZY
12154 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12155 #  else
12156 #    ifdef DL_LAZY
12157 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12158 #    else
12159 #      ifdef RTLD_NOW
12160 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12161 #      else
12162 #        ifdef DL_NOW
12163 #          define LT_DLLAZY_OR_NOW      DL_NOW
12164 #        else
12165 #          define LT_DLLAZY_OR_NOW      0
12166 #        endif
12167 #      endif
12168 #    endif
12169 #  endif
12170 #endif
12171
12172 #ifdef __cplusplus
12173 extern "C" void exit (int);
12174 #endif
12175
12176 void fnord() { int i=42;}
12177 int main ()
12178 {
12179   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180   int status = $lt_dlunknown;
12181
12182   if (self)
12183     {
12184       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12185       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12186       /* dlclose (self); */
12187     }
12188
12189     exit (status);
12190 }
12191 EOF
12192   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193   (eval $ac_link) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12197     (./conftest; exit; ) 2>/dev/null
12198     lt_status=$?
12199     case x$lt_status in
12200       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12201       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12202       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12203     esac
12204   else :
12205     # compilation failed
12206     lt_cv_dlopen_self=no
12207   fi
12208 fi
12209 rm -fr conftest*
12210
12211
12212 fi
12213 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12214 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12215
12216     if test "x$lt_cv_dlopen_self" = xyes; then
12217       LDFLAGS="$LDFLAGS $link_static_flag"
12218       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12219 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12220 if test "${lt_cv_dlopen_self_static+set}" = set; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223           if test "$cross_compiling" = yes; then :
12224   lt_cv_dlopen_self_static=cross
12225 else
12226   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12227   lt_status=$lt_dlunknown
12228   cat > conftest.$ac_ext <<EOF
12229 #line 12229 "configure"
12230 #include "confdefs.h"
12231
12232 #if HAVE_DLFCN_H
12233 #include <dlfcn.h>
12234 #endif
12235
12236 #include <stdio.h>
12237
12238 #ifdef RTLD_GLOBAL
12239 #  define LT_DLGLOBAL           RTLD_GLOBAL
12240 #else
12241 #  ifdef DL_GLOBAL
12242 #    define LT_DLGLOBAL         DL_GLOBAL
12243 #  else
12244 #    define LT_DLGLOBAL         0
12245 #  endif
12246 #endif
12247
12248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12249    find out it does not work in some platform. */
12250 #ifndef LT_DLLAZY_OR_NOW
12251 #  ifdef RTLD_LAZY
12252 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12253 #  else
12254 #    ifdef DL_LAZY
12255 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12256 #    else
12257 #      ifdef RTLD_NOW
12258 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12259 #      else
12260 #        ifdef DL_NOW
12261 #          define LT_DLLAZY_OR_NOW      DL_NOW
12262 #        else
12263 #          define LT_DLLAZY_OR_NOW      0
12264 #        endif
12265 #      endif
12266 #    endif
12267 #  endif
12268 #endif
12269
12270 #ifdef __cplusplus
12271 extern "C" void exit (int);
12272 #endif
12273
12274 void fnord() { int i=42;}
12275 int main ()
12276 {
12277   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12278   int status = $lt_dlunknown;
12279
12280   if (self)
12281     {
12282       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12283       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12284       /* dlclose (self); */
12285     }
12286
12287     exit (status);
12288 }
12289 EOF
12290   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291   (eval $ac_link) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12295     (./conftest; exit; ) 2>/dev/null
12296     lt_status=$?
12297     case x$lt_status in
12298       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12299       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12300       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12301     esac
12302   else :
12303     # compilation failed
12304     lt_cv_dlopen_self_static=no
12305   fi
12306 fi
12307 rm -fr conftest*
12308
12309
12310 fi
12311 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12312 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12313     fi
12314
12315     CPPFLAGS="$save_CPPFLAGS"
12316     LDFLAGS="$save_LDFLAGS"
12317     LIBS="$save_LIBS"
12318     ;;
12319   esac
12320
12321   case $lt_cv_dlopen_self in
12322   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12323   *) enable_dlopen_self=unknown ;;
12324   esac
12325
12326   case $lt_cv_dlopen_self_static in
12327   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12328   *) enable_dlopen_self_static=unknown ;;
12329   esac
12330 fi
12331
12332
12333 # The else clause should only fire when bootstrapping the
12334 # libtool distribution, otherwise you forgot to ship ltmain.sh
12335 # with your package, and you will get complaints that there are
12336 # no rules to generate ltmain.sh.
12337 if test -f "$ltmain"; then
12338   # See if we are running on zsh, and set the options which allow our commands through
12339   # without removal of \ escapes.
12340   if test -n "${ZSH_VERSION+set}" ; then
12341     setopt NO_GLOB_SUBST
12342   fi
12343   # Now quote all the things that may contain metacharacters while being
12344   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12345   # variables and quote the copies for generation of the libtool script.
12346   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12347     SED SHELL STRIP \
12348     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12349     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12350     deplibs_check_method reload_flag reload_cmds need_locks \
12351     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12352     lt_cv_sys_global_symbol_to_c_name_address \
12353     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12354     old_postinstall_cmds old_postuninstall_cmds \
12355     compiler_CXX \
12356     CC_CXX \
12357     LD_CXX \
12358     lt_prog_compiler_wl_CXX \
12359     lt_prog_compiler_pic_CXX \
12360     lt_prog_compiler_static_CXX \
12361     lt_prog_compiler_no_builtin_flag_CXX \
12362     export_dynamic_flag_spec_CXX \
12363     thread_safe_flag_spec_CXX \
12364     whole_archive_flag_spec_CXX \
12365     enable_shared_with_static_runtimes_CXX \
12366     old_archive_cmds_CXX \
12367     old_archive_from_new_cmds_CXX \
12368     predep_objects_CXX \
12369     postdep_objects_CXX \
12370     predeps_CXX \
12371     postdeps_CXX \
12372     compiler_lib_search_path_CXX \
12373     archive_cmds_CXX \
12374     archive_expsym_cmds_CXX \
12375     postinstall_cmds_CXX \
12376     postuninstall_cmds_CXX \
12377     old_archive_from_expsyms_cmds_CXX \
12378     allow_undefined_flag_CXX \
12379     no_undefined_flag_CXX \
12380     export_symbols_cmds_CXX \
12381     hardcode_libdir_flag_spec_CXX \
12382     hardcode_libdir_flag_spec_ld_CXX \
12383     hardcode_libdir_separator_CXX \
12384     hardcode_automatic_CXX \
12385     module_cmds_CXX \
12386     module_expsym_cmds_CXX \
12387     lt_cv_prog_compiler_c_o_CXX \
12388     exclude_expsyms_CXX \
12389     include_expsyms_CXX; do
12390
12391     case $var in
12392     old_archive_cmds_CXX | \
12393     old_archive_from_new_cmds_CXX | \
12394     archive_cmds_CXX | \
12395     archive_expsym_cmds_CXX | \
12396     module_cmds_CXX | \
12397     module_expsym_cmds_CXX | \
12398     old_archive_from_expsyms_cmds_CXX | \
12399     export_symbols_cmds_CXX | \
12400     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12401     postinstall_cmds | postuninstall_cmds | \
12402     old_postinstall_cmds | old_postuninstall_cmds | \
12403     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12404       # Double-quote double-evaled strings.
12405       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12406       ;;
12407     *)
12408       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12409       ;;
12410     esac
12411   done
12412
12413   case $lt_echo in
12414   *'\$0 --fallback-echo"')
12415     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12416     ;;
12417   esac
12418
12419 cfgfile="$ofile"
12420
12421   cat <<__EOF__ >> "$cfgfile"
12422 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12423
12424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12425
12426 # Shell to use when invoking shell scripts.
12427 SHELL=$lt_SHELL
12428
12429 # Whether or not to build shared libraries.
12430 build_libtool_libs=$enable_shared
12431
12432 # Whether or not to build static libraries.
12433 build_old_libs=$enable_static
12434
12435 # Whether or not to add -lc for building shared libraries.
12436 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12437
12438 # Whether or not to disallow shared libs when runtime libs are static
12439 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12440
12441 # Whether or not to optimize for fast installation.
12442 fast_install=$enable_fast_install
12443
12444 # The host system.
12445 host_alias=$host_alias
12446 host=$host
12447
12448 # An echo program that does not interpret backslashes.
12449 echo=$lt_echo
12450
12451 # The archiver.
12452 AR=$lt_AR
12453 AR_FLAGS=$lt_AR_FLAGS
12454
12455 # A C compiler.
12456 LTCC=$lt_LTCC
12457
12458 # A language-specific compiler.
12459 CC=$lt_compiler_CXX
12460
12461 # Is the compiler the GNU C compiler?
12462 with_gcc=$GCC_CXX
12463
12464 # An ERE matcher.
12465 EGREP=$lt_EGREP
12466
12467 # The linker used to build libraries.
12468 LD=$lt_LD_CXX
12469
12470 # Whether we need hard or soft links.
12471 LN_S=$lt_LN_S
12472
12473 # A BSD-compatible nm program.
12474 NM=$lt_NM
12475
12476 # A symbol stripping program
12477 STRIP=$lt_STRIP
12478
12479 # Used to examine libraries when file_magic_cmd begins "file"
12480 MAGIC_CMD=$MAGIC_CMD
12481
12482 # Used on cygwin: DLL creation program.
12483 DLLTOOL="$DLLTOOL"
12484
12485 # Used on cygwin: object dumper.
12486 OBJDUMP="$OBJDUMP"
12487
12488 # Used on cygwin: assembler.
12489 AS="$AS"
12490
12491 # The name of the directory that contains temporary libtool files.
12492 objdir=$objdir
12493
12494 # How to create reloadable object files.
12495 reload_flag=$lt_reload_flag
12496 reload_cmds=$lt_reload_cmds
12497
12498 # How to pass a linker flag through the compiler.
12499 wl=$lt_lt_prog_compiler_wl_CXX
12500
12501 # Object file suffix (normally "o").
12502 objext="$ac_objext"
12503
12504 # Old archive suffix (normally "a").
12505 libext="$libext"
12506
12507 # Shared library suffix (normally ".so").
12508 shrext_cmds='$shrext_cmds'
12509
12510 # Executable file suffix (normally "").
12511 exeext="$exeext"
12512
12513 # Additional compiler flags for building library objects.
12514 pic_flag=$lt_lt_prog_compiler_pic_CXX
12515 pic_mode=$pic_mode
12516
12517 # What is the maximum length of a command?
12518 max_cmd_len=$lt_cv_sys_max_cmd_len
12519
12520 # Does compiler simultaneously support -c and -o options?
12521 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12522
12523 # Must we lock files when doing compilation ?
12524 need_locks=$lt_need_locks
12525
12526 # Do we need the lib prefix for modules?
12527 need_lib_prefix=$need_lib_prefix
12528
12529 # Do we need a version for libraries?
12530 need_version=$need_version
12531
12532 # Whether dlopen is supported.
12533 dlopen_support=$enable_dlopen
12534
12535 # Whether dlopen of programs is supported.
12536 dlopen_self=$enable_dlopen_self
12537
12538 # Whether dlopen of statically linked programs is supported.
12539 dlopen_self_static=$enable_dlopen_self_static
12540
12541 # Compiler flag to prevent dynamic linking.
12542 link_static_flag=$lt_lt_prog_compiler_static_CXX
12543
12544 # Compiler flag to turn off builtin functions.
12545 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12546
12547 # Compiler flag to allow reflexive dlopens.
12548 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12549
12550 # Compiler flag to generate shared objects directly from archives.
12551 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12552
12553 # Compiler flag to generate thread-safe objects.
12554 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12555
12556 # Library versioning type.
12557 version_type=$version_type
12558
12559 # Format of library name prefix.
12560 libname_spec=$lt_libname_spec
12561
12562 # List of archive names.  First name is the real one, the rest are links.
12563 # The last name is the one that the linker finds with -lNAME.
12564 library_names_spec=$lt_library_names_spec
12565
12566 # The coded name of the library, if different from the real name.
12567 soname_spec=$lt_soname_spec
12568
12569 # Commands used to build and install an old-style archive.
12570 RANLIB=$lt_RANLIB
12571 old_archive_cmds=$lt_old_archive_cmds_CXX
12572 old_postinstall_cmds=$lt_old_postinstall_cmds
12573 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12574
12575 # Create an old-style archive from a shared archive.
12576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12577
12578 # Create a temporary old-style archive to link instead of a shared archive.
12579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12580
12581 # Commands used to build and install a shared archive.
12582 archive_cmds=$lt_archive_cmds_CXX
12583 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12584 postinstall_cmds=$lt_postinstall_cmds
12585 postuninstall_cmds=$lt_postuninstall_cmds
12586
12587 # Commands used to build a loadable module (assumed same as above if empty)
12588 module_cmds=$lt_module_cmds_CXX
12589 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12590
12591 # Commands to strip libraries.
12592 old_striplib=$lt_old_striplib
12593 striplib=$lt_striplib
12594
12595 # Dependencies to place before the objects being linked to create a
12596 # shared library.
12597 predep_objects=$lt_predep_objects_CXX
12598
12599 # Dependencies to place after the objects being linked to create a
12600 # shared library.
12601 postdep_objects=$lt_postdep_objects_CXX
12602
12603 # Dependencies to place before the objects being linked to create a
12604 # shared library.
12605 predeps=$lt_predeps_CXX
12606
12607 # Dependencies to place after the objects being linked to create a
12608 # shared library.
12609 postdeps=$lt_postdeps_CXX
12610
12611 # The library search path used internally by the compiler when linking
12612 # a shared library.
12613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12614
12615 # Method to check whether dependent libraries are shared objects.
12616 deplibs_check_method=$lt_deplibs_check_method
12617
12618 # Command to use when deplibs_check_method == file_magic.
12619 file_magic_cmd=$lt_file_magic_cmd
12620
12621 # Flag that allows shared libraries with undefined symbols to be built.
12622 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12623
12624 # Flag that forces no undefined symbols.
12625 no_undefined_flag=$lt_no_undefined_flag_CXX
12626
12627 # Commands used to finish a libtool library installation in a directory.
12628 finish_cmds=$lt_finish_cmds
12629
12630 # Same as above, but a single script fragment to be evaled but not shown.
12631 finish_eval=$lt_finish_eval
12632
12633 # Take the output of nm and produce a listing of raw symbols and C names.
12634 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12635
12636 # Transform the output of nm in a proper C declaration
12637 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12638
12639 # Transform the output of nm in a C name address pair
12640 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12641
12642 # This is the shared library runtime path variable.
12643 runpath_var=$runpath_var
12644
12645 # This is the shared library path variable.
12646 shlibpath_var=$shlibpath_var
12647
12648 # Is shlibpath searched before the hard-coded library search path?
12649 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12650
12651 # How to hardcode a shared library path into an executable.
12652 hardcode_action=$hardcode_action_CXX
12653
12654 # Whether we should hardcode library paths into libraries.
12655 hardcode_into_libs=$hardcode_into_libs
12656
12657 # Flag to hardcode \$libdir into a binary during linking.
12658 # This must work even if \$libdir does not exist.
12659 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12660
12661 # If ld is used when linking, flag to hardcode \$libdir into
12662 # a binary during linking. This must work even if \$libdir does
12663 # not exist.
12664 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12665
12666 # Whether we need a single -rpath flag with a separated argument.
12667 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12668
12669 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12670 # resulting binary.
12671 hardcode_direct=$hardcode_direct_CXX
12672
12673 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12674 # resulting binary.
12675 hardcode_minus_L=$hardcode_minus_L_CXX
12676
12677 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12678 # the resulting binary.
12679 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12680
12681 # Set to yes if building a shared library automatically hardcodes DIR into the library
12682 # and all subsequent libraries and executables linked against it.
12683 hardcode_automatic=$hardcode_automatic_CXX
12684
12685 # Variables whose values should be saved in libtool wrapper scripts and
12686 # restored at relink time.
12687 variables_saved_for_relink="$variables_saved_for_relink"
12688
12689 # Whether libtool must link a program against all its dependency libraries.
12690 link_all_deplibs=$link_all_deplibs_CXX
12691
12692 # Compile-time system search path for libraries
12693 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12694
12695 # Run-time system search path for libraries
12696 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12697
12698 # Fix the shell variable \$srcfile for the compiler.
12699 fix_srcfile_path="$fix_srcfile_path_CXX"
12700
12701 # Set to yes if exported symbols are required.
12702 always_export_symbols=$always_export_symbols_CXX
12703
12704 # The commands to list exported symbols.
12705 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12706
12707 # The commands to extract the exported symbol list from a shared archive.
12708 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12709
12710 # Symbols that should not be listed in the preloaded symbols.
12711 exclude_expsyms=$lt_exclude_expsyms_CXX
12712
12713 # Symbols that must always be exported.
12714 include_expsyms=$lt_include_expsyms_CXX
12715
12716 # ### END LIBTOOL TAG CONFIG: $tagname
12717
12718 __EOF__
12719
12720
12721 else
12722   # If there is no Makefile yet, we rely on a make rule to execute
12723   # `config.status --recheck' to rerun these tests and create the
12724   # libtool script then.
12725   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12726   if test -f "$ltmain_in"; then
12727     test -f Makefile && make "$ltmain"
12728   fi
12729 fi
12730
12731
12732 ac_ext=c
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737
12738 CC=$lt_save_CC
12739 LDCXX=$LD
12740 LD=$lt_save_LD
12741 GCC=$lt_save_GCC
12742 with_gnu_ldcxx=$with_gnu_ld
12743 with_gnu_ld=$lt_save_with_gnu_ld
12744 lt_cv_path_LDCXX=$lt_cv_path_LD
12745 lt_cv_path_LD=$lt_save_path_LD
12746 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12747 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12748
12749         else
12750           tagname=""
12751         fi
12752         ;;
12753
12754       F77)
12755         if test -n "$F77" && test "X$F77" != "Xno"; then
12756
12757 ac_ext=f
12758 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12759 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12761
12762
12763 archive_cmds_need_lc_F77=no
12764 allow_undefined_flag_F77=
12765 always_export_symbols_F77=no
12766 archive_expsym_cmds_F77=
12767 export_dynamic_flag_spec_F77=
12768 hardcode_direct_F77=no
12769 hardcode_libdir_flag_spec_F77=
12770 hardcode_libdir_flag_spec_ld_F77=
12771 hardcode_libdir_separator_F77=
12772 hardcode_minus_L_F77=no
12773 hardcode_automatic_F77=no
12774 module_cmds_F77=
12775 module_expsym_cmds_F77=
12776 link_all_deplibs_F77=unknown
12777 old_archive_cmds_F77=$old_archive_cmds
12778 no_undefined_flag_F77=
12779 whole_archive_flag_spec_F77=
12780 enable_shared_with_static_runtimes_F77=no
12781
12782 # Source file extension for f77 test sources.
12783 ac_ext=f
12784
12785 # Object file extension for compiled f77 test sources.
12786 objext=o
12787 objext_F77=$objext
12788
12789 # Code to be used in simple compile tests
12790 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12791
12792 # Code to be used in simple link tests
12793 lt_simple_link_test_code="      program t\n      end\n"
12794
12795 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12796
12797 # If no C compiler was specified, use CC.
12798 LTCC=${LTCC-"$CC"}
12799
12800 # Allow CC to be a program name with arguments.
12801 compiler=$CC
12802
12803
12804 # Allow CC to be a program name with arguments.
12805 lt_save_CC="$CC"
12806 CC=${F77-"f77"}
12807 compiler=$CC
12808 compiler_F77=$CC
12809 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12810
12811 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12812 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12813 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12814 echo "${ECHO_T}$can_build_shared" >&6
12815
12816 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12817 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12818 test "$can_build_shared" = "no" && enable_shared=no
12819
12820 # On AIX, shared libraries and static libraries use the same namespace, and
12821 # are all built from PIC.
12822 case "$host_os" in
12823 aix3*)
12824   test "$enable_shared" = yes && enable_static=no
12825   if test -n "$RANLIB"; then
12826     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12827     postinstall_cmds='$RANLIB $lib'
12828   fi
12829   ;;
12830 aix4* | aix5*)
12831   test "$enable_shared" = yes && enable_static=no
12832   ;;
12833 esac
12834 echo "$as_me:$LINENO: result: $enable_shared" >&5
12835 echo "${ECHO_T}$enable_shared" >&6
12836
12837 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12838 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12839 # Make sure either enable_shared or enable_static is yes.
12840 test "$enable_shared" = yes || enable_static=yes
12841 echo "$as_me:$LINENO: result: $enable_static" >&5
12842 echo "${ECHO_T}$enable_static" >&6
12843
12844 test "$ld_shlibs_F77" = no && can_build_shared=no
12845
12846 GCC_F77="$G77"
12847 LD_F77="$LD"
12848
12849 lt_prog_compiler_wl_F77=
12850 lt_prog_compiler_pic_F77=
12851 lt_prog_compiler_static_F77=
12852
12853 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12854 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12855
12856   if test "$GCC" = yes; then
12857     lt_prog_compiler_wl_F77='-Wl,'
12858     lt_prog_compiler_static_F77='-static'
12859
12860     case $host_os in
12861       aix*)
12862       # All AIX code is PIC.
12863       if test "$host_cpu" = ia64; then
12864         # AIX 5 now supports IA64 processor
12865         lt_prog_compiler_static_F77='-Bstatic'
12866       fi
12867       ;;
12868
12869     amigaos*)
12870       # FIXME: we need at least 68020 code to build shared libraries, but
12871       # adding the `-m68020' flag to GCC prevents building anything better,
12872       # like `-m68040'.
12873       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12874       ;;
12875
12876     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12877       # PIC is the default for these OSes.
12878       ;;
12879
12880     mingw* | pw32* | os2*)
12881       # This hack is so that the source file can tell whether it is being
12882       # built for inclusion in a dll (and should export symbols for example).
12883       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12884       ;;
12885
12886     darwin* | rhapsody*)
12887       # PIC is the default on this platform
12888       # Common symbols not allowed in MH_DYLIB files
12889       lt_prog_compiler_pic_F77='-fno-common'
12890       ;;
12891
12892     msdosdjgpp*)
12893       # Just because we use GCC doesn't mean we suddenly get shared libraries
12894       # on systems that don't support them.
12895       lt_prog_compiler_can_build_shared_F77=no
12896       enable_shared=no
12897       ;;
12898
12899     sysv4*MP*)
12900       if test -d /usr/nec; then
12901         lt_prog_compiler_pic_F77=-Kconform_pic
12902       fi
12903       ;;
12904
12905     hpux*)
12906       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12907       # not for PA HP-UX.
12908       case "$host_cpu" in
12909       hppa*64*|ia64*)
12910         # +Z the default
12911         ;;
12912       *)
12913         lt_prog_compiler_pic_F77='-fPIC'
12914         ;;
12915       esac
12916       ;;
12917
12918     *)
12919       lt_prog_compiler_pic_F77='-fPIC'
12920       ;;
12921     esac
12922   else
12923     # PORTME Check for flag to pass linker flags through the system compiler.
12924     case $host_os in
12925     aix*)
12926       lt_prog_compiler_wl_F77='-Wl,'
12927       if test "$host_cpu" = ia64; then
12928         # AIX 5 now supports IA64 processor
12929         lt_prog_compiler_static_F77='-Bstatic'
12930       else
12931         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12932       fi
12933       ;;
12934
12935     mingw* | pw32* | os2*)
12936       # This hack is so that the source file can tell whether it is being
12937       # built for inclusion in a dll (and should export symbols for example).
12938       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12939       ;;
12940
12941     hpux9* | hpux10* | hpux11*)
12942       lt_prog_compiler_wl_F77='-Wl,'
12943       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12944       # not for PA HP-UX.
12945       case "$host_cpu" in
12946       hppa*64*|ia64*)
12947         # +Z the default
12948         ;;
12949       *)
12950         lt_prog_compiler_pic_F77='+Z'
12951         ;;
12952       esac
12953       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12954       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12955       ;;
12956
12957     irix5* | irix6* | nonstopux*)
12958       lt_prog_compiler_wl_F77='-Wl,'
12959       # PIC (with -KPIC) is the default.
12960       lt_prog_compiler_static_F77='-non_shared'
12961       ;;
12962
12963     newsos6)
12964       lt_prog_compiler_pic_F77='-KPIC'
12965       lt_prog_compiler_static_F77='-Bstatic'
12966       ;;
12967
12968     linux*)
12969       case $CC in
12970       icc* | ecc*)
12971         lt_prog_compiler_wl_F77='-Wl,'
12972         lt_prog_compiler_pic_F77='-KPIC'
12973         lt_prog_compiler_static_F77='-static'
12974         ;;
12975       ccc*)
12976         lt_prog_compiler_wl_F77='-Wl,'
12977         # All Alpha code is PIC.
12978         lt_prog_compiler_static_F77='-non_shared'
12979         ;;
12980       esac
12981       ;;
12982
12983     osf3* | osf4* | osf5*)
12984       lt_prog_compiler_wl_F77='-Wl,'
12985       # All OSF/1 code is PIC.
12986       lt_prog_compiler_static_F77='-non_shared'
12987       ;;
12988
12989     sco3.2v5*)
12990       lt_prog_compiler_pic_F77='-Kpic'
12991       lt_prog_compiler_static_F77='-dn'
12992       ;;
12993
12994     solaris*)
12995       lt_prog_compiler_wl_F77='-Wl,'
12996       lt_prog_compiler_pic_F77='-KPIC'
12997       lt_prog_compiler_static_F77='-Bstatic'
12998       ;;
12999
13000     sunos4*)
13001       lt_prog_compiler_wl_F77='-Qoption ld '
13002       lt_prog_compiler_pic_F77='-PIC'
13003       lt_prog_compiler_static_F77='-Bstatic'
13004       ;;
13005
13006     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13007       lt_prog_compiler_wl_F77='-Wl,'
13008       lt_prog_compiler_pic_F77='-KPIC'
13009       lt_prog_compiler_static_F77='-Bstatic'
13010       ;;
13011
13012     sysv4*MP*)
13013       if test -d /usr/nec ;then
13014         lt_prog_compiler_pic_F77='-Kconform_pic'
13015         lt_prog_compiler_static_F77='-Bstatic'
13016       fi
13017       ;;
13018
13019     uts4*)
13020       lt_prog_compiler_pic_F77='-pic'
13021       lt_prog_compiler_static_F77='-Bstatic'
13022       ;;
13023
13024     *)
13025       lt_prog_compiler_can_build_shared_F77=no
13026       ;;
13027     esac
13028   fi
13029
13030 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13031 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13032
13033 #
13034 # Check to make sure the PIC flag actually works.
13035 #
13036 if test -n "$lt_prog_compiler_pic_F77"; then
13037
13038 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13039 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13040 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   lt_prog_compiler_pic_works_F77=no
13044   ac_outfile=conftest.$ac_objext
13045    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13046    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13047    # Insert the option either (1) after the last *FLAGS variable, or
13048    # (2) before a word containing "conftest.", or (3) at the end.
13049    # Note that $ac_compile itself does not contain backslashes and begins
13050    # with a dollar sign (not a hyphen), so the echo should work correctly.
13051    # The option is referenced via a variable to avoid confusing sed.
13052    lt_compile=`echo "$ac_compile" | $SED \
13053    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13055    -e 's:$: $lt_compiler_flag:'`
13056    (eval echo "\"\$as_me:13056: $lt_compile\"" >&5)
13057    (eval "$lt_compile" 2>conftest.err)
13058    ac_status=$?
13059    cat conftest.err >&5
13060    echo "$as_me:13060: \$? = $ac_status" >&5
13061    if (exit $ac_status) && test -s "$ac_outfile"; then
13062      # The compiler can only warn and ignore the option if not recognized
13063      # So say no if there are warnings
13064      if test ! -s conftest.err; then
13065        lt_prog_compiler_pic_works_F77=yes
13066      fi
13067    fi
13068    $rm conftest*
13069
13070 fi
13071 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13072 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13073
13074 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13075     case $lt_prog_compiler_pic_F77 in
13076      "" | " "*) ;;
13077      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13078      esac
13079 else
13080     lt_prog_compiler_pic_F77=
13081      lt_prog_compiler_can_build_shared_F77=no
13082 fi
13083
13084 fi
13085 case "$host_os" in
13086   # For platforms which do not support PIC, -DPIC is meaningless:
13087   *djgpp*)
13088     lt_prog_compiler_pic_F77=
13089     ;;
13090   *)
13091     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13092     ;;
13093 esac
13094
13095 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13096 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13097 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   lt_cv_prog_compiler_c_o_F77=no
13101    $rm -r conftest 2>/dev/null
13102    mkdir conftest
13103    cd conftest
13104    mkdir out
13105    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13106
13107    lt_compiler_flag="-o out/conftest2.$ac_objext"
13108    # Insert the option either (1) after the last *FLAGS variable, or
13109    # (2) before a word containing "conftest.", or (3) at the end.
13110    # Note that $ac_compile itself does not contain backslashes and begins
13111    # with a dollar sign (not a hyphen), so the echo should work correctly.
13112    lt_compile=`echo "$ac_compile" | $SED \
13113    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13114    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13115    -e 's:$: $lt_compiler_flag:'`
13116    (eval echo "\"\$as_me:13116: $lt_compile\"" >&5)
13117    (eval "$lt_compile" 2>out/conftest.err)
13118    ac_status=$?
13119    cat out/conftest.err >&5
13120    echo "$as_me:13120: \$? = $ac_status" >&5
13121    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13122    then
13123      # The compiler can only warn and ignore the option if not recognized
13124      # So say no if there are warnings
13125      if test ! -s out/conftest.err; then
13126        lt_cv_prog_compiler_c_o_F77=yes
13127      fi
13128    fi
13129    chmod u+w .
13130    $rm conftest*
13131    # SGI C++ compiler will create directory out/ii_files/ for
13132    # template instantiation
13133    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13134    $rm out/* && rmdir out
13135    cd ..
13136    rmdir conftest
13137    $rm conftest*
13138
13139 fi
13140 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13141 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13142
13143
13144 hard_links="nottested"
13145 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13146   # do not overwrite the value of need_locks provided by the user
13147   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13148 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13149   hard_links=yes
13150   $rm conftest*
13151   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13152   touch conftest.a
13153   ln conftest.a conftest.b 2>&5 || hard_links=no
13154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13155   echo "$as_me:$LINENO: result: $hard_links" >&5
13156 echo "${ECHO_T}$hard_links" >&6
13157   if test "$hard_links" = no; then
13158     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13159 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13160     need_locks=warn
13161   fi
13162 else
13163   need_locks=no
13164 fi
13165
13166 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13167 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13168
13169   runpath_var=
13170   allow_undefined_flag_F77=
13171   enable_shared_with_static_runtimes_F77=no
13172   archive_cmds_F77=
13173   archive_expsym_cmds_F77=
13174   old_archive_From_new_cmds_F77=
13175   old_archive_from_expsyms_cmds_F77=
13176   export_dynamic_flag_spec_F77=
13177   whole_archive_flag_spec_F77=
13178   thread_safe_flag_spec_F77=
13179   hardcode_libdir_flag_spec_F77=
13180   hardcode_libdir_flag_spec_ld_F77=
13181   hardcode_libdir_separator_F77=
13182   hardcode_direct_F77=no
13183   hardcode_minus_L_F77=no
13184   hardcode_shlibpath_var_F77=unsupported
13185   link_all_deplibs_F77=unknown
13186   hardcode_automatic_F77=no
13187   module_cmds_F77=
13188   module_expsym_cmds_F77=
13189   always_export_symbols_F77=no
13190   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13191   # include_expsyms should be a list of space-separated symbols to be *always*
13192   # included in the symbol list
13193   include_expsyms_F77=
13194   # exclude_expsyms can be an extended regexp of symbols to exclude
13195   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13196   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13197   # as well as any symbol that contains `d'.
13198   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13199   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13200   # platforms (ab)use it in PIC code, but their linkers get confused if
13201   # the symbol is explicitly referenced.  Since portable code cannot
13202   # rely on this symbol name, it's probably fine to never include it in
13203   # preloaded symbol tables.
13204   extract_expsyms_cmds=
13205
13206   case $host_os in
13207   cygwin* | mingw* | pw32*)
13208     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13209     # When not using gcc, we currently assume that we are using
13210     # Microsoft Visual C++.
13211     if test "$GCC" != yes; then
13212       with_gnu_ld=no
13213     fi
13214     ;;
13215   openbsd*)
13216     with_gnu_ld=no
13217     ;;
13218   esac
13219
13220   ld_shlibs_F77=yes
13221   if test "$with_gnu_ld" = yes; then
13222     # If archive_cmds runs LD, not CC, wlarc should be empty
13223     wlarc='${wl}'
13224
13225     # See if GNU ld supports shared libraries.
13226     case $host_os in
13227     aix3* | aix4* | aix5*)
13228       # On AIX/PPC, the GNU linker is very broken
13229       if test "$host_cpu" != ia64; then
13230         ld_shlibs_F77=no
13231         cat <<EOF 1>&2
13232
13233 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13234 *** to be unable to reliably create shared libraries on AIX.
13235 *** Therefore, libtool is disabling shared libraries support.  If you
13236 *** really care for shared libraries, you may want to modify your PATH
13237 *** so that a non-GNU linker is found, and then restart.
13238
13239 EOF
13240       fi
13241       ;;
13242
13243     amigaos*)
13244       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)'
13245       hardcode_libdir_flag_spec_F77='-L$libdir'
13246       hardcode_minus_L_F77=yes
13247
13248       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13249       # that the semantics of dynamic libraries on AmigaOS, at least up
13250       # to version 4, is to share data among multiple programs linked
13251       # with the same dynamic library.  Since this doesn't match the
13252       # behavior of shared libraries on other platforms, we can't use
13253       # them.
13254       ld_shlibs_F77=no
13255       ;;
13256
13257     beos*)
13258       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13259         allow_undefined_flag_F77=unsupported
13260         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13261         # support --undefined.  This deserves some investigation.  FIXME
13262         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13263       else
13264         ld_shlibs_F77=no
13265       fi
13266       ;;
13267
13268     cygwin* | mingw* | pw32*)
13269       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13270       # as there is no search path for DLLs.
13271       hardcode_libdir_flag_spec_F77='-L$libdir'
13272       allow_undefined_flag_F77=unsupported
13273       always_export_symbols_F77=no
13274       enable_shared_with_static_runtimes_F77=yes
13275       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13276
13277       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13278         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13279         # If the export-symbols file already is a .def file (1st line
13280         # is EXPORTS), use it as is; otherwise, prepend...
13281         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13282           cp $export_symbols $output_objdir/$soname.def;
13283         else
13284           echo EXPORTS > $output_objdir/$soname.def;
13285           cat $export_symbols >> $output_objdir/$soname.def;
13286         fi~
13287         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13288       else
13289         ld_shlibs=no
13290       fi
13291       ;;
13292
13293     netbsd* | knetbsd*-gnu)
13294       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13295         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13296         wlarc=
13297       else
13298         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13299         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13300       fi
13301       ;;
13302
13303     solaris* | sysv5*)
13304       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13305         ld_shlibs_F77=no
13306         cat <<EOF 1>&2
13307
13308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13309 *** create shared libraries on Solaris systems.  Therefore, libtool
13310 *** is disabling shared libraries support.  We urge you to upgrade GNU
13311 *** binutils to release 2.9.1 or newer.  Another option is to modify
13312 *** your PATH or compiler configuration so that the native linker is
13313 *** used, and then restart.
13314
13315 EOF
13316       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13317         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13319       else
13320         ld_shlibs_F77=no
13321       fi
13322       ;;
13323
13324     sunos4*)
13325       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13326       wlarc=
13327       hardcode_direct_F77=yes
13328       hardcode_shlibpath_var_F77=no
13329       ;;
13330
13331   linux*)
13332     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13333         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334         archive_cmds_F77="$tmp_archive_cmds"
13335       supports_anon_versioning=no
13336       case `$LD -v 2>/dev/null` in
13337         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13338         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13339         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13340         *\ 2.11.*) ;; # other 2.11 versions
13341         *) supports_anon_versioning=yes ;;
13342       esac
13343       if test $supports_anon_versioning = yes; then
13344         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13346 $echo "local: *; };" >> $output_objdir/$libname.ver~
13347         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13348       else
13349         archive_expsym_cmds_F77="$tmp_archive_cmds"
13350       fi
13351       link_all_deplibs_F77=no
13352     else
13353       ld_shlibs_F77=no
13354     fi
13355     ;;
13356
13357     *)
13358       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13359         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13361       else
13362         ld_shlibs_F77=no
13363       fi
13364       ;;
13365     esac
13366
13367     if test "$ld_shlibs_F77" = yes; then
13368       runpath_var=LD_RUN_PATH
13369       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13370       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13371       # ancient GNU ld didn't support --whole-archive et. al.
13372       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13373         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13374       else
13375         whole_archive_flag_spec_F77=
13376       fi
13377     fi
13378   else
13379     # PORTME fill in a description of your system's linker (not GNU ld)
13380     case $host_os in
13381     aix3*)
13382       allow_undefined_flag_F77=unsupported
13383       always_export_symbols_F77=yes
13384       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'
13385       # Note: this linker hardcodes the directories in LIBPATH if there
13386       # are no directories specified by -L.
13387       hardcode_minus_L_F77=yes
13388       if test "$GCC" = yes && test -z "$link_static_flag"; then
13389         # Neither direct hardcoding nor static linking is supported with a
13390         # broken collect2.
13391         hardcode_direct_F77=unsupported
13392       fi
13393       ;;
13394
13395     aix4* | aix5*)
13396       if test "$host_cpu" = ia64; then
13397         # On IA64, the linker does run time linking by default, so we don't
13398         # have to do anything special.
13399         aix_use_runtimelinking=no
13400         exp_sym_flag='-Bexport'
13401         no_entry_flag=""
13402       else
13403         # If we're using GNU nm, then we don't want the "-C" option.
13404         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13405         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13406           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'
13407         else
13408           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'
13409         fi
13410         aix_use_runtimelinking=no
13411
13412         # Test if we are trying to use run time linking or normal
13413         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13414         # need to do runtime linking.
13415         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13416           for ld_flag in $LDFLAGS; do
13417           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13418             aix_use_runtimelinking=yes
13419             break
13420           fi
13421           done
13422         esac
13423
13424         exp_sym_flag='-bexport'
13425         no_entry_flag='-bnoentry'
13426       fi
13427
13428       # When large executables or shared objects are built, AIX ld can
13429       # have problems creating the table of contents.  If linking a library
13430       # or program results in "error TOC overflow" add -mminimal-toc to
13431       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13432       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13433
13434       archive_cmds_F77=''
13435       hardcode_direct_F77=yes
13436       hardcode_libdir_separator_F77=':'
13437       link_all_deplibs_F77=yes
13438
13439       if test "$GCC" = yes; then
13440         case $host_os in aix4.012|aix4.012.*)
13441         # We only want to do this on AIX 4.2 and lower, the check
13442         # below for broken collect2 doesn't work under 4.3+
13443           collect2name=`${CC} -print-prog-name=collect2`
13444           if test -f "$collect2name" && \
13445            strings "$collect2name" | grep resolve_lib_name >/dev/null
13446           then
13447           # We have reworked collect2
13448           hardcode_direct_F77=yes
13449           else
13450           # We have old collect2
13451           hardcode_direct_F77=unsupported
13452           # It fails to find uninstalled libraries when the uninstalled
13453           # path is not listed in the libpath.  Setting hardcode_minus_L
13454           # to unsupported forces relinking
13455           hardcode_minus_L_F77=yes
13456           hardcode_libdir_flag_spec_F77='-L$libdir'
13457           hardcode_libdir_separator_F77=
13458           fi
13459         esac
13460         shared_flag='-shared'
13461       else
13462         # not using gcc
13463         if test "$host_cpu" = ia64; then
13464         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13465         # chokes on -Wl,-G. The following line is correct:
13466           shared_flag='-G'
13467         else
13468         if test "$aix_use_runtimelinking" = yes; then
13469             shared_flag='${wl}-G'
13470           else
13471             shared_flag='${wl}-bM:SRE'
13472         fi
13473         fi
13474       fi
13475
13476       # It seems that -bexpall does not export symbols beginning with
13477       # underscore (_), so it is better to generate a list of symbols to export.
13478       always_export_symbols_F77=yes
13479       if test "$aix_use_runtimelinking" = yes; then
13480         # Warning - without using the other runtime loading flags (-brtl),
13481         # -berok will link without error, but may produce a broken library.
13482         allow_undefined_flag_F77='-berok'
13483        # Determine the default libpath from the value encoded in an empty executable.
13484        cat >conftest.$ac_ext <<_ACEOF
13485       program main
13486
13487       end
13488 _ACEOF
13489 rm -f conftest.$ac_objext conftest$ac_exeext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13491   (eval $ac_link) 2>conftest.er1
13492   ac_status=$?
13493   grep -v '^ *+' conftest.er1 >conftest.err
13494   rm -f conftest.er1
13495   cat conftest.err >&5
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); } &&
13498          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500   (eval $ac_try) 2>&5
13501   ac_status=$?
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; } &&
13504          { ac_try='test -s conftest$ac_exeext'
13505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506   (eval $ac_try) 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; }; then
13510
13511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13512 }'`
13513 # Check for a 64-bit object if we didn't find anything.
13514 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; }
13515 }'`; fi
13516 else
13517   echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13519
13520 fi
13521 rm -f conftest.err conftest.$ac_objext \
13522       conftest$ac_exeext conftest.$ac_ext
13523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13524
13525        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13526         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"
13527        else
13528         if test "$host_cpu" = ia64; then
13529           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13530           allow_undefined_flag_F77="-z nodefs"
13531           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"
13532         else
13533          # Determine the default libpath from the value encoded in an empty executable.
13534          cat >conftest.$ac_ext <<_ACEOF
13535       program main
13536
13537       end
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541   (eval $ac_link) 2>conftest.er1
13542   ac_status=$?
13543   grep -v '^ *+' conftest.er1 >conftest.err
13544   rm -f conftest.er1
13545   cat conftest.err >&5
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); } &&
13548          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; } &&
13554          { ac_try='test -s conftest$ac_exeext'
13555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556   (eval $ac_try) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); }; }; then
13560
13561 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13562 }'`
13563 # Check for a 64-bit object if we didn't find anything.
13564 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; }
13565 }'`; fi
13566 else
13567   echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13569
13570 fi
13571 rm -f conftest.err conftest.$ac_objext \
13572       conftest$ac_exeext conftest.$ac_ext
13573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13574
13575          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13576           # Warning - without using the other run time loading flags,
13577           # -berok will link without error, but may produce a broken library.
13578           no_undefined_flag_F77=' ${wl}-bernotok'
13579           allow_undefined_flag_F77=' ${wl}-berok'
13580           # -bexpall does not export symbols beginning with underscore (_)
13581           always_export_symbols_F77=yes
13582           # Exported symbols can be pulled into shared objects from archives
13583           whole_archive_flag_spec_F77=' '
13584           archive_cmds_need_lc_F77=yes
13585           # This is similar to how AIX traditionally builds it's shared libraries.
13586           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'
13587         fi
13588       fi
13589       ;;
13590
13591     amigaos*)
13592       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)'
13593       hardcode_libdir_flag_spec_F77='-L$libdir'
13594       hardcode_minus_L_F77=yes
13595       # see comment about different semantics on the GNU ld section
13596       ld_shlibs_F77=no
13597       ;;
13598
13599     bsdi4*)
13600       export_dynamic_flag_spec_F77=-rdynamic
13601       ;;
13602
13603     cygwin* | mingw* | pw32*)
13604       # When not using gcc, we currently assume that we are using
13605       # Microsoft Visual C++.
13606       # hardcode_libdir_flag_spec is actually meaningless, as there is
13607       # no search path for DLLs.
13608       hardcode_libdir_flag_spec_F77=' '
13609       allow_undefined_flag_F77=unsupported
13610       # Tell ltmain to make .lib files, not .a files.
13611       libext=lib
13612       # Tell ltmain to make .dll files, not .so files.
13613       shrext_cmds=".dll"
13614       # FIXME: Setting linknames here is a bad hack.
13615       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13616       # The linker will automatically build a .lib file if we build a DLL.
13617       old_archive_From_new_cmds_F77='true'
13618       # FIXME: Should let the user specify the lib program.
13619       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13620       fix_srcfile_path='`cygpath -w "$srcfile"`'
13621       enable_shared_with_static_runtimes_F77=yes
13622       ;;
13623
13624     darwin* | rhapsody*)
13625     if test "$GXX" = yes ; then
13626       archive_cmds_need_lc_F77=no
13627       case "$host_os" in
13628       rhapsody* | darwin1.[012])
13629         allow_undefined_flag_F77='-undefined suppress'
13630         ;;
13631       *) # Darwin 1.3 on
13632       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13633         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13634       else
13635         case ${MACOSX_DEPLOYMENT_TARGET} in
13636           10.[012])
13637             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13638             ;;
13639           10.*)
13640             allow_undefined_flag_F77='-undefined dynamic_lookup'
13641             ;;
13642         esac
13643       fi
13644         ;;
13645       esac
13646         lt_int_apple_cc_single_mod=no
13647         output_verbose_link_cmd='echo'
13648         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13649           lt_int_apple_cc_single_mod=yes
13650         fi
13651         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13652           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13653         else
13654         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'
13655       fi
13656       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13657       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13658         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13659           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}'
13660         else
13661           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}'
13662         fi
13663           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}'
13664       hardcode_direct_F77=no
13665       hardcode_automatic_F77=yes
13666       hardcode_shlibpath_var_F77=unsupported
13667       whole_archive_flag_spec_F77='-all_load $convenience'
13668       link_all_deplibs_F77=yes
13669     else
13670       ld_shlibs_F77=no
13671     fi
13672       ;;
13673
13674     dgux*)
13675       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13676       hardcode_libdir_flag_spec_F77='-L$libdir'
13677       hardcode_shlibpath_var_F77=no
13678       ;;
13679
13680     freebsd1*)
13681       ld_shlibs_F77=no
13682       ;;
13683
13684     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13685     # support.  Future versions do this automatically, but an explicit c++rt0.o
13686     # does not break anything, and helps significantly (at the cost of a little
13687     # extra space).
13688     freebsd2.2*)
13689       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13690       hardcode_libdir_flag_spec_F77='-R$libdir'
13691       hardcode_direct_F77=yes
13692       hardcode_shlibpath_var_F77=no
13693       ;;
13694
13695     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13696     freebsd2*)
13697       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698       hardcode_direct_F77=yes
13699       hardcode_minus_L_F77=yes
13700       hardcode_shlibpath_var_F77=no
13701       ;;
13702
13703     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13704     freebsd* | kfreebsd*-gnu)
13705       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13706       hardcode_libdir_flag_spec_F77='-R$libdir'
13707       hardcode_direct_F77=yes
13708       hardcode_shlibpath_var_F77=no
13709       ;;
13710
13711     hpux9*)
13712       if test "$GCC" = yes; then
13713         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'
13714       else
13715         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'
13716       fi
13717       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13718       hardcode_libdir_separator_F77=:
13719       hardcode_direct_F77=yes
13720
13721       # hardcode_minus_L: Not really in the search PATH,
13722       # but as the default location of the library.
13723       hardcode_minus_L_F77=yes
13724       export_dynamic_flag_spec_F77='${wl}-E'
13725       ;;
13726
13727     hpux10* | hpux11*)
13728       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13729         case "$host_cpu" in
13730         hppa*64*|ia64*)
13731           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13732           ;;
13733         *)
13734           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13735           ;;
13736         esac
13737       else
13738         case "$host_cpu" in
13739         hppa*64*|ia64*)
13740           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13741           ;;
13742         *)
13743           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13744           ;;
13745         esac
13746       fi
13747       if test "$with_gnu_ld" = no; then
13748         case "$host_cpu" in
13749         hppa*64*)
13750           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13751           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13752           hardcode_libdir_separator_F77=:
13753           hardcode_direct_F77=no
13754           hardcode_shlibpath_var_F77=no
13755           ;;
13756         ia64*)
13757           hardcode_libdir_flag_spec_F77='-L$libdir'
13758           hardcode_direct_F77=no
13759           hardcode_shlibpath_var_F77=no
13760
13761           # hardcode_minus_L: Not really in the search PATH,
13762           # but as the default location of the library.
13763           hardcode_minus_L_F77=yes
13764           ;;
13765         *)
13766           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13767           hardcode_libdir_separator_F77=:
13768           hardcode_direct_F77=yes
13769           export_dynamic_flag_spec_F77='${wl}-E'
13770
13771           # hardcode_minus_L: Not really in the search PATH,
13772           # but as the default location of the library.
13773           hardcode_minus_L_F77=yes
13774           ;;
13775         esac
13776       fi
13777       ;;
13778
13779     irix5* | irix6* | nonstopux*)
13780       if test "$GCC" = yes; then
13781         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'
13782       else
13783         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'
13784         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13785       fi
13786       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13787       hardcode_libdir_separator_F77=:
13788       link_all_deplibs_F77=yes
13789       ;;
13790
13791     netbsd* | knetbsd*-gnu)
13792       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13793         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13794       else
13795         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13796       fi
13797       hardcode_libdir_flag_spec_F77='-R$libdir'
13798       hardcode_direct_F77=yes
13799       hardcode_shlibpath_var_F77=no
13800       ;;
13801
13802     newsos6)
13803       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804       hardcode_direct_F77=yes
13805       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13806       hardcode_libdir_separator_F77=:
13807       hardcode_shlibpath_var_F77=no
13808       ;;
13809
13810     openbsd*)
13811       hardcode_direct_F77=yes
13812       hardcode_shlibpath_var_F77=no
13813       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13814         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13815         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13816         export_dynamic_flag_spec_F77='${wl}-E'
13817       else
13818        case $host_os in
13819          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13820            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13821            hardcode_libdir_flag_spec_F77='-R$libdir'
13822            ;;
13823          *)
13824            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13825            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13826            ;;
13827        esac
13828       fi
13829       ;;
13830
13831     os2*)
13832       hardcode_libdir_flag_spec_F77='-L$libdir'
13833       hardcode_minus_L_F77=yes
13834       allow_undefined_flag_F77=unsupported
13835       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'
13836       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13837       ;;
13838
13839     osf3*)
13840       if test "$GCC" = yes; then
13841         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13842         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'
13843       else
13844         allow_undefined_flag_F77=' -expect_unresolved \*'
13845         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'
13846       fi
13847       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13848       hardcode_libdir_separator_F77=:
13849       ;;
13850
13851     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13852       if test "$GCC" = yes; then
13853         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13854         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'
13855         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13856       else
13857         allow_undefined_flag_F77=' -expect_unresolved \*'
13858         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'
13859         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~
13860         $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'
13861
13862         # Both c and cxx compiler support -rpath directly
13863         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13864       fi
13865       hardcode_libdir_separator_F77=:
13866       ;;
13867
13868     sco3.2v5*)
13869       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870       hardcode_shlibpath_var_F77=no
13871       export_dynamic_flag_spec_F77='${wl}-Bexport'
13872       runpath_var=LD_RUN_PATH
13873       hardcode_runpath_var=yes
13874       ;;
13875
13876     solaris*)
13877       no_undefined_flag_F77=' -z text'
13878       if test "$GCC" = yes; then
13879         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13880         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13881           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13882       else
13883         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13885         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13886       fi
13887       hardcode_libdir_flag_spec_F77='-R$libdir'
13888       hardcode_shlibpath_var_F77=no
13889       case $host_os in
13890       solaris2.[0-5] | solaris2.[0-5].*) ;;
13891       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13892         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13893       esac
13894       link_all_deplibs_F77=yes
13895       ;;
13896
13897     sunos4*)
13898       if test "x$host_vendor" = xsequent; then
13899         # Use $CC to link under sequent, because it throws in some extra .o
13900         # files that make .init and .fini sections work.
13901         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13902       else
13903         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13904       fi
13905       hardcode_libdir_flag_spec_F77='-L$libdir'
13906       hardcode_direct_F77=yes
13907       hardcode_minus_L_F77=yes
13908       hardcode_shlibpath_var_F77=no
13909       ;;
13910
13911     sysv4)
13912       case $host_vendor in
13913         sni)
13914           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915           hardcode_direct_F77=yes # is this really true???
13916         ;;
13917         siemens)
13918           ## LD is ld it makes a PLAMLIB
13919           ## CC just makes a GrossModule.
13920           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13921           reload_cmds_F77='$CC -r -o $output$reload_objs'
13922           hardcode_direct_F77=no
13923         ;;
13924         motorola)
13925           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13926           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13927         ;;
13928       esac
13929       runpath_var='LD_RUN_PATH'
13930       hardcode_shlibpath_var_F77=no
13931       ;;
13932
13933     sysv4.3*)
13934       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13935       hardcode_shlibpath_var_F77=no
13936       export_dynamic_flag_spec_F77='-Bexport'
13937       ;;
13938
13939     sysv4*MP*)
13940       if test -d /usr/nec; then
13941         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942         hardcode_shlibpath_var_F77=no
13943         runpath_var=LD_RUN_PATH
13944         hardcode_runpath_var=yes
13945         ld_shlibs_F77=yes
13946       fi
13947       ;;
13948
13949     sysv4.2uw2*)
13950       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13951       hardcode_direct_F77=yes
13952       hardcode_minus_L_F77=no
13953       hardcode_shlibpath_var_F77=no
13954       hardcode_runpath_var=yes
13955       runpath_var=LD_RUN_PATH
13956       ;;
13957
13958    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13959       no_undefined_flag_F77='${wl}-z ${wl}text'
13960       if test "$GCC" = yes; then
13961         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13962       else
13963         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13964       fi
13965       runpath_var='LD_RUN_PATH'
13966       hardcode_shlibpath_var_F77=no
13967       ;;
13968
13969     sysv5*)
13970       no_undefined_flag_F77=' -z text'
13971       # $CC -shared without GNU ld will not create a library from C++
13972       # object files and a static libstdc++, better avoid it by now
13973       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13975                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13976       hardcode_libdir_flag_spec_F77=
13977       hardcode_shlibpath_var_F77=no
13978       runpath_var='LD_RUN_PATH'
13979       ;;
13980
13981     uts4*)
13982       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13983       hardcode_libdir_flag_spec_F77='-L$libdir'
13984       hardcode_shlibpath_var_F77=no
13985       ;;
13986
13987     *)
13988       ld_shlibs_F77=no
13989       ;;
13990     esac
13991   fi
13992
13993 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13994 echo "${ECHO_T}$ld_shlibs_F77" >&6
13995 test "$ld_shlibs_F77" = no && can_build_shared=no
13996
13997 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13998 if test "$GCC" = yes; then
13999   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14000 fi
14001
14002 #
14003 # Do we need to explicitly link libc?
14004 #
14005 case "x$archive_cmds_need_lc_F77" in
14006 x|xyes)
14007   # Assume -lc should be added
14008   archive_cmds_need_lc_F77=yes
14009
14010   if test "$enable_shared" = yes && test "$GCC" = yes; then
14011     case $archive_cmds_F77 in
14012     *'~'*)
14013       # FIXME: we may have to deal with multi-command sequences.
14014       ;;
14015     '$CC '*)
14016       # Test whether the compiler implicitly links with -lc since on some
14017       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14018       # to ld, don't add -lc before -lgcc.
14019       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14021       $rm conftest*
14022       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14023
14024       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } 2>conftest.err; then
14029         soname=conftest
14030         lib=conftest
14031         libobjs=conftest.$ac_objext
14032         deplibs=
14033         wl=$lt_prog_compiler_wl_F77
14034         compiler_flags=-v
14035         linker_flags=-v
14036         verstring=
14037         output_objdir=.
14038         libname=conftest
14039         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14040         allow_undefined_flag_F77=
14041         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14042   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); }
14046         then
14047           archive_cmds_need_lc_F77=no
14048         else
14049           archive_cmds_need_lc_F77=yes
14050         fi
14051         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14052       else
14053         cat conftest.err 1>&5
14054       fi
14055       $rm conftest*
14056       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14057 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14058       ;;
14059     esac
14060   fi
14061   ;;
14062 esac
14063
14064 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14065 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14066 library_names_spec=
14067 libname_spec='lib$name'
14068 soname_spec=
14069 shrext_cmds=".so"
14070 postinstall_cmds=
14071 postuninstall_cmds=
14072 finish_cmds=
14073 finish_eval=
14074 shlibpath_var=
14075 shlibpath_overrides_runpath=unknown
14076 version_type=none
14077 dynamic_linker="$host_os ld.so"
14078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14079 if test "$GCC" = yes; then
14080   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14081   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14082     # if the path contains ";" then we assume it to be the separator
14083     # otherwise default to the standard path separator (i.e. ":") - it is
14084     # assumed that no part of a normal pathname contains ";" but that should
14085     # okay in the real world where ";" in dirpaths is itself problematic.
14086     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14087   else
14088     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14089   fi
14090 else
14091   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14092 fi
14093 need_lib_prefix=unknown
14094 hardcode_into_libs=no
14095
14096 # when you set need_version to no, make sure it does not cause -set_version
14097 # flags to be left without arguments
14098 need_version=unknown
14099
14100 case $host_os in
14101 aix3*)
14102   version_type=linux
14103   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14104   shlibpath_var=LIBPATH
14105
14106   # AIX 3 has no versioning support, so we append a major version to the name.
14107   soname_spec='${libname}${release}${shared_ext}$major'
14108   ;;
14109
14110 aix4* | aix5*)
14111   version_type=linux
14112   need_lib_prefix=no
14113   need_version=no
14114   hardcode_into_libs=yes
14115   if test "$host_cpu" = ia64; then
14116     # AIX 5 supports IA64
14117     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14118     shlibpath_var=LD_LIBRARY_PATH
14119   else
14120     # With GCC up to 2.95.x, collect2 would create an import file
14121     # for dependence libraries.  The import file would start with
14122     # the line `#! .'.  This would cause the generated library to
14123     # depend on `.', always an invalid library.  This was fixed in
14124     # development snapshots of GCC prior to 3.0.
14125     case $host_os in
14126       aix4 | aix4.[01] | aix4.[01].*)
14127       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14128            echo ' yes '
14129            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14130         :
14131       else
14132         can_build_shared=no
14133       fi
14134       ;;
14135     esac
14136     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14137     # soname into executable. Probably we can add versioning support to
14138     # collect2, so additional links can be useful in future.
14139     if test "$aix_use_runtimelinking" = yes; then
14140       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14141       # instead of lib<name>.a to let people know that these are not
14142       # typical AIX shared libraries.
14143       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144     else
14145       # We preserve .a as extension for shared libraries through AIX4.2
14146       # and later when we are not doing run time linking.
14147       library_names_spec='${libname}${release}.a $libname.a'
14148       soname_spec='${libname}${release}${shared_ext}$major'
14149     fi
14150     shlibpath_var=LIBPATH
14151   fi
14152   ;;
14153
14154 amigaos*)
14155   library_names_spec='$libname.ixlibrary $libname.a'
14156   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14157   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'
14158   ;;
14159
14160 beos*)
14161   library_names_spec='${libname}${shared_ext}'
14162   dynamic_linker="$host_os ld.so"
14163   shlibpath_var=LIBRARY_PATH
14164   ;;
14165
14166 bsdi4*)
14167   version_type=linux
14168   need_version=no
14169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170   soname_spec='${libname}${release}${shared_ext}$major'
14171   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14172   shlibpath_var=LD_LIBRARY_PATH
14173   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14174   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14175   # the default ld.so.conf also contains /usr/contrib/lib and
14176   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14177   # libtool to hard-code these into programs
14178   ;;
14179
14180 cygwin* | mingw* | pw32*)
14181   version_type=windows
14182   shrext_cmds=".dll"
14183   need_version=no
14184   need_lib_prefix=no
14185
14186   case $GCC,$host_os in
14187   yes,cygwin* | yes,mingw* | yes,pw32*)
14188     library_names_spec='$libname.dll.a'
14189     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14190     postinstall_cmds='base_file=`basename \${file}`~
14191       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14192       dldir=$destdir/`dirname \$dlpath`~
14193       test -d \$dldir || mkdir -p \$dldir~
14194       $install_prog $dir/$dlname \$dldir/$dlname'
14195     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14196       dlpath=$dir/\$dldll~
14197        $rm \$dlpath'
14198     shlibpath_overrides_runpath=yes
14199
14200     case $host_os in
14201     cygwin*)
14202       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14203       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14204       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14205       ;;
14206     mingw*)
14207       # MinGW DLLs use traditional 'lib' prefix
14208       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14209       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14210       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14211         # It is most probably a Windows format PATH printed by
14212         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14213         # path with ; separators, and with drive letters. We can handle the
14214         # drive letters (cygwin fileutils understands them), so leave them,
14215         # especially as we might pass files found there to a mingw objdump,
14216         # which wouldn't understand a cygwinified path. Ahh.
14217         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14218       else
14219         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14220       fi
14221       ;;
14222     pw32*)
14223       # pw32 DLLs use 'pw' prefix rather than 'lib'
14224       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14225       ;;
14226     esac
14227     ;;
14228
14229   *)
14230     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14231     ;;
14232   esac
14233   dynamic_linker='Win32 ld.exe'
14234   # FIXME: first we should search . and the directory the executable is in
14235   shlibpath_var=PATH
14236   ;;
14237
14238 darwin* | rhapsody*)
14239   dynamic_linker="$host_os dyld"
14240   version_type=darwin
14241   need_lib_prefix=no
14242   need_version=no
14243   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14244   soname_spec='${libname}${release}${major}$shared_ext'
14245   shlibpath_overrides_runpath=yes
14246   shlibpath_var=DYLD_LIBRARY_PATH
14247   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14248   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14249   if test "$GCC" = yes; then
14250     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"`
14251   else
14252     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14253   fi
14254   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14255   ;;
14256
14257 dgux*)
14258   version_type=linux
14259   need_lib_prefix=no
14260   need_version=no
14261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14262   soname_spec='${libname}${release}${shared_ext}$major'
14263   shlibpath_var=LD_LIBRARY_PATH
14264   ;;
14265
14266 freebsd1*)
14267   dynamic_linker=no
14268   ;;
14269
14270 kfreebsd*-gnu)
14271   version_type=linux
14272   need_lib_prefix=no
14273   need_version=no
14274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14275   soname_spec='${libname}${release}${shared_ext}$major'
14276   shlibpath_var=LD_LIBRARY_PATH
14277   shlibpath_overrides_runpath=no
14278   hardcode_into_libs=yes
14279   dynamic_linker='GNU ld.so'
14280   ;;
14281
14282 freebsd*)
14283   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14284   version_type=freebsd-$objformat
14285   case $version_type in
14286     freebsd-elf*)
14287       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14288       need_version=no
14289       need_lib_prefix=no
14290       ;;
14291     freebsd-*)
14292       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14293       need_version=yes
14294       ;;
14295   esac
14296   shlibpath_var=LD_LIBRARY_PATH
14297   case $host_os in
14298   freebsd2*)
14299     shlibpath_overrides_runpath=yes
14300     ;;
14301   freebsd3.01* | freebsdelf3.01*)
14302     shlibpath_overrides_runpath=yes
14303     hardcode_into_libs=yes
14304     ;;
14305   *) # from 3.2 on
14306     shlibpath_overrides_runpath=no
14307     hardcode_into_libs=yes
14308     ;;
14309   esac
14310   ;;
14311
14312 gnu*)
14313   version_type=linux
14314   need_lib_prefix=no
14315   need_version=no
14316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14317   soname_spec='${libname}${release}${shared_ext}$major'
14318   shlibpath_var=LD_LIBRARY_PATH
14319   hardcode_into_libs=yes
14320   ;;
14321
14322 hpux9* | hpux10* | hpux11*)
14323   # Give a soname corresponding to the major version so that dld.sl refuses to
14324   # link against other versions.
14325   version_type=sunos
14326   need_lib_prefix=no
14327   need_version=no
14328   case "$host_cpu" in
14329   ia64*)
14330     shrext_cmds='.so'
14331     hardcode_into_libs=yes
14332     dynamic_linker="$host_os dld.so"
14333     shlibpath_var=LD_LIBRARY_PATH
14334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336     soname_spec='${libname}${release}${shared_ext}$major'
14337     if test "X$HPUX_IA64_MODE" = X32; then
14338       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14339     else
14340       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14341     fi
14342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14343     ;;
14344    hppa*64*)
14345      shrext_cmds='.sl'
14346      hardcode_into_libs=yes
14347      dynamic_linker="$host_os dld.sl"
14348      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14349      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351      soname_spec='${libname}${release}${shared_ext}$major'
14352      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14353      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14354      ;;
14355    *)
14356     shrext_cmds='.sl'
14357     dynamic_linker="$host_os dld.sl"
14358     shlibpath_var=SHLIB_PATH
14359     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14361     soname_spec='${libname}${release}${shared_ext}$major'
14362     ;;
14363   esac
14364   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14365   postinstall_cmds='chmod 555 $lib'
14366   ;;
14367
14368 irix5* | irix6* | nonstopux*)
14369   case $host_os in
14370     nonstopux*) version_type=nonstopux ;;
14371     *)
14372         if test "$lt_cv_prog_gnu_ld" = yes; then
14373                 version_type=linux
14374         else
14375                 version_type=irix
14376         fi ;;
14377   esac
14378   need_lib_prefix=no
14379   need_version=no
14380   soname_spec='${libname}${release}${shared_ext}$major'
14381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14382   case $host_os in
14383   irix5* | nonstopux*)
14384     libsuff= shlibsuff=
14385     ;;
14386   *)
14387     case $LD in # libtool.m4 will add one of these switches to LD
14388     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14389       libsuff= shlibsuff= libmagic=32-bit;;
14390     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14391       libsuff=32 shlibsuff=N32 libmagic=N32;;
14392     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14393       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14394     *) libsuff= shlibsuff= libmagic=never-match;;
14395     esac
14396     ;;
14397   esac
14398   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14399   shlibpath_overrides_runpath=no
14400   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14401   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14402   hardcode_into_libs=yes
14403   ;;
14404
14405 # No shared lib support for Linux oldld, aout, or coff.
14406 linux*oldld* | linux*aout* | linux*coff*)
14407   dynamic_linker=no
14408   ;;
14409
14410 # This must be Linux ELF.
14411 linux*)
14412   version_type=linux
14413   need_lib_prefix=no
14414   need_version=no
14415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416   soname_spec='${libname}${release}${shared_ext}$major'
14417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   shlibpath_overrides_runpath=no
14420   # This implies no fast_install, which is unacceptable.
14421   # Some rework will be needed to allow for fast_install
14422   # before this can be enabled.
14423   hardcode_into_libs=yes
14424
14425   # Append ld.so.conf contents to the search path
14426   if test -f /etc/ld.so.conf; then
14427     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14428     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14429   fi
14430
14431   # We used to test for /lib/ld.so.1 and disable shared libraries on
14432   # powerpc, because MkLinux only supported shared libraries with the
14433   # GNU dynamic linker.  Since this was broken with cross compilers,
14434   # most powerpc-linux boxes support dynamic linking these days and
14435   # people can always --disable-shared, the test was removed, and we
14436   # assume the GNU/Linux dynamic linker is in use.
14437   dynamic_linker='GNU/Linux ld.so'
14438   ;;
14439
14440 knetbsd*-gnu)
14441   version_type=linux
14442   need_lib_prefix=no
14443   need_version=no
14444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14445   soname_spec='${libname}${release}${shared_ext}$major'
14446   shlibpath_var=LD_LIBRARY_PATH
14447   shlibpath_overrides_runpath=no
14448   hardcode_into_libs=yes
14449   dynamic_linker='GNU ld.so'
14450   ;;
14451
14452 netbsd*)
14453   version_type=sunos
14454   need_lib_prefix=no
14455   need_version=no
14456   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459     dynamic_linker='NetBSD (a.out) ld.so'
14460   else
14461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462     soname_spec='${libname}${release}${shared_ext}$major'
14463     dynamic_linker='NetBSD ld.elf_so'
14464   fi
14465   shlibpath_var=LD_LIBRARY_PATH
14466   shlibpath_overrides_runpath=yes
14467   hardcode_into_libs=yes
14468   ;;
14469
14470 newsos6)
14471   version_type=linux
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   shlibpath_overrides_runpath=yes
14475   ;;
14476
14477 nto-qnx*)
14478   version_type=linux
14479   need_lib_prefix=no
14480   need_version=no
14481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482   soname_spec='${libname}${release}${shared_ext}$major'
14483   shlibpath_var=LD_LIBRARY_PATH
14484   shlibpath_overrides_runpath=yes
14485   ;;
14486
14487 openbsd*)
14488   version_type=sunos
14489   need_lib_prefix=no
14490   need_version=yes
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14493   shlibpath_var=LD_LIBRARY_PATH
14494   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14495     case $host_os in
14496       openbsd2.[89] | openbsd2.[89].*)
14497         shlibpath_overrides_runpath=no
14498         ;;
14499       *)
14500         shlibpath_overrides_runpath=yes
14501         ;;
14502       esac
14503   else
14504     shlibpath_overrides_runpath=yes
14505   fi
14506   ;;
14507
14508 os2*)
14509   libname_spec='$name'
14510   shrext_cmds=".dll"
14511   need_lib_prefix=no
14512   library_names_spec='$libname${shared_ext} $libname.a'
14513   dynamic_linker='OS/2 ld.exe'
14514   shlibpath_var=LIBPATH
14515   ;;
14516
14517 osf3* | osf4* | osf5*)
14518   version_type=osf
14519   need_lib_prefix=no
14520   need_version=no
14521   soname_spec='${libname}${release}${shared_ext}$major'
14522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523   shlibpath_var=LD_LIBRARY_PATH
14524   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14525   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14526   ;;
14527
14528 sco3.2v5*)
14529   version_type=osf
14530   soname_spec='${libname}${release}${shared_ext}$major'
14531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532   shlibpath_var=LD_LIBRARY_PATH
14533   ;;
14534
14535 solaris*)
14536   version_type=linux
14537   need_lib_prefix=no
14538   need_version=no
14539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540   soname_spec='${libname}${release}${shared_ext}$major'
14541   shlibpath_var=LD_LIBRARY_PATH
14542   shlibpath_overrides_runpath=yes
14543   hardcode_into_libs=yes
14544   # ldd complains unless libraries are executable
14545   postinstall_cmds='chmod +x $lib'
14546   ;;
14547
14548 sunos4*)
14549   version_type=sunos
14550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14551   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14552   shlibpath_var=LD_LIBRARY_PATH
14553   shlibpath_overrides_runpath=yes
14554   if test "$with_gnu_ld" = yes; then
14555     need_lib_prefix=no
14556   fi
14557   need_version=yes
14558   ;;
14559
14560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14561   version_type=linux
14562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563   soname_spec='${libname}${release}${shared_ext}$major'
14564   shlibpath_var=LD_LIBRARY_PATH
14565   case $host_vendor in
14566     sni)
14567       shlibpath_overrides_runpath=no
14568       need_lib_prefix=no
14569       export_dynamic_flag_spec='${wl}-Blargedynsym'
14570       runpath_var=LD_RUN_PATH
14571       ;;
14572     siemens)
14573       need_lib_prefix=no
14574       ;;
14575     motorola)
14576       need_lib_prefix=no
14577       need_version=no
14578       shlibpath_overrides_runpath=no
14579       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14580       ;;
14581   esac
14582   ;;
14583
14584 sysv4*MP*)
14585   if test -d /usr/nec ;then
14586     version_type=linux
14587     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14588     soname_spec='$libname${shared_ext}.$major'
14589     shlibpath_var=LD_LIBRARY_PATH
14590   fi
14591   ;;
14592
14593 uts4*)
14594   version_type=linux
14595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596   soname_spec='${libname}${release}${shared_ext}$major'
14597   shlibpath_var=LD_LIBRARY_PATH
14598   ;;
14599
14600 *)
14601   dynamic_linker=no
14602   ;;
14603 esac
14604 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14605 echo "${ECHO_T}$dynamic_linker" >&6
14606 test "$dynamic_linker" = no && can_build_shared=no
14607
14608 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14609 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14610 hardcode_action_F77=
14611 if test -n "$hardcode_libdir_flag_spec_F77" || \
14612    test -n "$runpath_var F77" || \
14613    test "X$hardcode_automatic_F77"="Xyes" ; then
14614
14615   # We can hardcode non-existant directories.
14616   if test "$hardcode_direct_F77" != no &&
14617      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14618      # have to relink, otherwise we might link with an installed library
14619      # when we should be linking with a yet-to-be-installed one
14620      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14621      test "$hardcode_minus_L_F77" != no; then
14622     # Linking always hardcodes the temporary library directory.
14623     hardcode_action_F77=relink
14624   else
14625     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14626     hardcode_action_F77=immediate
14627   fi
14628 else
14629   # We cannot hardcode anything, or else we can only hardcode existing
14630   # directories.
14631   hardcode_action_F77=unsupported
14632 fi
14633 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14634 echo "${ECHO_T}$hardcode_action_F77" >&6
14635
14636 if test "$hardcode_action_F77" = relink; then
14637   # Fast installation is not supported
14638   enable_fast_install=no
14639 elif test "$shlibpath_overrides_runpath" = yes ||
14640      test "$enable_shared" = no; then
14641   # Fast installation is not necessary
14642   enable_fast_install=needless
14643 fi
14644
14645 striplib=
14646 old_striplib=
14647 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14648 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14649 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14650   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14651   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14652   echo "$as_me:$LINENO: result: yes" >&5
14653 echo "${ECHO_T}yes" >&6
14654 else
14655 # FIXME - insert some real tests, host_os isn't really good enough
14656   case $host_os in
14657    darwin*)
14658        if test -n "$STRIP" ; then
14659          striplib="$STRIP -x"
14660          echo "$as_me:$LINENO: result: yes" >&5
14661 echo "${ECHO_T}yes" >&6
14662        else
14663   echo "$as_me:$LINENO: result: no" >&5
14664 echo "${ECHO_T}no" >&6
14665 fi
14666        ;;
14667    *)
14668   echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14670     ;;
14671   esac
14672 fi
14673
14674
14675
14676 # The else clause should only fire when bootstrapping the
14677 # libtool distribution, otherwise you forgot to ship ltmain.sh
14678 # with your package, and you will get complaints that there are
14679 # no rules to generate ltmain.sh.
14680 if test -f "$ltmain"; then
14681   # See if we are running on zsh, and set the options which allow our commands through
14682   # without removal of \ escapes.
14683   if test -n "${ZSH_VERSION+set}" ; then
14684     setopt NO_GLOB_SUBST
14685   fi
14686   # Now quote all the things that may contain metacharacters while being
14687   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14688   # variables and quote the copies for generation of the libtool script.
14689   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14690     SED SHELL STRIP \
14691     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14692     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14693     deplibs_check_method reload_flag reload_cmds need_locks \
14694     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14695     lt_cv_sys_global_symbol_to_c_name_address \
14696     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14697     old_postinstall_cmds old_postuninstall_cmds \
14698     compiler_F77 \
14699     CC_F77 \
14700     LD_F77 \
14701     lt_prog_compiler_wl_F77 \
14702     lt_prog_compiler_pic_F77 \
14703     lt_prog_compiler_static_F77 \
14704     lt_prog_compiler_no_builtin_flag_F77 \
14705     export_dynamic_flag_spec_F77 \
14706     thread_safe_flag_spec_F77 \
14707     whole_archive_flag_spec_F77 \
14708     enable_shared_with_static_runtimes_F77 \
14709     old_archive_cmds_F77 \
14710     old_archive_from_new_cmds_F77 \
14711     predep_objects_F77 \
14712     postdep_objects_F77 \
14713     predeps_F77 \
14714     postdeps_F77 \
14715     compiler_lib_search_path_F77 \
14716     archive_cmds_F77 \
14717     archive_expsym_cmds_F77 \
14718     postinstall_cmds_F77 \
14719     postuninstall_cmds_F77 \
14720     old_archive_from_expsyms_cmds_F77 \
14721     allow_undefined_flag_F77 \
14722     no_undefined_flag_F77 \
14723     export_symbols_cmds_F77 \
14724     hardcode_libdir_flag_spec_F77 \
14725     hardcode_libdir_flag_spec_ld_F77 \
14726     hardcode_libdir_separator_F77 \
14727     hardcode_automatic_F77 \
14728     module_cmds_F77 \
14729     module_expsym_cmds_F77 \
14730     lt_cv_prog_compiler_c_o_F77 \
14731     exclude_expsyms_F77 \
14732     include_expsyms_F77; do
14733
14734     case $var in
14735     old_archive_cmds_F77 | \
14736     old_archive_from_new_cmds_F77 | \
14737     archive_cmds_F77 | \
14738     archive_expsym_cmds_F77 | \
14739     module_cmds_F77 | \
14740     module_expsym_cmds_F77 | \
14741     old_archive_from_expsyms_cmds_F77 | \
14742     export_symbols_cmds_F77 | \
14743     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14744     postinstall_cmds | postuninstall_cmds | \
14745     old_postinstall_cmds | old_postuninstall_cmds | \
14746     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14747       # Double-quote double-evaled strings.
14748       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14749       ;;
14750     *)
14751       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14752       ;;
14753     esac
14754   done
14755
14756   case $lt_echo in
14757   *'\$0 --fallback-echo"')
14758     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14759     ;;
14760   esac
14761
14762 cfgfile="$ofile"
14763
14764   cat <<__EOF__ >> "$cfgfile"
14765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14766
14767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14768
14769 # Shell to use when invoking shell scripts.
14770 SHELL=$lt_SHELL
14771
14772 # Whether or not to build shared libraries.
14773 build_libtool_libs=$enable_shared
14774
14775 # Whether or not to build static libraries.
14776 build_old_libs=$enable_static
14777
14778 # Whether or not to add -lc for building shared libraries.
14779 build_libtool_need_lc=$archive_cmds_need_lc_F77
14780
14781 # Whether or not to disallow shared libs when runtime libs are static
14782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14783
14784 # Whether or not to optimize for fast installation.
14785 fast_install=$enable_fast_install
14786
14787 # The host system.
14788 host_alias=$host_alias
14789 host=$host
14790
14791 # An echo program that does not interpret backslashes.
14792 echo=$lt_echo
14793
14794 # The archiver.
14795 AR=$lt_AR
14796 AR_FLAGS=$lt_AR_FLAGS
14797
14798 # A C compiler.
14799 LTCC=$lt_LTCC
14800
14801 # A language-specific compiler.
14802 CC=$lt_compiler_F77
14803
14804 # Is the compiler the GNU C compiler?
14805 with_gcc=$GCC_F77
14806
14807 # An ERE matcher.
14808 EGREP=$lt_EGREP
14809
14810 # The linker used to build libraries.
14811 LD=$lt_LD_F77
14812
14813 # Whether we need hard or soft links.
14814 LN_S=$lt_LN_S
14815
14816 # A BSD-compatible nm program.
14817 NM=$lt_NM
14818
14819 # A symbol stripping program
14820 STRIP=$lt_STRIP
14821
14822 # Used to examine libraries when file_magic_cmd begins "file"
14823 MAGIC_CMD=$MAGIC_CMD
14824
14825 # Used on cygwin: DLL creation program.
14826 DLLTOOL="$DLLTOOL"
14827
14828 # Used on cygwin: object dumper.
14829 OBJDUMP="$OBJDUMP"
14830
14831 # Used on cygwin: assembler.
14832 AS="$AS"
14833
14834 # The name of the directory that contains temporary libtool files.
14835 objdir=$objdir
14836
14837 # How to create reloadable object files.
14838 reload_flag=$lt_reload_flag
14839 reload_cmds=$lt_reload_cmds
14840
14841 # How to pass a linker flag through the compiler.
14842 wl=$lt_lt_prog_compiler_wl_F77
14843
14844 # Object file suffix (normally "o").
14845 objext="$ac_objext"
14846
14847 # Old archive suffix (normally "a").
14848 libext="$libext"
14849
14850 # Shared library suffix (normally ".so").
14851 shrext_cmds='$shrext_cmds'
14852
14853 # Executable file suffix (normally "").
14854 exeext="$exeext"
14855
14856 # Additional compiler flags for building library objects.
14857 pic_flag=$lt_lt_prog_compiler_pic_F77
14858 pic_mode=$pic_mode
14859
14860 # What is the maximum length of a command?
14861 max_cmd_len=$lt_cv_sys_max_cmd_len
14862
14863 # Does compiler simultaneously support -c and -o options?
14864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14865
14866 # Must we lock files when doing compilation ?
14867 need_locks=$lt_need_locks
14868
14869 # Do we need the lib prefix for modules?
14870 need_lib_prefix=$need_lib_prefix
14871
14872 # Do we need a version for libraries?
14873 need_version=$need_version
14874
14875 # Whether dlopen is supported.
14876 dlopen_support=$enable_dlopen
14877
14878 # Whether dlopen of programs is supported.
14879 dlopen_self=$enable_dlopen_self
14880
14881 # Whether dlopen of statically linked programs is supported.
14882 dlopen_self_static=$enable_dlopen_self_static
14883
14884 # Compiler flag to prevent dynamic linking.
14885 link_static_flag=$lt_lt_prog_compiler_static_F77
14886
14887 # Compiler flag to turn off builtin functions.
14888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14889
14890 # Compiler flag to allow reflexive dlopens.
14891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14892
14893 # Compiler flag to generate shared objects directly from archives.
14894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14895
14896 # Compiler flag to generate thread-safe objects.
14897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14898
14899 # Library versioning type.
14900 version_type=$version_type
14901
14902 # Format of library name prefix.
14903 libname_spec=$lt_libname_spec
14904
14905 # List of archive names.  First name is the real one, the rest are links.
14906 # The last name is the one that the linker finds with -lNAME.
14907 library_names_spec=$lt_library_names_spec
14908
14909 # The coded name of the library, if different from the real name.
14910 soname_spec=$lt_soname_spec
14911
14912 # Commands used to build and install an old-style archive.
14913 RANLIB=$lt_RANLIB
14914 old_archive_cmds=$lt_old_archive_cmds_F77
14915 old_postinstall_cmds=$lt_old_postinstall_cmds
14916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14917
14918 # Create an old-style archive from a shared archive.
14919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14920
14921 # Create a temporary old-style archive to link instead of a shared archive.
14922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14923
14924 # Commands used to build and install a shared archive.
14925 archive_cmds=$lt_archive_cmds_F77
14926 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14927 postinstall_cmds=$lt_postinstall_cmds
14928 postuninstall_cmds=$lt_postuninstall_cmds
14929
14930 # Commands used to build a loadable module (assumed same as above if empty)
14931 module_cmds=$lt_module_cmds_F77
14932 module_expsym_cmds=$lt_module_expsym_cmds_F77
14933
14934 # Commands to strip libraries.
14935 old_striplib=$lt_old_striplib
14936 striplib=$lt_striplib
14937
14938 # Dependencies to place before the objects being linked to create a
14939 # shared library.
14940 predep_objects=$lt_predep_objects_F77
14941
14942 # Dependencies to place after the objects being linked to create a
14943 # shared library.
14944 postdep_objects=$lt_postdep_objects_F77
14945
14946 # Dependencies to place before the objects being linked to create a
14947 # shared library.
14948 predeps=$lt_predeps_F77
14949
14950 # Dependencies to place after the objects being linked to create a
14951 # shared library.
14952 postdeps=$lt_postdeps_F77
14953
14954 # The library search path used internally by the compiler when linking
14955 # a shared library.
14956 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14957
14958 # Method to check whether dependent libraries are shared objects.
14959 deplibs_check_method=$lt_deplibs_check_method
14960
14961 # Command to use when deplibs_check_method == file_magic.
14962 file_magic_cmd=$lt_file_magic_cmd
14963
14964 # Flag that allows shared libraries with undefined symbols to be built.
14965 allow_undefined_flag=$lt_allow_undefined_flag_F77
14966
14967 # Flag that forces no undefined symbols.
14968 no_undefined_flag=$lt_no_undefined_flag_F77
14969
14970 # Commands used to finish a libtool library installation in a directory.
14971 finish_cmds=$lt_finish_cmds
14972
14973 # Same as above, but a single script fragment to be evaled but not shown.
14974 finish_eval=$lt_finish_eval
14975
14976 # Take the output of nm and produce a listing of raw symbols and C names.
14977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14978
14979 # Transform the output of nm in a proper C declaration
14980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14981
14982 # Transform the output of nm in a C name address pair
14983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14984
14985 # This is the shared library runtime path variable.
14986 runpath_var=$runpath_var
14987
14988 # This is the shared library path variable.
14989 shlibpath_var=$shlibpath_var
14990
14991 # Is shlibpath searched before the hard-coded library search path?
14992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14993
14994 # How to hardcode a shared library path into an executable.
14995 hardcode_action=$hardcode_action_F77
14996
14997 # Whether we should hardcode library paths into libraries.
14998 hardcode_into_libs=$hardcode_into_libs
14999
15000 # Flag to hardcode \$libdir into a binary during linking.
15001 # This must work even if \$libdir does not exist.
15002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15003
15004 # If ld is used when linking, flag to hardcode \$libdir into
15005 # a binary during linking. This must work even if \$libdir does
15006 # not exist.
15007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15008
15009 # Whether we need a single -rpath flag with a separated argument.
15010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15011
15012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15013 # resulting binary.
15014 hardcode_direct=$hardcode_direct_F77
15015
15016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15017 # resulting binary.
15018 hardcode_minus_L=$hardcode_minus_L_F77
15019
15020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15021 # the resulting binary.
15022 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15023
15024 # Set to yes if building a shared library automatically hardcodes DIR into the library
15025 # and all subsequent libraries and executables linked against it.
15026 hardcode_automatic=$hardcode_automatic_F77
15027
15028 # Variables whose values should be saved in libtool wrapper scripts and
15029 # restored at relink time.
15030 variables_saved_for_relink="$variables_saved_for_relink"
15031
15032 # Whether libtool must link a program against all its dependency libraries.
15033 link_all_deplibs=$link_all_deplibs_F77
15034
15035 # Compile-time system search path for libraries
15036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15037
15038 # Run-time system search path for libraries
15039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15040
15041 # Fix the shell variable \$srcfile for the compiler.
15042 fix_srcfile_path="$fix_srcfile_path_F77"
15043
15044 # Set to yes if exported symbols are required.
15045 always_export_symbols=$always_export_symbols_F77
15046
15047 # The commands to list exported symbols.
15048 export_symbols_cmds=$lt_export_symbols_cmds_F77
15049
15050 # The commands to extract the exported symbol list from a shared archive.
15051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15052
15053 # Symbols that should not be listed in the preloaded symbols.
15054 exclude_expsyms=$lt_exclude_expsyms_F77
15055
15056 # Symbols that must always be exported.
15057 include_expsyms=$lt_include_expsyms_F77
15058
15059 # ### END LIBTOOL TAG CONFIG: $tagname
15060
15061 __EOF__
15062
15063
15064 else
15065   # If there is no Makefile yet, we rely on a make rule to execute
15066   # `config.status --recheck' to rerun these tests and create the
15067   # libtool script then.
15068   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15069   if test -f "$ltmain_in"; then
15070     test -f Makefile && make "$ltmain"
15071   fi
15072 fi
15073
15074
15075 ac_ext=c
15076 ac_cpp='$CPP $CPPFLAGS'
15077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15080
15081 CC="$lt_save_CC"
15082
15083         else
15084           tagname=""
15085         fi
15086         ;;
15087
15088       GCJ)
15089         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15090
15091
15092
15093 # Source file extension for Java test sources.
15094 ac_ext=java
15095
15096 # Object file extension for compiled Java test sources.
15097 objext=o
15098 objext_GCJ=$objext
15099
15100 # Code to be used in simple compile tests
15101 lt_simple_compile_test_code="class foo {}\n"
15102
15103 # Code to be used in simple link tests
15104 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15105
15106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15107
15108 # If no C compiler was specified, use CC.
15109 LTCC=${LTCC-"$CC"}
15110
15111 # Allow CC to be a program name with arguments.
15112 compiler=$CC
15113
15114
15115 # Allow CC to be a program name with arguments.
15116 lt_save_CC="$CC"
15117 CC=${GCJ-"gcj"}
15118 compiler=$CC
15119 compiler_GCJ=$CC
15120
15121 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15122 archive_cmds_need_lc_GCJ=no
15123
15124
15125 lt_prog_compiler_no_builtin_flag_GCJ=
15126
15127 if test "$GCC" = yes; then
15128   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15129
15130
15131 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15132 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136   lt_cv_prog_compiler_rtti_exceptions=no
15137   ac_outfile=conftest.$ac_objext
15138    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15139    lt_compiler_flag="-fno-rtti -fno-exceptions"
15140    # Insert the option either (1) after the last *FLAGS variable, or
15141    # (2) before a word containing "conftest.", or (3) at the end.
15142    # Note that $ac_compile itself does not contain backslashes and begins
15143    # with a dollar sign (not a hyphen), so the echo should work correctly.
15144    # The option is referenced via a variable to avoid confusing sed.
15145    lt_compile=`echo "$ac_compile" | $SED \
15146    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15148    -e 's:$: $lt_compiler_flag:'`
15149    (eval echo "\"\$as_me:15149: $lt_compile\"" >&5)
15150    (eval "$lt_compile" 2>conftest.err)
15151    ac_status=$?
15152    cat conftest.err >&5
15153    echo "$as_me:15153: \$? = $ac_status" >&5
15154    if (exit $ac_status) && test -s "$ac_outfile"; then
15155      # The compiler can only warn and ignore the option if not recognized
15156      # So say no if there are warnings
15157      if test ! -s conftest.err; then
15158        lt_cv_prog_compiler_rtti_exceptions=yes
15159      fi
15160    fi
15161    $rm conftest*
15162
15163 fi
15164 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15165 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15166
15167 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15168     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15169 else
15170     :
15171 fi
15172
15173 fi
15174
15175 lt_prog_compiler_wl_GCJ=
15176 lt_prog_compiler_pic_GCJ=
15177 lt_prog_compiler_static_GCJ=
15178
15179 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15180 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15181
15182   if test "$GCC" = yes; then
15183     lt_prog_compiler_wl_GCJ='-Wl,'
15184     lt_prog_compiler_static_GCJ='-static'
15185
15186     case $host_os in
15187       aix*)
15188       # All AIX code is PIC.
15189       if test "$host_cpu" = ia64; then
15190         # AIX 5 now supports IA64 processor
15191         lt_prog_compiler_static_GCJ='-Bstatic'
15192       fi
15193       ;;
15194
15195     amigaos*)
15196       # FIXME: we need at least 68020 code to build shared libraries, but
15197       # adding the `-m68020' flag to GCC prevents building anything better,
15198       # like `-m68040'.
15199       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15200       ;;
15201
15202     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15203       # PIC is the default for these OSes.
15204       ;;
15205
15206     mingw* | pw32* | os2*)
15207       # This hack is so that the source file can tell whether it is being
15208       # built for inclusion in a dll (and should export symbols for example).
15209       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15210       ;;
15211
15212     darwin* | rhapsody*)
15213       # PIC is the default on this platform
15214       # Common symbols not allowed in MH_DYLIB files
15215       lt_prog_compiler_pic_GCJ='-fno-common'
15216       ;;
15217
15218     msdosdjgpp*)
15219       # Just because we use GCC doesn't mean we suddenly get shared libraries
15220       # on systems that don't support them.
15221       lt_prog_compiler_can_build_shared_GCJ=no
15222       enable_shared=no
15223       ;;
15224
15225     sysv4*MP*)
15226       if test -d /usr/nec; then
15227         lt_prog_compiler_pic_GCJ=-Kconform_pic
15228       fi
15229       ;;
15230
15231     hpux*)
15232       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15233       # not for PA HP-UX.
15234       case "$host_cpu" in
15235       hppa*64*|ia64*)
15236         # +Z the default
15237         ;;
15238       *)
15239         lt_prog_compiler_pic_GCJ='-fPIC'
15240         ;;
15241       esac
15242       ;;
15243
15244     *)
15245       lt_prog_compiler_pic_GCJ='-fPIC'
15246       ;;
15247     esac
15248   else
15249     # PORTME Check for flag to pass linker flags through the system compiler.
15250     case $host_os in
15251     aix*)
15252       lt_prog_compiler_wl_GCJ='-Wl,'
15253       if test "$host_cpu" = ia64; then
15254         # AIX 5 now supports IA64 processor
15255         lt_prog_compiler_static_GCJ='-Bstatic'
15256       else
15257         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15258       fi
15259       ;;
15260
15261     mingw* | pw32* | os2*)
15262       # This hack is so that the source file can tell whether it is being
15263       # built for inclusion in a dll (and should export symbols for example).
15264       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15265       ;;
15266
15267     hpux9* | hpux10* | hpux11*)
15268       lt_prog_compiler_wl_GCJ='-Wl,'
15269       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15270       # not for PA HP-UX.
15271       case "$host_cpu" in
15272       hppa*64*|ia64*)
15273         # +Z the default
15274         ;;
15275       *)
15276         lt_prog_compiler_pic_GCJ='+Z'
15277         ;;
15278       esac
15279       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15280       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15281       ;;
15282
15283     irix5* | irix6* | nonstopux*)
15284       lt_prog_compiler_wl_GCJ='-Wl,'
15285       # PIC (with -KPIC) is the default.
15286       lt_prog_compiler_static_GCJ='-non_shared'
15287       ;;
15288
15289     newsos6)
15290       lt_prog_compiler_pic_GCJ='-KPIC'
15291       lt_prog_compiler_static_GCJ='-Bstatic'
15292       ;;
15293
15294     linux*)
15295       case $CC in
15296       icc* | ecc*)
15297         lt_prog_compiler_wl_GCJ='-Wl,'
15298         lt_prog_compiler_pic_GCJ='-KPIC'
15299         lt_prog_compiler_static_GCJ='-static'
15300         ;;
15301       ccc*)
15302         lt_prog_compiler_wl_GCJ='-Wl,'
15303         # All Alpha code is PIC.
15304         lt_prog_compiler_static_GCJ='-non_shared'
15305         ;;
15306       esac
15307       ;;
15308
15309     osf3* | osf4* | osf5*)
15310       lt_prog_compiler_wl_GCJ='-Wl,'
15311       # All OSF/1 code is PIC.
15312       lt_prog_compiler_static_GCJ='-non_shared'
15313       ;;
15314
15315     sco3.2v5*)
15316       lt_prog_compiler_pic_GCJ='-Kpic'
15317       lt_prog_compiler_static_GCJ='-dn'
15318       ;;
15319
15320     solaris*)
15321       lt_prog_compiler_wl_GCJ='-Wl,'
15322       lt_prog_compiler_pic_GCJ='-KPIC'
15323       lt_prog_compiler_static_GCJ='-Bstatic'
15324       ;;
15325
15326     sunos4*)
15327       lt_prog_compiler_wl_GCJ='-Qoption ld '
15328       lt_prog_compiler_pic_GCJ='-PIC'
15329       lt_prog_compiler_static_GCJ='-Bstatic'
15330       ;;
15331
15332     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15333       lt_prog_compiler_wl_GCJ='-Wl,'
15334       lt_prog_compiler_pic_GCJ='-KPIC'
15335       lt_prog_compiler_static_GCJ='-Bstatic'
15336       ;;
15337
15338     sysv4*MP*)
15339       if test -d /usr/nec ;then
15340         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15341         lt_prog_compiler_static_GCJ='-Bstatic'
15342       fi
15343       ;;
15344
15345     uts4*)
15346       lt_prog_compiler_pic_GCJ='-pic'
15347       lt_prog_compiler_static_GCJ='-Bstatic'
15348       ;;
15349
15350     *)
15351       lt_prog_compiler_can_build_shared_GCJ=no
15352       ;;
15353     esac
15354   fi
15355
15356 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15357 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15358
15359 #
15360 # Check to make sure the PIC flag actually works.
15361 #
15362 if test -n "$lt_prog_compiler_pic_GCJ"; then
15363
15364 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15365 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15366 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15367   echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369   lt_prog_compiler_pic_works_GCJ=no
15370   ac_outfile=conftest.$ac_objext
15371    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15372    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15373    # Insert the option either (1) after the last *FLAGS variable, or
15374    # (2) before a word containing "conftest.", or (3) at the end.
15375    # Note that $ac_compile itself does not contain backslashes and begins
15376    # with a dollar sign (not a hyphen), so the echo should work correctly.
15377    # The option is referenced via a variable to avoid confusing sed.
15378    lt_compile=`echo "$ac_compile" | $SED \
15379    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15381    -e 's:$: $lt_compiler_flag:'`
15382    (eval echo "\"\$as_me:15382: $lt_compile\"" >&5)
15383    (eval "$lt_compile" 2>conftest.err)
15384    ac_status=$?
15385    cat conftest.err >&5
15386    echo "$as_me:15386: \$? = $ac_status" >&5
15387    if (exit $ac_status) && test -s "$ac_outfile"; then
15388      # The compiler can only warn and ignore the option if not recognized
15389      # So say no if there are warnings
15390      if test ! -s conftest.err; then
15391        lt_prog_compiler_pic_works_GCJ=yes
15392      fi
15393    fi
15394    $rm conftest*
15395
15396 fi
15397 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15398 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15399
15400 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15401     case $lt_prog_compiler_pic_GCJ in
15402      "" | " "*) ;;
15403      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15404      esac
15405 else
15406     lt_prog_compiler_pic_GCJ=
15407      lt_prog_compiler_can_build_shared_GCJ=no
15408 fi
15409
15410 fi
15411 case "$host_os" in
15412   # For platforms which do not support PIC, -DPIC is meaningless:
15413   *djgpp*)
15414     lt_prog_compiler_pic_GCJ=
15415     ;;
15416   *)
15417     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15418     ;;
15419 esac
15420
15421 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15423 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15424   echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426   lt_cv_prog_compiler_c_o_GCJ=no
15427    $rm -r conftest 2>/dev/null
15428    mkdir conftest
15429    cd conftest
15430    mkdir out
15431    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15432
15433    lt_compiler_flag="-o out/conftest2.$ac_objext"
15434    # Insert the option either (1) after the last *FLAGS variable, or
15435    # (2) before a word containing "conftest.", or (3) at the end.
15436    # Note that $ac_compile itself does not contain backslashes and begins
15437    # with a dollar sign (not a hyphen), so the echo should work correctly.
15438    lt_compile=`echo "$ac_compile" | $SED \
15439    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15441    -e 's:$: $lt_compiler_flag:'`
15442    (eval echo "\"\$as_me:15442: $lt_compile\"" >&5)
15443    (eval "$lt_compile" 2>out/conftest.err)
15444    ac_status=$?
15445    cat out/conftest.err >&5
15446    echo "$as_me:15446: \$? = $ac_status" >&5
15447    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15448    then
15449      # The compiler can only warn and ignore the option if not recognized
15450      # So say no if there are warnings
15451      if test ! -s out/conftest.err; then
15452        lt_cv_prog_compiler_c_o_GCJ=yes
15453      fi
15454    fi
15455    chmod u+w .
15456    $rm conftest*
15457    # SGI C++ compiler will create directory out/ii_files/ for
15458    # template instantiation
15459    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15460    $rm out/* && rmdir out
15461    cd ..
15462    rmdir conftest
15463    $rm conftest*
15464
15465 fi
15466 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15467 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15468
15469
15470 hard_links="nottested"
15471 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15472   # do not overwrite the value of need_locks provided by the user
15473   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15474 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15475   hard_links=yes
15476   $rm conftest*
15477   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15478   touch conftest.a
15479   ln conftest.a conftest.b 2>&5 || hard_links=no
15480   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15481   echo "$as_me:$LINENO: result: $hard_links" >&5
15482 echo "${ECHO_T}$hard_links" >&6
15483   if test "$hard_links" = no; then
15484     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15485 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15486     need_locks=warn
15487   fi
15488 else
15489   need_locks=no
15490 fi
15491
15492 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15493 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15494
15495   runpath_var=
15496   allow_undefined_flag_GCJ=
15497   enable_shared_with_static_runtimes_GCJ=no
15498   archive_cmds_GCJ=
15499   archive_expsym_cmds_GCJ=
15500   old_archive_From_new_cmds_GCJ=
15501   old_archive_from_expsyms_cmds_GCJ=
15502   export_dynamic_flag_spec_GCJ=
15503   whole_archive_flag_spec_GCJ=
15504   thread_safe_flag_spec_GCJ=
15505   hardcode_libdir_flag_spec_GCJ=
15506   hardcode_libdir_flag_spec_ld_GCJ=
15507   hardcode_libdir_separator_GCJ=
15508   hardcode_direct_GCJ=no
15509   hardcode_minus_L_GCJ=no
15510   hardcode_shlibpath_var_GCJ=unsupported
15511   link_all_deplibs_GCJ=unknown
15512   hardcode_automatic_GCJ=no
15513   module_cmds_GCJ=
15514   module_expsym_cmds_GCJ=
15515   always_export_symbols_GCJ=no
15516   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15517   # include_expsyms should be a list of space-separated symbols to be *always*
15518   # included in the symbol list
15519   include_expsyms_GCJ=
15520   # exclude_expsyms can be an extended regexp of symbols to exclude
15521   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15522   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15523   # as well as any symbol that contains `d'.
15524   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15525   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15526   # platforms (ab)use it in PIC code, but their linkers get confused if
15527   # the symbol is explicitly referenced.  Since portable code cannot
15528   # rely on this symbol name, it's probably fine to never include it in
15529   # preloaded symbol tables.
15530   extract_expsyms_cmds=
15531
15532   case $host_os in
15533   cygwin* | mingw* | pw32*)
15534     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15535     # When not using gcc, we currently assume that we are using
15536     # Microsoft Visual C++.
15537     if test "$GCC" != yes; then
15538       with_gnu_ld=no
15539     fi
15540     ;;
15541   openbsd*)
15542     with_gnu_ld=no
15543     ;;
15544   esac
15545
15546   ld_shlibs_GCJ=yes
15547   if test "$with_gnu_ld" = yes; then
15548     # If archive_cmds runs LD, not CC, wlarc should be empty
15549     wlarc='${wl}'
15550
15551     # See if GNU ld supports shared libraries.
15552     case $host_os in
15553     aix3* | aix4* | aix5*)
15554       # On AIX/PPC, the GNU linker is very broken
15555       if test "$host_cpu" != ia64; then
15556         ld_shlibs_GCJ=no
15557         cat <<EOF 1>&2
15558
15559 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15560 *** to be unable to reliably create shared libraries on AIX.
15561 *** Therefore, libtool is disabling shared libraries support.  If you
15562 *** really care for shared libraries, you may want to modify your PATH
15563 *** so that a non-GNU linker is found, and then restart.
15564
15565 EOF
15566       fi
15567       ;;
15568
15569     amigaos*)
15570       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)'
15571       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15572       hardcode_minus_L_GCJ=yes
15573
15574       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15575       # that the semantics of dynamic libraries on AmigaOS, at least up
15576       # to version 4, is to share data among multiple programs linked
15577       # with the same dynamic library.  Since this doesn't match the
15578       # behavior of shared libraries on other platforms, we can't use
15579       # them.
15580       ld_shlibs_GCJ=no
15581       ;;
15582
15583     beos*)
15584       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15585         allow_undefined_flag_GCJ=unsupported
15586         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15587         # support --undefined.  This deserves some investigation.  FIXME
15588         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15589       else
15590         ld_shlibs_GCJ=no
15591       fi
15592       ;;
15593
15594     cygwin* | mingw* | pw32*)
15595       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15596       # as there is no search path for DLLs.
15597       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15598       allow_undefined_flag_GCJ=unsupported
15599       always_export_symbols_GCJ=no
15600       enable_shared_with_static_runtimes_GCJ=yes
15601       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15602
15603       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15604         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15605         # If the export-symbols file already is a .def file (1st line
15606         # is EXPORTS), use it as is; otherwise, prepend...
15607         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15608           cp $export_symbols $output_objdir/$soname.def;
15609         else
15610           echo EXPORTS > $output_objdir/$soname.def;
15611           cat $export_symbols >> $output_objdir/$soname.def;
15612         fi~
15613         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15614       else
15615         ld_shlibs=no
15616       fi
15617       ;;
15618
15619     netbsd* | knetbsd*-gnu)
15620       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15622         wlarc=
15623       else
15624         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15625         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15626       fi
15627       ;;
15628
15629     solaris* | sysv5*)
15630       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15631         ld_shlibs_GCJ=no
15632         cat <<EOF 1>&2
15633
15634 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15635 *** create shared libraries on Solaris systems.  Therefore, libtool
15636 *** is disabling shared libraries support.  We urge you to upgrade GNU
15637 *** binutils to release 2.9.1 or newer.  Another option is to modify
15638 *** your PATH or compiler configuration so that the native linker is
15639 *** used, and then restart.
15640
15641 EOF
15642       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15643         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15644         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15645       else
15646         ld_shlibs_GCJ=no
15647       fi
15648       ;;
15649
15650     sunos4*)
15651       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15652       wlarc=
15653       hardcode_direct_GCJ=yes
15654       hardcode_shlibpath_var_GCJ=no
15655       ;;
15656
15657   linux*)
15658     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15659         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15660         archive_cmds_GCJ="$tmp_archive_cmds"
15661       supports_anon_versioning=no
15662       case `$LD -v 2>/dev/null` in
15663         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15664         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15665         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15666         *\ 2.11.*) ;; # other 2.11 versions
15667         *) supports_anon_versioning=yes ;;
15668       esac
15669       if test $supports_anon_versioning = yes; then
15670         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15672 $echo "local: *; };" >> $output_objdir/$libname.ver~
15673         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15674       else
15675         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15676       fi
15677       link_all_deplibs_GCJ=no
15678     else
15679       ld_shlibs_GCJ=no
15680     fi
15681     ;;
15682
15683     *)
15684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15685         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15687       else
15688         ld_shlibs_GCJ=no
15689       fi
15690       ;;
15691     esac
15692
15693     if test "$ld_shlibs_GCJ" = yes; then
15694       runpath_var=LD_RUN_PATH
15695       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15696       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15697       # ancient GNU ld didn't support --whole-archive et. al.
15698       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15699         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15700       else
15701         whole_archive_flag_spec_GCJ=
15702       fi
15703     fi
15704   else
15705     # PORTME fill in a description of your system's linker (not GNU ld)
15706     case $host_os in
15707     aix3*)
15708       allow_undefined_flag_GCJ=unsupported
15709       always_export_symbols_GCJ=yes
15710       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'
15711       # Note: this linker hardcodes the directories in LIBPATH if there
15712       # are no directories specified by -L.
15713       hardcode_minus_L_GCJ=yes
15714       if test "$GCC" = yes && test -z "$link_static_flag"; then
15715         # Neither direct hardcoding nor static linking is supported with a
15716         # broken collect2.
15717         hardcode_direct_GCJ=unsupported
15718       fi
15719       ;;
15720
15721     aix4* | aix5*)
15722       if test "$host_cpu" = ia64; then
15723         # On IA64, the linker does run time linking by default, so we don't
15724         # have to do anything special.
15725         aix_use_runtimelinking=no
15726         exp_sym_flag='-Bexport'
15727         no_entry_flag=""
15728       else
15729         # If we're using GNU nm, then we don't want the "-C" option.
15730         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15731         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15732           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'
15733         else
15734           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'
15735         fi
15736         aix_use_runtimelinking=no
15737
15738         # Test if we are trying to use run time linking or normal
15739         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15740         # need to do runtime linking.
15741         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15742           for ld_flag in $LDFLAGS; do
15743           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15744             aix_use_runtimelinking=yes
15745             break
15746           fi
15747           done
15748         esac
15749
15750         exp_sym_flag='-bexport'
15751         no_entry_flag='-bnoentry'
15752       fi
15753
15754       # When large executables or shared objects are built, AIX ld can
15755       # have problems creating the table of contents.  If linking a library
15756       # or program results in "error TOC overflow" add -mminimal-toc to
15757       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15758       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15759
15760       archive_cmds_GCJ=''
15761       hardcode_direct_GCJ=yes
15762       hardcode_libdir_separator_GCJ=':'
15763       link_all_deplibs_GCJ=yes
15764
15765       if test "$GCC" = yes; then
15766         case $host_os in aix4.012|aix4.012.*)
15767         # We only want to do this on AIX 4.2 and lower, the check
15768         # below for broken collect2 doesn't work under 4.3+
15769           collect2name=`${CC} -print-prog-name=collect2`
15770           if test -f "$collect2name" && \
15771            strings "$collect2name" | grep resolve_lib_name >/dev/null
15772           then
15773           # We have reworked collect2
15774           hardcode_direct_GCJ=yes
15775           else
15776           # We have old collect2
15777           hardcode_direct_GCJ=unsupported
15778           # It fails to find uninstalled libraries when the uninstalled
15779           # path is not listed in the libpath.  Setting hardcode_minus_L
15780           # to unsupported forces relinking
15781           hardcode_minus_L_GCJ=yes
15782           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783           hardcode_libdir_separator_GCJ=
15784           fi
15785         esac
15786         shared_flag='-shared'
15787       else
15788         # not using gcc
15789         if test "$host_cpu" = ia64; then
15790         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15791         # chokes on -Wl,-G. The following line is correct:
15792           shared_flag='-G'
15793         else
15794         if test "$aix_use_runtimelinking" = yes; then
15795             shared_flag='${wl}-G'
15796           else
15797             shared_flag='${wl}-bM:SRE'
15798         fi
15799         fi
15800       fi
15801
15802       # It seems that -bexpall does not export symbols beginning with
15803       # underscore (_), so it is better to generate a list of symbols to export.
15804       always_export_symbols_GCJ=yes
15805       if test "$aix_use_runtimelinking" = yes; then
15806         # Warning - without using the other runtime loading flags (-brtl),
15807         # -berok will link without error, but may produce a broken library.
15808         allow_undefined_flag_GCJ='-berok'
15809        # Determine the default libpath from the value encoded in an empty executable.
15810        cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h.  */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h.  */
15816
15817 int
15818 main ()
15819 {
15820
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15827   (eval $ac_link) 2>conftest.er1
15828   ac_status=$?
15829   grep -v '^ *+' conftest.er1 >conftest.err
15830   rm -f conftest.er1
15831   cat conftest.err >&5
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } &&
15834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; } &&
15840          { ac_try='test -s conftest$ac_exeext'
15841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842   (eval $ac_try) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; }; then
15846
15847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15848 }'`
15849 # Check for a 64-bit object if we didn't find anything.
15850 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; }
15851 }'`; fi
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 fi
15857 rm -f conftest.err conftest.$ac_objext \
15858       conftest$ac_exeext conftest.$ac_ext
15859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15860
15861        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15862         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"
15863        else
15864         if test "$host_cpu" = ia64; then
15865           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15866           allow_undefined_flag_GCJ="-z nodefs"
15867           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"
15868         else
15869          # Determine the default libpath from the value encoded in an empty executable.
15870          cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h.  */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h.  */
15876
15877 int
15878 main ()
15879 {
15880
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887   (eval $ac_link) 2>conftest.er1
15888   ac_status=$?
15889   grep -v '^ *+' conftest.er1 >conftest.err
15890   rm -f conftest.er1
15891   cat conftest.err >&5
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; } &&
15900          { ac_try='test -s conftest$ac_exeext'
15901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902   (eval $ac_try) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); }; }; then
15906
15907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15908 }'`
15909 # Check for a 64-bit object if we didn't find anything.
15910 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; }
15911 }'`; fi
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 fi
15917 rm -f conftest.err conftest.$ac_objext \
15918       conftest$ac_exeext conftest.$ac_ext
15919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15920
15921          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15922           # Warning - without using the other run time loading flags,
15923           # -berok will link without error, but may produce a broken library.
15924           no_undefined_flag_GCJ=' ${wl}-bernotok'
15925           allow_undefined_flag_GCJ=' ${wl}-berok'
15926           # -bexpall does not export symbols beginning with underscore (_)
15927           always_export_symbols_GCJ=yes
15928           # Exported symbols can be pulled into shared objects from archives
15929           whole_archive_flag_spec_GCJ=' '
15930           archive_cmds_need_lc_GCJ=yes
15931           # This is similar to how AIX traditionally builds it's shared libraries.
15932           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'
15933         fi
15934       fi
15935       ;;
15936
15937     amigaos*)
15938       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)'
15939       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15940       hardcode_minus_L_GCJ=yes
15941       # see comment about different semantics on the GNU ld section
15942       ld_shlibs_GCJ=no
15943       ;;
15944
15945     bsdi4*)
15946       export_dynamic_flag_spec_GCJ=-rdynamic
15947       ;;
15948
15949     cygwin* | mingw* | pw32*)
15950       # When not using gcc, we currently assume that we are using
15951       # Microsoft Visual C++.
15952       # hardcode_libdir_flag_spec is actually meaningless, as there is
15953       # no search path for DLLs.
15954       hardcode_libdir_flag_spec_GCJ=' '
15955       allow_undefined_flag_GCJ=unsupported
15956       # Tell ltmain to make .lib files, not .a files.
15957       libext=lib
15958       # Tell ltmain to make .dll files, not .so files.
15959       shrext_cmds=".dll"
15960       # FIXME: Setting linknames here is a bad hack.
15961       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15962       # The linker will automatically build a .lib file if we build a DLL.
15963       old_archive_From_new_cmds_GCJ='true'
15964       # FIXME: Should let the user specify the lib program.
15965       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15966       fix_srcfile_path='`cygpath -w "$srcfile"`'
15967       enable_shared_with_static_runtimes_GCJ=yes
15968       ;;
15969
15970     darwin* | rhapsody*)
15971     if test "$GXX" = yes ; then
15972       archive_cmds_need_lc_GCJ=no
15973       case "$host_os" in
15974       rhapsody* | darwin1.[012])
15975         allow_undefined_flag_GCJ='-undefined suppress'
15976         ;;
15977       *) # Darwin 1.3 on
15978       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15979         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15980       else
15981         case ${MACOSX_DEPLOYMENT_TARGET} in
15982           10.[012])
15983             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15984             ;;
15985           10.*)
15986             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15987             ;;
15988         esac
15989       fi
15990         ;;
15991       esac
15992         lt_int_apple_cc_single_mod=no
15993         output_verbose_link_cmd='echo'
15994         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15995           lt_int_apple_cc_single_mod=yes
15996         fi
15997         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15998           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15999         else
16000         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'
16001       fi
16002       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16003       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16004         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16005           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}'
16006         else
16007           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}'
16008         fi
16009           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}'
16010       hardcode_direct_GCJ=no
16011       hardcode_automatic_GCJ=yes
16012       hardcode_shlibpath_var_GCJ=unsupported
16013       whole_archive_flag_spec_GCJ='-all_load $convenience'
16014       link_all_deplibs_GCJ=yes
16015     else
16016       ld_shlibs_GCJ=no
16017     fi
16018       ;;
16019
16020     dgux*)
16021       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16022       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16023       hardcode_shlibpath_var_GCJ=no
16024       ;;
16025
16026     freebsd1*)
16027       ld_shlibs_GCJ=no
16028       ;;
16029
16030     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16031     # support.  Future versions do this automatically, but an explicit c++rt0.o
16032     # does not break anything, and helps significantly (at the cost of a little
16033     # extra space).
16034     freebsd2.2*)
16035       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16036       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16037       hardcode_direct_GCJ=yes
16038       hardcode_shlibpath_var_GCJ=no
16039       ;;
16040
16041     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16042     freebsd2*)
16043       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16044       hardcode_direct_GCJ=yes
16045       hardcode_minus_L_GCJ=yes
16046       hardcode_shlibpath_var_GCJ=no
16047       ;;
16048
16049     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16050     freebsd* | kfreebsd*-gnu)
16051       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16052       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16053       hardcode_direct_GCJ=yes
16054       hardcode_shlibpath_var_GCJ=no
16055       ;;
16056
16057     hpux9*)
16058       if test "$GCC" = yes; then
16059         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'
16060       else
16061         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'
16062       fi
16063       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16064       hardcode_libdir_separator_GCJ=:
16065       hardcode_direct_GCJ=yes
16066
16067       # hardcode_minus_L: Not really in the search PATH,
16068       # but as the default location of the library.
16069       hardcode_minus_L_GCJ=yes
16070       export_dynamic_flag_spec_GCJ='${wl}-E'
16071       ;;
16072
16073     hpux10* | hpux11*)
16074       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16075         case "$host_cpu" in
16076         hppa*64*|ia64*)
16077           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16078           ;;
16079         *)
16080           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16081           ;;
16082         esac
16083       else
16084         case "$host_cpu" in
16085         hppa*64*|ia64*)
16086           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16087           ;;
16088         *)
16089           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16090           ;;
16091         esac
16092       fi
16093       if test "$with_gnu_ld" = no; then
16094         case "$host_cpu" in
16095         hppa*64*)
16096           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16097           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16098           hardcode_libdir_separator_GCJ=:
16099           hardcode_direct_GCJ=no
16100           hardcode_shlibpath_var_GCJ=no
16101           ;;
16102         ia64*)
16103           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16104           hardcode_direct_GCJ=no
16105           hardcode_shlibpath_var_GCJ=no
16106
16107           # hardcode_minus_L: Not really in the search PATH,
16108           # but as the default location of the library.
16109           hardcode_minus_L_GCJ=yes
16110           ;;
16111         *)
16112           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16113           hardcode_libdir_separator_GCJ=:
16114           hardcode_direct_GCJ=yes
16115           export_dynamic_flag_spec_GCJ='${wl}-E'
16116
16117           # hardcode_minus_L: Not really in the search PATH,
16118           # but as the default location of the library.
16119           hardcode_minus_L_GCJ=yes
16120           ;;
16121         esac
16122       fi
16123       ;;
16124
16125     irix5* | irix6* | nonstopux*)
16126       if test "$GCC" = yes; then
16127         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'
16128       else
16129         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'
16130         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16131       fi
16132       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16133       hardcode_libdir_separator_GCJ=:
16134       link_all_deplibs_GCJ=yes
16135       ;;
16136
16137     netbsd* | knetbsd*-gnu)
16138       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16139         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16140       else
16141         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16142       fi
16143       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16144       hardcode_direct_GCJ=yes
16145       hardcode_shlibpath_var_GCJ=no
16146       ;;
16147
16148     newsos6)
16149       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150       hardcode_direct_GCJ=yes
16151       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16152       hardcode_libdir_separator_GCJ=:
16153       hardcode_shlibpath_var_GCJ=no
16154       ;;
16155
16156     openbsd*)
16157       hardcode_direct_GCJ=yes
16158       hardcode_shlibpath_var_GCJ=no
16159       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16160         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16161         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16162         export_dynamic_flag_spec_GCJ='${wl}-E'
16163       else
16164        case $host_os in
16165          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16166            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16167            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16168            ;;
16169          *)
16170            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16171            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16172            ;;
16173        esac
16174       fi
16175       ;;
16176
16177     os2*)
16178       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16179       hardcode_minus_L_GCJ=yes
16180       allow_undefined_flag_GCJ=unsupported
16181       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'
16182       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16183       ;;
16184
16185     osf3*)
16186       if test "$GCC" = yes; then
16187         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16188         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'
16189       else
16190         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16191         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'
16192       fi
16193       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16194       hardcode_libdir_separator_GCJ=:
16195       ;;
16196
16197     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16198       if test "$GCC" = yes; then
16199         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16200         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'
16201         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16202       else
16203         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16204         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'
16205         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~
16206         $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'
16207
16208         # Both c and cxx compiler support -rpath directly
16209         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16210       fi
16211       hardcode_libdir_separator_GCJ=:
16212       ;;
16213
16214     sco3.2v5*)
16215       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216       hardcode_shlibpath_var_GCJ=no
16217       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16218       runpath_var=LD_RUN_PATH
16219       hardcode_runpath_var=yes
16220       ;;
16221
16222     solaris*)
16223       no_undefined_flag_GCJ=' -z text'
16224       if test "$GCC" = yes; then
16225         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16226         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16227           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16228       else
16229         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16230         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16231         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16232       fi
16233       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16234       hardcode_shlibpath_var_GCJ=no
16235       case $host_os in
16236       solaris2.[0-5] | solaris2.[0-5].*) ;;
16237       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16238         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16239       esac
16240       link_all_deplibs_GCJ=yes
16241       ;;
16242
16243     sunos4*)
16244       if test "x$host_vendor" = xsequent; then
16245         # Use $CC to link under sequent, because it throws in some extra .o
16246         # files that make .init and .fini sections work.
16247         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16248       else
16249         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16250       fi
16251       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16252       hardcode_direct_GCJ=yes
16253       hardcode_minus_L_GCJ=yes
16254       hardcode_shlibpath_var_GCJ=no
16255       ;;
16256
16257     sysv4)
16258       case $host_vendor in
16259         sni)
16260           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261           hardcode_direct_GCJ=yes # is this really true???
16262         ;;
16263         siemens)
16264           ## LD is ld it makes a PLAMLIB
16265           ## CC just makes a GrossModule.
16266           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16267           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16268           hardcode_direct_GCJ=no
16269         ;;
16270         motorola)
16271           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16272           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16273         ;;
16274       esac
16275       runpath_var='LD_RUN_PATH'
16276       hardcode_shlibpath_var_GCJ=no
16277       ;;
16278
16279     sysv4.3*)
16280       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281       hardcode_shlibpath_var_GCJ=no
16282       export_dynamic_flag_spec_GCJ='-Bexport'
16283       ;;
16284
16285     sysv4*MP*)
16286       if test -d /usr/nec; then
16287         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16288         hardcode_shlibpath_var_GCJ=no
16289         runpath_var=LD_RUN_PATH
16290         hardcode_runpath_var=yes
16291         ld_shlibs_GCJ=yes
16292       fi
16293       ;;
16294
16295     sysv4.2uw2*)
16296       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16297       hardcode_direct_GCJ=yes
16298       hardcode_minus_L_GCJ=no
16299       hardcode_shlibpath_var_GCJ=no
16300       hardcode_runpath_var=yes
16301       runpath_var=LD_RUN_PATH
16302       ;;
16303
16304    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16305       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16306       if test "$GCC" = yes; then
16307         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16308       else
16309         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16310       fi
16311       runpath_var='LD_RUN_PATH'
16312       hardcode_shlibpath_var_GCJ=no
16313       ;;
16314
16315     sysv5*)
16316       no_undefined_flag_GCJ=' -z text'
16317       # $CC -shared without GNU ld will not create a library from C++
16318       # object files and a static libstdc++, better avoid it by now
16319       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16320       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16321                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16322       hardcode_libdir_flag_spec_GCJ=
16323       hardcode_shlibpath_var_GCJ=no
16324       runpath_var='LD_RUN_PATH'
16325       ;;
16326
16327     uts4*)
16328       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16330       hardcode_shlibpath_var_GCJ=no
16331       ;;
16332
16333     *)
16334       ld_shlibs_GCJ=no
16335       ;;
16336     esac
16337   fi
16338
16339 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16340 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16341 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16342
16343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16344 if test "$GCC" = yes; then
16345   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16346 fi
16347
16348 #
16349 # Do we need to explicitly link libc?
16350 #
16351 case "x$archive_cmds_need_lc_GCJ" in
16352 x|xyes)
16353   # Assume -lc should be added
16354   archive_cmds_need_lc_GCJ=yes
16355
16356   if test "$enable_shared" = yes && test "$GCC" = yes; then
16357     case $archive_cmds_GCJ in
16358     *'~'*)
16359       # FIXME: we may have to deal with multi-command sequences.
16360       ;;
16361     '$CC '*)
16362       # Test whether the compiler implicitly links with -lc since on some
16363       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16364       # to ld, don't add -lc before -lgcc.
16365       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16366 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16367       $rm conftest*
16368       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16369
16370       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371   (eval $ac_compile) 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } 2>conftest.err; then
16375         soname=conftest
16376         lib=conftest
16377         libobjs=conftest.$ac_objext
16378         deplibs=
16379         wl=$lt_prog_compiler_wl_GCJ
16380         compiler_flags=-v
16381         linker_flags=-v
16382         verstring=
16383         output_objdir=.
16384         libname=conftest
16385         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16386         allow_undefined_flag_GCJ=
16387         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16388   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }
16392         then
16393           archive_cmds_need_lc_GCJ=no
16394         else
16395           archive_cmds_need_lc_GCJ=yes
16396         fi
16397         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16398       else
16399         cat conftest.err 1>&5
16400       fi
16401       $rm conftest*
16402       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16403 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16404       ;;
16405     esac
16406   fi
16407   ;;
16408 esac
16409
16410 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16411 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16412 library_names_spec=
16413 libname_spec='lib$name'
16414 soname_spec=
16415 shrext_cmds=".so"
16416 postinstall_cmds=
16417 postuninstall_cmds=
16418 finish_cmds=
16419 finish_eval=
16420 shlibpath_var=
16421 shlibpath_overrides_runpath=unknown
16422 version_type=none
16423 dynamic_linker="$host_os ld.so"
16424 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16425 if test "$GCC" = yes; then
16426   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16427   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16428     # if the path contains ";" then we assume it to be the separator
16429     # otherwise default to the standard path separator (i.e. ":") - it is
16430     # assumed that no part of a normal pathname contains ";" but that should
16431     # okay in the real world where ";" in dirpaths is itself problematic.
16432     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16433   else
16434     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16435   fi
16436 else
16437   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16438 fi
16439 need_lib_prefix=unknown
16440 hardcode_into_libs=no
16441
16442 # when you set need_version to no, make sure it does not cause -set_version
16443 # flags to be left without arguments
16444 need_version=unknown
16445
16446 case $host_os in
16447 aix3*)
16448   version_type=linux
16449   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16450   shlibpath_var=LIBPATH
16451
16452   # AIX 3 has no versioning support, so we append a major version to the name.
16453   soname_spec='${libname}${release}${shared_ext}$major'
16454   ;;
16455
16456 aix4* | aix5*)
16457   version_type=linux
16458   need_lib_prefix=no
16459   need_version=no
16460   hardcode_into_libs=yes
16461   if test "$host_cpu" = ia64; then
16462     # AIX 5 supports IA64
16463     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16464     shlibpath_var=LD_LIBRARY_PATH
16465   else
16466     # With GCC up to 2.95.x, collect2 would create an import file
16467     # for dependence libraries.  The import file would start with
16468     # the line `#! .'.  This would cause the generated library to
16469     # depend on `.', always an invalid library.  This was fixed in
16470     # development snapshots of GCC prior to 3.0.
16471     case $host_os in
16472       aix4 | aix4.[01] | aix4.[01].*)
16473       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16474            echo ' yes '
16475            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16476         :
16477       else
16478         can_build_shared=no
16479       fi
16480       ;;
16481     esac
16482     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16483     # soname into executable. Probably we can add versioning support to
16484     # collect2, so additional links can be useful in future.
16485     if test "$aix_use_runtimelinking" = yes; then
16486       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16487       # instead of lib<name>.a to let people know that these are not
16488       # typical AIX shared libraries.
16489       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490     else
16491       # We preserve .a as extension for shared libraries through AIX4.2
16492       # and later when we are not doing run time linking.
16493       library_names_spec='${libname}${release}.a $libname.a'
16494       soname_spec='${libname}${release}${shared_ext}$major'
16495     fi
16496     shlibpath_var=LIBPATH
16497   fi
16498   ;;
16499
16500 amigaos*)
16501   library_names_spec='$libname.ixlibrary $libname.a'
16502   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16503   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'
16504   ;;
16505
16506 beos*)
16507   library_names_spec='${libname}${shared_ext}'
16508   dynamic_linker="$host_os ld.so"
16509   shlibpath_var=LIBRARY_PATH
16510   ;;
16511
16512 bsdi4*)
16513   version_type=linux
16514   need_version=no
16515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16518   shlibpath_var=LD_LIBRARY_PATH
16519   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16520   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16521   # the default ld.so.conf also contains /usr/contrib/lib and
16522   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16523   # libtool to hard-code these into programs
16524   ;;
16525
16526 cygwin* | mingw* | pw32*)
16527   version_type=windows
16528   shrext_cmds=".dll"
16529   need_version=no
16530   need_lib_prefix=no
16531
16532   case $GCC,$host_os in
16533   yes,cygwin* | yes,mingw* | yes,pw32*)
16534     library_names_spec='$libname.dll.a'
16535     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16536     postinstall_cmds='base_file=`basename \${file}`~
16537       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16538       dldir=$destdir/`dirname \$dlpath`~
16539       test -d \$dldir || mkdir -p \$dldir~
16540       $install_prog $dir/$dlname \$dldir/$dlname'
16541     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16542       dlpath=$dir/\$dldll~
16543        $rm \$dlpath'
16544     shlibpath_overrides_runpath=yes
16545
16546     case $host_os in
16547     cygwin*)
16548       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16549       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16550       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16551       ;;
16552     mingw*)
16553       # MinGW DLLs use traditional 'lib' prefix
16554       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16555       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16556       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16557         # It is most probably a Windows format PATH printed by
16558         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16559         # path with ; separators, and with drive letters. We can handle the
16560         # drive letters (cygwin fileutils understands them), so leave them,
16561         # especially as we might pass files found there to a mingw objdump,
16562         # which wouldn't understand a cygwinified path. Ahh.
16563         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16564       else
16565         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16566       fi
16567       ;;
16568     pw32*)
16569       # pw32 DLLs use 'pw' prefix rather than 'lib'
16570       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16571       ;;
16572     esac
16573     ;;
16574
16575   *)
16576     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16577     ;;
16578   esac
16579   dynamic_linker='Win32 ld.exe'
16580   # FIXME: first we should search . and the directory the executable is in
16581   shlibpath_var=PATH
16582   ;;
16583
16584 darwin* | rhapsody*)
16585   dynamic_linker="$host_os dyld"
16586   version_type=darwin
16587   need_lib_prefix=no
16588   need_version=no
16589   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16590   soname_spec='${libname}${release}${major}$shared_ext'
16591   shlibpath_overrides_runpath=yes
16592   shlibpath_var=DYLD_LIBRARY_PATH
16593   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16594   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16595   if test "$GCC" = yes; then
16596     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"`
16597   else
16598     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16599   fi
16600   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16601   ;;
16602
16603 dgux*)
16604   version_type=linux
16605   need_lib_prefix=no
16606   need_version=no
16607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16608   soname_spec='${libname}${release}${shared_ext}$major'
16609   shlibpath_var=LD_LIBRARY_PATH
16610   ;;
16611
16612 freebsd1*)
16613   dynamic_linker=no
16614   ;;
16615
16616 kfreebsd*-gnu)
16617   version_type=linux
16618   need_lib_prefix=no
16619   need_version=no
16620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16621   soname_spec='${libname}${release}${shared_ext}$major'
16622   shlibpath_var=LD_LIBRARY_PATH
16623   shlibpath_overrides_runpath=no
16624   hardcode_into_libs=yes
16625   dynamic_linker='GNU ld.so'
16626   ;;
16627
16628 freebsd*)
16629   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16630   version_type=freebsd-$objformat
16631   case $version_type in
16632     freebsd-elf*)
16633       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16634       need_version=no
16635       need_lib_prefix=no
16636       ;;
16637     freebsd-*)
16638       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16639       need_version=yes
16640       ;;
16641   esac
16642   shlibpath_var=LD_LIBRARY_PATH
16643   case $host_os in
16644   freebsd2*)
16645     shlibpath_overrides_runpath=yes
16646     ;;
16647   freebsd3.01* | freebsdelf3.01*)
16648     shlibpath_overrides_runpath=yes
16649     hardcode_into_libs=yes
16650     ;;
16651   *) # from 3.2 on
16652     shlibpath_overrides_runpath=no
16653     hardcode_into_libs=yes
16654     ;;
16655   esac
16656   ;;
16657
16658 gnu*)
16659   version_type=linux
16660   need_lib_prefix=no
16661   need_version=no
16662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16663   soname_spec='${libname}${release}${shared_ext}$major'
16664   shlibpath_var=LD_LIBRARY_PATH
16665   hardcode_into_libs=yes
16666   ;;
16667
16668 hpux9* | hpux10* | hpux11*)
16669   # Give a soname corresponding to the major version so that dld.sl refuses to
16670   # link against other versions.
16671   version_type=sunos
16672   need_lib_prefix=no
16673   need_version=no
16674   case "$host_cpu" in
16675   ia64*)
16676     shrext_cmds='.so'
16677     hardcode_into_libs=yes
16678     dynamic_linker="$host_os dld.so"
16679     shlibpath_var=LD_LIBRARY_PATH
16680     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682     soname_spec='${libname}${release}${shared_ext}$major'
16683     if test "X$HPUX_IA64_MODE" = X32; then
16684       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16685     else
16686       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16687     fi
16688     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16689     ;;
16690    hppa*64*)
16691      shrext_cmds='.sl'
16692      hardcode_into_libs=yes
16693      dynamic_linker="$host_os dld.sl"
16694      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16695      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16696      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697      soname_spec='${libname}${release}${shared_ext}$major'
16698      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16699      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16700      ;;
16701    *)
16702     shrext_cmds='.sl'
16703     dynamic_linker="$host_os dld.sl"
16704     shlibpath_var=SHLIB_PATH
16705     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707     soname_spec='${libname}${release}${shared_ext}$major'
16708     ;;
16709   esac
16710   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16711   postinstall_cmds='chmod 555 $lib'
16712   ;;
16713
16714 irix5* | irix6* | nonstopux*)
16715   case $host_os in
16716     nonstopux*) version_type=nonstopux ;;
16717     *)
16718         if test "$lt_cv_prog_gnu_ld" = yes; then
16719                 version_type=linux
16720         else
16721                 version_type=irix
16722         fi ;;
16723   esac
16724   need_lib_prefix=no
16725   need_version=no
16726   soname_spec='${libname}${release}${shared_ext}$major'
16727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16728   case $host_os in
16729   irix5* | nonstopux*)
16730     libsuff= shlibsuff=
16731     ;;
16732   *)
16733     case $LD in # libtool.m4 will add one of these switches to LD
16734     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16735       libsuff= shlibsuff= libmagic=32-bit;;
16736     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16737       libsuff=32 shlibsuff=N32 libmagic=N32;;
16738     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16739       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16740     *) libsuff= shlibsuff= libmagic=never-match;;
16741     esac
16742     ;;
16743   esac
16744   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16745   shlibpath_overrides_runpath=no
16746   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16747   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16748   hardcode_into_libs=yes
16749   ;;
16750
16751 # No shared lib support for Linux oldld, aout, or coff.
16752 linux*oldld* | linux*aout* | linux*coff*)
16753   dynamic_linker=no
16754   ;;
16755
16756 # This must be Linux ELF.
16757 linux*)
16758   version_type=linux
16759   need_lib_prefix=no
16760   need_version=no
16761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762   soname_spec='${libname}${release}${shared_ext}$major'
16763   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16764   shlibpath_var=LD_LIBRARY_PATH
16765   shlibpath_overrides_runpath=no
16766   # This implies no fast_install, which is unacceptable.
16767   # Some rework will be needed to allow for fast_install
16768   # before this can be enabled.
16769   hardcode_into_libs=yes
16770
16771   # Append ld.so.conf contents to the search path
16772   if test -f /etc/ld.so.conf; then
16773     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16774     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16775   fi
16776
16777   # We used to test for /lib/ld.so.1 and disable shared libraries on
16778   # powerpc, because MkLinux only supported shared libraries with the
16779   # GNU dynamic linker.  Since this was broken with cross compilers,
16780   # most powerpc-linux boxes support dynamic linking these days and
16781   # people can always --disable-shared, the test was removed, and we
16782   # assume the GNU/Linux dynamic linker is in use.
16783   dynamic_linker='GNU/Linux ld.so'
16784   ;;
16785
16786 knetbsd*-gnu)
16787   version_type=linux
16788   need_lib_prefix=no
16789   need_version=no
16790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16791   soname_spec='${libname}${release}${shared_ext}$major'
16792   shlibpath_var=LD_LIBRARY_PATH
16793   shlibpath_overrides_runpath=no
16794   hardcode_into_libs=yes
16795   dynamic_linker='GNU ld.so'
16796   ;;
16797
16798 netbsd*)
16799   version_type=sunos
16800   need_lib_prefix=no
16801   need_version=no
16802   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16804     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16805     dynamic_linker='NetBSD (a.out) ld.so'
16806   else
16807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16808     soname_spec='${libname}${release}${shared_ext}$major'
16809     dynamic_linker='NetBSD ld.elf_so'
16810   fi
16811   shlibpath_var=LD_LIBRARY_PATH
16812   shlibpath_overrides_runpath=yes
16813   hardcode_into_libs=yes
16814   ;;
16815
16816 newsos6)
16817   version_type=linux
16818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819   shlibpath_var=LD_LIBRARY_PATH
16820   shlibpath_overrides_runpath=yes
16821   ;;
16822
16823 nto-qnx*)
16824   version_type=linux
16825   need_lib_prefix=no
16826   need_version=no
16827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828   soname_spec='${libname}${release}${shared_ext}$major'
16829   shlibpath_var=LD_LIBRARY_PATH
16830   shlibpath_overrides_runpath=yes
16831   ;;
16832
16833 openbsd*)
16834   version_type=sunos
16835   need_lib_prefix=no
16836   need_version=yes
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839   shlibpath_var=LD_LIBRARY_PATH
16840   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16841     case $host_os in
16842       openbsd2.[89] | openbsd2.[89].*)
16843         shlibpath_overrides_runpath=no
16844         ;;
16845       *)
16846         shlibpath_overrides_runpath=yes
16847         ;;
16848       esac
16849   else
16850     shlibpath_overrides_runpath=yes
16851   fi
16852   ;;
16853
16854 os2*)
16855   libname_spec='$name'
16856   shrext_cmds=".dll"
16857   need_lib_prefix=no
16858   library_names_spec='$libname${shared_ext} $libname.a'
16859   dynamic_linker='OS/2 ld.exe'
16860   shlibpath_var=LIBPATH
16861   ;;
16862
16863 osf3* | osf4* | osf5*)
16864   version_type=osf
16865   need_lib_prefix=no
16866   need_version=no
16867   soname_spec='${libname}${release}${shared_ext}$major'
16868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869   shlibpath_var=LD_LIBRARY_PATH
16870   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16871   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16872   ;;
16873
16874 sco3.2v5*)
16875   version_type=osf
16876   soname_spec='${libname}${release}${shared_ext}$major'
16877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878   shlibpath_var=LD_LIBRARY_PATH
16879   ;;
16880
16881 solaris*)
16882   version_type=linux
16883   need_lib_prefix=no
16884   need_version=no
16885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886   soname_spec='${libname}${release}${shared_ext}$major'
16887   shlibpath_var=LD_LIBRARY_PATH
16888   shlibpath_overrides_runpath=yes
16889   hardcode_into_libs=yes
16890   # ldd complains unless libraries are executable
16891   postinstall_cmds='chmod +x $lib'
16892   ;;
16893
16894 sunos4*)
16895   version_type=sunos
16896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16897   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16898   shlibpath_var=LD_LIBRARY_PATH
16899   shlibpath_overrides_runpath=yes
16900   if test "$with_gnu_ld" = yes; then
16901     need_lib_prefix=no
16902   fi
16903   need_version=yes
16904   ;;
16905
16906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16907   version_type=linux
16908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   case $host_vendor in
16912     sni)
16913       shlibpath_overrides_runpath=no
16914       need_lib_prefix=no
16915       export_dynamic_flag_spec='${wl}-Blargedynsym'
16916       runpath_var=LD_RUN_PATH
16917       ;;
16918     siemens)
16919       need_lib_prefix=no
16920       ;;
16921     motorola)
16922       need_lib_prefix=no
16923       need_version=no
16924       shlibpath_overrides_runpath=no
16925       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16926       ;;
16927   esac
16928   ;;
16929
16930 sysv4*MP*)
16931   if test -d /usr/nec ;then
16932     version_type=linux
16933     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16934     soname_spec='$libname${shared_ext}.$major'
16935     shlibpath_var=LD_LIBRARY_PATH
16936   fi
16937   ;;
16938
16939 uts4*)
16940   version_type=linux
16941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942   soname_spec='${libname}${release}${shared_ext}$major'
16943   shlibpath_var=LD_LIBRARY_PATH
16944   ;;
16945
16946 *)
16947   dynamic_linker=no
16948   ;;
16949 esac
16950 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16951 echo "${ECHO_T}$dynamic_linker" >&6
16952 test "$dynamic_linker" = no && can_build_shared=no
16953
16954 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16955 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16956 hardcode_action_GCJ=
16957 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16958    test -n "$runpath_var GCJ" || \
16959    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16960
16961   # We can hardcode non-existant directories.
16962   if test "$hardcode_direct_GCJ" != no &&
16963      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16964      # have to relink, otherwise we might link with an installed library
16965      # when we should be linking with a yet-to-be-installed one
16966      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16967      test "$hardcode_minus_L_GCJ" != no; then
16968     # Linking always hardcodes the temporary library directory.
16969     hardcode_action_GCJ=relink
16970   else
16971     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16972     hardcode_action_GCJ=immediate
16973   fi
16974 else
16975   # We cannot hardcode anything, or else we can only hardcode existing
16976   # directories.
16977   hardcode_action_GCJ=unsupported
16978 fi
16979 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16980 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16981
16982 if test "$hardcode_action_GCJ" = relink; then
16983   # Fast installation is not supported
16984   enable_fast_install=no
16985 elif test "$shlibpath_overrides_runpath" = yes ||
16986      test "$enable_shared" = no; then
16987   # Fast installation is not necessary
16988   enable_fast_install=needless
16989 fi
16990
16991 striplib=
16992 old_striplib=
16993 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16994 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16995 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16996   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16997   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16998   echo "$as_me:$LINENO: result: yes" >&5
16999 echo "${ECHO_T}yes" >&6
17000 else
17001 # FIXME - insert some real tests, host_os isn't really good enough
17002   case $host_os in
17003    darwin*)
17004        if test -n "$STRIP" ; then
17005          striplib="$STRIP -x"
17006          echo "$as_me:$LINENO: result: yes" >&5
17007 echo "${ECHO_T}yes" >&6
17008        else
17009   echo "$as_me:$LINENO: result: no" >&5
17010 echo "${ECHO_T}no" >&6
17011 fi
17012        ;;
17013    *)
17014   echo "$as_me:$LINENO: result: no" >&5
17015 echo "${ECHO_T}no" >&6
17016     ;;
17017   esac
17018 fi
17019
17020 if test "x$enable_dlopen" != xyes; then
17021   enable_dlopen=unknown
17022   enable_dlopen_self=unknown
17023   enable_dlopen_self_static=unknown
17024 else
17025   lt_cv_dlopen=no
17026   lt_cv_dlopen_libs=
17027
17028   case $host_os in
17029   beos*)
17030     lt_cv_dlopen="load_add_on"
17031     lt_cv_dlopen_libs=
17032     lt_cv_dlopen_self=yes
17033     ;;
17034
17035   mingw* | pw32*)
17036     lt_cv_dlopen="LoadLibrary"
17037     lt_cv_dlopen_libs=
17038    ;;
17039
17040   cygwin*)
17041     lt_cv_dlopen="dlopen"
17042     lt_cv_dlopen_libs=
17043    ;;
17044
17045   darwin*)
17046   # if libdl is installed we need to link against it
17047     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17048 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-ldl  $LIBS"
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h.  */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h.  */
17060
17061 /* Override any gcc2 internal prototype to avoid an error.  */
17062 #ifdef __cplusplus
17063 extern "C"
17064 #endif
17065 /* We use char because int might match the return type of a gcc2
17066    builtin and then its argument prototype would still apply.  */
17067 char dlopen ();
17068 int
17069 main ()
17070 {
17071 dlopen ();
17072   ;
17073   return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17078   (eval $ac_link) 2>conftest.er1
17079   ac_status=$?
17080   grep -v '^ *+' conftest.er1 >conftest.err
17081   rm -f conftest.er1
17082   cat conftest.err >&5
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } &&
17085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087   (eval $ac_try) 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; } &&
17091          { ac_try='test -s conftest$ac_exeext'
17092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093   (eval $ac_try) 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); }; }; then
17097   ac_cv_lib_dl_dlopen=yes
17098 else
17099   echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 ac_cv_lib_dl_dlopen=no
17103 fi
17104 rm -f conftest.err conftest.$ac_objext \
17105       conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17110 if test $ac_cv_lib_dl_dlopen = yes; then
17111   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17112 else
17113
17114     lt_cv_dlopen="dyld"
17115     lt_cv_dlopen_libs=
17116     lt_cv_dlopen_self=yes
17117
17118 fi
17119
17120    ;;
17121
17122   *)
17123     echo "$as_me:$LINENO: checking for shl_load" >&5
17124 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17125 if test "${ac_cv_func_shl_load+set}" = set; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17136 #define shl_load innocuous_shl_load
17137
17138 /* System header to define __stub macros and hopefully few prototypes,
17139     which can conflict with char shl_load (); below.
17140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141     <limits.h> exists even on freestanding compilers.  */
17142
17143 #ifdef __STDC__
17144 # include <limits.h>
17145 #else
17146 # include <assert.h>
17147 #endif
17148
17149 #undef shl_load
17150
17151 /* Override any gcc2 internal prototype to avoid an error.  */
17152 #ifdef __cplusplus
17153 extern "C"
17154 {
17155 #endif
17156 /* We use char because int might match the return type of a gcc2
17157    builtin and then its argument prototype would still apply.  */
17158 char shl_load ();
17159 /* The GNU C library defines this for functions which it implements
17160     to always fail with ENOSYS.  Some functions are actually named
17161     something starting with __ and the normal name is an alias.  */
17162 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17163 choke me
17164 #else
17165 char (*f) () = shl_load;
17166 #endif
17167 #ifdef __cplusplus
17168 }
17169 #endif
17170
17171 int
17172 main ()
17173 {
17174 return f != shl_load;
17175   ;
17176   return 0;
17177 }
17178 _ACEOF
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17181   (eval $ac_link) 2>conftest.er1
17182   ac_status=$?
17183   grep -v '^ *+' conftest.er1 >conftest.err
17184   rm -f conftest.er1
17185   cat conftest.err >&5
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); } &&
17188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190   (eval $ac_try) 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); }; } &&
17194          { ac_try='test -s conftest$ac_exeext'
17195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196   (eval $ac_try) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   ac_cv_func_shl_load=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 ac_cv_func_shl_load=no
17206 fi
17207 rm -f conftest.err conftest.$ac_objext \
17208       conftest$ac_exeext conftest.$ac_ext
17209 fi
17210 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17211 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17212 if test $ac_cv_func_shl_load = yes; then
17213   lt_cv_dlopen="shl_load"
17214 else
17215   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17216 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17217 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17218   echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220   ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-ldld  $LIBS"
17222 cat >conftest.$ac_ext <<_ACEOF
17223 /* confdefs.h.  */
17224 _ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h.  */
17228
17229 /* Override any gcc2 internal prototype to avoid an error.  */
17230 #ifdef __cplusplus
17231 extern "C"
17232 #endif
17233 /* We use char because int might match the return type of a gcc2
17234    builtin and then its argument prototype would still apply.  */
17235 char shl_load ();
17236 int
17237 main ()
17238 {
17239 shl_load ();
17240   ;
17241   return 0;
17242 }
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17246   (eval $ac_link) 2>conftest.er1
17247   ac_status=$?
17248   grep -v '^ *+' conftest.er1 >conftest.err
17249   rm -f conftest.er1
17250   cat conftest.err >&5
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } &&
17253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255   (eval $ac_try) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; } &&
17259          { ac_try='test -s conftest$ac_exeext'
17260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261   (eval $ac_try) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; }; then
17265   ac_cv_lib_dld_shl_load=yes
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_cv_lib_dld_shl_load=no
17271 fi
17272 rm -f conftest.err conftest.$ac_objext \
17273       conftest$ac_exeext conftest.$ac_ext
17274 LIBS=$ac_check_lib_save_LIBS
17275 fi
17276 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17277 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17278 if test $ac_cv_lib_dld_shl_load = yes; then
17279   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17280 else
17281   echo "$as_me:$LINENO: checking for dlopen" >&5
17282 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17283 if test "${ac_cv_func_dlopen+set}" = set; then
17284   echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286   cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17294 #define dlopen innocuous_dlopen
17295
17296 /* System header to define __stub macros and hopefully few prototypes,
17297     which can conflict with char dlopen (); below.
17298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17299     <limits.h> exists even on freestanding compilers.  */
17300
17301 #ifdef __STDC__
17302 # include <limits.h>
17303 #else
17304 # include <assert.h>
17305 #endif
17306
17307 #undef dlopen
17308
17309 /* Override any gcc2 internal prototype to avoid an error.  */
17310 #ifdef __cplusplus
17311 extern "C"
17312 {
17313 #endif
17314 /* We use char because int might match the return type of a gcc2
17315    builtin and then its argument prototype would still apply.  */
17316 char dlopen ();
17317 /* The GNU C library defines this for functions which it implements
17318     to always fail with ENOSYS.  Some functions are actually named
17319     something starting with __ and the normal name is an alias.  */
17320 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17321 choke me
17322 #else
17323 char (*f) () = dlopen;
17324 #endif
17325 #ifdef __cplusplus
17326 }
17327 #endif
17328
17329 int
17330 main ()
17331 {
17332 return f != dlopen;
17333   ;
17334   return 0;
17335 }
17336 _ACEOF
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17339   (eval $ac_link) 2>conftest.er1
17340   ac_status=$?
17341   grep -v '^ *+' conftest.er1 >conftest.err
17342   rm -f conftest.er1
17343   cat conftest.err >&5
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); } &&
17346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348   (eval $ac_try) 2>&5
17349   ac_status=$?
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); }; } &&
17352          { ac_try='test -s conftest$ac_exeext'
17353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354   (eval $ac_try) 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; }; then
17358   ac_cv_func_dlopen=yes
17359 else
17360   echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17362
17363 ac_cv_func_dlopen=no
17364 fi
17365 rm -f conftest.err conftest.$ac_objext \
17366       conftest$ac_exeext conftest.$ac_ext
17367 fi
17368 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17369 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17370 if test $ac_cv_func_dlopen = yes; then
17371   lt_cv_dlopen="dlopen"
17372 else
17373   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17374 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17375 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   ac_check_lib_save_LIBS=$LIBS
17379 LIBS="-ldl  $LIBS"
17380 cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386
17387 /* Override any gcc2 internal prototype to avoid an error.  */
17388 #ifdef __cplusplus
17389 extern "C"
17390 #endif
17391 /* We use char because int might match the return type of a gcc2
17392    builtin and then its argument prototype would still apply.  */
17393 char dlopen ();
17394 int
17395 main ()
17396 {
17397 dlopen ();
17398   ;
17399   return 0;
17400 }
17401 _ACEOF
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17404   (eval $ac_link) 2>conftest.er1
17405   ac_status=$?
17406   grep -v '^ *+' conftest.er1 >conftest.err
17407   rm -f conftest.er1
17408   cat conftest.err >&5
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); } &&
17411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413   (eval $ac_try) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; } &&
17417          { ac_try='test -s conftest$ac_exeext'
17418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419   (eval $ac_try) 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); }; }; then
17423   ac_cv_lib_dl_dlopen=yes
17424 else
17425   echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 ac_cv_lib_dl_dlopen=no
17429 fi
17430 rm -f conftest.err conftest.$ac_objext \
17431       conftest$ac_exeext conftest.$ac_ext
17432 LIBS=$ac_check_lib_save_LIBS
17433 fi
17434 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17435 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17436 if test $ac_cv_lib_dl_dlopen = yes; then
17437   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17438 else
17439   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17440 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17441 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17442   echo $ECHO_N "(cached) $ECHO_C" >&6
17443 else
17444   ac_check_lib_save_LIBS=$LIBS
17445 LIBS="-lsvld  $LIBS"
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452
17453 /* Override any gcc2 internal prototype to avoid an error.  */
17454 #ifdef __cplusplus
17455 extern "C"
17456 #endif
17457 /* We use char because int might match the return type of a gcc2
17458    builtin and then its argument prototype would still apply.  */
17459 char dlopen ();
17460 int
17461 main ()
17462 {
17463 dlopen ();
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470   (eval $ac_link) 2>conftest.er1
17471   ac_status=$?
17472   grep -v '^ *+' conftest.er1 >conftest.err
17473   rm -f conftest.er1
17474   cat conftest.err >&5
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); } &&
17477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479   (eval $ac_try) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); }; } &&
17483          { ac_try='test -s conftest$ac_exeext'
17484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485   (eval $ac_try) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; }; then
17489   ac_cv_lib_svld_dlopen=yes
17490 else
17491   echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17493
17494 ac_cv_lib_svld_dlopen=no
17495 fi
17496 rm -f conftest.err conftest.$ac_objext \
17497       conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17499 fi
17500 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17501 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17502 if test $ac_cv_lib_svld_dlopen = yes; then
17503   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17504 else
17505   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17506 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17507 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510   ac_check_lib_save_LIBS=$LIBS
17511 LIBS="-ldld  $LIBS"
17512 cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h.  */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h.  */
17518
17519 /* Override any gcc2 internal prototype to avoid an error.  */
17520 #ifdef __cplusplus
17521 extern "C"
17522 #endif
17523 /* We use char because int might match the return type of a gcc2
17524    builtin and then its argument prototype would still apply.  */
17525 char dld_link ();
17526 int
17527 main ()
17528 {
17529 dld_link ();
17530   ;
17531   return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536   (eval $ac_link) 2>conftest.er1
17537   ac_status=$?
17538   grep -v '^ *+' conftest.er1 >conftest.err
17539   rm -f conftest.er1
17540   cat conftest.err >&5
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); } &&
17543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545   (eval $ac_try) 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; } &&
17549          { ac_try='test -s conftest$ac_exeext'
17550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551   (eval $ac_try) 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); }; }; then
17555   ac_cv_lib_dld_dld_link=yes
17556 else
17557   echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17559
17560 ac_cv_lib_dld_dld_link=no
17561 fi
17562 rm -f conftest.err conftest.$ac_objext \
17563       conftest$ac_exeext conftest.$ac_ext
17564 LIBS=$ac_check_lib_save_LIBS
17565 fi
17566 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17567 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17568 if test $ac_cv_lib_dld_dld_link = yes; then
17569   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17570 fi
17571
17572
17573 fi
17574
17575
17576 fi
17577
17578
17579 fi
17580
17581
17582 fi
17583
17584
17585 fi
17586
17587     ;;
17588   esac
17589
17590   if test "x$lt_cv_dlopen" != xno; then
17591     enable_dlopen=yes
17592   else
17593     enable_dlopen=no
17594   fi
17595
17596   case $lt_cv_dlopen in
17597   dlopen)
17598     save_CPPFLAGS="$CPPFLAGS"
17599     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17600
17601     save_LDFLAGS="$LDFLAGS"
17602     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17603
17604     save_LIBS="$LIBS"
17605     LIBS="$lt_cv_dlopen_libs $LIBS"
17606
17607     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17608 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17609 if test "${lt_cv_dlopen_self+set}" = set; then
17610   echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612           if test "$cross_compiling" = yes; then :
17613   lt_cv_dlopen_self=cross
17614 else
17615   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17616   lt_status=$lt_dlunknown
17617   cat > conftest.$ac_ext <<EOF
17618 #line 17618 "configure"
17619 #include "confdefs.h"
17620
17621 #if HAVE_DLFCN_H
17622 #include <dlfcn.h>
17623 #endif
17624
17625 #include <stdio.h>
17626
17627 #ifdef RTLD_GLOBAL
17628 #  define LT_DLGLOBAL           RTLD_GLOBAL
17629 #else
17630 #  ifdef DL_GLOBAL
17631 #    define LT_DLGLOBAL         DL_GLOBAL
17632 #  else
17633 #    define LT_DLGLOBAL         0
17634 #  endif
17635 #endif
17636
17637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17638    find out it does not work in some platform. */
17639 #ifndef LT_DLLAZY_OR_NOW
17640 #  ifdef RTLD_LAZY
17641 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17642 #  else
17643 #    ifdef DL_LAZY
17644 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17645 #    else
17646 #      ifdef RTLD_NOW
17647 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17648 #      else
17649 #        ifdef DL_NOW
17650 #          define LT_DLLAZY_OR_NOW      DL_NOW
17651 #        else
17652 #          define LT_DLLAZY_OR_NOW      0
17653 #        endif
17654 #      endif
17655 #    endif
17656 #  endif
17657 #endif
17658
17659 #ifdef __cplusplus
17660 extern "C" void exit (int);
17661 #endif
17662
17663 void fnord() { int i=42;}
17664 int main ()
17665 {
17666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17667   int status = $lt_dlunknown;
17668
17669   if (self)
17670     {
17671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17673       /* dlclose (self); */
17674     }
17675
17676     exit (status);
17677 }
17678 EOF
17679   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680   (eval $ac_link) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17684     (./conftest; exit; ) 2>/dev/null
17685     lt_status=$?
17686     case x$lt_status in
17687       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17688       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17689       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17690     esac
17691   else :
17692     # compilation failed
17693     lt_cv_dlopen_self=no
17694   fi
17695 fi
17696 rm -fr conftest*
17697
17698
17699 fi
17700 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17701 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17702
17703     if test "x$lt_cv_dlopen_self" = xyes; then
17704       LDFLAGS="$LDFLAGS $link_static_flag"
17705       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17706 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17707 if test "${lt_cv_dlopen_self_static+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710           if test "$cross_compiling" = yes; then :
17711   lt_cv_dlopen_self_static=cross
17712 else
17713   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17714   lt_status=$lt_dlunknown
17715   cat > conftest.$ac_ext <<EOF
17716 #line 17716 "configure"
17717 #include "confdefs.h"
17718
17719 #if HAVE_DLFCN_H
17720 #include <dlfcn.h>
17721 #endif
17722
17723 #include <stdio.h>
17724
17725 #ifdef RTLD_GLOBAL
17726 #  define LT_DLGLOBAL           RTLD_GLOBAL
17727 #else
17728 #  ifdef DL_GLOBAL
17729 #    define LT_DLGLOBAL         DL_GLOBAL
17730 #  else
17731 #    define LT_DLGLOBAL         0
17732 #  endif
17733 #endif
17734
17735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17736    find out it does not work in some platform. */
17737 #ifndef LT_DLLAZY_OR_NOW
17738 #  ifdef RTLD_LAZY
17739 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17740 #  else
17741 #    ifdef DL_LAZY
17742 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17743 #    else
17744 #      ifdef RTLD_NOW
17745 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17746 #      else
17747 #        ifdef DL_NOW
17748 #          define LT_DLLAZY_OR_NOW      DL_NOW
17749 #        else
17750 #          define LT_DLLAZY_OR_NOW      0
17751 #        endif
17752 #      endif
17753 #    endif
17754 #  endif
17755 #endif
17756
17757 #ifdef __cplusplus
17758 extern "C" void exit (int);
17759 #endif
17760
17761 void fnord() { int i=42;}
17762 int main ()
17763 {
17764   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17765   int status = $lt_dlunknown;
17766
17767   if (self)
17768     {
17769       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17770       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17771       /* dlclose (self); */
17772     }
17773
17774     exit (status);
17775 }
17776 EOF
17777   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17778   (eval $ac_link) 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17782     (./conftest; exit; ) 2>/dev/null
17783     lt_status=$?
17784     case x$lt_status in
17785       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17786       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17787       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17788     esac
17789   else :
17790     # compilation failed
17791     lt_cv_dlopen_self_static=no
17792   fi
17793 fi
17794 rm -fr conftest*
17795
17796
17797 fi
17798 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17799 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17800     fi
17801
17802     CPPFLAGS="$save_CPPFLAGS"
17803     LDFLAGS="$save_LDFLAGS"
17804     LIBS="$save_LIBS"
17805     ;;
17806   esac
17807
17808   case $lt_cv_dlopen_self in
17809   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17810   *) enable_dlopen_self=unknown ;;
17811   esac
17812
17813   case $lt_cv_dlopen_self_static in
17814   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17815   *) enable_dlopen_self_static=unknown ;;
17816   esac
17817 fi
17818
17819
17820 # The else clause should only fire when bootstrapping the
17821 # libtool distribution, otherwise you forgot to ship ltmain.sh
17822 # with your package, and you will get complaints that there are
17823 # no rules to generate ltmain.sh.
17824 if test -f "$ltmain"; then
17825   # See if we are running on zsh, and set the options which allow our commands through
17826   # without removal of \ escapes.
17827   if test -n "${ZSH_VERSION+set}" ; then
17828     setopt NO_GLOB_SUBST
17829   fi
17830   # Now quote all the things that may contain metacharacters while being
17831   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17832   # variables and quote the copies for generation of the libtool script.
17833   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17834     SED SHELL STRIP \
17835     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17836     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17837     deplibs_check_method reload_flag reload_cmds need_locks \
17838     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17839     lt_cv_sys_global_symbol_to_c_name_address \
17840     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17841     old_postinstall_cmds old_postuninstall_cmds \
17842     compiler_GCJ \
17843     CC_GCJ \
17844     LD_GCJ \
17845     lt_prog_compiler_wl_GCJ \
17846     lt_prog_compiler_pic_GCJ \
17847     lt_prog_compiler_static_GCJ \
17848     lt_prog_compiler_no_builtin_flag_GCJ \
17849     export_dynamic_flag_spec_GCJ \
17850     thread_safe_flag_spec_GCJ \
17851     whole_archive_flag_spec_GCJ \
17852     enable_shared_with_static_runtimes_GCJ \
17853     old_archive_cmds_GCJ \
17854     old_archive_from_new_cmds_GCJ \
17855     predep_objects_GCJ \
17856     postdep_objects_GCJ \
17857     predeps_GCJ \
17858     postdeps_GCJ \
17859     compiler_lib_search_path_GCJ \
17860     archive_cmds_GCJ \
17861     archive_expsym_cmds_GCJ \
17862     postinstall_cmds_GCJ \
17863     postuninstall_cmds_GCJ \
17864     old_archive_from_expsyms_cmds_GCJ \
17865     allow_undefined_flag_GCJ \
17866     no_undefined_flag_GCJ \
17867     export_symbols_cmds_GCJ \
17868     hardcode_libdir_flag_spec_GCJ \
17869     hardcode_libdir_flag_spec_ld_GCJ \
17870     hardcode_libdir_separator_GCJ \
17871     hardcode_automatic_GCJ \
17872     module_cmds_GCJ \
17873     module_expsym_cmds_GCJ \
17874     lt_cv_prog_compiler_c_o_GCJ \
17875     exclude_expsyms_GCJ \
17876     include_expsyms_GCJ; do
17877
17878     case $var in
17879     old_archive_cmds_GCJ | \
17880     old_archive_from_new_cmds_GCJ | \
17881     archive_cmds_GCJ | \
17882     archive_expsym_cmds_GCJ | \
17883     module_cmds_GCJ | \
17884     module_expsym_cmds_GCJ | \
17885     old_archive_from_expsyms_cmds_GCJ | \
17886     export_symbols_cmds_GCJ | \
17887     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17888     postinstall_cmds | postuninstall_cmds | \
17889     old_postinstall_cmds | old_postuninstall_cmds | \
17890     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17891       # Double-quote double-evaled strings.
17892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17893       ;;
17894     *)
17895       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17896       ;;
17897     esac
17898   done
17899
17900   case $lt_echo in
17901   *'\$0 --fallback-echo"')
17902     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17903     ;;
17904   esac
17905
17906 cfgfile="$ofile"
17907
17908   cat <<__EOF__ >> "$cfgfile"
17909 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17910
17911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17912
17913 # Shell to use when invoking shell scripts.
17914 SHELL=$lt_SHELL
17915
17916 # Whether or not to build shared libraries.
17917 build_libtool_libs=$enable_shared
17918
17919 # Whether or not to build static libraries.
17920 build_old_libs=$enable_static
17921
17922 # Whether or not to add -lc for building shared libraries.
17923 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17924
17925 # Whether or not to disallow shared libs when runtime libs are static
17926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17927
17928 # Whether or not to optimize for fast installation.
17929 fast_install=$enable_fast_install
17930
17931 # The host system.
17932 host_alias=$host_alias
17933 host=$host
17934
17935 # An echo program that does not interpret backslashes.
17936 echo=$lt_echo
17937
17938 # The archiver.
17939 AR=$lt_AR
17940 AR_FLAGS=$lt_AR_FLAGS
17941
17942 # A C compiler.
17943 LTCC=$lt_LTCC
17944
17945 # A language-specific compiler.
17946 CC=$lt_compiler_GCJ
17947
17948 # Is the compiler the GNU C compiler?
17949 with_gcc=$GCC_GCJ
17950
17951 # An ERE matcher.
17952 EGREP=$lt_EGREP
17953
17954 # The linker used to build libraries.
17955 LD=$lt_LD_GCJ
17956
17957 # Whether we need hard or soft links.
17958 LN_S=$lt_LN_S
17959
17960 # A BSD-compatible nm program.
17961 NM=$lt_NM
17962
17963 # A symbol stripping program
17964 STRIP=$lt_STRIP
17965
17966 # Used to examine libraries when file_magic_cmd begins "file"
17967 MAGIC_CMD=$MAGIC_CMD
17968
17969 # Used on cygwin: DLL creation program.
17970 DLLTOOL="$DLLTOOL"
17971
17972 # Used on cygwin: object dumper.
17973 OBJDUMP="$OBJDUMP"
17974
17975 # Used on cygwin: assembler.
17976 AS="$AS"
17977
17978 # The name of the directory that contains temporary libtool files.
17979 objdir=$objdir
17980
17981 # How to create reloadable object files.
17982 reload_flag=$lt_reload_flag
17983 reload_cmds=$lt_reload_cmds
17984
17985 # How to pass a linker flag through the compiler.
17986 wl=$lt_lt_prog_compiler_wl_GCJ
17987
17988 # Object file suffix (normally "o").
17989 objext="$ac_objext"
17990
17991 # Old archive suffix (normally "a").
17992 libext="$libext"
17993
17994 # Shared library suffix (normally ".so").
17995 shrext_cmds='$shrext_cmds'
17996
17997 # Executable file suffix (normally "").
17998 exeext="$exeext"
17999
18000 # Additional compiler flags for building library objects.
18001 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18002 pic_mode=$pic_mode
18003
18004 # What is the maximum length of a command?
18005 max_cmd_len=$lt_cv_sys_max_cmd_len
18006
18007 # Does compiler simultaneously support -c and -o options?
18008 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18009
18010 # Must we lock files when doing compilation ?
18011 need_locks=$lt_need_locks
18012
18013 # Do we need the lib prefix for modules?
18014 need_lib_prefix=$need_lib_prefix
18015
18016 # Do we need a version for libraries?
18017 need_version=$need_version
18018
18019 # Whether dlopen is supported.
18020 dlopen_support=$enable_dlopen
18021
18022 # Whether dlopen of programs is supported.
18023 dlopen_self=$enable_dlopen_self
18024
18025 # Whether dlopen of statically linked programs is supported.
18026 dlopen_self_static=$enable_dlopen_self_static
18027
18028 # Compiler flag to prevent dynamic linking.
18029 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18030
18031 # Compiler flag to turn off builtin functions.
18032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18033
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18036
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18039
18040 # Compiler flag to generate thread-safe objects.
18041 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18042
18043 # Library versioning type.
18044 version_type=$version_type
18045
18046 # Format of library name prefix.
18047 libname_spec=$lt_libname_spec
18048
18049 # List of archive names.  First name is the real one, the rest are links.
18050 # The last name is the one that the linker finds with -lNAME.
18051 library_names_spec=$lt_library_names_spec
18052
18053 # The coded name of the library, if different from the real name.
18054 soname_spec=$lt_soname_spec
18055
18056 # Commands used to build and install an old-style archive.
18057 RANLIB=$lt_RANLIB
18058 old_archive_cmds=$lt_old_archive_cmds_GCJ
18059 old_postinstall_cmds=$lt_old_postinstall_cmds
18060 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18061
18062 # Create an old-style archive from a shared archive.
18063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18064
18065 # Create a temporary old-style archive to link instead of a shared archive.
18066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18067
18068 # Commands used to build and install a shared archive.
18069 archive_cmds=$lt_archive_cmds_GCJ
18070 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18071 postinstall_cmds=$lt_postinstall_cmds
18072 postuninstall_cmds=$lt_postuninstall_cmds
18073
18074 # Commands used to build a loadable module (assumed same as above if empty)
18075 module_cmds=$lt_module_cmds_GCJ
18076 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18077
18078 # Commands to strip libraries.
18079 old_striplib=$lt_old_striplib
18080 striplib=$lt_striplib
18081
18082 # Dependencies to place before the objects being linked to create a
18083 # shared library.
18084 predep_objects=$lt_predep_objects_GCJ
18085
18086 # Dependencies to place after the objects being linked to create a
18087 # shared library.
18088 postdep_objects=$lt_postdep_objects_GCJ
18089
18090 # Dependencies to place before the objects being linked to create a
18091 # shared library.
18092 predeps=$lt_predeps_GCJ
18093
18094 # Dependencies to place after the objects being linked to create a
18095 # shared library.
18096 postdeps=$lt_postdeps_GCJ
18097
18098 # The library search path used internally by the compiler when linking
18099 # a shared library.
18100 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18101
18102 # Method to check whether dependent libraries are shared objects.
18103 deplibs_check_method=$lt_deplibs_check_method
18104
18105 # Command to use when deplibs_check_method == file_magic.
18106 file_magic_cmd=$lt_file_magic_cmd
18107
18108 # Flag that allows shared libraries with undefined symbols to be built.
18109 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18110
18111 # Flag that forces no undefined symbols.
18112 no_undefined_flag=$lt_no_undefined_flag_GCJ
18113
18114 # Commands used to finish a libtool library installation in a directory.
18115 finish_cmds=$lt_finish_cmds
18116
18117 # Same as above, but a single script fragment to be evaled but not shown.
18118 finish_eval=$lt_finish_eval
18119
18120 # Take the output of nm and produce a listing of raw symbols and C names.
18121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18122
18123 # Transform the output of nm in a proper C declaration
18124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18125
18126 # Transform the output of nm in a C name address pair
18127 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18128
18129 # This is the shared library runtime path variable.
18130 runpath_var=$runpath_var
18131
18132 # This is the shared library path variable.
18133 shlibpath_var=$shlibpath_var
18134
18135 # Is shlibpath searched before the hard-coded library search path?
18136 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18137
18138 # How to hardcode a shared library path into an executable.
18139 hardcode_action=$hardcode_action_GCJ
18140
18141 # Whether we should hardcode library paths into libraries.
18142 hardcode_into_libs=$hardcode_into_libs
18143
18144 # Flag to hardcode \$libdir into a binary during linking.
18145 # This must work even if \$libdir does not exist.
18146 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18147
18148 # If ld is used when linking, flag to hardcode \$libdir into
18149 # a binary during linking. This must work even if \$libdir does
18150 # not exist.
18151 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18152
18153 # Whether we need a single -rpath flag with a separated argument.
18154 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18155
18156 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18157 # resulting binary.
18158 hardcode_direct=$hardcode_direct_GCJ
18159
18160 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18161 # resulting binary.
18162 hardcode_minus_L=$hardcode_minus_L_GCJ
18163
18164 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18165 # the resulting binary.
18166 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18167
18168 # Set to yes if building a shared library automatically hardcodes DIR into the library
18169 # and all subsequent libraries and executables linked against it.
18170 hardcode_automatic=$hardcode_automatic_GCJ
18171
18172 # Variables whose values should be saved in libtool wrapper scripts and
18173 # restored at relink time.
18174 variables_saved_for_relink="$variables_saved_for_relink"
18175
18176 # Whether libtool must link a program against all its dependency libraries.
18177 link_all_deplibs=$link_all_deplibs_GCJ
18178
18179 # Compile-time system search path for libraries
18180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18181
18182 # Run-time system search path for libraries
18183 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18184
18185 # Fix the shell variable \$srcfile for the compiler.
18186 fix_srcfile_path="$fix_srcfile_path_GCJ"
18187
18188 # Set to yes if exported symbols are required.
18189 always_export_symbols=$always_export_symbols_GCJ
18190
18191 # The commands to list exported symbols.
18192 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18193
18194 # The commands to extract the exported symbol list from a shared archive.
18195 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18196
18197 # Symbols that should not be listed in the preloaded symbols.
18198 exclude_expsyms=$lt_exclude_expsyms_GCJ
18199
18200 # Symbols that must always be exported.
18201 include_expsyms=$lt_include_expsyms_GCJ
18202
18203 # ### END LIBTOOL TAG CONFIG: $tagname
18204
18205 __EOF__
18206
18207
18208 else
18209   # If there is no Makefile yet, we rely on a make rule to execute
18210   # `config.status --recheck' to rerun these tests and create the
18211   # libtool script then.
18212   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18213   if test -f "$ltmain_in"; then
18214     test -f Makefile && make "$ltmain"
18215   fi
18216 fi
18217
18218
18219 ac_ext=c
18220 ac_cpp='$CPP $CPPFLAGS'
18221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224
18225 CC="$lt_save_CC"
18226
18227         else
18228           tagname=""
18229         fi
18230         ;;
18231
18232       RC)
18233
18234
18235
18236 # Source file extension for RC test sources.
18237 ac_ext=rc
18238
18239 # Object file extension for compiled RC test sources.
18240 objext=o
18241 objext_RC=$objext
18242
18243 # Code to be used in simple compile tests
18244 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18245
18246 # Code to be used in simple link tests
18247 lt_simple_link_test_code="$lt_simple_compile_test_code"
18248
18249 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18250
18251 # If no C compiler was specified, use CC.
18252 LTCC=${LTCC-"$CC"}
18253
18254 # Allow CC to be a program name with arguments.
18255 compiler=$CC
18256
18257
18258 # Allow CC to be a program name with arguments.
18259 lt_save_CC="$CC"
18260 CC=${RC-"windres"}
18261 compiler=$CC
18262 compiler_RC=$CC
18263 lt_cv_prog_compiler_c_o_RC=yes
18264
18265 # The else clause should only fire when bootstrapping the
18266 # libtool distribution, otherwise you forgot to ship ltmain.sh
18267 # with your package, and you will get complaints that there are
18268 # no rules to generate ltmain.sh.
18269 if test -f "$ltmain"; then
18270   # See if we are running on zsh, and set the options which allow our commands through
18271   # without removal of \ escapes.
18272   if test -n "${ZSH_VERSION+set}" ; then
18273     setopt NO_GLOB_SUBST
18274   fi
18275   # Now quote all the things that may contain metacharacters while being
18276   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18277   # variables and quote the copies for generation of the libtool script.
18278   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18279     SED SHELL STRIP \
18280     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18281     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18282     deplibs_check_method reload_flag reload_cmds need_locks \
18283     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18284     lt_cv_sys_global_symbol_to_c_name_address \
18285     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18286     old_postinstall_cmds old_postuninstall_cmds \
18287     compiler_RC \
18288     CC_RC \
18289     LD_RC \
18290     lt_prog_compiler_wl_RC \
18291     lt_prog_compiler_pic_RC \
18292     lt_prog_compiler_static_RC \
18293     lt_prog_compiler_no_builtin_flag_RC \
18294     export_dynamic_flag_spec_RC \
18295     thread_safe_flag_spec_RC \
18296     whole_archive_flag_spec_RC \
18297     enable_shared_with_static_runtimes_RC \
18298     old_archive_cmds_RC \
18299     old_archive_from_new_cmds_RC \
18300     predep_objects_RC \
18301     postdep_objects_RC \
18302     predeps_RC \
18303     postdeps_RC \
18304     compiler_lib_search_path_RC \
18305     archive_cmds_RC \
18306     archive_expsym_cmds_RC \
18307     postinstall_cmds_RC \
18308     postuninstall_cmds_RC \
18309     old_archive_from_expsyms_cmds_RC \
18310     allow_undefined_flag_RC \
18311     no_undefined_flag_RC \
18312     export_symbols_cmds_RC \
18313     hardcode_libdir_flag_spec_RC \
18314     hardcode_libdir_flag_spec_ld_RC \
18315     hardcode_libdir_separator_RC \
18316     hardcode_automatic_RC \
18317     module_cmds_RC \
18318     module_expsym_cmds_RC \
18319     lt_cv_prog_compiler_c_o_RC \
18320     exclude_expsyms_RC \
18321     include_expsyms_RC; do
18322
18323     case $var in
18324     old_archive_cmds_RC | \
18325     old_archive_from_new_cmds_RC | \
18326     archive_cmds_RC | \
18327     archive_expsym_cmds_RC | \
18328     module_cmds_RC | \
18329     module_expsym_cmds_RC | \
18330     old_archive_from_expsyms_cmds_RC | \
18331     export_symbols_cmds_RC | \
18332     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18333     postinstall_cmds | postuninstall_cmds | \
18334     old_postinstall_cmds | old_postuninstall_cmds | \
18335     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18336       # Double-quote double-evaled strings.
18337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18338       ;;
18339     *)
18340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18341       ;;
18342     esac
18343   done
18344
18345   case $lt_echo in
18346   *'\$0 --fallback-echo"')
18347     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18348     ;;
18349   esac
18350
18351 cfgfile="$ofile"
18352
18353   cat <<__EOF__ >> "$cfgfile"
18354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18355
18356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18357
18358 # Shell to use when invoking shell scripts.
18359 SHELL=$lt_SHELL
18360
18361 # Whether or not to build shared libraries.
18362 build_libtool_libs=$enable_shared
18363
18364 # Whether or not to build static libraries.
18365 build_old_libs=$enable_static
18366
18367 # Whether or not to add -lc for building shared libraries.
18368 build_libtool_need_lc=$archive_cmds_need_lc_RC
18369
18370 # Whether or not to disallow shared libs when runtime libs are static
18371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18372
18373 # Whether or not to optimize for fast installation.
18374 fast_install=$enable_fast_install
18375
18376 # The host system.
18377 host_alias=$host_alias
18378 host=$host
18379
18380 # An echo program that does not interpret backslashes.
18381 echo=$lt_echo
18382
18383 # The archiver.
18384 AR=$lt_AR
18385 AR_FLAGS=$lt_AR_FLAGS
18386
18387 # A C compiler.
18388 LTCC=$lt_LTCC
18389
18390 # A language-specific compiler.
18391 CC=$lt_compiler_RC
18392
18393 # Is the compiler the GNU C compiler?
18394 with_gcc=$GCC_RC
18395
18396 # An ERE matcher.
18397 EGREP=$lt_EGREP
18398
18399 # The linker used to build libraries.
18400 LD=$lt_LD_RC
18401
18402 # Whether we need hard or soft links.
18403 LN_S=$lt_LN_S
18404
18405 # A BSD-compatible nm program.
18406 NM=$lt_NM
18407
18408 # A symbol stripping program
18409 STRIP=$lt_STRIP
18410
18411 # Used to examine libraries when file_magic_cmd begins "file"
18412 MAGIC_CMD=$MAGIC_CMD
18413
18414 # Used on cygwin: DLL creation program.
18415 DLLTOOL="$DLLTOOL"
18416
18417 # Used on cygwin: object dumper.
18418 OBJDUMP="$OBJDUMP"
18419
18420 # Used on cygwin: assembler.
18421 AS="$AS"
18422
18423 # The name of the directory that contains temporary libtool files.
18424 objdir=$objdir
18425
18426 # How to create reloadable object files.
18427 reload_flag=$lt_reload_flag
18428 reload_cmds=$lt_reload_cmds
18429
18430 # How to pass a linker flag through the compiler.
18431 wl=$lt_lt_prog_compiler_wl_RC
18432
18433 # Object file suffix (normally "o").
18434 objext="$ac_objext"
18435
18436 # Old archive suffix (normally "a").
18437 libext="$libext"
18438
18439 # Shared library suffix (normally ".so").
18440 shrext_cmds='$shrext_cmds'
18441
18442 # Executable file suffix (normally "").
18443 exeext="$exeext"
18444
18445 # Additional compiler flags for building library objects.
18446 pic_flag=$lt_lt_prog_compiler_pic_RC
18447 pic_mode=$pic_mode
18448
18449 # What is the maximum length of a command?
18450 max_cmd_len=$lt_cv_sys_max_cmd_len
18451
18452 # Does compiler simultaneously support -c and -o options?
18453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18454
18455 # Must we lock files when doing compilation ?
18456 need_locks=$lt_need_locks
18457
18458 # Do we need the lib prefix for modules?
18459 need_lib_prefix=$need_lib_prefix
18460
18461 # Do we need a version for libraries?
18462 need_version=$need_version
18463
18464 # Whether dlopen is supported.
18465 dlopen_support=$enable_dlopen
18466
18467 # Whether dlopen of programs is supported.
18468 dlopen_self=$enable_dlopen_self
18469
18470 # Whether dlopen of statically linked programs is supported.
18471 dlopen_self_static=$enable_dlopen_self_static
18472
18473 # Compiler flag to prevent dynamic linking.
18474 link_static_flag=$lt_lt_prog_compiler_static_RC
18475
18476 # Compiler flag to turn off builtin functions.
18477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18478
18479 # Compiler flag to allow reflexive dlopens.
18480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18481
18482 # Compiler flag to generate shared objects directly from archives.
18483 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18484
18485 # Compiler flag to generate thread-safe objects.
18486 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18487
18488 # Library versioning type.
18489 version_type=$version_type
18490
18491 # Format of library name prefix.
18492 libname_spec=$lt_libname_spec
18493
18494 # List of archive names.  First name is the real one, the rest are links.
18495 # The last name is the one that the linker finds with -lNAME.
18496 library_names_spec=$lt_library_names_spec
18497
18498 # The coded name of the library, if different from the real name.
18499 soname_spec=$lt_soname_spec
18500
18501 # Commands used to build and install an old-style archive.
18502 RANLIB=$lt_RANLIB
18503 old_archive_cmds=$lt_old_archive_cmds_RC
18504 old_postinstall_cmds=$lt_old_postinstall_cmds
18505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18506
18507 # Create an old-style archive from a shared archive.
18508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18509
18510 # Create a temporary old-style archive to link instead of a shared archive.
18511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18512
18513 # Commands used to build and install a shared archive.
18514 archive_cmds=$lt_archive_cmds_RC
18515 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18516 postinstall_cmds=$lt_postinstall_cmds
18517 postuninstall_cmds=$lt_postuninstall_cmds
18518
18519 # Commands used to build a loadable module (assumed same as above if empty)
18520 module_cmds=$lt_module_cmds_RC
18521 module_expsym_cmds=$lt_module_expsym_cmds_RC
18522
18523 # Commands to strip libraries.
18524 old_striplib=$lt_old_striplib
18525 striplib=$lt_striplib
18526
18527 # Dependencies to place before the objects being linked to create a
18528 # shared library.
18529 predep_objects=$lt_predep_objects_RC
18530
18531 # Dependencies to place after the objects being linked to create a
18532 # shared library.
18533 postdep_objects=$lt_postdep_objects_RC
18534
18535 # Dependencies to place before the objects being linked to create a
18536 # shared library.
18537 predeps=$lt_predeps_RC
18538
18539 # Dependencies to place after the objects being linked to create a
18540 # shared library.
18541 postdeps=$lt_postdeps_RC
18542
18543 # The library search path used internally by the compiler when linking
18544 # a shared library.
18545 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18546
18547 # Method to check whether dependent libraries are shared objects.
18548 deplibs_check_method=$lt_deplibs_check_method
18549
18550 # Command to use when deplibs_check_method == file_magic.
18551 file_magic_cmd=$lt_file_magic_cmd
18552
18553 # Flag that allows shared libraries with undefined symbols to be built.
18554 allow_undefined_flag=$lt_allow_undefined_flag_RC
18555
18556 # Flag that forces no undefined symbols.
18557 no_undefined_flag=$lt_no_undefined_flag_RC
18558
18559 # Commands used to finish a libtool library installation in a directory.
18560 finish_cmds=$lt_finish_cmds
18561
18562 # Same as above, but a single script fragment to be evaled but not shown.
18563 finish_eval=$lt_finish_eval
18564
18565 # Take the output of nm and produce a listing of raw symbols and C names.
18566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18567
18568 # Transform the output of nm in a proper C declaration
18569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18570
18571 # Transform the output of nm in a C name address pair
18572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18573
18574 # This is the shared library runtime path variable.
18575 runpath_var=$runpath_var
18576
18577 # This is the shared library path variable.
18578 shlibpath_var=$shlibpath_var
18579
18580 # Is shlibpath searched before the hard-coded library search path?
18581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18582
18583 # How to hardcode a shared library path into an executable.
18584 hardcode_action=$hardcode_action_RC
18585
18586 # Whether we should hardcode library paths into libraries.
18587 hardcode_into_libs=$hardcode_into_libs
18588
18589 # Flag to hardcode \$libdir into a binary during linking.
18590 # This must work even if \$libdir does not exist.
18591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18592
18593 # If ld is used when linking, flag to hardcode \$libdir into
18594 # a binary during linking. This must work even if \$libdir does
18595 # not exist.
18596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18597
18598 # Whether we need a single -rpath flag with a separated argument.
18599 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18600
18601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18602 # resulting binary.
18603 hardcode_direct=$hardcode_direct_RC
18604
18605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18606 # resulting binary.
18607 hardcode_minus_L=$hardcode_minus_L_RC
18608
18609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18610 # the resulting binary.
18611 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18612
18613 # Set to yes if building a shared library automatically hardcodes DIR into the library
18614 # and all subsequent libraries and executables linked against it.
18615 hardcode_automatic=$hardcode_automatic_RC
18616
18617 # Variables whose values should be saved in libtool wrapper scripts and
18618 # restored at relink time.
18619 variables_saved_for_relink="$variables_saved_for_relink"
18620
18621 # Whether libtool must link a program against all its dependency libraries.
18622 link_all_deplibs=$link_all_deplibs_RC
18623
18624 # Compile-time system search path for libraries
18625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18626
18627 # Run-time system search path for libraries
18628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18629
18630 # Fix the shell variable \$srcfile for the compiler.
18631 fix_srcfile_path="$fix_srcfile_path_RC"
18632
18633 # Set to yes if exported symbols are required.
18634 always_export_symbols=$always_export_symbols_RC
18635
18636 # The commands to list exported symbols.
18637 export_symbols_cmds=$lt_export_symbols_cmds_RC
18638
18639 # The commands to extract the exported symbol list from a shared archive.
18640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18641
18642 # Symbols that should not be listed in the preloaded symbols.
18643 exclude_expsyms=$lt_exclude_expsyms_RC
18644
18645 # Symbols that must always be exported.
18646 include_expsyms=$lt_include_expsyms_RC
18647
18648 # ### END LIBTOOL TAG CONFIG: $tagname
18649
18650 __EOF__
18651
18652
18653 else
18654   # If there is no Makefile yet, we rely on a make rule to execute
18655   # `config.status --recheck' to rerun these tests and create the
18656   # libtool script then.
18657   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18658   if test -f "$ltmain_in"; then
18659     test -f Makefile && make "$ltmain"
18660   fi
18661 fi
18662
18663
18664 ac_ext=c
18665 ac_cpp='$CPP $CPPFLAGS'
18666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18669
18670 CC="$lt_save_CC"
18671
18672         ;;
18673
18674       *)
18675         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18676 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18677    { (exit 1); exit 1; }; }
18678         ;;
18679       esac
18680
18681       # Append the new tag name to the list of available tags.
18682       if test -n "$tagname" ; then
18683       available_tags="$available_tags $tagname"
18684     fi
18685     fi
18686   done
18687   IFS="$lt_save_ifs"
18688
18689   # Now substitute the updated list of available tags.
18690   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18691     mv "${ofile}T" "$ofile"
18692     chmod +x "$ofile"
18693   else
18694     rm -f "${ofile}T"
18695     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18696 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18697    { (exit 1); exit 1; }; }
18698   fi
18699 fi
18700
18701
18702
18703 # This can be used to rebuild libtool when needed
18704 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18705
18706 # Always use our own libtool.
18707 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18708
18709 # Prevent multiple expansion
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722 # Check whether --with-system-libtool or --without-system-libtool was given.
18723 if test "${with_system_libtool+set}" = set; then
18724   withval="$with_system_libtool"
18725    # Extract the first word of "libtool", so it can be a program name with args.
18726 set dummy libtool; ac_word=$2
18727 echo "$as_me:$LINENO: checking for $ac_word" >&5
18728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18729 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18730   echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732   case $LIBTOOL in
18733   [\\/]* | ?:[\\/]*)
18734   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18735   ;;
18736   *)
18737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 as_dummy="$PATH:/usr/local/bin"
18739 for as_dir in $as_dummy
18740 do
18741   IFS=$as_save_IFS
18742   test -z "$as_dir" && as_dir=.
18743   for ac_exec_ext in '' $ac_executable_extensions; do
18744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18745     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18747     break 2
18748   fi
18749 done
18750 done
18751
18752   ;;
18753 esac
18754 fi
18755 LIBTOOL=$ac_cv_path_LIBTOOL
18756
18757 if test -n "$LIBTOOL"; then
18758   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18759 echo "${ECHO_T}$LIBTOOL" >&6
18760 else
18761   echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6
18763 fi
18764
18765 else
18766
18767   LIBTOOL="`pwd`/libtool"
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782 fi;
18783
18784
18785
18786 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18787 if test "${enable_strict_dependencies+set}" = set; then
18788   enableval="$enable_strict_dependencies"
18789
18790 fi;
18791
18792 logdir='${localstatedir}/log/radius'
18793 echo "$as_me:$LINENO: checking logdir" >&5
18794 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18795
18796 # Check whether --with-logdir or --without-logdir was given.
18797 if test "${with_logdir+set}" = set; then
18798   withval="$with_logdir"
18799    case "$withval" in
18800     no)
18801         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18802 echo "$as_me: error: Need logdir" >&2;}
18803    { (exit 1); exit 1; }; }
18804         ;;
18805     yes)
18806         ;;
18807     *)
18808         logdir="$withval"
18809         ;;
18810   esac
18811
18812 fi;
18813
18814 echo "$as_me:$LINENO: result: $logdir" >&5
18815 echo "${ECHO_T}$logdir" >&6
18816
18817 radacctdir='${logdir}/radacct'
18818 echo "$as_me:$LINENO: checking radacctdir" >&5
18819 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18820
18821 # Check whether --with-radacctdir or --without-radacctdir was given.
18822 if test "${with_radacctdir+set}" = set; then
18823   withval="$with_radacctdir"
18824    case "$withval" in
18825     no)
18826         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18827 echo "$as_me: error: Need radacctdir" >&2;}
18828    { (exit 1); exit 1; }; }
18829         ;;
18830     yes)
18831         ;;
18832     *)
18833         radacctdir="$withval"
18834         ;;
18835   esac
18836
18837 fi;
18838
18839 echo "$as_me:$LINENO: result: $radacctdir" >&5
18840 echo "${ECHO_T}$radacctdir" >&6
18841
18842 raddbdir='${sysconfdir}/raddb'
18843 echo "$as_me:$LINENO: checking raddbdir" >&5
18844 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18845
18846 # Check whether --with-raddbdir or --without-raddbdir was given.
18847 if test "${with_raddbdir+set}" = set; then
18848   withval="$with_raddbdir"
18849    case "$withval" in
18850     no)
18851         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18852 echo "$as_me: error: Need raddbdir" >&2;}
18853    { (exit 1); exit 1; }; }
18854         ;;
18855     yes)
18856         ;;
18857     *)
18858         raddbdir="$withval"
18859         ;;
18860   esac
18861
18862 fi;
18863
18864 echo "$as_me:$LINENO: result: $raddbdir" >&5
18865 echo "${ECHO_T}$raddbdir" >&6
18866
18867 ASCEND_BINARY=yes
18868
18869 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18870 if test "${with_ascend_binary+set}" = set; then
18871   withval="$with_ascend_binary"
18872    case "$withval" in
18873     yes)
18874         ;;
18875     *)
18876         ASCEND_BINARY=""
18877   esac
18878
18879 fi;
18880 if test "X$ASCEND_BINARY" = "Xyes"; then
18881   cat >>confdefs.h <<\_ACEOF
18882 #define ASCEND_BINARY 1
18883 _ACEOF
18884
18885 fi
18886
18887 WITH_THREADS=yes
18888
18889 # Check whether --with-threads or --without-threads was given.
18890 if test "${with_threads+set}" = set; then
18891   withval="$with_threads"
18892    case "$withval" in
18893     yes)
18894         ;;
18895     *)
18896         WITH_THREADS=""
18897   esac
18898
18899 fi;
18900
18901 WITH_SNMP=yes
18902
18903 # Check whether --with-snmp or --without-snmp was given.
18904 if test "${with_snmp+set}" = set; then
18905   withval="$with_snmp"
18906    case "$withval" in
18907     yes)
18908         ;;
18909     *)
18910         WITH_SNMP=no
18911   esac
18912
18913 fi;
18914
18915 rad_enable_largefiles=no
18916
18917 # Check whether --with-large-files or --without-large-files was given.
18918 if test "${with_large_files+set}" = set; then
18919   withval="$with_large_files"
18920    case "$withval" in
18921     yes)
18922         rad_enable_largefiles=yes
18923         ;;
18924     *)
18925         ;;
18926   esac
18927
18928 fi;
18929
18930
18931
18932 STATIC_MODULES=
18933
18934 # Check whether --with-static_modules or --without-static_modules was given.
18935 if test "${with_static_modules+set}" = set; then
18936   withval="$with_static_modules"
18937
18938   for i in $withval; do
18939     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18940   done
18941
18942 fi;
18943
18944 # Check whether --enable-developer or --disable-developer was given.
18945 if test "${enable_developer+set}" = set; then
18946   enableval="$enable_developer"
18947    case "$enableval" in
18948     no)
18949         developer=no
18950         ;;
18951     *)
18952         developer=yes
18953   esac
18954
18955 fi;
18956
18957 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18958     developer="yes"
18959 fi
18960
18961 EXPERIMENTAL=
18962
18963 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18964 if test "${with_experimental_modules+set}" = set; then
18965   withval="$with_experimental_modules"
18966    case "$withval" in
18967     yes)
18968         EXPERIMENTAL=yes
18969         ;;
18970     *)
18971   esac
18972
18973 fi;
18974
18975
18976 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18977 if test "${with_openssl_includes+set}" = set; then
18978   withval="$with_openssl_includes"
18979    case "$withval" in
18980     *) OPENSSL_INCLUDE_DIR="$withval"
18981         ;;
18982   esac
18983
18984 fi;
18985
18986
18987 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18988 if test "${with_openssl_libraries+set}" = set; then
18989   withval="$with_openssl_libraries"
18990    case "$withval" in
18991     *) OPENSSL_LIB_DIR="$withval"
18992         ;;
18993   esac
18994
18995 fi;
18996
18997
18998
18999 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19000 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19001   withval="$with_rlm_FOO_lib_dir"
19002    case "$withval" in
19003     *)
19004         ;;
19005   esac
19006
19007 fi;
19008
19009
19010 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19011 if test "${with_rlm_FOO_include_dir+set}" = set; then
19012   withval="$with_rlm_FOO_include_dir"
19013    case "$withval" in
19014     *)
19015         ;;
19016   esac
19017
19018 fi;
19019
19020
19021 WITH_UDPFROMTO=no
19022
19023 # Check whether --with-udpfromto or --without-udpfromto was given.
19024 if test "${with_udpfromto+set}" = set; then
19025   withval="$with_udpfromto"
19026    case "$withval" in
19027     yes)
19028         WITH_UDPFROMTO=yes
19029         ;;
19030     *)
19031         WITH_UDPFROMTO=no
19032   esac
19033
19034 fi;
19035
19036 if test "x$WITH_UDPFROMTO" = "xyes"; then
19037         cat >>confdefs.h <<\_ACEOF
19038 #define WITH_UDPFROMTO 1
19039 _ACEOF
19040
19041 fi
19042
19043
19044 CHECKRAD=checkrad.pl
19045 # Extract the first word of "perl", so it can be a program name with args.
19046 set dummy perl; ac_word=$2
19047 echo "$as_me:$LINENO: checking for $ac_word" >&5
19048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19049 if test "${ac_cv_path_PERL+set}" = set; then
19050   echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052   case $PERL in
19053   [\\/]* | ?:[\\/]*)
19054   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19055   ;;
19056   *)
19057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19058 for as_dir in $PATH
19059 do
19060   IFS=$as_save_IFS
19061   test -z "$as_dir" && as_dir=.
19062   for ac_exec_ext in '' $ac_executable_extensions; do
19063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19064     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19066     break 2
19067   fi
19068 done
19069 done
19070
19071   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19072   ;;
19073 esac
19074 fi
19075 PERL=$ac_cv_path_PERL
19076
19077 if test -n "$PERL"; then
19078   echo "$as_me:$LINENO: result: $PERL" >&5
19079 echo "${ECHO_T}$PERL" >&6
19080 else
19081   echo "$as_me:$LINENO: result: no" >&5
19082 echo "${ECHO_T}no" >&6
19083 fi
19084
19085 if test "x$ac_cv_path_PERL" = "x"; then
19086   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19087 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19088 fi
19089 # Extract the first word of "snmpget", so it can be a program name with args.
19090 set dummy snmpget; ac_word=$2
19091 echo "$as_me:$LINENO: checking for $ac_word" >&5
19092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093 if test "${ac_cv_path_SNMPGET+set}" = set; then
19094   echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096   case $SNMPGET in
19097   [\\/]* | ?:[\\/]*)
19098   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19099   ;;
19100   *)
19101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102 for as_dir in $PATH
19103 do
19104   IFS=$as_save_IFS
19105   test -z "$as_dir" && as_dir=.
19106   for ac_exec_ext in '' $ac_executable_extensions; do
19107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19110     break 2
19111   fi
19112 done
19113 done
19114
19115   ;;
19116 esac
19117 fi
19118 SNMPGET=$ac_cv_path_SNMPGET
19119
19120 if test -n "$SNMPGET"; then
19121   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19122 echo "${ECHO_T}$SNMPGET" >&6
19123 else
19124   echo "$as_me:$LINENO: result: no" >&5
19125 echo "${ECHO_T}no" >&6
19126 fi
19127
19128 if test "x$ac_cv_path_SNMPGET" = "x"; then
19129   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19130 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19131 fi
19132
19133 # Extract the first word of "snmpwalk", so it can be a program name with args.
19134 set dummy snmpwalk; ac_word=$2
19135 echo "$as_me:$LINENO: checking for $ac_word" >&5
19136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19137 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140   case $SNMPWALK in
19141   [\\/]* | ?:[\\/]*)
19142   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19143   ;;
19144   *)
19145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19147 do
19148   IFS=$as_save_IFS
19149   test -z "$as_dir" && as_dir=.
19150   for ac_exec_ext in '' $ac_executable_extensions; do
19151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19152     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19154     break 2
19155   fi
19156 done
19157 done
19158
19159   ;;
19160 esac
19161 fi
19162 SNMPWALK=$ac_cv_path_SNMPWALK
19163
19164 if test -n "$SNMPWALK"; then
19165   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19166 echo "${ECHO_T}$SNMPWALK" >&6
19167 else
19168   echo "$as_me:$LINENO: result: no" >&5
19169 echo "${ECHO_T}no" >&6
19170 fi
19171
19172 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19173   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19174 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19175 fi
19176
19177 # Extract the first word of "rusers", so it can be a program name with args.
19178 set dummy rusers; ac_word=$2
19179 echo "$as_me:$LINENO: checking for $ac_word" >&5
19180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19181 if test "${ac_cv_path_RUSERS+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   case $RUSERS in
19185   [\\/]* | ?:[\\/]*)
19186   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19187   ;;
19188   *)
19189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190 for as_dir in $PATH
19191 do
19192   IFS=$as_save_IFS
19193   test -z "$as_dir" && as_dir=.
19194   for ac_exec_ext in '' $ac_executable_extensions; do
19195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19196     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19198     break 2
19199   fi
19200 done
19201 done
19202
19203   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19204   ;;
19205 esac
19206 fi
19207 RUSERS=$ac_cv_path_RUSERS
19208
19209 if test -n "$RUSERS"; then
19210   echo "$as_me:$LINENO: result: $RUSERS" >&5
19211 echo "${ECHO_T}$RUSERS" >&6
19212 else
19213   echo "$as_me:$LINENO: result: no" >&5
19214 echo "${ECHO_T}no" >&6
19215 fi
19216
19217
19218 missing_dir=`cd $ac_aux_dir && pwd`
19219 echo "$as_me:$LINENO: checking for working aclocal" >&5
19220 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19221 # Run test in a subshell; some versions of sh will print an error if
19222 # an executable is not found, even if stderr is redirected.
19223 # Redirect stdin to placate older versions of autoconf.  Sigh.
19224 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19225    ACLOCAL=aclocal
19226    echo "$as_me:$LINENO: result: found" >&5
19227 echo "${ECHO_T}found" >&6
19228 else
19229    ACLOCAL="$missing_dir/missing aclocal"
19230    echo "$as_me:$LINENO: result: missing" >&5
19231 echo "${ECHO_T}missing" >&6
19232 fi
19233
19234 echo "$as_me:$LINENO: checking for working autoconf" >&5
19235 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19236 # Run test in a subshell; some versions of sh will print an error if
19237 # an executable is not found, even if stderr is redirected.
19238 # Redirect stdin to placate older versions of autoconf.  Sigh.
19239 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19240    AUTOCONF=autoconf
19241    echo "$as_me:$LINENO: result: found" >&5
19242 echo "${ECHO_T}found" >&6
19243 else
19244    AUTOCONF="$missing_dir/missing autoconf"
19245    echo "$as_me:$LINENO: result: missing" >&5
19246 echo "${ECHO_T}missing" >&6
19247 fi
19248
19249 echo "$as_me:$LINENO: checking for working autoheader" >&5
19250 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19251 # Run test in a subshell; some versions of sh will print an error if
19252 # an executable is not found, even if stderr is redirected.
19253 # Redirect stdin to placate older versions of autoconf.  Sigh.
19254 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19255    AUTOHEADER=autoheader
19256    echo "$as_me:$LINENO: result: found" >&5
19257 echo "${ECHO_T}found" >&6
19258 else
19259    AUTOHEADER="$missing_dir/missing autoheader"
19260    echo "$as_me:$LINENO: result: missing" >&5
19261 echo "${ECHO_T}missing" >&6
19262 fi
19263
19264
19265 # Extract the first word of "locate", so it can be a program name with args.
19266 set dummy locate; ac_word=$2
19267 echo "$as_me:$LINENO: checking for $ac_word" >&5
19268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19269 if test "${ac_cv_path_LOCATE+set}" = set; then
19270   echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272   case $LOCATE in
19273   [\\/]* | ?:[\\/]*)
19274   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19275   ;;
19276   *)
19277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19279 do
19280   IFS=$as_save_IFS
19281   test -z "$as_dir" && as_dir=.
19282   for ac_exec_ext in '' $ac_executable_extensions; do
19283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19284     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19286     break 2
19287   fi
19288 done
19289 done
19290
19291   ;;
19292 esac
19293 fi
19294 LOCATE=$ac_cv_path_LOCATE
19295
19296 if test -n "$LOCATE"; then
19297   echo "$as_me:$LINENO: result: $LOCATE" >&5
19298 echo "${ECHO_T}$LOCATE" >&6
19299 else
19300   echo "$as_me:$LINENO: result: no" >&5
19301 echo "${ECHO_T}no" >&6
19302 fi
19303
19304 # Extract the first word of "dirname", so it can be a program name with args.
19305 set dummy dirname; ac_word=$2
19306 echo "$as_me:$LINENO: checking for $ac_word" >&5
19307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19308 if test "${ac_cv_path_DIRNAME+set}" = set; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311   case $DIRNAME in
19312   [\\/]* | ?:[\\/]*)
19313   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19314   ;;
19315   *)
19316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19318 do
19319   IFS=$as_save_IFS
19320   test -z "$as_dir" && as_dir=.
19321   for ac_exec_ext in '' $ac_executable_extensions; do
19322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19323     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19325     break 2
19326   fi
19327 done
19328 done
19329
19330   ;;
19331 esac
19332 fi
19333 DIRNAME=$ac_cv_path_DIRNAME
19334
19335 if test -n "$DIRNAME"; then
19336   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19337 echo "${ECHO_T}$DIRNAME" >&6
19338 else
19339   echo "$as_me:$LINENO: result: no" >&5
19340 echo "${ECHO_T}no" >&6
19341 fi
19342
19343 # Extract the first word of "grep", so it can be a program name with args.
19344 set dummy grep; ac_word=$2
19345 echo "$as_me:$LINENO: checking for $ac_word" >&5
19346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19347 if test "${ac_cv_path_GREP+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   case $GREP in
19351   [\\/]* | ?:[\\/]*)
19352   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19353   ;;
19354   *)
19355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19357 do
19358   IFS=$as_save_IFS
19359   test -z "$as_dir" && as_dir=.
19360   for ac_exec_ext in '' $ac_executable_extensions; do
19361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19362     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19364     break 2
19365   fi
19366 done
19367 done
19368
19369   ;;
19370 esac
19371 fi
19372 GREP=$ac_cv_path_GREP
19373
19374 if test -n "$GREP"; then
19375   echo "$as_me:$LINENO: result: $GREP" >&5
19376 echo "${ECHO_T}$GREP" >&6
19377 else
19378   echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6
19380 fi
19381
19382
19383
19384 old_CFLAGS=$CFLAGS
19385 if test "x$WITH_THREADS" = "xyes"; then
19386   if test $ac_cv_prog_suncc = "yes"; then
19387     CFLAGS="$CFLAGS -mt"
19388   fi
19389
19390
19391 for ac_header in pthread.h
19392 do
19393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19395   echo "$as_me:$LINENO: checking for $ac_header" >&5
19396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19398   echo $ECHO_N "(cached) $ECHO_C" >&6
19399 fi
19400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19402 else
19403   # Is the header compilable?
19404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412 $ac_includes_default
19413 #include <$ac_header>
19414 _ACEOF
19415 rm -f conftest.$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417   (eval $ac_compile) 2>conftest.er1
19418   ac_status=$?
19419   grep -v '^ *+' conftest.er1 >conftest.err
19420   rm -f conftest.er1
19421   cat conftest.err >&5
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); } &&
19424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426   (eval $ac_try) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; } &&
19430          { ac_try='test -s conftest.$ac_objext'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; }; then
19436   ac_header_compiler=yes
19437 else
19438   echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_header_compiler=no
19442 fi
19443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19445 echo "${ECHO_T}$ac_header_compiler" >&6
19446
19447 # Is the header present?
19448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h.  */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h.  */
19456 #include <$ac_header>
19457 _ACEOF
19458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19460   ac_status=$?
19461   grep -v '^ *+' conftest.er1 >conftest.err
19462   rm -f conftest.er1
19463   cat conftest.err >&5
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } >/dev/null; then
19466   if test -s conftest.err; then
19467     ac_cpp_err=$ac_c_preproc_warn_flag
19468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19469   else
19470     ac_cpp_err=
19471   fi
19472 else
19473   ac_cpp_err=yes
19474 fi
19475 if test -z "$ac_cpp_err"; then
19476   ac_header_preproc=yes
19477 else
19478   echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481   ac_header_preproc=no
19482 fi
19483 rm -f conftest.err conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19485 echo "${ECHO_T}$ac_header_preproc" >&6
19486
19487 # So?  What about this header?
19488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19489   yes:no: )
19490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19494     ac_header_preproc=yes
19495     ;;
19496   no:yes:* )
19497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19509     (
19510       cat <<\_ASBOX
19511 ## ------------------------------------------ ##
19512 ## Report this to the AC_PACKAGE_NAME lists.  ##
19513 ## ------------------------------------------ ##
19514 _ASBOX
19515     ) |
19516       sed "s/^/$as_me: WARNING:     /" >&2
19517     ;;
19518 esac
19519 echo "$as_me:$LINENO: checking for $ac_header" >&5
19520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19522   echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524   eval "$as_ac_Header=\$ac_header_preproc"
19525 fi
19526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19528
19529 fi
19530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19531   cat >>confdefs.h <<_ACEOF
19532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19533 _ACEOF
19534
19535 else
19536    WITH_THREADS="no"
19537 fi
19538
19539 done
19540
19541
19542   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19543 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19544 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   ac_check_lib_save_LIBS=$LIBS
19548 LIBS="-lpthread  $LIBS"
19549 cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19555
19556 /* Override any gcc2 internal prototype to avoid an error.  */
19557 #ifdef __cplusplus
19558 extern "C"
19559 #endif
19560 /* We use char because int might match the return type of a gcc2
19561    builtin and then its argument prototype would still apply.  */
19562 char pthread_create ();
19563 int
19564 main ()
19565 {
19566 pthread_create ();
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19573   (eval $ac_link) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; } &&
19586          { ac_try='test -s conftest$ac_exeext'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; }; then
19592   ac_cv_lib_pthread_pthread_create=yes
19593 else
19594   echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 ac_cv_lib_pthread_pthread_create=no
19598 fi
19599 rm -f conftest.err conftest.$ac_objext \
19600       conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19602 fi
19603 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19604 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19605 if test $ac_cv_lib_pthread_pthread_create = yes; then
19606    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19607                   LIBS="$LIBS -lpthread"
19608 else
19609   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19610 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19611 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614   ac_check_lib_save_LIBS=$LIBS
19615 LIBS="-lc_r  $LIBS"
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h.  */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h.  */
19622
19623 /* Override any gcc2 internal prototype to avoid an error.  */
19624 #ifdef __cplusplus
19625 extern "C"
19626 #endif
19627 /* We use char because int might match the return type of a gcc2
19628    builtin and then its argument prototype would still apply.  */
19629 char pthread_create ();
19630 int
19631 main ()
19632 {
19633 pthread_create ();
19634   ;
19635   return 0;
19636 }
19637 _ACEOF
19638 rm -f conftest.$ac_objext conftest$ac_exeext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19640   (eval $ac_link) 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } &&
19647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649   (eval $ac_try) 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; } &&
19653          { ac_try='test -s conftest$ac_exeext'
19654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655   (eval $ac_try) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; }; then
19659   ac_cv_lib_c_r_pthread_create=yes
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 ac_cv_lib_c_r_pthread_create=no
19665 fi
19666 rm -f conftest.err conftest.$ac_objext \
19667       conftest$ac_exeext conftest.$ac_ext
19668 LIBS=$ac_check_lib_save_LIBS
19669 fi
19670 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19671 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19672 if test $ac_cv_lib_c_r_pthread_create = yes; then
19673    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19674 else
19675    WITH_THREADS="no"
19676
19677 fi
19678
19679
19680 fi
19681
19682 fi
19683
19684 if test "x$WITH_THREADS" != "xyes"; then
19685   CFLAGS=$old_CFLAGS
19686   ac_cv_header_pthread_h="no"
19687   WITH_THREADS=no
19688 else
19689
19690   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19691 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19692 if test "${ac_cv_search_sem_init+set}" = set; then
19693   echo $ECHO_N "(cached) $ECHO_C" >&6
19694 else
19695   ac_func_search_save_LIBS=$LIBS
19696 ac_cv_search_sem_init=no
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h.  */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h.  */
19703
19704 /* Override any gcc2 internal prototype to avoid an error.  */
19705 #ifdef __cplusplus
19706 extern "C"
19707 #endif
19708 /* We use char because int might match the return type of a gcc2
19709    builtin and then its argument prototype would still apply.  */
19710 char sem_init ();
19711 int
19712 main ()
19713 {
19714 sem_init ();
19715   ;
19716   return 0;
19717 }
19718 _ACEOF
19719 rm -f conftest.$ac_objext conftest$ac_exeext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721   (eval $ac_link) 2>conftest.er1
19722   ac_status=$?
19723   grep -v '^ *+' conftest.er1 >conftest.err
19724   rm -f conftest.er1
19725   cat conftest.err >&5
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); } &&
19728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730   (eval $ac_try) 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; } &&
19734          { ac_try='test -s conftest$ac_exeext'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; }; then
19740   ac_cv_search_sem_init="none required"
19741 else
19742   echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19744
19745 fi
19746 rm -f conftest.err conftest.$ac_objext \
19747       conftest$ac_exeext conftest.$ac_ext
19748 if test "$ac_cv_search_sem_init" = no; then
19749   for ac_lib in pthread sem posix4 rt; do
19750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19751     cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757
19758 /* Override any gcc2 internal prototype to avoid an error.  */
19759 #ifdef __cplusplus
19760 extern "C"
19761 #endif
19762 /* We use char because int might match the return type of a gcc2
19763    builtin and then its argument prototype would still apply.  */
19764 char sem_init ();
19765 int
19766 main ()
19767 {
19768 sem_init ();
19769   ;
19770   return 0;
19771 }
19772 _ACEOF
19773 rm -f conftest.$ac_objext conftest$ac_exeext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19775   (eval $ac_link) 2>conftest.er1
19776   ac_status=$?
19777   grep -v '^ *+' conftest.er1 >conftest.err
19778   rm -f conftest.er1
19779   cat conftest.err >&5
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } &&
19782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784   (eval $ac_try) 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; } &&
19788          { ac_try='test -s conftest$ac_exeext'
19789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790   (eval $ac_try) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); }; }; then
19794   ac_cv_search_sem_init="-l$ac_lib"
19795 break
19796 else
19797   echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 fi
19801 rm -f conftest.err conftest.$ac_objext \
19802       conftest$ac_exeext conftest.$ac_ext
19803   done
19804 fi
19805 LIBS=$ac_func_search_save_LIBS
19806 fi
19807 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19808 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19809 if test "$ac_cv_search_sem_init" != no; then
19810   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19811
19812 else
19813   { { 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
19814 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;}
19815    { (exit 1); exit 1; }; }
19816
19817 fi
19818
19819 fi
19820
19821
19822 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19823 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19824 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19825   echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827   ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lsocket  $LIBS"
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h.  */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h.  */
19835
19836 /* Override any gcc2 internal prototype to avoid an error.  */
19837 #ifdef __cplusplus
19838 extern "C"
19839 #endif
19840 /* We use char because int might match the return type of a gcc2
19841    builtin and then its argument prototype would still apply.  */
19842 char getsockname ();
19843 int
19844 main ()
19845 {
19846 getsockname ();
19847   ;
19848   return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853   (eval $ac_link) 2>conftest.er1
19854   ac_status=$?
19855   grep -v '^ *+' conftest.er1 >conftest.err
19856   rm -f conftest.er1
19857   cat conftest.err >&5
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); } &&
19860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862   (eval $ac_try) 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; } &&
19866          { ac_try='test -s conftest$ac_exeext'
19867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868   (eval $ac_try) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; }; then
19872   ac_cv_lib_socket_getsockname=yes
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_cv_lib_socket_getsockname=no
19878 fi
19879 rm -f conftest.err conftest.$ac_objext \
19880       conftest$ac_exeext conftest.$ac_ext
19881 LIBS=$ac_check_lib_save_LIBS
19882 fi
19883 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19884 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19885 if test $ac_cv_lib_socket_getsockname = yes; then
19886   cat >>confdefs.h <<_ACEOF
19887 #define HAVE_LIBSOCKET 1
19888 _ACEOF
19889
19890   LIBS="-lsocket $LIBS"
19891
19892 fi
19893
19894
19895
19896 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19897 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19898 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19899   echo $ECHO_N "(cached) $ECHO_C" >&6
19900 else
19901   ac_check_lib_save_LIBS=$LIBS
19902 LIBS="-lresolv  $LIBS"
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909
19910 /* Override any gcc2 internal prototype to avoid an error.  */
19911 #ifdef __cplusplus
19912 extern "C"
19913 #endif
19914 /* We use char because int might match the return type of a gcc2
19915    builtin and then its argument prototype would still apply.  */
19916 char inet_aton ();
19917 int
19918 main ()
19919 {
19920 inet_aton ();
19921   ;
19922   return 0;
19923 }
19924 _ACEOF
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19927   (eval $ac_link) 2>conftest.er1
19928   ac_status=$?
19929   grep -v '^ *+' conftest.er1 >conftest.err
19930   rm -f conftest.er1
19931   cat conftest.err >&5
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } &&
19934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; } &&
19940          { ac_try='test -s conftest$ac_exeext'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   ac_cv_lib_resolv_inet_aton=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951 ac_cv_lib_resolv_inet_aton=no
19952 fi
19953 rm -f conftest.err conftest.$ac_objext \
19954       conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19958 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19959 if test $ac_cv_lib_resolv_inet_aton = yes; then
19960   cat >>confdefs.h <<_ACEOF
19961 #define HAVE_LIBRESOLV 1
19962 _ACEOF
19963
19964   LIBS="-lresolv $LIBS"
19965
19966 fi
19967
19968
19969
19970 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19971 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19972 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19973   echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975   ac_check_lib_save_LIBS=$LIBS
19976 LIBS="-lnsl  $LIBS"
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983
19984 /* Override any gcc2 internal prototype to avoid an error.  */
19985 #ifdef __cplusplus
19986 extern "C"
19987 #endif
19988 /* We use char because int might match the return type of a gcc2
19989    builtin and then its argument prototype would still apply.  */
19990 char inet_ntoa ();
19991 int
19992 main ()
19993 {
19994 inet_ntoa ();
19995   ;
19996   return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001   (eval $ac_link) 2>conftest.er1
20002   ac_status=$?
20003   grep -v '^ *+' conftest.er1 >conftest.err
20004   rm -f conftest.er1
20005   cat conftest.err >&5
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); } &&
20008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; } &&
20014          { ac_try='test -s conftest$ac_exeext'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; }; then
20020   ac_cv_lib_nsl_inet_ntoa=yes
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_cv_lib_nsl_inet_ntoa=no
20026 fi
20027 rm -f conftest.err conftest.$ac_objext \
20028       conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20032 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20033 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20034   cat >>confdefs.h <<_ACEOF
20035 #define HAVE_LIBNSL 1
20036 _ACEOF
20037
20038   LIBS="-lnsl $LIBS"
20039
20040 fi
20041
20042
20043
20044 case "$host" in
20045 *-interix*)
20046         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20047         ;;
20048 esac
20049
20050
20051
20052
20053
20054
20055 ac_header_dirent=no
20056 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20057   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20058 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20059 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20061   echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063   cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h.  */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h.  */
20069 #include <sys/types.h>
20070 #include <$ac_hdr>
20071
20072 int
20073 main ()
20074 {
20075 if ((DIR *) 0)
20076 return 0;
20077   ;
20078   return 0;
20079 }
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20083   (eval $ac_compile) 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } &&
20090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; } &&
20096          { ac_try='test -s conftest.$ac_objext'
20097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098   (eval $ac_try) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }; }; then
20102   eval "$as_ac_Header=yes"
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 eval "$as_ac_Header=no"
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 fi
20111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114   cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 ac_header_dirent=$ac_hdr; break
20119 fi
20120
20121 done
20122 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20123 if test $ac_header_dirent = dirent.h; then
20124   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20125 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20126 if test "${ac_cv_search_opendir+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   ac_func_search_save_LIBS=$LIBS
20130 ac_cv_search_opendir=no
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137
20138 /* Override any gcc2 internal prototype to avoid an error.  */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 /* We use char because int might match the return type of a gcc2
20143    builtin and then its argument prototype would still apply.  */
20144 char opendir ();
20145 int
20146 main ()
20147 {
20148 opendir ();
20149   ;
20150   return 0;
20151 }
20152 _ACEOF
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155   (eval $ac_link) 2>conftest.er1
20156   ac_status=$?
20157   grep -v '^ *+' conftest.er1 >conftest.err
20158   rm -f conftest.er1
20159   cat conftest.err >&5
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); } &&
20162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164   (eval $ac_try) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; } &&
20168          { ac_try='test -s conftest$ac_exeext'
20169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170   (eval $ac_try) 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; }; then
20174   ac_cv_search_opendir="none required"
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 fi
20180 rm -f conftest.err conftest.$ac_objext \
20181       conftest$ac_exeext conftest.$ac_ext
20182 if test "$ac_cv_search_opendir" = no; then
20183   for ac_lib in dir; do
20184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20185     cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191
20192 /* Override any gcc2 internal prototype to avoid an error.  */
20193 #ifdef __cplusplus
20194 extern "C"
20195 #endif
20196 /* We use char because int might match the return type of a gcc2
20197    builtin and then its argument prototype would still apply.  */
20198 char opendir ();
20199 int
20200 main ()
20201 {
20202 opendir ();
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest.$ac_objext conftest$ac_exeext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20209   (eval $ac_link) 2>conftest.er1
20210   ac_status=$?
20211   grep -v '^ *+' conftest.er1 >conftest.err
20212   rm -f conftest.er1
20213   cat conftest.err >&5
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } &&
20216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218   (eval $ac_try) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); }; } &&
20222          { ac_try='test -s conftest$ac_exeext'
20223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224   (eval $ac_try) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); }; }; then
20228   ac_cv_search_opendir="-l$ac_lib"
20229 break
20230 else
20231   echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20233
20234 fi
20235 rm -f conftest.err conftest.$ac_objext \
20236       conftest$ac_exeext conftest.$ac_ext
20237   done
20238 fi
20239 LIBS=$ac_func_search_save_LIBS
20240 fi
20241 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20242 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20243 if test "$ac_cv_search_opendir" != no; then
20244   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20245
20246 fi
20247
20248 else
20249   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20251 if test "${ac_cv_search_opendir+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   ac_func_search_save_LIBS=$LIBS
20255 ac_cv_search_opendir=no
20256 cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262
20263 /* Override any gcc2 internal prototype to avoid an error.  */
20264 #ifdef __cplusplus
20265 extern "C"
20266 #endif
20267 /* We use char because int might match the return type of a gcc2
20268    builtin and then its argument prototype would still apply.  */
20269 char opendir ();
20270 int
20271 main ()
20272 {
20273 opendir ();
20274   ;
20275   return 0;
20276 }
20277 _ACEOF
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280   (eval $ac_link) 2>conftest.er1
20281   ac_status=$?
20282   grep -v '^ *+' conftest.er1 >conftest.err
20283   rm -f conftest.er1
20284   cat conftest.err >&5
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); } &&
20287          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; } &&
20293          { ac_try='test -s conftest$ac_exeext'
20294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295   (eval $ac_try) 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; }; then
20299   ac_cv_search_opendir="none required"
20300 else
20301   echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304 fi
20305 rm -f conftest.err conftest.$ac_objext \
20306       conftest$ac_exeext conftest.$ac_ext
20307 if test "$ac_cv_search_opendir" = no; then
20308   for ac_lib in x; do
20309     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20310     cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316
20317 /* Override any gcc2 internal prototype to avoid an error.  */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 /* We use char because int might match the return type of a gcc2
20322    builtin and then its argument prototype would still apply.  */
20323 char opendir ();
20324 int
20325 main ()
20326 {
20327 opendir ();
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 rm -f conftest.$ac_objext conftest$ac_exeext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20334   (eval $ac_link) 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } &&
20341          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343   (eval $ac_try) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); }; } &&
20347          { ac_try='test -s conftest$ac_exeext'
20348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349   (eval $ac_try) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; }; then
20353   ac_cv_search_opendir="-l$ac_lib"
20354 break
20355 else
20356   echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359 fi
20360 rm -f conftest.err conftest.$ac_objext \
20361       conftest$ac_exeext conftest.$ac_ext
20362   done
20363 fi
20364 LIBS=$ac_func_search_save_LIBS
20365 fi
20366 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20367 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20368 if test "$ac_cv_search_opendir" != no; then
20369   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20370
20371 fi
20372
20373 fi
20374
20375 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20376 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20377 if test "${ac_cv_header_stdc+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380   cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386 #include <stdlib.h>
20387 #include <stdarg.h>
20388 #include <string.h>
20389 #include <float.h>
20390
20391 int
20392 main ()
20393 {
20394
20395   ;
20396   return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401   (eval $ac_compile) 2>conftest.er1
20402   ac_status=$?
20403   grep -v '^ *+' conftest.er1 >conftest.err
20404   rm -f conftest.er1
20405   cat conftest.err >&5
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); } &&
20408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410   (eval $ac_try) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; } &&
20414          { ac_try='test -s conftest.$ac_objext'
20415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416   (eval $ac_try) 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); }; }; then
20420   ac_cv_header_stdc=yes
20421 else
20422   echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 ac_cv_header_stdc=no
20426 fi
20427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20428
20429 if test $ac_cv_header_stdc = yes; then
20430   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20431   cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437 #include <string.h>
20438
20439 _ACEOF
20440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20441   $EGREP "memchr" >/dev/null 2>&1; then
20442   :
20443 else
20444   ac_cv_header_stdc=no
20445 fi
20446 rm -f conftest*
20447
20448 fi
20449
20450 if test $ac_cv_header_stdc = yes; then
20451   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20452   cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 #include <stdlib.h>
20459
20460 _ACEOF
20461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20462   $EGREP "free" >/dev/null 2>&1; then
20463   :
20464 else
20465   ac_cv_header_stdc=no
20466 fi
20467 rm -f conftest*
20468
20469 fi
20470
20471 if test $ac_cv_header_stdc = yes; then
20472   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20473   if test "$cross_compiling" = yes; then
20474   :
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 #include <ctype.h>
20483 #if ((' ' & 0x0FF) == 0x020)
20484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20486 #else
20487 # define ISLOWER(c) \
20488                    (('a' <= (c) && (c) <= 'i') \
20489                      || ('j' <= (c) && (c) <= 'r') \
20490                      || ('s' <= (c) && (c) <= 'z'))
20491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20492 #endif
20493
20494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20495 int
20496 main ()
20497 {
20498   int i;
20499   for (i = 0; i < 256; i++)
20500     if (XOR (islower (i), ISLOWER (i))
20501         || toupper (i) != TOUPPER (i))
20502       exit(2);
20503   exit (0);
20504 }
20505 _ACEOF
20506 rm -f conftest$ac_exeext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20508   (eval $ac_link) 2>&5
20509   ac_status=$?
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513   (eval $ac_try) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; }; then
20517   :
20518 else
20519   echo "$as_me: program exited with status $ac_status" >&5
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 ( exit $ac_status )
20524 ac_cv_header_stdc=no
20525 fi
20526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20527 fi
20528 fi
20529 fi
20530 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20531 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20532 if test $ac_cv_header_stdc = yes; then
20533
20534 cat >>confdefs.h <<\_ACEOF
20535 #define STDC_HEADERS 1
20536 _ACEOF
20537
20538 fi
20539
20540 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20541 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20542 if test "${ac_cv_header_time+set}" = set; then
20543   echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545   cat >conftest.$ac_ext <<_ACEOF
20546 /* confdefs.h.  */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h.  */
20551 #include <sys/types.h>
20552 #include <sys/time.h>
20553 #include <time.h>
20554
20555 int
20556 main ()
20557 {
20558 if ((struct tm *) 0)
20559 return 0;
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566   (eval $ac_compile) 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } &&
20573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575   (eval $ac_try) 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; } &&
20579          { ac_try='test -s conftest.$ac_objext'
20580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581   (eval $ac_try) 2>&5
20582   ac_status=$?
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); }; }; then
20585   ac_cv_header_time=yes
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590 ac_cv_header_time=no
20591 fi
20592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20593 fi
20594 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20595 echo "${ECHO_T}$ac_cv_header_time" >&6
20596 if test $ac_cv_header_time = yes; then
20597
20598 cat >>confdefs.h <<\_ACEOF
20599 #define TIME_WITH_SYS_TIME 1
20600 _ACEOF
20601
20602 fi
20603
20604 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20605 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20606 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20607   echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609   cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615 #include <sys/types.h>
20616 #include <sys/wait.h>
20617 #ifndef WEXITSTATUS
20618 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20619 #endif
20620 #ifndef WIFEXITED
20621 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20622 #endif
20623
20624 int
20625 main ()
20626 {
20627   int s;
20628   wait (&s);
20629   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20630   ;
20631   return 0;
20632 }
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20636   (eval $ac_compile) 2>conftest.er1
20637   ac_status=$?
20638   grep -v '^ *+' conftest.er1 >conftest.err
20639   rm -f conftest.er1
20640   cat conftest.err >&5
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } &&
20643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645   (eval $ac_try) 2>&5
20646   ac_status=$?
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); }; } &&
20649          { ac_try='test -s conftest.$ac_objext'
20650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651   (eval $ac_try) 2>&5
20652   ac_status=$?
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); }; }; then
20655   ac_cv_header_sys_wait_h=yes
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 ac_cv_header_sys_wait_h=no
20661 fi
20662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20663 fi
20664 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20665 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20666 if test $ac_cv_header_sys_wait_h = yes; then
20667
20668 cat >>confdefs.h <<\_ACEOF
20669 #define HAVE_SYS_WAIT_H 1
20670 _ACEOF
20671
20672 fi
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703 for ac_header in \
20704         unistd.h \
20705         crypt.h \
20706         errno.h \
20707         resource.h \
20708         getopt.h \
20709         malloc.h \
20710         utmp.h \
20711         utmpx.h \
20712         signal.h \
20713         sys/select.h \
20714         syslog.h \
20715         inttypes.h \
20716         stdint.h \
20717         stdio.h \
20718         netdb.h \
20719         semaphore.h \
20720         arpa/inet.h \
20721         netinet/in.h \
20722         sys/types.h \
20723         sys/socket.h \
20724         sys/time.h \
20725         sys/wait.h \
20726         sys/security.h \
20727         fcntl.h \
20728         sys/fcntl.h \
20729         prot.h \
20730         sia.h \
20731         siad.h
20732
20733 do
20734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20736   echo "$as_me:$LINENO: checking for $ac_header" >&5
20737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20739   echo $ECHO_N "(cached) $ECHO_C" >&6
20740 fi
20741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20743 else
20744   # Is the header compilable?
20745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20747 cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h.  */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h.  */
20753 $ac_includes_default
20754 #include <$ac_header>
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758   (eval $ac_compile) 2>conftest.er1
20759   ac_status=$?
20760   grep -v '^ *+' conftest.er1 >conftest.err
20761   rm -f conftest.er1
20762   cat conftest.err >&5
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } &&
20765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767   (eval $ac_try) 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; } &&
20771          { ac_try='test -s conftest.$ac_objext'
20772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773   (eval $ac_try) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); }; }; then
20777   ac_header_compiler=yes
20778 else
20779   echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20781
20782 ac_header_compiler=no
20783 fi
20784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20786 echo "${ECHO_T}$ac_header_compiler" >&6
20787
20788 # Is the header present?
20789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20791 cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797 #include <$ac_header>
20798 _ACEOF
20799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } >/dev/null; then
20807   if test -s conftest.err; then
20808     ac_cpp_err=$ac_c_preproc_warn_flag
20809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20810   else
20811     ac_cpp_err=
20812   fi
20813 else
20814   ac_cpp_err=yes
20815 fi
20816 if test -z "$ac_cpp_err"; then
20817   ac_header_preproc=yes
20818 else
20819   echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822   ac_header_preproc=no
20823 fi
20824 rm -f conftest.err conftest.$ac_ext
20825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20826 echo "${ECHO_T}$ac_header_preproc" >&6
20827
20828 # So?  What about this header?
20829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20830   yes:no: )
20831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20835     ac_header_preproc=yes
20836     ;;
20837   no:yes:* )
20838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20850     (
20851       cat <<\_ASBOX
20852 ## ------------------------------------------ ##
20853 ## Report this to the AC_PACKAGE_NAME lists.  ##
20854 ## ------------------------------------------ ##
20855 _ASBOX
20856     ) |
20857       sed "s/^/$as_me: WARNING:     /" >&2
20858     ;;
20859 esac
20860 echo "$as_me:$LINENO: checking for $ac_header" >&5
20861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20863   echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865   eval "$as_ac_Header=\$ac_header_preproc"
20866 fi
20867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20869
20870 fi
20871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20872   cat >>confdefs.h <<_ACEOF
20873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20874 _ACEOF
20875
20876 fi
20877
20878 done
20879
20880
20881 REGEX=no
20882 if test "${ac_cv_header_regex_h+set}" = set; then
20883   echo "$as_me:$LINENO: checking for regex.h" >&5
20884 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20885 if test "${ac_cv_header_regex_h+set}" = set; then
20886   echo $ECHO_N "(cached) $ECHO_C" >&6
20887 fi
20888 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20889 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20890 else
20891   # Is the header compilable?
20892 echo "$as_me:$LINENO: checking regex.h usability" >&5
20893 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 $ac_includes_default
20901 #include <regex.h>
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20905   (eval $ac_compile) 2>conftest.er1
20906   ac_status=$?
20907   grep -v '^ *+' conftest.er1 >conftest.err
20908   rm -f conftest.er1
20909   cat conftest.err >&5
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } &&
20912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914   (eval $ac_try) 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; } &&
20918          { ac_try='test -s conftest.$ac_objext'
20919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920   (eval $ac_try) 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; }; then
20924   ac_header_compiler=yes
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 ac_header_compiler=no
20930 fi
20931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20933 echo "${ECHO_T}$ac_header_compiler" >&6
20934
20935 # Is the header present?
20936 echo "$as_me:$LINENO: checking regex.h presence" >&5
20937 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 #include <regex.h>
20945 _ACEOF
20946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20948   ac_status=$?
20949   grep -v '^ *+' conftest.er1 >conftest.err
20950   rm -f conftest.er1
20951   cat conftest.err >&5
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); } >/dev/null; then
20954   if test -s conftest.err; then
20955     ac_cpp_err=$ac_c_preproc_warn_flag
20956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20957   else
20958     ac_cpp_err=
20959   fi
20960 else
20961   ac_cpp_err=yes
20962 fi
20963 if test -z "$ac_cpp_err"; then
20964   ac_header_preproc=yes
20965 else
20966   echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969   ac_header_preproc=no
20970 fi
20971 rm -f conftest.err conftest.$ac_ext
20972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20973 echo "${ECHO_T}$ac_header_preproc" >&6
20974
20975 # So?  What about this header?
20976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20977   yes:no: )
20978     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20979 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20980     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20981 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20982     ac_header_preproc=yes
20983     ;;
20984   no:yes:* )
20985     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20986 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20987     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
20988 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
20989     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20990 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20991     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
20992 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20993     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20994 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20995     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20996 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20997     (
20998       cat <<\_ASBOX
20999 ## ------------------------------------------ ##
21000 ## Report this to the AC_PACKAGE_NAME lists.  ##
21001 ## ------------------------------------------ ##
21002 _ASBOX
21003     ) |
21004       sed "s/^/$as_me: WARNING:     /" >&2
21005     ;;
21006 esac
21007 echo "$as_me:$LINENO: checking for regex.h" >&5
21008 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21009 if test "${ac_cv_header_regex_h+set}" = set; then
21010   echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012   ac_cv_header_regex_h=$ac_header_preproc
21013 fi
21014 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21015 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21016
21017 fi
21018 if test $ac_cv_header_regex_h = yes; then
21019   cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_REGEX_H 1
21021 _ACEOF
21022
21023 fi
21024
21025
21026 if test "x$ac_cv_header_regex_h" = "xyes"; then
21027   REGEX_EXTENDED=no
21028   REGEX=yes
21029   cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h.  */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h.  */
21035 #include <regex.h>
21036      #ifdef REG_EXTENDED
21037        yes
21038      #endif
21039
21040 _ACEOF
21041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21042   $EGREP "yes" >/dev/null 2>&1; then
21043   cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_REG_EXTENDED 1
21045 _ACEOF
21046  REGEX_EXTENDED=yes
21047 fi
21048 rm -f conftest*
21049
21050 fi
21051
21052
21053
21054 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21055 then
21056   cat >>confdefs.h <<\_ACEOF
21057 #define OSFC2 1
21058 _ACEOF
21059
21060 fi
21061
21062 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21063 then
21064   cat >>confdefs.h <<\_ACEOF
21065 #define OSFSIA 1
21066 _ACEOF
21067
21068 fi
21069
21070 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21071 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21072
21073
21074 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21075 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21076 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21077
21078 smart_include=
21079 smart_include_dir=
21080
21081   old_CFLAGS="$CFLAGS"
21082   cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088
21089                   #include <openssl/ssl.h>
21090 int
21091 main ()
21092 {
21093  int a = 1;
21094   ;
21095   return 0;
21096 }
21097 _ACEOF
21098 rm -f conftest.$ac_objext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21100   (eval $ac_compile) 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } &&
21107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; } &&
21113          { ac_try='test -s conftest.$ac_objext'
21114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115   (eval $ac_try) 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; }; then
21119   smart_include=" "
21120 else
21121   echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 smart_include=
21125 fi
21126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21127
21128   if test "x$smart_include" = "x"; then
21129
21130
21131 if test "x$LOCATE" != "x"; then
21132         DIRS=
21133   file=openssl/ssl.h
21134
21135   for x in `${LOCATE} $file 2>/dev/null`; do
21136                                         base=`echo $x | sed "s%/${file}%%"`
21137     if test "x$x" = "x$base"; then
21138       continue;
21139     fi
21140
21141     dir=`${DIRNAME} $x 2>/dev/null`
21142                 exclude=`echo ${dir} | ${GREP} /home`
21143     if test "x$exclude" != "x"; then
21144       continue
21145     fi
21146
21147                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21148     if test "x$already" = "x"; then
21149       DIRS="$DIRS $dir"
21150     fi
21151   done
21152 fi
21153
21154 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21155
21156
21157     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21158       CFLAGS="$old_CFLAGS -I$try"
21159
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
21167                        #include <openssl/ssl.h>
21168 int
21169 main ()
21170 {
21171  int a = 1;
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178   (eval $ac_compile) 2>conftest.er1
21179   ac_status=$?
21180   grep -v '^ *+' conftest.er1 >conftest.err
21181   rm -f conftest.er1
21182   cat conftest.err >&5
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); } &&
21185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187   (eval $ac_try) 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; } &&
21191          { ac_try='test -s conftest.$ac_objext'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; }; then
21197   smart_include="-I$try"
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202 smart_include=
21203 fi
21204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21205
21206       if test "x$smart_include" != "x"; then
21207         break;
21208       fi
21209     done
21210     CFLAGS="$old_CFLAGS"
21211   fi
21212
21213         if test "x$smart_include" != "x"; then
21214     echo "$as_me:$LINENO: result: yes" >&5
21215 echo "${ECHO_T}yes" >&6
21216     eval "ac_cv_header_$ac_safe=yes"
21217     CFLAGS="$old_CFLAGS $smart_include"
21218     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21219   else
21220     echo "$as_me:$LINENO: result: no" >&5
21221 echo "${ECHO_T}no" >&6
21222 fi
21223
21224 OPENSSL_INCLUDE=
21225 OPENSSL_LIBS=
21226 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21227   cat >>confdefs.h <<\_ACEOF
21228 #define HAVE_OPENSSL_SSL_H 1
21229 _ACEOF
21230
21231   old_CPPFLAGS="$CPPFLAGS"
21232   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21233       CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21234   fi
21235
21236
21237
21238
21239 for ac_header in \
21240           openssl/err.h \
21241           openssl/crypto.h \
21242           openssl/rand.h \
21243           openssl/engine.h
21244
21245 do
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21248   echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21251   echo $ECHO_N "(cached) $ECHO_C" >&6
21252 fi
21253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21255 else
21256   # Is the header compilable?
21257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21259 cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 $ac_includes_default
21266 #include <$ac_header>
21267 _ACEOF
21268 rm -f conftest.$ac_objext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270   (eval $ac_compile) 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } &&
21277          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279   (eval $ac_try) 2>&5
21280   ac_status=$?
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); }; } &&
21283          { ac_try='test -s conftest.$ac_objext'
21284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; }; then
21289   ac_header_compiler=yes
21290 else
21291   echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_header_compiler=no
21295 fi
21296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298 echo "${ECHO_T}$ac_header_compiler" >&6
21299
21300 # Is the header present?
21301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21303 cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h.  */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h.  */
21309 #include <$ac_header>
21310 _ACEOF
21311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21313   ac_status=$?
21314   grep -v '^ *+' conftest.er1 >conftest.err
21315   rm -f conftest.er1
21316   cat conftest.err >&5
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } >/dev/null; then
21319   if test -s conftest.err; then
21320     ac_cpp_err=$ac_c_preproc_warn_flag
21321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21322   else
21323     ac_cpp_err=
21324   fi
21325 else
21326   ac_cpp_err=yes
21327 fi
21328 if test -z "$ac_cpp_err"; then
21329   ac_header_preproc=yes
21330 else
21331   echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334   ac_header_preproc=no
21335 fi
21336 rm -f conftest.err conftest.$ac_ext
21337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6
21339
21340 # So?  What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342   yes:no: )
21343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21347     ac_header_preproc=yes
21348     ;;
21349   no:yes:* )
21350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21362     (
21363       cat <<\_ASBOX
21364 ## ------------------------------------------ ##
21365 ## Report this to the AC_PACKAGE_NAME lists.  ##
21366 ## ------------------------------------------ ##
21367 _ASBOX
21368     ) |
21369       sed "s/^/$as_me: WARNING:     /" >&2
21370     ;;
21371 esac
21372 echo "$as_me:$LINENO: checking for $ac_header" >&5
21373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377   eval "$as_ac_Header=\$ac_header_preproc"
21378 fi
21379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21381
21382 fi
21383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21384   cat >>confdefs.h <<_ACEOF
21385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21386 _ACEOF
21387
21388 fi
21389
21390 done
21391
21392   CPPFLAGS="$old_CPPFLAGS"
21393
21394   echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21395 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21396        old_CPPFLAGS=$CPPFLAGS
21397        old_LIBS="$LIBS"
21398        if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21399            CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
21400            fi
21401        cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407 #include <openssl/crypto.h>
21408        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21409         yes
21410        #endif
21411
21412 _ACEOF
21413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21414   $EGREP "yes" >/dev/null 2>&1; then
21415   goodssl="yes"
21416 fi
21417 rm -f conftest*
21418
21419            if test "x$goodssl" != "xyes"; then
21420              echo "$as_me:$LINENO: result: no" >&5
21421 echo "${ECHO_T}no" >&6
21422              OPENSSL_INCLUDE=
21423              OPENSSL_LIBS=
21424            else
21425              echo "$as_me:$LINENO: result: yes" >&5
21426 echo "${ECHO_T}yes" >&6
21427
21428              # Look for the OpenSSL libraries.
21429              smart_try_dir=$OPENSSL_LIB_DIR
21430
21431
21432 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
21433 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
21434 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21435 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
21436
21437 smart_lib=
21438 smart_lib_dir=
21439
21440   old_LIBS="$LIBS"
21441   LIBS="$LIBS -lcrypto"
21442   cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 extern char DH_new();
21449 int
21450 main ()
21451 {
21452  DH_new()
21453   ;
21454   return 0;
21455 }
21456 _ACEOF
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21459   (eval $ac_link) 2>conftest.er1
21460   ac_status=$?
21461   grep -v '^ *+' conftest.er1 >conftest.err
21462   rm -f conftest.er1
21463   cat conftest.err >&5
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); } &&
21466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468   (eval $ac_try) 2>&5
21469   ac_status=$?
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); }; } &&
21472          { ac_try='test -s conftest$ac_exeext'
21473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474   (eval $ac_try) 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); }; }; then
21478   smart_lib="-lcrypto"
21479 else
21480   echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21482
21483 fi
21484 rm -f conftest.err conftest.$ac_objext \
21485       conftest$ac_exeext conftest.$ac_ext
21486
21487   if test "x$smart_lib" = "x"; then
21488
21489
21490 if test "x$LOCATE" != "x"; then
21491         DIRS=
21492   file=libcrypto${libltdl_cv_shlibext}
21493
21494   for x in `${LOCATE} $file 2>/dev/null`; do
21495                                         base=`echo $x | sed "s%/${file}%%"`
21496     if test "x$x" = "x$base"; then
21497       continue;
21498     fi
21499
21500     dir=`${DIRNAME} $x 2>/dev/null`
21501                 exclude=`echo ${dir} | ${GREP} /home`
21502     if test "x$exclude" != "x"; then
21503       continue
21504     fi
21505
21506                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21507     if test "x$already" = "x"; then
21508       DIRS="$DIRS $dir"
21509     fi
21510   done
21511 fi
21512
21513 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21514
21515
21516
21517 if test "x$LOCATE" != "x"; then
21518         DIRS=
21519   file=libcrypto.a
21520
21521   for x in `${LOCATE} $file 2>/dev/null`; do
21522                                         base=`echo $x | sed "s%/${file}%%"`
21523     if test "x$x" = "x$base"; then
21524       continue;
21525     fi
21526
21527     dir=`${DIRNAME} $x 2>/dev/null`
21528                 exclude=`echo ${dir} | ${GREP} /home`
21529     if test "x$exclude" != "x"; then
21530       continue
21531     fi
21532
21533                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21534     if test "x$already" = "x"; then
21535       DIRS="$DIRS $dir"
21536     fi
21537   done
21538 fi
21539
21540 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21541
21542
21543     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21544       LIBS="$old_LIBS -L$try -lcrypto"
21545
21546       cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 extern char DH_new();
21553 int
21554 main ()
21555 {
21556  DH_new()
21557   ;
21558   return 0;
21559 }
21560 _ACEOF
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563   (eval $ac_link) 2>conftest.er1
21564   ac_status=$?
21565   grep -v '^ *+' conftest.er1 >conftest.err
21566   rm -f conftest.er1
21567   cat conftest.err >&5
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); } &&
21570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572   (eval $ac_try) 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; } &&
21576          { ac_try='test -s conftest$ac_exeext'
21577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578   (eval $ac_try) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; }; then
21582   smart_lib="-L$try -lcrypto"
21583 else
21584   echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21586
21587 fi
21588 rm -f conftest.err conftest.$ac_objext \
21589       conftest$ac_exeext conftest.$ac_ext
21590       if test "x$smart_lib" != "x"; then
21591         break;
21592       fi
21593     done
21594     LIBS="$old_LIBS"
21595   fi
21596
21597         if test "x$smart_lib" != "x"; then
21598     echo "$as_me:$LINENO: result: yes" >&5
21599 echo "${ECHO_T}yes" >&6
21600     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21601     LIBS="$old_LIBS $smart_lib"
21602     SMART_LIBS="$SMART_LIBS $smart_lib"
21603   else
21604     echo "$as_me:$LINENO: result: no" >&5
21605 echo "${ECHO_T}no" >&6
21606 fi
21607
21608              if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
21609
21610
21611 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
21612 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
21613 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21614 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
21615
21616 smart_lib=
21617 smart_lib_dir=
21618
21619   old_LIBS="$LIBS"
21620   LIBS="$LIBS -lssl"
21621   cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627 extern char SSL_new();
21628 int
21629 main ()
21630 {
21631  SSL_new()
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638   (eval $ac_link) 2>conftest.er1
21639   ac_status=$?
21640   grep -v '^ *+' conftest.er1 >conftest.err
21641   rm -f conftest.er1
21642   cat conftest.err >&5
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } &&
21645          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647   (eval $ac_try) 2>&5
21648   ac_status=$?
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); }; } &&
21651          { ac_try='test -s conftest$ac_exeext'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; }; then
21657   smart_lib="-lssl"
21658 else
21659   echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662 fi
21663 rm -f conftest.err conftest.$ac_objext \
21664       conftest$ac_exeext conftest.$ac_ext
21665
21666   if test "x$smart_lib" = "x"; then
21667
21668
21669 if test "x$LOCATE" != "x"; then
21670         DIRS=
21671   file=libssl${libltdl_cv_shlibext}
21672
21673   for x in `${LOCATE} $file 2>/dev/null`; do
21674                                         base=`echo $x | sed "s%/${file}%%"`
21675     if test "x$x" = "x$base"; then
21676       continue;
21677     fi
21678
21679     dir=`${DIRNAME} $x 2>/dev/null`
21680                 exclude=`echo ${dir} | ${GREP} /home`
21681     if test "x$exclude" != "x"; then
21682       continue
21683     fi
21684
21685                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21686     if test "x$already" = "x"; then
21687       DIRS="$DIRS $dir"
21688     fi
21689   done
21690 fi
21691
21692 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21693
21694
21695
21696 if test "x$LOCATE" != "x"; then
21697         DIRS=
21698   file=libssl.a
21699
21700   for x in `${LOCATE} $file 2>/dev/null`; do
21701                                         base=`echo $x | sed "s%/${file}%%"`
21702     if test "x$x" = "x$base"; then
21703       continue;
21704     fi
21705
21706     dir=`${DIRNAME} $x 2>/dev/null`
21707                 exclude=`echo ${dir} | ${GREP} /home`
21708     if test "x$exclude" != "x"; then
21709       continue
21710     fi
21711
21712                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21713     if test "x$already" = "x"; then
21714       DIRS="$DIRS $dir"
21715     fi
21716   done
21717 fi
21718
21719 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21720
21721
21722     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21723       LIBS="$old_LIBS -L$try -lssl"
21724
21725       cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 extern char SSL_new();
21732 int
21733 main ()
21734 {
21735  SSL_new()
21736   ;
21737   return 0;
21738 }
21739 _ACEOF
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21742   (eval $ac_link) 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751   (eval $ac_try) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; } &&
21755          { ac_try='test -s conftest$ac_exeext'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   smart_lib="-L$try -lssl"
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766 fi
21767 rm -f conftest.err conftest.$ac_objext \
21768       conftest$ac_exeext conftest.$ac_ext
21769       if test "x$smart_lib" != "x"; then
21770         break;
21771       fi
21772     done
21773     LIBS="$old_LIBS"
21774   fi
21775
21776         if test "x$smart_lib" != "x"; then
21777     echo "$as_me:$LINENO: result: yes" >&5
21778 echo "${ECHO_T}yes" >&6
21779     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21780     LIBS="$old_LIBS $smart_lib"
21781     SMART_LIBS="$SMART_LIBS $smart_lib"
21782   else
21783     echo "$as_me:$LINENO: result: no" >&5
21784 echo "${ECHO_T}no" >&6
21785 fi
21786
21787                if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21788                  if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21789                    OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21790                  fi
21791                  if test "x$OPENSSL_LIB_DIR" != "x"; then
21792                    OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21793                  fi
21794                  OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21795                else
21796                  OPENSSL_INCLUDE=
21797                  OPENSSL_LIBS=
21798                fi
21799              fi
21800            fi
21801        CPPFLAGS=$old_CPPFLAGS
21802        LIBS="$old_LIBS"
21803 fi
21804
21805
21806 export OPENSSL_LIBS
21807
21808
21809 echo "$as_me:$LINENO: checking for off_t" >&5
21810 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21811 if test "${ac_cv_type_off_t+set}" = set; then
21812   echo $ECHO_N "(cached) $ECHO_C" >&6
21813 else
21814   cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h.  */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h.  */
21820 $ac_includes_default
21821 int
21822 main ()
21823 {
21824 if ((off_t *) 0)
21825   return 0;
21826 if (sizeof (off_t))
21827   return 0;
21828   ;
21829   return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest.$ac_objext
21833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21834   (eval $ac_compile) 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } &&
21841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; } &&
21847          { ac_try='test -s conftest.$ac_objext'
21848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853   ac_cv_type_off_t=yes
21854 else
21855   echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21857
21858 ac_cv_type_off_t=no
21859 fi
21860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21861 fi
21862 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21863 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21864 if test $ac_cv_type_off_t = yes; then
21865   :
21866 else
21867
21868 cat >>confdefs.h <<_ACEOF
21869 #define off_t long
21870 _ACEOF
21871
21872 fi
21873
21874 echo "$as_me:$LINENO: checking for pid_t" >&5
21875 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21876 if test "${ac_cv_type_pid_t+set}" = set; then
21877   echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
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 int
21887 main ()
21888 {
21889 if ((pid_t *) 0)
21890   return 0;
21891 if (sizeof (pid_t))
21892   return 0;
21893   ;
21894   return 0;
21895 }
21896 _ACEOF
21897 rm -f conftest.$ac_objext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21899   (eval $ac_compile) 2>conftest.er1
21900   ac_status=$?
21901   grep -v '^ *+' conftest.er1 >conftest.err
21902   rm -f conftest.er1
21903   cat conftest.err >&5
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } &&
21906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908   (eval $ac_try) 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); }; } &&
21912          { ac_try='test -s conftest.$ac_objext'
21913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914   (eval $ac_try) 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); }; }; then
21918   ac_cv_type_pid_t=yes
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 ac_cv_type_pid_t=no
21924 fi
21925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21926 fi
21927 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21929 if test $ac_cv_type_pid_t = yes; then
21930   :
21931 else
21932
21933 cat >>confdefs.h <<_ACEOF
21934 #define pid_t int
21935 _ACEOF
21936
21937 fi
21938
21939 echo "$as_me:$LINENO: checking for size_t" >&5
21940 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21941 if test "${ac_cv_type_size_t+set}" = set; then
21942   echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944   cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h.  */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h.  */
21950 $ac_includes_default
21951 int
21952 main ()
21953 {
21954 if ((size_t *) 0)
21955   return 0;
21956 if (sizeof (size_t))
21957   return 0;
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 rm -f conftest.$ac_objext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21964   (eval $ac_compile) 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } &&
21971          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973   (eval $ac_try) 2>&5
21974   ac_status=$?
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); }; } &&
21977          { ac_try='test -s conftest.$ac_objext'
21978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979   (eval $ac_try) 2>&5
21980   ac_status=$?
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); }; }; then
21983   ac_cv_type_size_t=yes
21984 else
21985   echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988 ac_cv_type_size_t=no
21989 fi
21990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21991 fi
21992 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21993 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21994 if test $ac_cv_type_size_t = yes; then
21995   :
21996 else
21997
21998 cat >>confdefs.h <<_ACEOF
21999 #define size_t unsigned
22000 _ACEOF
22001
22002 fi
22003
22004 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22005 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22006 if test "${ac_cv_type_uid_t+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 #include <sys/types.h>
22016
22017 _ACEOF
22018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22019   $EGREP "uid_t" >/dev/null 2>&1; then
22020   ac_cv_type_uid_t=yes
22021 else
22022   ac_cv_type_uid_t=no
22023 fi
22024 rm -f conftest*
22025
22026 fi
22027 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22028 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22029 if test $ac_cv_type_uid_t = no; then
22030
22031 cat >>confdefs.h <<\_ACEOF
22032 #define uid_t int
22033 _ACEOF
22034
22035
22036 cat >>confdefs.h <<\_ACEOF
22037 #define gid_t int
22038 _ACEOF
22039
22040 fi
22041
22042
22043
22044   echo "$as_me:$LINENO: checking for socklen_t" >&5
22045 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22046 if test "${ac_cv_type_socklen_t+set}" = set; then
22047   echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049    ac_cv_type_socklen_t=no
22050       cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056 #ifdef HAVE_SYS_TYPES_H
22057 #include <sys/types.h>
22058 #endif
22059 #ifdef HAVE_SYS_SOCKET_H
22060 #include <sys/socket.h>
22061 #endif
22062
22063 int
22064 main ()
22065 {
22066 socklen_t foo
22067   ;
22068   return 0;
22069 }
22070 _ACEOF
22071 rm -f conftest.$ac_objext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22073   (eval $ac_compile) 2>conftest.er1
22074   ac_status=$?
22075   grep -v '^ *+' conftest.er1 >conftest.err
22076   rm -f conftest.er1
22077   cat conftest.err >&5
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); } &&
22080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; } &&
22086          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22092   ac_cv_type_socklen_t=yes
22093 else
22094   echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097 fi
22098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22099
22100
22101 fi
22102 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22103 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22104
22105   if test "$ac_cv_type_socklen_t" != "yes"; then
22106          cat >>confdefs.h <<\_ACEOF
22107 #define socklen_t int
22108 _ACEOF
22109
22110   fi
22111
22112
22113
22114   echo "$as_me:$LINENO: checking for uint8_t" >&5
22115 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22116 if test "${ac_cv_type_uint8_t+set}" = set; then
22117   echo $ECHO_N "(cached) $ECHO_C" >&6
22118 else
22119    ac_cv_type_uint8_t=no
22120       cat >conftest.$ac_ext <<_ACEOF
22121 /* confdefs.h.  */
22122 _ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h.  */
22126 #ifdef HAVE_INTTYPES_H
22127 #include <inttypes.h>
22128 #endif
22129 #ifdef HAVE_STDINT_H
22130 #include <stdint.h>
22131 #endif
22132
22133 int
22134 main ()
22135 {
22136 uint8_t foo
22137   ;
22138   return 0;
22139 }
22140 _ACEOF
22141 rm -f conftest.$ac_objext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22143   (eval $ac_compile) 2>conftest.er1
22144   ac_status=$?
22145   grep -v '^ *+' conftest.er1 >conftest.err
22146   rm -f conftest.er1
22147   cat conftest.err >&5
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); } &&
22150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152   (eval $ac_try) 2>&5
22153   ac_status=$?
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); }; } &&
22156          { ac_try='test -s conftest.$ac_objext'
22157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158   (eval $ac_try) 2>&5
22159   ac_status=$?
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); }; }; then
22162   ac_cv_type_uint8_t=yes
22163 else
22164   echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167 fi
22168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22169
22170
22171 fi
22172 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22173 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22174
22175   if test "$ac_cv_type_uint8_t" != "yes"; then
22176          cat >>confdefs.h <<\_ACEOF
22177 #define uint8_t unsigned char
22178 _ACEOF
22179
22180   fi
22181
22182
22183
22184   echo "$as_me:$LINENO: checking for uint16_t" >&5
22185 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22186 if test "${ac_cv_type_uint16_t+set}" = set; then
22187   echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189    ac_cv_type_uint16_t=no
22190       cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h.  */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h.  */
22196 #ifdef HAVE_INTTYPES_H
22197 #include <inttypes.h>
22198 #endif
22199 #ifdef HAVE_STDINT_H
22200 #include <stdint.h>
22201 #endif
22202
22203 int
22204 main ()
22205 {
22206 uint16_t foo
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213   (eval $ac_compile) 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } &&
22220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222   (eval $ac_try) 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; } &&
22226          { ac_try='test -s conftest.$ac_objext'
22227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228   (eval $ac_try) 2>&5
22229   ac_status=$?
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); }; }; then
22232   ac_cv_type_uint16_t=yes
22233 else
22234   echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22236
22237 fi
22238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22239
22240
22241 fi
22242 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22243 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22244
22245   if test "$ac_cv_type_uint16_t" != "yes"; then
22246          cat >>confdefs.h <<\_ACEOF
22247 #define uint16_t unsigned short
22248 _ACEOF
22249
22250   fi
22251
22252
22253
22254   echo "$as_me:$LINENO: checking for uint32_t" >&5
22255 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22256 if test "${ac_cv_type_uint32_t+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259    ac_cv_type_uint32_t=no
22260       cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h.  */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h.  */
22266 #ifdef HAVE_INTTYPES_H
22267 #include <inttypes.h>
22268 #endif
22269 #ifdef HAVE_STDINT_H
22270 #include <stdint.h>
22271 #endif
22272
22273 int
22274 main ()
22275 {
22276 uint32_t foo
22277   ;
22278   return 0;
22279 }
22280 _ACEOF
22281 rm -f conftest.$ac_objext
22282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22283   (eval $ac_compile) 2>conftest.er1
22284   ac_status=$?
22285   grep -v '^ *+' conftest.er1 >conftest.err
22286   rm -f conftest.er1
22287   cat conftest.err >&5
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); } &&
22290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292   (eval $ac_try) 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; } &&
22296          { ac_try='test -s conftest.$ac_objext'
22297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298   (eval $ac_try) 2>&5
22299   ac_status=$?
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); }; }; then
22302   ac_cv_type_uint32_t=yes
22303 else
22304   echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307 fi
22308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22309
22310
22311 fi
22312 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22313 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22314
22315   if test "$ac_cv_type_uint32_t" != "yes"; then
22316          cat >>confdefs.h <<\_ACEOF
22317 #define uint32_t unsigned int
22318 _ACEOF
22319
22320   fi
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346 for ac_func in \
22347         getopt_long \
22348         lockf \
22349         strsignal \
22350         sigaction \
22351         sigprocmask \
22352         pthread_sigmask \
22353         snprintf \
22354         vsnprintf \
22355         setsid \
22356         strncasecmp \
22357         strcasecmp \
22358         localtime_r \
22359         ctime_r \
22360         gmtime_r \
22361         strsep \
22362         inet_aton \
22363         inet_pton \
22364         inet_ntop \
22365         gethostname \
22366         setlinebuf \
22367         setvbuf \
22368         getusershell \
22369         initgroups
22370
22371 do
22372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22373 echo "$as_me:$LINENO: checking for $ac_func" >&5
22374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22375 if eval "test \"\${$as_ac_var+set}\" = set"; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22386 #define $ac_func innocuous_$ac_func
22387
22388 /* System header to define __stub macros and hopefully few prototypes,
22389     which can conflict with char $ac_func (); below.
22390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22391     <limits.h> exists even on freestanding compilers.  */
22392
22393 #ifdef __STDC__
22394 # include <limits.h>
22395 #else
22396 # include <assert.h>
22397 #endif
22398
22399 #undef $ac_func
22400
22401 /* Override any gcc2 internal prototype to avoid an error.  */
22402 #ifdef __cplusplus
22403 extern "C"
22404 {
22405 #endif
22406 /* We use char because int might match the return type of a gcc2
22407    builtin and then its argument prototype would still apply.  */
22408 char $ac_func ();
22409 /* The GNU C library defines this for functions which it implements
22410     to always fail with ENOSYS.  Some functions are actually named
22411     something starting with __ and the normal name is an alias.  */
22412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22413 choke me
22414 #else
22415 char (*f) () = $ac_func;
22416 #endif
22417 #ifdef __cplusplus
22418 }
22419 #endif
22420
22421 int
22422 main ()
22423 {
22424 return f != $ac_func;
22425   ;
22426   return 0;
22427 }
22428 _ACEOF
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431   (eval $ac_link) 2>conftest.er1
22432   ac_status=$?
22433   grep -v '^ *+' conftest.er1 >conftest.err
22434   rm -f conftest.er1
22435   cat conftest.err >&5
22436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437   (exit $ac_status); } &&
22438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440   (eval $ac_try) 2>&5
22441   ac_status=$?
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); }; } &&
22444          { ac_try='test -s conftest$ac_exeext'
22445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446   (eval $ac_try) 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; }; then
22450   eval "$as_ac_var=yes"
22451 else
22452   echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 eval "$as_ac_var=no"
22456 fi
22457 rm -f conftest.err conftest.$ac_objext \
22458       conftest$ac_exeext conftest.$ac_ext
22459 fi
22460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22462 if test `eval echo '${'$as_ac_var'}'` = yes; then
22463   cat >>confdefs.h <<_ACEOF
22464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22465 _ACEOF
22466
22467 fi
22468 done
22469
22470 for ac_func in \
22471         crypt \
22472         strncasecmp \
22473         strcasecmp \
22474         inet_aton \
22475         gethostname \
22476         setlinebuf \
22477         getusershell \
22478         endusershell
22479
22480 do
22481 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22482 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22483 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22484   echo $ECHO_N "(cached) $ECHO_C" >&6
22485 else
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492
22493 #include <stdio.h>
22494 #include <string.h>
22495 #ifdef HAVE_UNISTD_H
22496 #include <unistd.h>
22497 #endif
22498 #ifdef HAVE_CRYPT_H
22499 #include <crypt.h>
22500 #endif
22501 #ifdef HAVE_ERRNO_H
22502 #include <errno.h>
22503 #endif
22504 #ifdef HAVE_RESOURCE_H
22505 #include <resource.h>
22506 #endif
22507 #ifdef HAVE_GETOPT_H
22508 #include <getopt.h>
22509 #endif
22510 #ifdef HAVE_MALLOC_H
22511 #include <malloc.h>
22512 #endif
22513 #ifdef HAVE_UTMP_H
22514 #include <utmp.h>
22515 #endif
22516 #ifdef HAVE_UTMPX_H
22517 #include <utmpx.h>
22518 #endif
22519 #ifdef HAVE_SYS_SELECT_H
22520 #include <sys/select.h>
22521 #endif
22522 #ifdef HAVE_DLFCN_H
22523 #include <dlfcn.h>
22524 #endif
22525 #ifdef HAVE_REGEX_H
22526 #include <regex.h>
22527 #endif
22528 #ifdef HAVE_SYSLOG_H
22529 #include <syslog.h>
22530 #endif
22531 #ifdef HAVE_INTTYPES_H
22532 #include <inttypes.h>
22533 #endif
22534 #ifdef HAVE_STDINT_H
22535 #include <stdint.h>
22536 #endif
22537 #ifdef HAVE_ARPA_INET_H
22538 #include <arpa/inet.h>
22539 #endif
22540
22541 int
22542 main ()
22543 {
22544 char *(*pfn) = (char *(*)) $ac_func
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22551   (eval $ac_compile) 2>conftest.er1
22552   ac_status=$?
22553   grep -v '^ *+' conftest.er1 >conftest.err
22554   rm -f conftest.er1
22555   cat conftest.err >&5
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } &&
22558          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; } &&
22564          { ac_try='test -s conftest.$ac_objext'
22565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566   (eval $ac_try) 2>&5
22567   ac_status=$?
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); }; }; then
22570   eval "radius_cv_decl_needed_$ac_func=no"
22571 else
22572   echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22574
22575 eval "radius_cv_decl_needed_$ac_func=yes"
22576 fi
22577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22578 fi
22579
22580 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22581   echo "$as_me:$LINENO: result: yes" >&5
22582 echo "${ECHO_T}yes" >&6
22583   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22584   cat >>confdefs.h <<_ACEOF
22585 #define $radius_tr_decl 1
22586 _ACEOF
22587
22588 else
22589   echo "$as_me:$LINENO: result: no" >&5
22590 echo "${ECHO_T}no" >&6
22591 fi
22592
22593 done
22594
22595
22596 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22597 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22598 if test "${ac_cv_type_signal+set}" = set; then
22599   echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601   cat >conftest.$ac_ext <<_ACEOF
22602 /* confdefs.h.  */
22603 _ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h.  */
22607 #include <sys/types.h>
22608 #include <signal.h>
22609 #ifdef signal
22610 # undef signal
22611 #endif
22612 #ifdef __cplusplus
22613 extern "C" void (*signal (int, void (*)(int)))(int);
22614 #else
22615 void (*signal ()) ();
22616 #endif
22617
22618 int
22619 main ()
22620 {
22621 int i;
22622   ;
22623   return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest.$ac_objext
22627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22628   (eval $ac_compile) 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } &&
22635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637   (eval $ac_try) 2>&5
22638   ac_status=$?
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); }; } &&
22641          { ac_try='test -s conftest.$ac_objext'
22642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643   (eval $ac_try) 2>&5
22644   ac_status=$?
22645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646   (exit $ac_status); }; }; then
22647   ac_cv_type_signal=void
22648 else
22649   echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22651
22652 ac_cv_type_signal=int
22653 fi
22654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22655 fi
22656 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22657 echo "${ECHO_T}$ac_cv_type_signal" >&6
22658
22659 cat >>confdefs.h <<_ACEOF
22660 #define RETSIGTYPE $ac_cv_type_signal
22661 _ACEOF
22662
22663
22664
22665 if test "x$ac_cv_header_utmpx_h" = "xyes"
22666 then
22667
22668   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22669 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22670
22671
22672   cat >conftest.$ac_ext <<_ACEOF
22673 /* confdefs.h.  */
22674 _ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h.  */
22678
22679 #include <utmpx.h>
22680 #ifndef offsetof
22681 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22682 #endif
22683
22684 int
22685 main ()
22686 {
22687  int foo = offsetof(struct utmpx, ut_xtime)
22688   ;
22689   return 0;
22690 }
22691 _ACEOF
22692 rm -f conftest.$ac_objext
22693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22694   (eval $ac_compile) 2>conftest.er1
22695   ac_status=$?
22696   grep -v '^ *+' conftest.er1 >conftest.err
22697   rm -f conftest.er1
22698   cat conftest.err >&5
22699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700   (exit $ac_status); } &&
22701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703   (eval $ac_try) 2>&5
22704   ac_status=$?
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); }; } &&
22707          { ac_try='test -s conftest.$ac_objext'
22708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709   (eval $ac_try) 2>&5
22710   ac_status=$?
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); }; }; then
22713   has_element=" "
22714 else
22715   echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22717
22718 has_element=
22719 fi
22720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22721
22722   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22723   if test "x$has_element" != "x"; then
22724     echo "$as_me:$LINENO: result: yes" >&5
22725 echo "${ECHO_T}yes" >&6
22726     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22727   else
22728     echo "$as_me:$LINENO: result: no" >&5
22729 echo "${ECHO_T}no" >&6
22730     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22731  fi
22732
22733  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22734  then
22735    cat >>confdefs.h <<\_ACEOF
22736 #define ut_xtime ut_tv.tv_sec
22737 _ACEOF
22738
22739  fi
22740 fi
22741
22742
22743   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22744 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22745
22746
22747   cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753
22754 #include <netinet/in.h>
22755 #ifndef offsetof
22756 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22757 #endif
22758
22759 int
22760 main ()
22761 {
22762  int foo = offsetof(struct in_pktinfo, ipi_addr)
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769   (eval $ac_compile) 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } &&
22776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778   (eval $ac_try) 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; } &&
22782          { ac_try='test -s conftest.$ac_objext'
22783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784   (eval $ac_try) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); }; }; then
22788   has_element=" "
22789 else
22790   echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22792
22793 has_element=
22794 fi
22795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22796
22797   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22798   if test "x$has_element" != "x"; then
22799     echo "$as_me:$LINENO: result: yes" >&5
22800 echo "${ECHO_T}yes" >&6
22801     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22802   else
22803     echo "$as_me:$LINENO: result: no" >&5
22804 echo "${ECHO_T}no" >&6
22805     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22806  fi
22807
22808 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22809 then
22810         cat >>confdefs.h <<\_ACEOF
22811 #define HAVE_IP_PKTINFO 1
22812 _ACEOF
22813
22814 fi
22815
22816
22817 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22819 if test "${ac_cv_c_const+set}" = set; then
22820   echo $ECHO_N "(cached) $ECHO_C" >&6
22821 else
22822   cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828
22829 int
22830 main ()
22831 {
22832 /* FIXME: Include the comments suggested by Paul. */
22833 #ifndef __cplusplus
22834   /* Ultrix mips cc rejects this.  */
22835   typedef int charset[2];
22836   const charset x;
22837   /* SunOS 4.1.1 cc rejects this.  */
22838   char const *const *ccp;
22839   char **p;
22840   /* NEC SVR4.0.2 mips cc rejects this.  */
22841   struct point {int x, y;};
22842   static struct point const zero = {0,0};
22843   /* AIX XL C 1.02.0.0 rejects this.
22844      It does not let you subtract one const X* pointer from another in
22845      an arm of an if-expression whose if-part is not a constant
22846      expression */
22847   const char *g = "string";
22848   ccp = &g + (g ? g-g : 0);
22849   /* HPUX 7.0 cc rejects these. */
22850   ++ccp;
22851   p = (char**) ccp;
22852   ccp = (char const *const *) p;
22853   { /* SCO 3.2v4 cc rejects this.  */
22854     char *t;
22855     char const *s = 0 ? (char *) 0 : (char const *) 0;
22856
22857     *t++ = 0;
22858   }
22859   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22860     int x[] = {25, 17};
22861     const int *foo = &x[0];
22862     ++foo;
22863   }
22864   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22865     typedef const int *iptr;
22866     iptr p = 0;
22867     ++p;
22868   }
22869   { /* AIX XL C 1.02.0.0 rejects this saying
22870        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22871     struct s { int j; const int *ap[3]; };
22872     struct s *b; b->j = 5;
22873   }
22874   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22875     const int foo = 10;
22876   }
22877 #endif
22878
22879   ;
22880   return 0;
22881 }
22882 _ACEOF
22883 rm -f conftest.$ac_objext
22884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22885   (eval $ac_compile) 2>conftest.er1
22886   ac_status=$?
22887   grep -v '^ *+' conftest.er1 >conftest.err
22888   rm -f conftest.er1
22889   cat conftest.err >&5
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); } &&
22892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894   (eval $ac_try) 2>&5
22895   ac_status=$?
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); }; } &&
22898          { ac_try='test -s conftest.$ac_objext'
22899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900   (eval $ac_try) 2>&5
22901   ac_status=$?
22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); }; }; then
22904   ac_cv_c_const=yes
22905 else
22906   echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22908
22909 ac_cv_c_const=no
22910 fi
22911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22912 fi
22913 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22914 echo "${ECHO_T}$ac_cv_c_const" >&6
22915 if test $ac_cv_c_const = no; then
22916
22917 cat >>confdefs.h <<\_ACEOF
22918 #define const
22919 _ACEOF
22920
22921 fi
22922
22923
22924 echo "$as_me:$LINENO: checking type of OS" >&5
22925 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22926 OS=`uname -s`
22927 echo "$as_me:$LINENO: result: $OS" >&5
22928 echo "${ECHO_T}$OS" >&6
22929 if test "$OS" = "OS/2"; then
22930         LIBPREFIX=
22931 else
22932         LIBPREFIX=lib
22933 fi
22934
22935
22936 if test "x$GCC" = "xyes"; then
22937     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22938 fi
22939
22940 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22941 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22942 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22943   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22944   CFLAGS="$CFLAGS $devflags"
22945   INSTALLSTRIP=""
22946   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22947 echo "${ECHO_T}yes.  Using $devflags" >&6
22948 else
22949   devflags=""
22950   CFLAGS="$CFLAGS -DNDEBUG"
22951   INSTALLSTRIP="-s"
22952   echo "$as_me:$LINENO: result: no." >&5
22953 echo "${ECHO_T}no." >&6
22954 fi
22955
22956
22957 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22958 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22959 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22960   echo $ECHO_N "(cached) $ECHO_C" >&6
22961 else
22962   ac_check_lib_save_LIBS=$LIBS
22963 LIBS="-lcrypt  $LIBS"
22964 cat >conftest.$ac_ext <<_ACEOF
22965 /* confdefs.h.  */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h.  */
22970
22971 /* Override any gcc2 internal prototype to avoid an error.  */
22972 #ifdef __cplusplus
22973 extern "C"
22974 #endif
22975 /* We use char because int might match the return type of a gcc2
22976    builtin and then its argument prototype would still apply.  */
22977 char crypt ();
22978 int
22979 main ()
22980 {
22981 crypt ();
22982   ;
22983   return 0;
22984 }
22985 _ACEOF
22986 rm -f conftest.$ac_objext conftest$ac_exeext
22987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22988   (eval $ac_link) 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } &&
22995          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997   (eval $ac_try) 2>&5
22998   ac_status=$?
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); }; } &&
23001          { ac_try='test -s conftest$ac_exeext'
23002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003   (eval $ac_try) 2>&5
23004   ac_status=$?
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); }; }; then
23007   ac_cv_lib_crypt_crypt=yes
23008 else
23009   echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23011
23012 ac_cv_lib_crypt_crypt=no
23013 fi
23014 rm -f conftest.err conftest.$ac_objext \
23015       conftest$ac_exeext conftest.$ac_ext
23016 LIBS=$ac_check_lib_save_LIBS
23017 fi
23018 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23019 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23020 if test $ac_cv_lib_crypt_crypt = yes; then
23021   CRYPTLIB="-lcrypt"
23022
23023 fi
23024
23025 if test "$CRYPTLIB" != ""; then
23026   cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_CRYPT 1
23028 _ACEOF
23029
23030 else
23031   echo "$as_me:$LINENO: checking for crypt" >&5
23032 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23033 if test "${ac_cv_func_crypt+set}" = set; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036   cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h.  */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h.  */
23042 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23044 #define crypt innocuous_crypt
23045
23046 /* System header to define __stub macros and hopefully few prototypes,
23047     which can conflict with char crypt (); below.
23048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23049     <limits.h> exists even on freestanding compilers.  */
23050
23051 #ifdef __STDC__
23052 # include <limits.h>
23053 #else
23054 # include <assert.h>
23055 #endif
23056
23057 #undef crypt
23058
23059 /* Override any gcc2 internal prototype to avoid an error.  */
23060 #ifdef __cplusplus
23061 extern "C"
23062 {
23063 #endif
23064 /* We use char because int might match the return type of a gcc2
23065    builtin and then its argument prototype would still apply.  */
23066 char crypt ();
23067 /* The GNU C library defines this for functions which it implements
23068     to always fail with ENOSYS.  Some functions are actually named
23069     something starting with __ and the normal name is an alias.  */
23070 #if defined (__stub_crypt) || defined (__stub___crypt)
23071 choke me
23072 #else
23073 char (*f) () = crypt;
23074 #endif
23075 #ifdef __cplusplus
23076 }
23077 #endif
23078
23079 int
23080 main ()
23081 {
23082 return f != crypt;
23083   ;
23084   return 0;
23085 }
23086 _ACEOF
23087 rm -f conftest.$ac_objext conftest$ac_exeext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23089   (eval $ac_link) 2>conftest.er1
23090   ac_status=$?
23091   grep -v '^ *+' conftest.er1 >conftest.err
23092   rm -f conftest.er1
23093   cat conftest.err >&5
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); } &&
23096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098   (eval $ac_try) 2>&5
23099   ac_status=$?
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); }; } &&
23102          { ac_try='test -s conftest$ac_exeext'
23103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104   (eval $ac_try) 2>&5
23105   ac_status=$?
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); }; }; then
23108   ac_cv_func_crypt=yes
23109 else
23110   echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_cv_func_crypt=no
23114 fi
23115 rm -f conftest.err conftest.$ac_objext \
23116       conftest$ac_exeext conftest.$ac_ext
23117 fi
23118 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23119 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23120 if test $ac_cv_func_crypt = yes; then
23121   cat >>confdefs.h <<\_ACEOF
23122 #define HAVE_CRYPT 1
23123 _ACEOF
23124
23125 fi
23126
23127 fi
23128
23129 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23130 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23131 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23132   echo $ECHO_N "(cached) $ECHO_C" >&6
23133 else
23134   ac_check_lib_save_LIBS=$LIBS
23135 LIBS="-lcipher  $LIBS"
23136 cat >conftest.$ac_ext <<_ACEOF
23137 /* confdefs.h.  */
23138 _ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h.  */
23142
23143 /* Override any gcc2 internal prototype to avoid an error.  */
23144 #ifdef __cplusplus
23145 extern "C"
23146 #endif
23147 /* We use char because int might match the return type of a gcc2
23148    builtin and then its argument prototype would still apply.  */
23149 char setkey ();
23150 int
23151 main ()
23152 {
23153 setkey ();
23154   ;
23155   return 0;
23156 }
23157 _ACEOF
23158 rm -f conftest.$ac_objext conftest$ac_exeext
23159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23160   (eval $ac_link) 2>conftest.er1
23161   ac_status=$?
23162   grep -v '^ *+' conftest.er1 >conftest.err
23163   rm -f conftest.er1
23164   cat conftest.err >&5
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); } &&
23167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169   (eval $ac_try) 2>&5
23170   ac_status=$?
23171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); }; } &&
23173          { ac_try='test -s conftest$ac_exeext'
23174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175   (eval $ac_try) 2>&5
23176   ac_status=$?
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); }; }; then
23179   ac_cv_lib_cipher_setkey=yes
23180 else
23181   echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23183
23184 ac_cv_lib_cipher_setkey=no
23185 fi
23186 rm -f conftest.err conftest.$ac_objext \
23187       conftest$ac_exeext conftest.$ac_ext
23188 LIBS=$ac_check_lib_save_LIBS
23189 fi
23190 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23191 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23192 if test $ac_cv_lib_cipher_setkey = yes; then
23193   CRYPTLIB="${CRYPTLIB} -lcipher"
23194
23195 fi
23196
23197
23198
23199 if test "x$WITH_SNMP" = "xyes"; then
23200
23201
23202
23203
23204 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23205 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23206
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213
23214 #ifdef HAVE_SYS_TYPES_H
23215 #include <sys/types.h>
23216 #endif
23217 #ifdef HAVE_STDINT_H
23218 #include <stdint.h>
23219 #endif
23220 #ifdef HAVE_STDIO_H
23221 #include <stdio.h>
23222 #endif
23223 #ifdef HAVE_NETDB_H
23224 #include <netdb.h>
23225 #endif
23226 #ifdef HAVE_UNISTD_H
23227 #include <unistd.h>
23228 #endif
23229 #include <ucd-snmp/ucd-snmp-config.h>
23230 #include <ucd-snmp/asn1.h>
23231 #include <ucd-snmp/snmp.h>
23232 #include <ucd-snmp/snmp_impl.h>
23233 int
23234 main ()
23235 {
23236  int a = 1;
23237   ;
23238   return 0;
23239 }
23240 _ACEOF
23241 rm -f conftest.$ac_objext
23242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23243   (eval $ac_compile) 2>conftest.er1
23244   ac_status=$?
23245   grep -v '^ *+' conftest.er1 >conftest.err
23246   rm -f conftest.er1
23247   cat conftest.err >&5
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); } &&
23250          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23252   (eval $ac_try) 2>&5
23253   ac_status=$?
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); }; } &&
23256          { ac_try='test -s conftest.$ac_objext'
23257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258   (eval $ac_try) 2>&5
23259   ac_status=$?
23260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261   (exit $ac_status); }; }; then
23262   SNMP_INCLUDE="";ucdsnmp=yes
23263 else
23264   echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23266
23267 ucdsnmp=
23268 fi
23269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23270
23271 if test "x$ucdsnmp" = "x"; then
23272   old_CFLAGS="$CFLAGS"
23273   for try in /usr/include /usr/local/include $snmp_include_dir; do
23274     CFLAGS="$old_CFLAGS -I$try"
23275     cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h.  */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h.  */
23281
23282 #ifdef HAVE_SYS_TYPES_H
23283 #include <sys/types.h>
23284 #endif
23285 #ifdef HAVE_STDINT_H
23286 #include <stdint.h>
23287 #endif
23288 #ifdef HAVE_STDIO_H
23289 #include <stdio.h>
23290 #endif
23291 #ifdef HAVE_NETDB_H
23292 #include <netdb.h>
23293 #endif
23294 #ifdef HAVE_UNISTD_H
23295 #include <unistd.h>
23296 #endif
23297 #include <ucd-snmp/ucd-snmp-config.h>
23298 #include <ucd-snmp/asn1.h>
23299 #include <ucd-snmp/snmp.h>
23300 #include <ucd-snmp/snmp_impl.h>
23301 int
23302 main ()
23303 {
23304  int a = 1;
23305   ;
23306   return 0;
23307 }
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23311   (eval $ac_compile) 2>conftest.er1
23312   ac_status=$?
23313   grep -v '^ *+' conftest.er1 >conftest.err
23314   rm -f conftest.er1
23315   cat conftest.err >&5
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); } &&
23318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320   (eval $ac_try) 2>&5
23321   ac_status=$?
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); }; } &&
23324          { ac_try='test -s conftest.$ac_objext'
23325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326   (eval $ac_try) 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; }; then
23330   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23331 else
23332   echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23334
23335 ucdsnmp=
23336 fi
23337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23338     if test "x$ucdsnmp" != "x"; then
23339       break;
23340     fi
23341   done
23342   CFLAGS="$old_CFLAGS"
23343 fi
23344
23345 if test "x$ucdsnmp" = "x"; then
23346   old_CFLAGS="$CFLAGS"
23347   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23348     CFLAGS="$old_CFLAGS -I$try"
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h.  */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h.  */
23355
23356 #ifdef HAVE_SYS_TYPES_H
23357 #include <sys/types.h>
23358 #endif
23359 #ifdef HAVE_STDINT_H
23360 #include <stdint.h>
23361 #endif
23362 #ifdef HAVE_STDIO_H
23363 #include <stdio.h>
23364 #endif
23365 #ifdef HAVE_NETDB_H
23366 #include <netdb.h>
23367 #endif
23368 #ifdef HAVE_UNISTD_H
23369 #include <unistd.h>
23370 #endif
23371 #include <asn1.h>
23372 #include <snmp.h>
23373 #include <snmp_impl.h>
23374 int
23375 main ()
23376 {
23377  int a = 1;
23378   ;
23379   return 0;
23380 }
23381 _ACEOF
23382 rm -f conftest.$ac_objext
23383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23384   (eval $ac_compile) 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } &&
23391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393   (eval $ac_try) 2>&5
23394   ac_status=$?
23395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396   (exit $ac_status); }; } &&
23397          { ac_try='test -s conftest.$ac_objext'
23398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399   (eval $ac_try) 2>&5
23400   ac_status=$?
23401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402   (exit $ac_status); }; }; then
23403   SNMP_INCLUDE="";ucdsnmp=no
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408 ucdsnmp=
23409 fi
23410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23411     if test "x$ucdsnmp" != "x"; then
23412       break;
23413     fi
23414   done
23415   CFLAGS="$old_CFLAGS"
23416 fi
23417
23418 if test "x$ucdsnmp" = "x"; then
23419   old_CFLAGS="$CFLAGS"
23420   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23421     CFLAGS="$old_CFLAGS -I$try"
23422     cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h.  */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h.  */
23428
23429 #ifdef HAVE_SYS_TYPES_H
23430 #include <sys/types.h>
23431 #endif
23432 #ifdef HAVE_STDINT_H
23433 #include <stdint.h>
23434 #endif
23435 #ifdef HAVE_STDIO_H
23436 #include <stdio.h>
23437 #endif
23438 #ifdef HAVE_NETDB_H
23439 #include <netdb.h>
23440 #endif
23441 #ifdef HAVE_UNISTD_H
23442 #include <unistd.h>
23443 #endif
23444 #include <asn1.h>
23445 #include <snmp.h>
23446 #include <snmp_impl.h>
23447 int
23448 main ()
23449 {
23450  int a = 1;
23451   ;
23452   return 0;
23453 }
23454 _ACEOF
23455 rm -f conftest.$ac_objext
23456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23457   (eval $ac_compile) 2>conftest.er1
23458   ac_status=$?
23459   grep -v '^ *+' conftest.er1 >conftest.err
23460   rm -f conftest.er1
23461   cat conftest.err >&5
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); } &&
23464          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466   (eval $ac_try) 2>&5
23467   ac_status=$?
23468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469   (exit $ac_status); }; } &&
23470          { ac_try='test -s conftest.$ac_objext'
23471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472   (eval $ac_try) 2>&5
23473   ac_status=$?
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); }; }; then
23476   SNMP_INCLUDE="-I$try";ucdsnmp=no
23477 else
23478   echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23480
23481 ucdsnmp=
23482 fi
23483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23484     if test "x$ucdsnmp" != "x"; then
23485       break;
23486     fi
23487   done
23488   CFLAGS="$old_CFLAGS"
23489 fi
23490
23491 if test "x$ucdsnmp" = "x"; then
23492   echo "$as_me:$LINENO: result: no" >&5
23493 echo "${ECHO_T}no" >&6
23494 else
23495   if test "x$ucdsnmp" = "xyes"; then
23496     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23497 echo "${ECHO_T}(ucd-snmp)yes" >&6
23498     cat >>confdefs.h <<\_ACEOF
23499 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23500 _ACEOF
23501
23502   else
23503     echo "$as_me:$LINENO: result: yes" >&5
23504 echo "${ECHO_T}yes" >&6
23505     cat >>confdefs.h <<\_ACEOF
23506 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23507 _ACEOF
23508
23509   fi
23510   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23511 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23512
23513   old_LIBS="$LIBS"
23514   LIBS="$old_LIBS -lsnmp"
23515   cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h.  */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h.  */
23521 extern char snmp_build_var_op();
23522 int
23523 main ()
23524 {
23525  snmp_build_var_op()
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 rm -f conftest.$ac_objext conftest$ac_exeext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23532   (eval $ac_link) 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } &&
23539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541   (eval $ac_try) 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; } &&
23545          { ac_try='test -s conftest$ac_exeext'
23546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547   (eval $ac_try) 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); }; }; then
23551   SNMP_LIBS="-lsnmp"
23552 else
23553   echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23555
23556 SNMP_LIBS=
23557 fi
23558 rm -f conftest.err conftest.$ac_objext \
23559       conftest$ac_exeext conftest.$ac_ext
23560
23561   if test "x$SNMP_LIBS" = "x"; then
23562     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
23563       LIBS="$old_LIBS -L$try -lsnmp"
23564       cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h.  */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h.  */
23570 extern char snmp_build_var_op();
23571 int
23572 main ()
23573 {
23574  snmp_build_var_op()
23575   ;
23576   return 0;
23577 }
23578 _ACEOF
23579 rm -f conftest.$ac_objext conftest$ac_exeext
23580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23581   (eval $ac_link) 2>conftest.er1
23582   ac_status=$?
23583   grep -v '^ *+' conftest.er1 >conftest.err
23584   rm -f conftest.er1
23585   cat conftest.err >&5
23586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587   (exit $ac_status); } &&
23588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); }; } &&
23594          { ac_try='test -s conftest$ac_exeext'
23595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596   (eval $ac_try) 2>&5
23597   ac_status=$?
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); }; }; then
23600   SNMP_LIBS="-L$try -lsnmp"
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 SNMP_LIBS=
23606 fi
23607 rm -f conftest.err conftest.$ac_objext \
23608       conftest$ac_exeext conftest.$ac_ext
23609       if test "x$SNMP_LIBS" != "x"; then
23610         break;
23611       fi
23612       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23613       cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 extern char snmp_build_var_op();
23620 int
23621 main ()
23622 {
23623  snmp_build_var_op()
23624   ;
23625   return 0;
23626 }
23627 _ACEOF
23628 rm -f conftest.$ac_objext conftest$ac_exeext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630   (eval $ac_link) 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } &&
23637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639   (eval $ac_try) 2>&5
23640   ac_status=$?
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); }; } &&
23643          { ac_try='test -s conftest$ac_exeext'
23644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645   (eval $ac_try) 2>&5
23646   ac_status=$?
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); }; }; then
23649   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23650 else
23651   echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654 SNMP_LIBS=
23655 fi
23656 rm -f conftest.err conftest.$ac_objext \
23657       conftest$ac_exeext conftest.$ac_ext
23658       if test "x$SNMP_LIBS" != "x"; then
23659         break;
23660       fi
23661     done
23662   fi
23663   LIBS="$old_LIBS"
23664
23665           CFLAGS="$old_CFLAGS"
23666   if test "x$SNMP_LIBS" = "x"; then
23667     echo "$as_me:$LINENO: result: no" >&5
23668 echo "${ECHO_T}no" >&6
23669     SNMP_INCLUDE=
23670   else
23671     echo "$as_me:$LINENO: result: yes" >&5
23672 echo "${ECHO_T}yes" >&6
23673     cat >>confdefs.h <<\_ACEOF
23674 #define WITH_SNMP 1
23675 _ACEOF
23676
23677     cat >>confdefs.h <<\_ACEOF
23678 #define HAVE_LIBSNMP 1
23679 _ACEOF
23680
23681   fi
23682 fi
23683
23684 fi
23685
23686 gethostbyaddrrstyle=""
23687 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23688 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23689 case "$host" in
23690 *-freebsd*)
23691         cat >>confdefs.h <<\_ACEOF
23692 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23693 _ACEOF
23694
23695         gethostbyaddrrstyle=BSD
23696         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23697 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23698         ;;
23699 esac
23700 if test "x$gethostbyaddrrstyle" = "x"; then
23701         cat >conftest.$ac_ext <<_ACEOF
23702 /* confdefs.h.  */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h.  */
23707
23708 #include <stdio.h>
23709 #include <netdb.h>
23710
23711 int
23712 main ()
23713 {
23714  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23715   ;
23716   return 0;
23717 }
23718 _ACEOF
23719 rm -f conftest.$ac_objext conftest$ac_exeext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721   (eval $ac_link) 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } &&
23728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest$ac_exeext'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740
23741         cat >>confdefs.h <<\_ACEOF
23742 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23743 _ACEOF
23744
23745         gethostbyaddrrstyle=GNU
23746
23747 else
23748   echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23750
23751 fi
23752 rm -f conftest.err conftest.$ac_objext \
23753       conftest$ac_exeext conftest.$ac_ext
23754 fi
23755 if test "x$gethostbyaddrrstyle" = "x"; then
23756         cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762
23763 #include <stdio.h>
23764 #include <netdb.h>
23765
23766 int
23767 main ()
23768 {
23769  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23770   ;
23771   return 0;
23772 }
23773 _ACEOF
23774 rm -f conftest.$ac_objext conftest$ac_exeext
23775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23776   (eval $ac_link) 2>conftest.er1
23777   ac_status=$?
23778   grep -v '^ *+' conftest.er1 >conftest.err
23779   rm -f conftest.er1
23780   cat conftest.err >&5
23781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782   (exit $ac_status); } &&
23783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785   (eval $ac_try) 2>&5
23786   ac_status=$?
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); }; } &&
23789          { ac_try='test -s conftest$ac_exeext'
23790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791   (eval $ac_try) 2>&5
23792   ac_status=$?
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); }; }; then
23795
23796                 cat >>confdefs.h <<\_ACEOF
23797 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23798 _ACEOF
23799
23800                 gethostbyaddrrstyle=SYSV
23801
23802 else
23803   echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806 fi
23807 rm -f conftest.err conftest.$ac_objext \
23808       conftest$ac_exeext conftest.$ac_ext
23809 fi
23810 if test "x$gethostbyaddrrstyle" = "x"; then
23811         cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h.  */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h.  */
23817
23818 #include <stdio.h>
23819 #include <netdb.h>
23820
23821 int
23822 main ()
23823 {
23824  gethostbyaddr(NULL, 0, 0)
23825   ;
23826   return 0;
23827 }
23828 _ACEOF
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23831   (eval $ac_link) 2>conftest.er1
23832   ac_status=$?
23833   grep -v '^ *+' conftest.er1 >conftest.err
23834   rm -f conftest.er1
23835   cat conftest.err >&5
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); } &&
23838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840   (eval $ac_try) 2>&5
23841   ac_status=$?
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); }; } &&
23844          { ac_try='test -s conftest$ac_exeext'
23845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846   (eval $ac_try) 2>&5
23847   ac_status=$?
23848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849   (exit $ac_status); }; }; then
23850
23851                 cat >>confdefs.h <<\_ACEOF
23852 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23853 _ACEOF
23854
23855                 gethostbyaddrrstyle=BSD
23856
23857 else
23858   echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23860
23861 fi
23862 rm -f conftest.err conftest.$ac_objext \
23863       conftest$ac_exeext conftest.$ac_ext
23864 fi
23865
23866 if test "x$gethostbyaddrrstyle" = "x"; then
23867         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23868 echo "${ECHO_T}none!  It must not exist, here." >&6
23869 else
23870         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23871 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23872 fi
23873
23874 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23875         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23876 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23877 fi
23878
23879 gethostbynamerstyle=""
23880 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23881 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h.  */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h.  */
23888
23889 #include <stdio.h>
23890 #include <netdb.h>
23891
23892 int
23893 main ()
23894 {
23895  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23896   ;
23897   return 0;
23898 }
23899 _ACEOF
23900 rm -f conftest.$ac_objext conftest$ac_exeext
23901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23902   (eval $ac_link) 2>conftest.er1
23903   ac_status=$?
23904   grep -v '^ *+' conftest.er1 >conftest.err
23905   rm -f conftest.er1
23906   cat conftest.err >&5
23907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); } &&
23909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); }; } &&
23915          { ac_try='test -s conftest$ac_exeext'
23916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917   (eval $ac_try) 2>&5
23918   ac_status=$?
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); }; }; then
23921
23922         cat >>confdefs.h <<\_ACEOF
23923 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23924 _ACEOF
23925
23926         gethostbynamerstyle=GNU
23927
23928 else
23929   echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932 fi
23933 rm -f conftest.err conftest.$ac_objext \
23934       conftest$ac_exeext conftest.$ac_ext
23935 if test "x$gethostbynamerstyle" = "x"; then
23936         cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h.  */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h.  */
23942
23943 #include <stdio.h>
23944 #include <netdb.h>
23945
23946 int
23947 main ()
23948 {
23949  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956   (eval $ac_link) 2>conftest.er1
23957   ac_status=$?
23958   grep -v '^ *+' conftest.er1 >conftest.err
23959   rm -f conftest.er1
23960   cat conftest.err >&5
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); } &&
23963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965   (eval $ac_try) 2>&5
23966   ac_status=$?
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); }; } &&
23969          { ac_try='test -s conftest$ac_exeext'
23970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971   (eval $ac_try) 2>&5
23972   ac_status=$?
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); }; }; then
23975
23976                 cat >>confdefs.h <<\_ACEOF
23977 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23978 _ACEOF
23979
23980                 gethostbynamerstyle=SYSV
23981
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986 fi
23987 rm -f conftest.err conftest.$ac_objext \
23988       conftest$ac_exeext conftest.$ac_ext
23989 fi
23990 if test "x$gethostbynamerstyle" = "x"; then
23991         cat >conftest.$ac_ext <<_ACEOF
23992 /* confdefs.h.  */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h.  */
23997
23998 #include <stdio.h>
23999 #include <netdb.h>
24000
24001 int
24002 main ()
24003 {
24004  gethostbyname(NULL)
24005   ;
24006   return 0;
24007 }
24008 _ACEOF
24009 rm -f conftest.$ac_objext conftest$ac_exeext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24011   (eval $ac_link) 2>conftest.er1
24012   ac_status=$?
24013   grep -v '^ *+' conftest.er1 >conftest.err
24014   rm -f conftest.er1
24015   cat conftest.err >&5
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } &&
24018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020   (eval $ac_try) 2>&5
24021   ac_status=$?
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); }; } &&
24024          { ac_try='test -s conftest$ac_exeext'
24025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026   (eval $ac_try) 2>&5
24027   ac_status=$?
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); }; }; then
24030
24031                 cat >>confdefs.h <<\_ACEOF
24032 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24033 _ACEOF
24034
24035                 gethostbynamerstyle=BSD
24036
24037 else
24038   echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24040
24041 fi
24042 rm -f conftest.err conftest.$ac_objext \
24043       conftest$ac_exeext conftest.$ac_ext
24044 fi
24045
24046 if test "x$gethostbynamerstyle" = "x"; then
24047         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24048 echo "${ECHO_T}none!  It must not exist, here." >&6
24049 else
24050         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24051 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24052 fi
24053
24054 if test "x$gethostbynamerstyle" = "xBSD"; then
24055         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24056 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24057 fi
24058
24059 ctimerstyle=""
24060 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24061 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068
24069 #include <time.h>
24070
24071 int
24072 main ()
24073 {
24074  ctime_r(NULL, NULL, 0)
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 rm -f conftest.$ac_objext conftest$ac_exeext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24081   (eval $ac_link) 2>conftest.er1
24082   ac_status=$?
24083   grep -v '^ *+' conftest.er1 >conftest.err
24084   rm -f conftest.er1
24085   cat conftest.err >&5
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); } &&
24088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090   (eval $ac_try) 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; } &&
24094          { ac_try='test -s conftest$ac_exeext'
24095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096   (eval $ac_try) 2>&5
24097   ac_status=$?
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); }; }; then
24100
24101         cat >>confdefs.h <<\_ACEOF
24102 #define CTIMERSTYLE SOLARISSTYLE
24103 _ACEOF
24104
24105         ctimerstyle="SOLARIS"
24106
24107 else
24108   echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24110
24111 fi
24112 rm -f conftest.err conftest.$ac_objext \
24113       conftest$ac_exeext conftest.$ac_ext
24114 if test "x$ctimerstyle" = "x"; then
24115         cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h.  */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h.  */
24121
24122 #include <time.h>
24123
24124 int
24125 main ()
24126 {
24127  ctime_r(NULL, NULL)
24128   ;
24129   return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24134   (eval $ac_link) 2>conftest.er1
24135   ac_status=$?
24136   grep -v '^ *+' conftest.er1 >conftest.err
24137   rm -f conftest.er1
24138   cat conftest.err >&5
24139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); } &&
24141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143   (eval $ac_try) 2>&5
24144   ac_status=$?
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); }; } &&
24147          { ac_try='test -s conftest$ac_exeext'
24148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149   (eval $ac_try) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; }; then
24153
24154                 cat >>confdefs.h <<\_ACEOF
24155 #define CTIMERSTYLE POSIXSTYLE
24156 _ACEOF
24157
24158                 ctimerstyle="POSIX"
24159
24160 else
24161   echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24163
24164 fi
24165 rm -f conftest.err conftest.$ac_objext \
24166       conftest$ac_exeext conftest.$ac_ext
24167 fi
24168
24169 if test "x$ctimerstyle" = "x"; then
24170         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24171 echo "${ECHO_T}none!  It must not exist, here." >&6
24172 else
24173         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24174 echo "${ECHO_T}${ctimerstyle}-style" >&6
24175 fi
24176
24177
24178 if test x"$rad_enable_largefiles" = xyes ; then
24179     echo "$as_me:$LINENO: checking for largefile linkage" >&5
24180 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
24181     case "$host" in
24182     *-aix4.01*)
24183         echo "$as_me:$LINENO: result: no" >&5
24184 echo "${ECHO_T}no" >&6
24185         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24186 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24187    { (exit 1); exit 1; }; }
24188         ;;
24189     *-aix4*)
24190         echo "$as_me:$LINENO: result: ok" >&5
24191 echo "${ECHO_T}ok" >&6
24192         LFS_CFLAGS="-D_LARGE_FILES"
24193         LFS_LDFLAGS=""
24194         LFS_LIBS=""
24195         ;;
24196     *-hpux*)
24197         echo "$as_me:$LINENO: result: ok" >&5
24198 echo "${ECHO_T}ok" >&6
24199         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24200         LFS_LDFLAGS=""
24201         LFS_LIBS=""
24202         ;;
24203     *-irix*)
24204         echo "$as_me:$LINENO: result: no" >&5
24205 echo "${ECHO_T}no" >&6
24206         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24207 echo "$as_me: error: Large files not supported on this platform" >&2;}
24208    { (exit 1); exit 1; }; }
24209         ;;
24210     *-linux*)
24211         echo "$as_me:$LINENO: result: maybe" >&5
24212 echo "${ECHO_T}maybe" >&6
24213         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24214         LFS_LDFLAGS=""
24215         LFS_LIBS=""
24216
24217 cat >>confdefs.h <<\_ACEOF
24218 #define _GNU_SOURCE 1
24219 _ACEOF
24220
24221         ;;
24222     *-solaris*)
24223         echo "$as_me:$LINENO: result: ok" >&5
24224 echo "${ECHO_T}ok" >&6
24225         # Extract the first word of "getconf", so it can be a program name with args.
24226 set dummy getconf; ac_word=$2
24227 echo "$as_me:$LINENO: checking for $ac_word" >&5
24228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24229 if test "${ac_cv_path_GETCONF+set}" = set; then
24230   echo $ECHO_N "(cached) $ECHO_C" >&6
24231 else
24232   case $GETCONF in
24233   [\\/]* | ?:[\\/]*)
24234   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24235   ;;
24236   *)
24237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24238 for as_dir in $PATH
24239 do
24240   IFS=$as_save_IFS
24241   test -z "$as_dir" && as_dir=.
24242   for ac_exec_ext in '' $ac_executable_extensions; do
24243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24244     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24246     break 2
24247   fi
24248 done
24249 done
24250
24251   ;;
24252 esac
24253 fi
24254 GETCONF=$ac_cv_path_GETCONF
24255
24256 if test -n "$GETCONF"; then
24257   echo "$as_me:$LINENO: result: $GETCONF" >&5
24258 echo "${ECHO_T}$GETCONF" >&6
24259 else
24260   echo "$as_me:$LINENO: result: no" >&5
24261 echo "${ECHO_T}no" >&6
24262 fi
24263
24264         if test -z "$GETCONF" ; then
24265             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24266 echo "$as_me: error: getconf required to configure large file support" >&2;}
24267    { (exit 1); exit 1; }; }
24268         fi
24269         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24270         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24271         LFS_LIBS=`$GETCONF LFS_LIBS`
24272         ;;
24273     *)
24274         echo "$as_me:$LINENO: result: maybe" >&5
24275 echo "${ECHO_T}maybe" >&6
24276         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24277         LFS_LDFLAGS=""
24278         LFS_LIBS=""
24279         ;;
24280     esac
24281
24282
24283
24284 fi
24285
24286 HOSTINFO=$host
24287
24288
24289
24290 top_builddir=`pwd`
24291 export top_builddir
24292 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24293 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24294
24295
24296
24297 if test "x$INCLTDL" != "x";then
24298   INCLTDL='-I${top_builddir}/''libltdl'
24299 fi
24300
24301
24302
24303 mysubdirs=
24304 if test "x$EXPERIMENTAL" = "xyes"; then
24305   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24306     mysubdirs=`echo $bar`
24307 else
24308         for bar in `cat src/modules/stable`; do
24309     if test -f src/modules/$bar/configure; then
24310       mysubdirs="$mysubdirs src/modules/$bar"
24311     fi
24312   done
24313 fi
24314
24315 MODULES=
24316 if test "x$EXPERIMENTAL" = "xyes"; then
24317   for foo in `ls -1 src/modules | grep rlm_`; do
24318     MODULES="$MODULES $foo"
24319   done
24320 else
24321             for foo in `cat src/modules/stable`; do
24322     MODULES="$MODULES $foo"
24323    done
24324 fi
24325
24326
24327
24328 subdirs="$subdirs $mysubdirs"
24329
24330
24331
24332
24333           ac_config_commands="$ac_config_commands stamp-h"
24334
24335           ac_config_commands="$ac_config_commands build-radpaths-h"
24336
24337           ac_config_commands="$ac_config_commands main-chmod"
24338
24339           ac_config_commands="$ac_config_commands scripts-chmod"
24340
24341
24342
24343
24344
24345 USE_SHARED_LIBS=$enable_shared
24346
24347 USE_STATIC_LIBS=$enable_static
24348
24349
24350
24351
24352
24353 export CFLAGS LIBS
24354
24355                                                                                                                                             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"
24356 cat >confcache <<\_ACEOF
24357 # This file is a shell script that caches the results of configure
24358 # tests run on this system so they can be shared between configure
24359 # scripts and configure runs, see configure's option --config-cache.
24360 # It is not useful on other systems.  If it contains results you don't
24361 # want to keep, you may remove or edit it.
24362 #
24363 # config.status only pays attention to the cache file if you give it
24364 # the --recheck option to rerun configure.
24365 #
24366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24368 # following values.
24369
24370 _ACEOF
24371
24372 # The following way of writing the cache mishandles newlines in values,
24373 # but we know of no workaround that is simple, portable, and efficient.
24374 # So, don't put newlines in cache variables' values.
24375 # Ultrix sh set writes to stderr and can't be redirected directly,
24376 # and sets the high bit in the cache file unless we assign to the vars.
24377 {
24378   (set) 2>&1 |
24379     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24380     *ac_space=\ *)
24381       # `set' does not quote correctly, so add quotes (double-quote
24382       # substitution turns \\\\ into \\, and sed turns \\ into \).
24383       sed -n \
24384         "s/'/'\\\\''/g;
24385           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24386       ;;
24387     *)
24388       # `set' quotes correctly as required by POSIX, so do not add quotes.
24389       sed -n \
24390         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24391       ;;
24392     esac;
24393 } |
24394   sed '
24395      t clear
24396      : clear
24397      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24398      t end
24399      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24400      : end' >>confcache
24401 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24402   if test -w $cache_file; then
24403     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24404     cat confcache >$cache_file
24405   else
24406     echo "not updating unwritable cache $cache_file"
24407   fi
24408 fi
24409 rm -f confcache
24410
24411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24412 # Let make expand exec_prefix.
24413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24414
24415 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24416 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24417 # trailing colons and then remove the whole line if VPATH becomes empty
24418 # (actually we leave an empty line to preserve line numbers).
24419 if test "x$srcdir" = x.; then
24420   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24421 s/:*\$(srcdir):*/:/;
24422 s/:*\${srcdir}:*/:/;
24423 s/:*@srcdir@:*/:/;
24424 s/^\([^=]*=[     ]*\):*/\1/;
24425 s/:*$//;
24426 s/^[^=]*=[       ]*$//;
24427 }'
24428 fi
24429
24430 DEFS=-DHAVE_CONFIG_H
24431
24432 ac_libobjs=
24433 ac_ltlibobjs=
24434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24435   # 1. Remove the extension, and $U if already installed.
24436   ac_i=`echo "$ac_i" |
24437          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24438   # 2. Add them.
24439   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24440   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24441 done
24442 LIBOBJS=$ac_libobjs
24443
24444 LTLIBOBJS=$ac_ltlibobjs
24445
24446
24447
24448 : ${CONFIG_STATUS=./config.status}
24449 ac_clean_files_save=$ac_clean_files
24450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24451 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24452 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24453 cat >$CONFIG_STATUS <<_ACEOF
24454 #! $SHELL
24455 # Generated by $as_me.
24456 # Run this file to recreate the current configuration.
24457 # Compiler output produced by configure, useful for debugging
24458 # configure, is in config.log if it exists.
24459
24460 debug=false
24461 ac_cs_recheck=false
24462 ac_cs_silent=false
24463 SHELL=\${CONFIG_SHELL-$SHELL}
24464 _ACEOF
24465
24466 cat >>$CONFIG_STATUS <<\_ACEOF
24467 ## --------------------- ##
24468 ## M4sh Initialization.  ##
24469 ## --------------------- ##
24470
24471 # Be Bourne compatible
24472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24473   emulate sh
24474   NULLCMD=:
24475   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24476   # is contrary to our usage.  Disable this feature.
24477   alias -g '${1+"$@"}'='"$@"'
24478 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24479   set -o posix
24480 fi
24481 DUALCASE=1; export DUALCASE # for MKS sh
24482
24483 # Support unset when possible.
24484 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24485   as_unset=unset
24486 else
24487   as_unset=false
24488 fi
24489
24490
24491 # Work around bugs in pre-3.0 UWIN ksh.
24492 $as_unset ENV MAIL MAILPATH
24493 PS1='$ '
24494 PS2='> '
24495 PS4='+ '
24496
24497 # NLS nuisances.
24498 for as_var in \
24499   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24500   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24501   LC_TELEPHONE LC_TIME
24502 do
24503   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24504     eval $as_var=C; export $as_var
24505   else
24506     $as_unset $as_var
24507   fi
24508 done
24509
24510 # Required to use basename.
24511 if expr a : '\(a\)' >/dev/null 2>&1; then
24512   as_expr=expr
24513 else
24514   as_expr=false
24515 fi
24516
24517 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24518   as_basename=basename
24519 else
24520   as_basename=false
24521 fi
24522
24523
24524 # Name of the executable.
24525 as_me=`$as_basename "$0" ||
24526 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24527          X"$0" : 'X\(//\)$' \| \
24528          X"$0" : 'X\(/\)$' \| \
24529          .     : '\(.\)' 2>/dev/null ||
24530 echo X/"$0" |
24531     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24532           /^X\/\(\/\/\)$/{ s//\1/; q; }
24533           /^X\/\(\/\).*/{ s//\1/; q; }
24534           s/.*/./; q'`
24535
24536
24537 # PATH needs CR, and LINENO needs CR and PATH.
24538 # Avoid depending upon Character Ranges.
24539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24542 as_cr_digits='0123456789'
24543 as_cr_alnum=$as_cr_Letters$as_cr_digits
24544
24545 # The user is always right.
24546 if test "${PATH_SEPARATOR+set}" != set; then
24547   echo "#! /bin/sh" >conf$$.sh
24548   echo  "exit 0"   >>conf$$.sh
24549   chmod +x conf$$.sh
24550   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24551     PATH_SEPARATOR=';'
24552   else
24553     PATH_SEPARATOR=:
24554   fi
24555   rm -f conf$$.sh
24556 fi
24557
24558
24559   as_lineno_1=$LINENO
24560   as_lineno_2=$LINENO
24561   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24562   test "x$as_lineno_1" != "x$as_lineno_2" &&
24563   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24564   # Find who we are.  Look in the path if we contain no path at all
24565   # relative or not.
24566   case $0 in
24567     *[\\/]* ) as_myself=$0 ;;
24568     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24569 for as_dir in $PATH
24570 do
24571   IFS=$as_save_IFS
24572   test -z "$as_dir" && as_dir=.
24573   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24574 done
24575
24576        ;;
24577   esac
24578   # We did not find ourselves, most probably we were run as `sh COMMAND'
24579   # in which case we are not to be found in the path.
24580   if test "x$as_myself" = x; then
24581     as_myself=$0
24582   fi
24583   if test ! -f "$as_myself"; then
24584     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24585 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24586    { (exit 1); exit 1; }; }
24587   fi
24588   case $CONFIG_SHELL in
24589   '')
24590     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24591 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24592 do
24593   IFS=$as_save_IFS
24594   test -z "$as_dir" && as_dir=.
24595   for as_base in sh bash ksh sh5; do
24596          case $as_dir in
24597          /*)
24598            if ("$as_dir/$as_base" -c '
24599   as_lineno_1=$LINENO
24600   as_lineno_2=$LINENO
24601   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24602   test "x$as_lineno_1" != "x$as_lineno_2" &&
24603   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24604              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24605              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24606              CONFIG_SHELL=$as_dir/$as_base
24607              export CONFIG_SHELL
24608              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24609            fi;;
24610          esac
24611        done
24612 done
24613 ;;
24614   esac
24615
24616   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24617   # uniformly replaced by the line number.  The first 'sed' inserts a
24618   # line-number line before each line; the second 'sed' does the real
24619   # work.  The second script uses 'N' to pair each line-number line
24620   # with the numbered line, and appends trailing '-' during
24621   # substitution so that $LINENO is not a special case at line end.
24622   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24623   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24624   sed '=' <$as_myself |
24625     sed '
24626       N
24627       s,$,-,
24628       : loop
24629       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24630       t loop
24631       s,-$,,
24632       s,^['$as_cr_digits']*\n,,
24633     ' >$as_me.lineno &&
24634   chmod +x $as_me.lineno ||
24635     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24636 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24637    { (exit 1); exit 1; }; }
24638
24639   # Don't try to exec as it changes $[0], causing all sort of problems
24640   # (the dirname of $[0] is not the place where we might find the
24641   # original and so on.  Autoconf is especially sensible to this).
24642   . ./$as_me.lineno
24643   # Exit status is that of the last command.
24644   exit
24645 }
24646
24647
24648 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24649   *c*,-n*) ECHO_N= ECHO_C='
24650 ' ECHO_T='      ' ;;
24651   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24652   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24653 esac
24654
24655 if expr a : '\(a\)' >/dev/null 2>&1; then
24656   as_expr=expr
24657 else
24658   as_expr=false
24659 fi
24660
24661 rm -f conf$$ conf$$.exe conf$$.file
24662 echo >conf$$.file
24663 if ln -s conf$$.file conf$$ 2>/dev/null; then
24664   # We could just check for DJGPP; but this test a) works b) is more generic
24665   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24666   if test -f conf$$.exe; then
24667     # Don't use ln at all; we don't have any links
24668     as_ln_s='cp -p'
24669   else
24670     as_ln_s='ln -s'
24671   fi
24672 elif ln conf$$.file conf$$ 2>/dev/null; then
24673   as_ln_s=ln
24674 else
24675   as_ln_s='cp -p'
24676 fi
24677 rm -f conf$$ conf$$.exe conf$$.file
24678
24679 if mkdir -p . 2>/dev/null; then
24680   as_mkdir_p=:
24681 else
24682   test -d ./-p && rmdir ./-p
24683   as_mkdir_p=false
24684 fi
24685
24686 as_executable_p="test -f"
24687
24688 # Sed expression to map a string onto a valid CPP name.
24689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24690
24691 # Sed expression to map a string onto a valid variable name.
24692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24693
24694
24695 # IFS
24696 # We need space, tab and new line, in precisely that order.
24697 as_nl='
24698 '
24699 IFS="   $as_nl"
24700
24701 # CDPATH.
24702 $as_unset CDPATH
24703
24704 exec 6>&1
24705
24706 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24707 # report actual input values of CONFIG_FILES etc. instead of their
24708 # values after options handling.  Logging --version etc. is OK.
24709 exec 5>>config.log
24710 {
24711   echo
24712   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24713 ## Running $as_me. ##
24714 _ASBOX
24715 } >&5
24716 cat >&5 <<_CSEOF
24717
24718 This file was extended by $as_me, which was
24719 generated by GNU Autoconf 2.59.  Invocation command line was
24720
24721   CONFIG_FILES    = $CONFIG_FILES
24722   CONFIG_HEADERS  = $CONFIG_HEADERS
24723   CONFIG_LINKS    = $CONFIG_LINKS
24724   CONFIG_COMMANDS = $CONFIG_COMMANDS
24725   $ $0 $@
24726
24727 _CSEOF
24728 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24729 echo >&5
24730 _ACEOF
24731
24732 # Files that config.status was made for.
24733 if test -n "$ac_config_files"; then
24734   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24735 fi
24736
24737 if test -n "$ac_config_headers"; then
24738   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24739 fi
24740
24741 if test -n "$ac_config_links"; then
24742   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24743 fi
24744
24745 if test -n "$ac_config_commands"; then
24746   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24747 fi
24748
24749 cat >>$CONFIG_STATUS <<\_ACEOF
24750
24751 ac_cs_usage="\
24752 \`$as_me' instantiates files from templates according to the
24753 current configuration.
24754
24755 Usage: $0 [OPTIONS] [FILE]...
24756
24757   -h, --help       print this help, then exit
24758   -V, --version    print version number, then exit
24759   -q, --quiet      do not print progress messages
24760   -d, --debug      don't remove temporary files
24761       --recheck    update $as_me by reconfiguring in the same conditions
24762   --file=FILE[:TEMPLATE]
24763                    instantiate the configuration file FILE
24764   --header=FILE[:TEMPLATE]
24765                    instantiate the configuration header FILE
24766
24767 Configuration files:
24768 $config_files
24769
24770 Configuration headers:
24771 $config_headers
24772
24773 Configuration commands:
24774 $config_commands
24775
24776 Report bugs to <bug-autoconf@gnu.org>."
24777 _ACEOF
24778
24779 cat >>$CONFIG_STATUS <<_ACEOF
24780 ac_cs_version="\\
24781 config.status
24782 configured by $0, generated by GNU Autoconf 2.59,
24783   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24784
24785 Copyright (C) 2003 Free Software Foundation, Inc.
24786 This config.status script is free software; the Free Software Foundation
24787 gives unlimited permission to copy, distribute and modify it."
24788 srcdir=$srcdir
24789 _ACEOF
24790
24791 cat >>$CONFIG_STATUS <<\_ACEOF
24792 # If no file are specified by the user, then we need to provide default
24793 # value.  By we need to know if files were specified by the user.
24794 ac_need_defaults=:
24795 while test $# != 0
24796 do
24797   case $1 in
24798   --*=*)
24799     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24800     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24801     ac_shift=:
24802     ;;
24803   -*)
24804     ac_option=$1
24805     ac_optarg=$2
24806     ac_shift=shift
24807     ;;
24808   *) # This is not an option, so the user has probably given explicit
24809      # arguments.
24810      ac_option=$1
24811      ac_need_defaults=false;;
24812   esac
24813
24814   case $ac_option in
24815   # Handling of the options.
24816 _ACEOF
24817 cat >>$CONFIG_STATUS <<\_ACEOF
24818   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24819     ac_cs_recheck=: ;;
24820   --version | --vers* | -V )
24821     echo "$ac_cs_version"; exit 0 ;;
24822   --he | --h)
24823     # Conflict between --help and --header
24824     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24825 Try \`$0 --help' for more information." >&5
24826 echo "$as_me: error: ambiguous option: $1
24827 Try \`$0 --help' for more information." >&2;}
24828    { (exit 1); exit 1; }; };;
24829   --help | --hel | -h )
24830     echo "$ac_cs_usage"; exit 0 ;;
24831   --debug | --d* | -d )
24832     debug=: ;;
24833   --file | --fil | --fi | --f )
24834     $ac_shift
24835     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24836     ac_need_defaults=false;;
24837   --header | --heade | --head | --hea )
24838     $ac_shift
24839     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24840     ac_need_defaults=false;;
24841   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24842   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24843     ac_cs_silent=: ;;
24844
24845   # This is an error.
24846   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24847 Try \`$0 --help' for more information." >&5
24848 echo "$as_me: error: unrecognized option: $1
24849 Try \`$0 --help' for more information." >&2;}
24850    { (exit 1); exit 1; }; } ;;
24851
24852   *) ac_config_targets="$ac_config_targets $1" ;;
24853
24854   esac
24855   shift
24856 done
24857
24858 ac_configure_extra_args=
24859
24860 if $ac_cs_silent; then
24861   exec 6>/dev/null
24862   ac_configure_extra_args="$ac_configure_extra_args --silent"
24863 fi
24864
24865 _ACEOF
24866 cat >>$CONFIG_STATUS <<_ACEOF
24867 if \$ac_cs_recheck; then
24868   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24869   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24870 fi
24871
24872 _ACEOF
24873
24874
24875
24876
24877
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24879 for ac_config_target in $ac_config_targets
24880 do
24881   case "$ac_config_target" in
24882   # Handling of arguments.
24883   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24884   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24885   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24886   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24887   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24888   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24889   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24890   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24891   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24892   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24893   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24894   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24895   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24896   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24897   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
24898   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
24899   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
24900   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
24901   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24902   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24903 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24904    { (exit 1); exit 1; }; };;
24905   esac
24906 done
24907
24908 # If the user did not use the arguments to specify the items to instantiate,
24909 # then the envvar interface is used.  Set only those that are not.
24910 # We use the long form for the default assignment because of an extremely
24911 # bizarre bug on SunOS 4.1.3.
24912 if $ac_need_defaults; then
24913   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24914   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24915   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24916 fi
24917
24918 # Have a temporary directory for convenience.  Make it in the build tree
24919 # simply because there is no reason to put it here, and in addition,
24920 # creating and moving files from /tmp can sometimes cause problems.
24921 # Create a temporary directory, and hook for its removal unless debugging.
24922 $debug ||
24923 {
24924   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24925   trap '{ (exit 1); exit 1; }' 1 2 13 15
24926 }
24927
24928 # Create a (secure) tmp directory for tmp files.
24929
24930 {
24931   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24932   test -n "$tmp" && test -d "$tmp"
24933 }  ||
24934 {
24935   tmp=./confstat$$-$RANDOM
24936   (umask 077 && mkdir $tmp)
24937 } ||
24938 {
24939    echo "$me: cannot create a temporary directory in ." >&2
24940    { (exit 1); exit 1; }
24941 }
24942
24943 _ACEOF
24944
24945 cat >>$CONFIG_STATUS <<_ACEOF
24946
24947 #
24948 # CONFIG_FILES section.
24949 #
24950
24951 # No need to generate the scripts if there are no CONFIG_FILES.
24952 # This happens for instance when ./config.status config.h
24953 if test -n "\$CONFIG_FILES"; then
24954   # Protect against being on the right side of a sed subst in config.status.
24955   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24956    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24957 s,@SHELL@,$SHELL,;t t
24958 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24959 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24960 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24961 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24962 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24963 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24964 s,@exec_prefix@,$exec_prefix,;t t
24965 s,@prefix@,$prefix,;t t
24966 s,@program_transform_name@,$program_transform_name,;t t
24967 s,@bindir@,$bindir,;t t
24968 s,@sbindir@,$sbindir,;t t
24969 s,@libexecdir@,$libexecdir,;t t
24970 s,@datadir@,$datadir,;t t
24971 s,@sysconfdir@,$sysconfdir,;t t
24972 s,@sharedstatedir@,$sharedstatedir,;t t
24973 s,@localstatedir@,$localstatedir,;t t
24974 s,@libdir@,$libdir,;t t
24975 s,@includedir@,$includedir,;t t
24976 s,@oldincludedir@,$oldincludedir,;t t
24977 s,@infodir@,$infodir,;t t
24978 s,@mandir@,$mandir,;t t
24979 s,@build_alias@,$build_alias,;t t
24980 s,@host_alias@,$host_alias,;t t
24981 s,@target_alias@,$target_alias,;t t
24982 s,@DEFS@,$DEFS,;t t
24983 s,@ECHO_C@,$ECHO_C,;t t
24984 s,@ECHO_N@,$ECHO_N,;t t
24985 s,@ECHO_T@,$ECHO_T,;t t
24986 s,@LIBS@,$LIBS,;t t
24987 s,@CC@,$CC,;t t
24988 s,@CFLAGS@,$CFLAGS,;t t
24989 s,@LDFLAGS@,$LDFLAGS,;t t
24990 s,@CPPFLAGS@,$CPPFLAGS,;t t
24991 s,@ac_ct_CC@,$ac_ct_CC,;t t
24992 s,@EXEEXT@,$EXEEXT,;t t
24993 s,@OBJEXT@,$OBJEXT,;t t
24994 s,@CPP@,$CPP,;t t
24995 s,@EGREP@,$EGREP,;t t
24996 s,@RANLIB@,$RANLIB,;t t
24997 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24998 s,@abs_top_builddir@,$abs_top_builddir,;t t
24999 s,@GMAKE@,$GMAKE,;t t
25000 s,@MAKE@,$MAKE,;t t
25001 s,@subdirs@,$subdirs,;t t
25002 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25003 s,@LIBTOOL@,$LIBTOOL,;t t
25004 s,@build@,$build,;t t
25005 s,@build_cpu@,$build_cpu,;t t
25006 s,@build_vendor@,$build_vendor,;t t
25007 s,@build_os@,$build_os,;t t
25008 s,@host@,$host,;t t
25009 s,@host_cpu@,$host_cpu,;t t
25010 s,@host_vendor@,$host_vendor,;t t
25011 s,@host_os@,$host_os,;t t
25012 s,@LN_S@,$LN_S,;t t
25013 s,@ECHO@,$ECHO,;t t
25014 s,@AR@,$AR,;t t
25015 s,@ac_ct_AR@,$ac_ct_AR,;t t
25016 s,@STRIP@,$STRIP,;t t
25017 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25018 s,@CXX@,$CXX,;t t
25019 s,@CXXFLAGS@,$CXXFLAGS,;t t
25020 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25021 s,@CXXCPP@,$CXXCPP,;t t
25022 s,@F77@,$F77,;t t
25023 s,@FFLAGS@,$FFLAGS,;t t
25024 s,@ac_ct_F77@,$ac_ct_F77,;t t
25025 s,@logdir@,$logdir,;t t
25026 s,@radacctdir@,$radacctdir,;t t
25027 s,@raddbdir@,$raddbdir,;t t
25028 s,@PERL@,$PERL,;t t
25029 s,@SNMPGET@,$SNMPGET,;t t
25030 s,@SNMPWALK@,$SNMPWALK,;t t
25031 s,@RUSERS@,$RUSERS,;t t
25032 s,@ACLOCAL@,$ACLOCAL,;t t
25033 s,@AUTOCONF@,$AUTOCONF,;t t
25034 s,@AUTOHEADER@,$AUTOHEADER,;t t
25035 s,@LOCATE@,$LOCATE,;t t
25036 s,@DIRNAME@,$DIRNAME,;t t
25037 s,@GREP@,$GREP,;t t
25038 s,@REGEX@,$REGEX,;t t
25039 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25040 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25041 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25042 s,@LIBPREFIX@,$LIBPREFIX,;t t
25043 s,@CRYPTLIB@,$CRYPTLIB,;t t
25044 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25045 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25046 s,@GETCONF@,$GETCONF,;t t
25047 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
25048 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
25049 s,@LFS_LIBS@,$LFS_LIBS,;t t
25050 s,@HOSTINFO@,$HOSTINFO,;t t
25051 s,@LIBLTDL@,$LIBLTDL,;t t
25052 s,@INCLTDL@,$INCLTDL,;t t
25053 s,@MODULES@,$MODULES,;t t
25054 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25055 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25056 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25057 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25058 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25059 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25060 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25061 s,@LIBOBJS@,$LIBOBJS,;t t
25062 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25063 CEOF
25064
25065 _ACEOF
25066
25067   cat >>$CONFIG_STATUS <<\_ACEOF
25068   # Split the substitutions into bite-sized pieces for seds with
25069   # small command number limits, like on Digital OSF/1 and HP-UX.
25070   ac_max_sed_lines=48
25071   ac_sed_frag=1 # Number of current file.
25072   ac_beg=1 # First line for current file.
25073   ac_end=$ac_max_sed_lines # Line after last line for current file.
25074   ac_more_lines=:
25075   ac_sed_cmds=
25076   while $ac_more_lines; do
25077     if test $ac_beg -gt 1; then
25078       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25079     else
25080       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25081     fi
25082     if test ! -s $tmp/subs.frag; then
25083       ac_more_lines=false
25084     else
25085       # The purpose of the label and of the branching condition is to
25086       # speed up the sed processing (if there are no `@' at all, there
25087       # is no need to browse any of the substitutions).
25088       # These are the two extra sed commands mentioned above.
25089       (echo ':t
25090   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25091       if test -z "$ac_sed_cmds"; then
25092         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25093       else
25094         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25095       fi
25096       ac_sed_frag=`expr $ac_sed_frag + 1`
25097       ac_beg=$ac_end
25098       ac_end=`expr $ac_end + $ac_max_sed_lines`
25099     fi
25100   done
25101   if test -z "$ac_sed_cmds"; then
25102     ac_sed_cmds=cat
25103   fi
25104 fi # test -n "$CONFIG_FILES"
25105
25106 _ACEOF
25107 cat >>$CONFIG_STATUS <<\_ACEOF
25108 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25109   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25110   case $ac_file in
25111   - | *:- | *:-:* ) # input from stdin
25112         cat >$tmp/stdin
25113         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25114         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25115   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25116         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25117   * )   ac_file_in=$ac_file.in ;;
25118   esac
25119
25120   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25121   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25123          X"$ac_file" : 'X\(//\)[^/]' \| \
25124          X"$ac_file" : 'X\(//\)$' \| \
25125          X"$ac_file" : 'X\(/\)' \| \
25126          .     : '\(.\)' 2>/dev/null ||
25127 echo X"$ac_file" |
25128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25129           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25130           /^X\(\/\/\)$/{ s//\1/; q; }
25131           /^X\(\/\).*/{ s//\1/; q; }
25132           s/.*/./; q'`
25133   { if $as_mkdir_p; then
25134     mkdir -p "$ac_dir"
25135   else
25136     as_dir="$ac_dir"
25137     as_dirs=
25138     while test ! -d "$as_dir"; do
25139       as_dirs="$as_dir $as_dirs"
25140       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25142          X"$as_dir" : 'X\(//\)[^/]' \| \
25143          X"$as_dir" : 'X\(//\)$' \| \
25144          X"$as_dir" : 'X\(/\)' \| \
25145          .     : '\(.\)' 2>/dev/null ||
25146 echo X"$as_dir" |
25147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25148           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25149           /^X\(\/\/\)$/{ s//\1/; q; }
25150           /^X\(\/\).*/{ s//\1/; q; }
25151           s/.*/./; q'`
25152     done
25153     test ! -n "$as_dirs" || mkdir $as_dirs
25154   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25155 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25156    { (exit 1); exit 1; }; }; }
25157
25158   ac_builddir=.
25159
25160 if test "$ac_dir" != .; then
25161   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25162   # A "../" for each directory in $ac_dir_suffix.
25163   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25164 else
25165   ac_dir_suffix= ac_top_builddir=
25166 fi
25167
25168 case $srcdir in
25169   .)  # No --srcdir option.  We are building in place.
25170     ac_srcdir=.
25171     if test -z "$ac_top_builddir"; then
25172        ac_top_srcdir=.
25173     else
25174        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25175     fi ;;
25176   [\\/]* | ?:[\\/]* )  # Absolute path.
25177     ac_srcdir=$srcdir$ac_dir_suffix;
25178     ac_top_srcdir=$srcdir ;;
25179   *) # Relative path.
25180     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25181     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25182 esac
25183
25184 # Do not use `cd foo && pwd` to compute absolute paths, because
25185 # the directories may not exist.
25186 case `pwd` in
25187 .) ac_abs_builddir="$ac_dir";;
25188 *)
25189   case "$ac_dir" in
25190   .) ac_abs_builddir=`pwd`;;
25191   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25192   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25193   esac;;
25194 esac
25195 case $ac_abs_builddir in
25196 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25197 *)
25198   case ${ac_top_builddir}. in
25199   .) ac_abs_top_builddir=$ac_abs_builddir;;
25200   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25201   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25202   esac;;
25203 esac
25204 case $ac_abs_builddir in
25205 .) ac_abs_srcdir=$ac_srcdir;;
25206 *)
25207   case $ac_srcdir in
25208   .) ac_abs_srcdir=$ac_abs_builddir;;
25209   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25210   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25211   esac;;
25212 esac
25213 case $ac_abs_builddir in
25214 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25215 *)
25216   case $ac_top_srcdir in
25217   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25218   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25219   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25220   esac;;
25221 esac
25222
25223
25224
25225   # Let's still pretend it is `configure' which instantiates (i.e., don't
25226   # use $as_me), people would be surprised to read:
25227   #    /* config.h.  Generated by config.status.  */
25228   if test x"$ac_file" = x-; then
25229     configure_input=
25230   else
25231     configure_input="$ac_file.  "
25232   fi
25233   configure_input=$configure_input"Generated from `echo $ac_file_in |
25234                                      sed 's,.*/,,'` by configure."
25235
25236   # First look for the input files in the build tree, otherwise in the
25237   # src tree.
25238   ac_file_inputs=`IFS=:
25239     for f in $ac_file_in; do
25240       case $f in
25241       -) echo $tmp/stdin ;;
25242       [\\/$]*)
25243          # Absolute (can't be DOS-style, as IFS=:)
25244          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25245 echo "$as_me: error: cannot find input file: $f" >&2;}
25246    { (exit 1); exit 1; }; }
25247          echo "$f";;
25248       *) # Relative
25249          if test -f "$f"; then
25250            # Build tree
25251            echo "$f"
25252          elif test -f "$srcdir/$f"; then
25253            # Source tree
25254            echo "$srcdir/$f"
25255          else
25256            # /dev/null tree
25257            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25258 echo "$as_me: error: cannot find input file: $f" >&2;}
25259    { (exit 1); exit 1; }; }
25260          fi;;
25261       esac
25262     done` || { (exit 1); exit 1; }
25263
25264   if test x"$ac_file" != x-; then
25265     { echo "$as_me:$LINENO: creating $ac_file" >&5
25266 echo "$as_me: creating $ac_file" >&6;}
25267     rm -f "$ac_file"
25268   fi
25269 _ACEOF
25270 cat >>$CONFIG_STATUS <<_ACEOF
25271   sed "$ac_vpsub
25272 $extrasub
25273 _ACEOF
25274 cat >>$CONFIG_STATUS <<\_ACEOF
25275 :t
25276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25277 s,@configure_input@,$configure_input,;t t
25278 s,@srcdir@,$ac_srcdir,;t t
25279 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25280 s,@top_srcdir@,$ac_top_srcdir,;t t
25281 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25282 s,@builddir@,$ac_builddir,;t t
25283 s,@abs_builddir@,$ac_abs_builddir,;t t
25284 s,@top_builddir@,$ac_top_builddir,;t t
25285 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25286 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25287   rm -f $tmp/stdin
25288   if test x"$ac_file" != x-; then
25289     mv $tmp/out $ac_file
25290   else
25291     cat $tmp/out
25292     rm -f $tmp/out
25293   fi
25294
25295 done
25296 _ACEOF
25297 cat >>$CONFIG_STATUS <<\_ACEOF
25298
25299 #
25300 # CONFIG_HEADER section.
25301 #
25302
25303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25304 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25305 #
25306 # ac_d sets the value in "#define NAME VALUE" lines.
25307 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25308 ac_dB='[         ].*$,\1#\2'
25309 ac_dC=' '
25310 ac_dD=',;t'
25311 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25312 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25313 ac_uB='$,\1#\2define\3'
25314 ac_uC=' '
25315 ac_uD=',;t'
25316
25317 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25318   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25319   case $ac_file in
25320   - | *:- | *:-:* ) # input from stdin
25321         cat >$tmp/stdin
25322         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25323         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25324   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25325         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25326   * )   ac_file_in=$ac_file.in ;;
25327   esac
25328
25329   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25330 echo "$as_me: creating $ac_file" >&6;}
25331
25332   # First look for the input files in the build tree, otherwise in the
25333   # src tree.
25334   ac_file_inputs=`IFS=:
25335     for f in $ac_file_in; do
25336       case $f in
25337       -) echo $tmp/stdin ;;
25338       [\\/$]*)
25339          # Absolute (can't be DOS-style, as IFS=:)
25340          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25341 echo "$as_me: error: cannot find input file: $f" >&2;}
25342    { (exit 1); exit 1; }; }
25343          # Do quote $f, to prevent DOS paths from being IFS'd.
25344          echo "$f";;
25345       *) # Relative
25346          if test -f "$f"; then
25347            # Build tree
25348            echo "$f"
25349          elif test -f "$srcdir/$f"; then
25350            # Source tree
25351            echo "$srcdir/$f"
25352          else
25353            # /dev/null tree
25354            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25355 echo "$as_me: error: cannot find input file: $f" >&2;}
25356    { (exit 1); exit 1; }; }
25357          fi;;
25358       esac
25359     done` || { (exit 1); exit 1; }
25360   # Remove the trailing spaces.
25361   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25362
25363 _ACEOF
25364
25365 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25366 # `conftest.undefs', that substitutes the proper values into
25367 # config.h.in to produce config.h.  The first handles `#define'
25368 # templates, and the second `#undef' templates.
25369 # And first: Protect against being on the right side of a sed subst in
25370 # config.status.  Protect against being in an unquoted here document
25371 # in config.status.
25372 rm -f conftest.defines conftest.undefs
25373 # Using a here document instead of a string reduces the quoting nightmare.
25374 # Putting comments in sed scripts is not portable.
25375 #
25376 # `end' is used to avoid that the second main sed command (meant for
25377 # 0-ary CPP macros) applies to n-ary macro definitions.
25378 # See the Autoconf documentation for `clear'.
25379 cat >confdef2sed.sed <<\_ACEOF
25380 s/[\\&,]/\\&/g
25381 s,[\\$`],\\&,g
25382 t clear
25383 : clear
25384 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25385 t end
25386 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25387 : end
25388 _ACEOF
25389 # If some macros were called several times there might be several times
25390 # the same #defines, which is useless.  Nevertheless, we may not want to
25391 # sort them, since we want the *last* AC-DEFINE to be honored.
25392 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25393 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25394 rm -f confdef2sed.sed
25395
25396 # This sed command replaces #undef with comments.  This is necessary, for
25397 # example, in the case of _POSIX_SOURCE, which is predefined and required
25398 # on some systems where configure will not decide to define it.
25399 cat >>conftest.undefs <<\_ACEOF
25400 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25401 _ACEOF
25402
25403 # Break up conftest.defines because some shells have a limit on the size
25404 # of here documents, and old seds have small limits too (100 cmds).
25405 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25406 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25407 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25408 echo '  :' >>$CONFIG_STATUS
25409 rm -f conftest.tail
25410 while grep . conftest.defines >/dev/null
25411 do
25412   # Write a limited-size here document to $tmp/defines.sed.
25413   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25414   # Speed up: don't consider the non `#define' lines.
25415   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25416   # Work around the forget-to-reset-the-flag bug.
25417   echo 't clr' >>$CONFIG_STATUS
25418   echo ': clr' >>$CONFIG_STATUS
25419   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25420   echo 'CEOF
25421   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25422   rm -f $tmp/in
25423   mv $tmp/out $tmp/in
25424 ' >>$CONFIG_STATUS
25425   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25426   rm -f conftest.defines
25427   mv conftest.tail conftest.defines
25428 done
25429 rm -f conftest.defines
25430 echo '  fi # grep' >>$CONFIG_STATUS
25431 echo >>$CONFIG_STATUS
25432
25433 # Break up conftest.undefs because some shells have a limit on the size
25434 # of here documents, and old seds have small limits too (100 cmds).
25435 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25436 rm -f conftest.tail
25437 while grep . conftest.undefs >/dev/null
25438 do
25439   # Write a limited-size here document to $tmp/undefs.sed.
25440   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25441   # Speed up: don't consider the non `#undef'
25442   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25443   # Work around the forget-to-reset-the-flag bug.
25444   echo 't clr' >>$CONFIG_STATUS
25445   echo ': clr' >>$CONFIG_STATUS
25446   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25447   echo 'CEOF
25448   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25449   rm -f $tmp/in
25450   mv $tmp/out $tmp/in
25451 ' >>$CONFIG_STATUS
25452   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25453   rm -f conftest.undefs
25454   mv conftest.tail conftest.undefs
25455 done
25456 rm -f conftest.undefs
25457
25458 cat >>$CONFIG_STATUS <<\_ACEOF
25459   # Let's still pretend it is `configure' which instantiates (i.e., don't
25460   # use $as_me), people would be surprised to read:
25461   #    /* config.h.  Generated by config.status.  */
25462   if test x"$ac_file" = x-; then
25463     echo "/* Generated by configure.  */" >$tmp/config.h
25464   else
25465     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25466   fi
25467   cat $tmp/in >>$tmp/config.h
25468   rm -f $tmp/in
25469   if test x"$ac_file" != x-; then
25470     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25471       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25472 echo "$as_me: $ac_file is unchanged" >&6;}
25473     else
25474       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25476          X"$ac_file" : 'X\(//\)[^/]' \| \
25477          X"$ac_file" : 'X\(//\)$' \| \
25478          X"$ac_file" : 'X\(/\)' \| \
25479          .     : '\(.\)' 2>/dev/null ||
25480 echo X"$ac_file" |
25481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25483           /^X\(\/\/\)$/{ s//\1/; q; }
25484           /^X\(\/\).*/{ s//\1/; q; }
25485           s/.*/./; q'`
25486       { if $as_mkdir_p; then
25487     mkdir -p "$ac_dir"
25488   else
25489     as_dir="$ac_dir"
25490     as_dirs=
25491     while test ! -d "$as_dir"; do
25492       as_dirs="$as_dir $as_dirs"
25493       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25495          X"$as_dir" : 'X\(//\)[^/]' \| \
25496          X"$as_dir" : 'X\(//\)$' \| \
25497          X"$as_dir" : 'X\(/\)' \| \
25498          .     : '\(.\)' 2>/dev/null ||
25499 echo X"$as_dir" |
25500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25501           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25502           /^X\(\/\/\)$/{ s//\1/; q; }
25503           /^X\(\/\).*/{ s//\1/; q; }
25504           s/.*/./; q'`
25505     done
25506     test ! -n "$as_dirs" || mkdir $as_dirs
25507   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25508 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25509    { (exit 1); exit 1; }; }; }
25510
25511       rm -f $ac_file
25512       mv $tmp/config.h $ac_file
25513     fi
25514   else
25515     cat $tmp/config.h
25516     rm -f $tmp/config.h
25517   fi
25518 done
25519 _ACEOF
25520 cat >>$CONFIG_STATUS <<\_ACEOF
25521
25522 #
25523 # CONFIG_COMMANDS section.
25524 #
25525 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25526   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25527   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25528   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25529 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25530          X"$ac_dest" : 'X\(//\)[^/]' \| \
25531          X"$ac_dest" : 'X\(//\)$' \| \
25532          X"$ac_dest" : 'X\(/\)' \| \
25533          .     : '\(.\)' 2>/dev/null ||
25534 echo X"$ac_dest" |
25535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25536           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25537           /^X\(\/\/\)$/{ s//\1/; q; }
25538           /^X\(\/\).*/{ s//\1/; q; }
25539           s/.*/./; q'`
25540   { if $as_mkdir_p; then
25541     mkdir -p "$ac_dir"
25542   else
25543     as_dir="$ac_dir"
25544     as_dirs=
25545     while test ! -d "$as_dir"; do
25546       as_dirs="$as_dir $as_dirs"
25547       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25549          X"$as_dir" : 'X\(//\)[^/]' \| \
25550          X"$as_dir" : 'X\(//\)$' \| \
25551          X"$as_dir" : 'X\(/\)' \| \
25552          .     : '\(.\)' 2>/dev/null ||
25553 echo X"$as_dir" |
25554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25555           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25556           /^X\(\/\/\)$/{ s//\1/; q; }
25557           /^X\(\/\).*/{ s//\1/; q; }
25558           s/.*/./; q'`
25559     done
25560     test ! -n "$as_dirs" || mkdir $as_dirs
25561   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25562 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25563    { (exit 1); exit 1; }; }; }
25564
25565   ac_builddir=.
25566
25567 if test "$ac_dir" != .; then
25568   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25569   # A "../" for each directory in $ac_dir_suffix.
25570   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25571 else
25572   ac_dir_suffix= ac_top_builddir=
25573 fi
25574
25575 case $srcdir in
25576   .)  # No --srcdir option.  We are building in place.
25577     ac_srcdir=.
25578     if test -z "$ac_top_builddir"; then
25579        ac_top_srcdir=.
25580     else
25581        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25582     fi ;;
25583   [\\/]* | ?:[\\/]* )  # Absolute path.
25584     ac_srcdir=$srcdir$ac_dir_suffix;
25585     ac_top_srcdir=$srcdir ;;
25586   *) # Relative path.
25587     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25588     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25589 esac
25590
25591 # Do not use `cd foo && pwd` to compute absolute paths, because
25592 # the directories may not exist.
25593 case `pwd` in
25594 .) ac_abs_builddir="$ac_dir";;
25595 *)
25596   case "$ac_dir" in
25597   .) ac_abs_builddir=`pwd`;;
25598   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25599   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25600   esac;;
25601 esac
25602 case $ac_abs_builddir in
25603 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25604 *)
25605   case ${ac_top_builddir}. in
25606   .) ac_abs_top_builddir=$ac_abs_builddir;;
25607   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25608   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25609   esac;;
25610 esac
25611 case $ac_abs_builddir in
25612 .) ac_abs_srcdir=$ac_srcdir;;
25613 *)
25614   case $ac_srcdir in
25615   .) ac_abs_srcdir=$ac_abs_builddir;;
25616   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25617   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25618   esac;;
25619 esac
25620 case $ac_abs_builddir in
25621 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25622 *)
25623   case $ac_top_srcdir in
25624   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25625   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25626   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25627   esac;;
25628 esac
25629
25630
25631   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25632 echo "$as_me: executing $ac_dest commands" >&6;}
25633   case $ac_dest in
25634     stamp-h ) echo timestamp > src/include/stamp-h ;;
25635     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25636     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
25637     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25638   esac
25639 done
25640 _ACEOF
25641
25642 cat >>$CONFIG_STATUS <<\_ACEOF
25643
25644 { (exit 0); exit 0; }
25645 _ACEOF
25646 chmod +x $CONFIG_STATUS
25647 ac_clean_files=$ac_clean_files_save
25648
25649
25650 # configure is writing to config.log, and then calls config.status.
25651 # config.status does its own redirection, appending to config.log.
25652 # Unfortunately, on DOS this fails, as config.log is still kept open
25653 # by configure, so config.status won't be able to write to it; its
25654 # output is simply discarded.  So we exec the FD to /dev/null,
25655 # effectively closing config.log, so it can be properly (re)opened and
25656 # appended to by config.status.  When coming back to configure, we
25657 # need to make the FD available again.
25658 if test "$no_create" != yes; then
25659   ac_cs_success=:
25660   ac_config_status_args=
25661   test "$silent" = yes &&
25662     ac_config_status_args="$ac_config_status_args --quiet"
25663   exec 5>/dev/null
25664   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25665   exec 5>>config.log
25666   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25667   # would make configure fail if this is the last instruction.
25668   $ac_cs_success || { (exit 1); exit 1; }
25669 fi
25670
25671 #
25672 # CONFIG_SUBDIRS section.
25673 #
25674 if test "$no_recursion" != yes; then
25675
25676   # Remove --cache-file and --srcdir arguments so they do not pile up.
25677   ac_sub_configure_args=
25678   ac_prev=
25679   for ac_arg in $ac_configure_args; do
25680     if test -n "$ac_prev"; then
25681       ac_prev=
25682       continue
25683     fi
25684     case $ac_arg in
25685     -cache-file | --cache-file | --cache-fil | --cache-fi \
25686     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25687       ac_prev=cache_file ;;
25688     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25689     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25690     | --c=*)
25691       ;;
25692     --config-cache | -C)
25693       ;;
25694     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25695       ac_prev=srcdir ;;
25696     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25697       ;;
25698     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25699       ac_prev=prefix ;;
25700     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25701       ;;
25702     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25703     esac
25704   done
25705
25706   # Always prepend --prefix to ensure using the same prefix
25707   # in subdir configurations.
25708   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25709
25710   ac_popdir=`pwd`
25711   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25712
25713     # Do not complain, so a configure script can configure whichever
25714     # parts of a large source tree are present.
25715     test -d $srcdir/$ac_dir || continue
25716
25717     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25718 echo "$as_me: configuring in $ac_dir" >&6;}
25719     { if $as_mkdir_p; then
25720     mkdir -p "$ac_dir"
25721   else
25722     as_dir="$ac_dir"
25723     as_dirs=
25724     while test ! -d "$as_dir"; do
25725       as_dirs="$as_dir $as_dirs"
25726       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25728          X"$as_dir" : 'X\(//\)[^/]' \| \
25729          X"$as_dir" : 'X\(//\)$' \| \
25730          X"$as_dir" : 'X\(/\)' \| \
25731          .     : '\(.\)' 2>/dev/null ||
25732 echo X"$as_dir" |
25733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25734           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25735           /^X\(\/\/\)$/{ s//\1/; q; }
25736           /^X\(\/\).*/{ s//\1/; q; }
25737           s/.*/./; q'`
25738     done
25739     test ! -n "$as_dirs" || mkdir $as_dirs
25740   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25742    { (exit 1); exit 1; }; }; }
25743
25744     ac_builddir=.
25745
25746 if test "$ac_dir" != .; then
25747   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25748   # A "../" for each directory in $ac_dir_suffix.
25749   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25750 else
25751   ac_dir_suffix= ac_top_builddir=
25752 fi
25753
25754 case $srcdir in
25755   .)  # No --srcdir option.  We are building in place.
25756     ac_srcdir=.
25757     if test -z "$ac_top_builddir"; then
25758        ac_top_srcdir=.
25759     else
25760        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25761     fi ;;
25762   [\\/]* | ?:[\\/]* )  # Absolute path.
25763     ac_srcdir=$srcdir$ac_dir_suffix;
25764     ac_top_srcdir=$srcdir ;;
25765   *) # Relative path.
25766     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25767     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25768 esac
25769
25770 # Do not use `cd foo && pwd` to compute absolute paths, because
25771 # the directories may not exist.
25772 case `pwd` in
25773 .) ac_abs_builddir="$ac_dir";;
25774 *)
25775   case "$ac_dir" in
25776   .) ac_abs_builddir=`pwd`;;
25777   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25778   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25779   esac;;
25780 esac
25781 case $ac_abs_builddir in
25782 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25783 *)
25784   case ${ac_top_builddir}. in
25785   .) ac_abs_top_builddir=$ac_abs_builddir;;
25786   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25787   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25788   esac;;
25789 esac
25790 case $ac_abs_builddir in
25791 .) ac_abs_srcdir=$ac_srcdir;;
25792 *)
25793   case $ac_srcdir in
25794   .) ac_abs_srcdir=$ac_abs_builddir;;
25795   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25796   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25797   esac;;
25798 esac
25799 case $ac_abs_builddir in
25800 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25801 *)
25802   case $ac_top_srcdir in
25803   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25804   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25805   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25806   esac;;
25807 esac
25808
25809
25810     cd $ac_dir
25811
25812     # Check for guested configure; otherwise get Cygnus style configure.
25813     if test -f $ac_srcdir/configure.gnu; then
25814       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25815     elif test -f $ac_srcdir/configure; then
25816       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25817     elif test -f $ac_srcdir/configure.in; then
25818       ac_sub_configure=$ac_configure
25819     else
25820       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25821 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25822       ac_sub_configure=
25823     fi
25824
25825     # The recursion is here.
25826     if test -n "$ac_sub_configure"; then
25827       # Make the cache file name correct relative to the subdirectory.
25828       case $cache_file in
25829       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25830       *) # Relative path.
25831         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25832       esac
25833
25834       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25835 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25836       # The eval makes quoting arguments work.
25837       eval $ac_sub_configure $ac_sub_configure_args \
25838            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25839         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25840 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25841    { (exit 1); exit 1; }; }
25842     fi
25843
25844     cd "$ac_popdir"
25845   done
25846 fi
25847