update libtool and libltdl to 1.5.22, and improve the integration
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.7 .
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all $LTDL_SUBDIRS $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE LTDL_SUBDIRS 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 subdirs MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures this package to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017
1018   cat <<\_ACEOF
1019
1020 Optional Features:
1021   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1023   --enable-shared[=PKGS]
1024                           build shared libraries [default=yes]
1025   --enable-static[=PKGS]
1026                           build static libraries [default=yes]
1027   --enable-fast-install[=PKGS]
1028                           optimize for fast installation [default=yes]
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1031   --enable-developer               Enables features of interest to developers.
1032
1033 Optional Packages:
1034   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036   --with-system-libtool              try to use libtool installed in your system default=use our own
1037   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1038   --with-pic              try to use only PIC/non-PIC objects [default=use
1039                           both]
1040   --with-tags[=TAGS]
1041                           include additional configurations [automatic]
1042   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1043   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1044   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1045   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1046   --with-threads          Use threads, if available.  (default=yes)
1047   --with-snmp             Compile in SNMP support. (default=yes)
1048   --with-large-files      Compile in large (2G+) file support. (default=no)
1049   --with-static-modules=QUOTED-MODULE-LIST
1050  --with-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   --with-edir             Enable Novell eDirectory integration.  (default=no)
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CPP         C preprocessor
1067   CXX         C++ compiler command
1068   CXXFLAGS    C++ compiler flags
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 _ACEOF
1077 fi
1078
1079 if test "$ac_init_help" = "recursive"; then
1080   # If there are subdirs, report their specific --help.
1081   ac_popdir=`pwd`
1082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083     test -d $ac_dir || continue
1084     ac_builddir=.
1085
1086 if test "$ac_dir" != .; then
1087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088   # A "../" for each directory in $ac_dir_suffix.
1089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 else
1091   ac_dir_suffix= ac_top_builddir=
1092 fi
1093
1094 case $srcdir in
1095   .)  # No --srcdir option.  We are building in place.
1096     ac_srcdir=.
1097     if test -z "$ac_top_builddir"; then
1098        ac_top_srcdir=.
1099     else
1100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101     fi ;;
1102   [\\/]* | ?:[\\/]* )  # Absolute path.
1103     ac_srcdir=$srcdir$ac_dir_suffix;
1104     ac_top_srcdir=$srcdir ;;
1105   *) # Relative path.
1106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 esac
1109
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1112 case `pwd` in
1113 .) ac_abs_builddir="$ac_dir";;
1114 *)
1115   case "$ac_dir" in
1116   .) ac_abs_builddir=`pwd`;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *)
1124   case ${ac_top_builddir}. in
1125   .) ac_abs_top_builddir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1132 *)
1133   case $ac_srcdir in
1134   .) ac_abs_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *)
1142   case $ac_top_srcdir in
1143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146   esac;;
1147 esac
1148
1149     cd $ac_dir
1150     # Check for guested configure; otherwise get Cygnus style configure.
1151     if test -f $ac_srcdir/configure.gnu; then
1152       echo
1153       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1154     elif test -f $ac_srcdir/configure; then
1155       echo
1156       $SHELL $ac_srcdir/configure  --help=recursive
1157     elif test -f $ac_srcdir/configure.ac ||
1158            test -f $ac_srcdir/configure.in; then
1159       echo
1160       $ac_configure --help
1161     else
1162       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163     fi
1164     cd $ac_popdir
1165   done
1166 fi
1167
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1170   cat <<\_ACEOF
1171
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1175 _ACEOF
1176   exit 0
1177 fi
1178 exec 5>config.log
1179 cat >&5 <<_ACEOF
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1182
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59.  Invocation command line was
1185
1186   $ $0 $@
1187
1188 _ACEOF
1189 {
1190 cat <<_ASUNAME
1191 ## --------- ##
1192 ## Platform. ##
1193 ## --------- ##
1194
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203
1204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211
1212 _ASUNAME
1213
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 for as_dir in $PATH
1216 do
1217   IFS=$as_save_IFS
1218   test -z "$as_dir" && as_dir=.
1219   echo "PATH: $as_dir"
1220 done
1221
1222 } >&5
1223
1224 cat >&5 <<_ACEOF
1225
1226
1227 ## ----------- ##
1228 ## Core tests. ##
1229 ## ----------- ##
1230
1231 _ACEOF
1232
1233
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_configure_args=
1240 ac_configure_args0=
1241 ac_configure_args1=
1242 ac_sep=
1243 ac_must_keep_next=false
1244 for ac_pass in 1 2
1245 do
1246   for ac_arg
1247   do
1248     case $ac_arg in
1249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251     | -silent | --silent | --silen | --sile | --sil)
1252       continue ;;
1253     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255     esac
1256     case $ac_pass in
1257     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258     2)
1259       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260       if test $ac_must_keep_next = true; then
1261         ac_must_keep_next=false # Got value, back to normal.
1262       else
1263         case $ac_arg in
1264           *=* | --config-cache | -C | -disable-* | --disable-* \
1265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267           | -with-* | --with-* | -without-* | --without-* | --x)
1268             case "$ac_configure_args0 " in
1269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270             esac
1271             ;;
1272           -* ) ac_must_keep_next=true ;;
1273         esac
1274       fi
1275       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276       # Get rid of the leading space.
1277       ac_sep=" "
1278       ;;
1279     esac
1280   done
1281 done
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log.  We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291   # Save into config.log some information that might help in debugging.
1292   {
1293     echo
1294
1295     cat <<\_ASBOX
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1299 _ASBOX
1300     echo
1301     # The following way of writing the cache mishandles newlines in values,
1302 {
1303   (set) 2>&1 |
1304     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305     *ac_space=\ *)
1306       sed -n \
1307         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309       ;;
1310     *)
1311       sed -n \
1312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313       ;;
1314     esac;
1315 }
1316     echo
1317
1318     cat <<\_ASBOX
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1322 _ASBOX
1323     echo
1324     for ac_var in $ac_subst_vars
1325     do
1326       eval ac_val=$`echo $ac_var`
1327       echo "$ac_var='"'"'$ac_val'"'"'"
1328     done | sort
1329     echo
1330
1331     if test -n "$ac_subst_files"; then
1332       cat <<\_ASBOX
1333 ## ------------- ##
1334 ## Output files. ##
1335 ## ------------- ##
1336 _ASBOX
1337       echo
1338       for ac_var in $ac_subst_files
1339       do
1340         eval ac_val=$`echo $ac_var`
1341         echo "$ac_var='"'"'$ac_val'"'"'"
1342       done | sort
1343       echo
1344     fi
1345
1346     if test -s confdefs.h; then
1347       cat <<\_ASBOX
1348 ## ----------- ##
1349 ## confdefs.h. ##
1350 ## ----------- ##
1351 _ASBOX
1352       echo
1353       sed "/^$/d" confdefs.h | sort
1354       echo
1355     fi
1356     test "$ac_signal" != 0 &&
1357       echo "$as_me: caught signal $ac_signal"
1358     echo "$as_me: exit $exit_status"
1359   } >&5
1360   rm -f core *.core &&
1361   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362     exit $exit_status
1363      ' 0
1364 for ac_signal in 1 2 13 15; do
1365   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 done
1367 ac_signal=0
1368
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 echo >confdefs.h
1373
1374 # Predefined preprocessor variables.
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 _ACEOF
1399
1400
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404   if test "x$prefix" != xNONE; then
1405     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406   else
1407     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408   fi
1409 fi
1410 for ac_site_file in $CONFIG_SITE; do
1411   if test -r "$ac_site_file"; then
1412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414     sed 's/^/| /' "$ac_site_file" >&5
1415     . "$ac_site_file"
1416   fi
1417 done
1418
1419 if test -r "$cache_file"; then
1420   # Some versions of bash will fail to source /dev/null (special
1421   # files actually), so we avoid doing that.
1422   if test -f "$cache_file"; then
1423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1425     case $cache_file in
1426       [\\/]* | ?:[\\/]* ) . $cache_file;;
1427       *)                      . ./$cache_file;;
1428     esac
1429   fi
1430 else
1431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1433   >$cache_file
1434 fi
1435
1436 # Check that the precious variables saved in the cache have kept the same
1437 # value.
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442   eval ac_new_set=\$ac_env_${ac_var}_set
1443   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444   eval ac_new_val="\$ac_env_${ac_var}_value"
1445   case $ac_old_set,$ac_new_set in
1446     set,)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,set)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,);;
1455     *)
1456       if test "x$ac_old_val" != "x$ac_new_val"; then
1457         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1460 echo "$as_me:   former value:  $ac_old_val" >&2;}
1461         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1462 echo "$as_me:   current value: $ac_new_val" >&2;}
1463         ac_cache_corrupted=:
1464       fi;;
1465   esac
1466   # Pass precious variables to config.status.
1467   if test "$ac_new_set" = set; then
1468     case $ac_new_val in
1469     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     *) ac_arg=$ac_var=$ac_new_val ;;
1472     esac
1473     case " $ac_configure_args " in
1474       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1475       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476     esac
1477   fi
1478 done
1479 if $ac_cache_corrupted; then
1480   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484    { (exit 1); exit 1; }; }
1485 fi
1486
1487 ac_ext=c
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1512
1513
1514 RADIUSD_MAJOR_VERSION=1
1515 RADIUSD_MINOR_VERSION=1.2
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }; then
2031   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032   case $ac_file in
2033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035        break;;
2036   esac
2037 done
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2054 ac_objext=$OBJEXT
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h.  */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h.  */
2066
2067 int
2068 main ()
2069 {
2070 #ifndef __GNUC__
2071        choke me
2072 #endif
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080   (eval $ac_compile) 2>conftest.er1
2081   ac_status=$?
2082   grep -v '^ *+' conftest.er1 >conftest.err
2083   rm -f conftest.er1
2084   cat conftest.err >&5
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -z "$ac_c_werror_flag"
2088                          || test ! -s conftest.err'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; } &&
2094          { ac_try='test -s conftest.$ac_objext'
2095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096   (eval $ac_try) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; }; then
2100   ac_compiler_gnu=yes
2101 else
2102   echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_compiler_gnu=no
2106 fi
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109
2110 fi
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2116 CFLAGS="-g"
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>conftest.er1
2140   ac_status=$?
2141   grep -v '^ *+' conftest.er1 >conftest.err
2142   rm -f conftest.er1
2143   cat conftest.err >&5
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); } &&
2146          { ac_try='test -z "$ac_c_werror_flag"
2147                          || test ! -s conftest.err'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; } &&
2153          { ac_try='test -s conftest.$ac_objext'
2154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155   (eval $ac_try) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; }; then
2159   ac_cv_prog_cc_g=yes
2160 else
2161   echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_cv_prog_cc_g=no
2165 fi
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171   CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173   if test "$GCC" = yes; then
2174     CFLAGS="-g -O2"
2175   else
2176     CFLAGS="-g"
2177   fi
2178 else
2179   if test "$GCC" = yes; then
2180     CFLAGS="-O2"
2181   else
2182     CFLAGS=
2183   fi
2184 fi
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   ac_cv_prog_cc_stdc=no
2191 ac_save_CC=$CC
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h.  */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h.  */
2198 #include <stdarg.h>
2199 #include <stdio.h>
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2206      char **p;
2207      int i;
2208 {
2209   return p[i];
2210 }
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2212 {
2213   char *s;
2214   va_list v;
2215   va_start (v,p);
2216   s = g (p, va_arg (v,int));
2217   va_end (v);
2218   return s;
2219 }
2220
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2222    function prototypes and stuff, but not '\xHH' hex character constants.
2223    These don't provoke an error unfortunately, instead are silently treated
2224    as 'x'.  The following induces an error, until -std1 is added to get
2225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2226    array size at least.  It's necessary to write '\x00'==0 to get something
2227    that's true only with -std1.  */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2229
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2234 int argc;
2235 char **argv;
2236 int
2237 main ()
2238 {
2239 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX                   -qlanglvl=ansi
2247 # Ultrix and OSF/1      -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2250 # SVR4                  -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2252 do
2253   CC="$ac_save_CC $ac_arg"
2254   rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256   (eval $ac_compile) 2>conftest.er1
2257   ac_status=$?
2258   grep -v '^ *+' conftest.er1 >conftest.err
2259   rm -f conftest.er1
2260   cat conftest.err >&5
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -z "$ac_c_werror_flag"
2264                          || test ! -s conftest.err'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; } &&
2270          { ac_try='test -s conftest.$ac_objext'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; }; then
2276   ac_cv_prog_cc_stdc=$ac_arg
2277 break
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 fi
2283 rm -f conftest.err conftest.$ac_objext
2284 done
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2286 CC=$ac_save_CC
2287
2288 fi
2289
2290 case "x$ac_cv_prog_cc_stdc" in
2291   x|xno)
2292     echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2294   *)
2295     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297     CC="$CC $ac_cv_prog_cc_stdc" ;;
2298 esac
2299
2300 # Some people use a C++ compiler to compile C.  Since we use `exit',
2301 # in C++ we need to declare it.  In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #ifndef __cplusplus
2306   choke me
2307 #endif
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>conftest.er1
2312   ac_status=$?
2313   grep -v '^ *+' conftest.er1 >conftest.err
2314   rm -f conftest.er1
2315   cat conftest.err >&5
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -z "$ac_c_werror_flag"
2319                          || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   for ac_declaration in \
2332    '' \
2333    'extern "C" void std::exit (int) throw (); using std::exit;' \
2334    'extern "C" void std::exit (int); using std::exit;' \
2335    'extern "C" void exit (int) throw ();' \
2336    'extern "C" void exit (int);' \
2337    'void exit (int);'
2338 do
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345 $ac_declaration
2346 #include <stdlib.h>
2347 int
2348 main ()
2349 {
2350 exit (42);
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>conftest.er1
2358   ac_status=$?
2359   grep -v '^ *+' conftest.er1 >conftest.err
2360   rm -f conftest.er1
2361   cat conftest.err >&5
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -z "$ac_c_werror_flag"
2365                          || test ! -s conftest.err'
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); }; } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   :
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 continue
2383 fi
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385   cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391 $ac_declaration
2392 int
2393 main ()
2394 {
2395 exit (42);
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402   (eval $ac_compile) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag"
2410                          || test ! -s conftest.err'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; } &&
2416          { ac_try='test -s conftest.$ac_objext'
2417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418   (eval $ac_try) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   break
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 done
2430 rm -f conftest*
2431 if test -n "$ac_declaration"; then
2432   echo '#ifdef __cplusplus' >>confdefs.h
2433   echo $ac_declaration      >>confdefs.h
2434   echo '#endif'             >>confdefs.h
2435 fi
2436
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2449
2450
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2457 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2458 # On Suns, sometimes $CPP names a directory.
2459 if test -n "$CPP" && test -d "$CPP"; then
2460   CPP=
2461 fi
2462 if test -z "$CPP"; then
2463   if test "${ac_cv_prog_CPP+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466       # Double quotes because CPP needs to be expanded
2467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2468     do
2469       ac_preproc_ok=false
2470 for ac_c_preproc_warn_flag in '' yes
2471 do
2472   # Use a header file that comes with gcc, so configuring glibc
2473   # with a fresh cross-compiler works.
2474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475   # <limits.h> exists even on freestanding compilers.
2476   # On the NeXT, cc -E runs the code through the compiler's parser,
2477   # not just through cpp. "Syntax error" is here to catch this case.
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484 #ifdef __STDC__
2485 # include <limits.h>
2486 #else
2487 # include <assert.h>
2488 #endif
2489                      Syntax error
2490 _ACEOF
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493   ac_status=$?
2494   grep -v '^ *+' conftest.er1 >conftest.err
2495   rm -f conftest.er1
2496   cat conftest.err >&5
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); } >/dev/null; then
2499   if test -s conftest.err; then
2500     ac_cpp_err=$ac_c_preproc_warn_flag
2501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502   else
2503     ac_cpp_err=
2504   fi
2505 else
2506   ac_cpp_err=yes
2507 fi
2508 if test -z "$ac_cpp_err"; then
2509   :
2510 else
2511   echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514   # Broken: fails on valid input.
2515 continue
2516 fi
2517 rm -f conftest.err conftest.$ac_ext
2518
2519   # OK, works on sane cases.  Now check whether non-existent headers
2520   # can be detected and how.
2521   cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527 #include <ac_nonexistent.h>
2528 _ACEOF
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531   ac_status=$?
2532   grep -v '^ *+' conftest.er1 >conftest.err
2533   rm -f conftest.er1
2534   cat conftest.err >&5
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); } >/dev/null; then
2537   if test -s conftest.err; then
2538     ac_cpp_err=$ac_c_preproc_warn_flag
2539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540   else
2541     ac_cpp_err=
2542   fi
2543 else
2544   ac_cpp_err=yes
2545 fi
2546 if test -z "$ac_cpp_err"; then
2547   # Broken: success on invalid input.
2548 continue
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553   # Passes both tests.
2554 ac_preproc_ok=:
2555 break
2556 fi
2557 rm -f conftest.err conftest.$ac_ext
2558
2559 done
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2563   break
2564 fi
2565
2566     done
2567     ac_cv_prog_CPP=$CPP
2568
2569 fi
2570   CPP=$ac_cv_prog_CPP
2571 else
2572   ac_cv_prog_CPP=$CPP
2573 fi
2574 echo "$as_me:$LINENO: result: $CPP" >&5
2575 echo "${ECHO_T}$CPP" >&6
2576 ac_preproc_ok=false
2577 for ac_c_preproc_warn_flag in '' yes
2578 do
2579   # Use a header file that comes with gcc, so configuring glibc
2580   # with a fresh cross-compiler works.
2581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2582   # <limits.h> exists even on freestanding compilers.
2583   # On the NeXT, cc -E runs the code through the compiler's parser,
2584   # not just through cpp. "Syntax error" is here to catch this case.
2585   cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591 #ifdef __STDC__
2592 # include <limits.h>
2593 #else
2594 # include <assert.h>
2595 #endif
2596                      Syntax error
2597 _ACEOF
2598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2600   ac_status=$?
2601   grep -v '^ *+' conftest.er1 >conftest.err
2602   rm -f conftest.er1
2603   cat conftest.err >&5
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); } >/dev/null; then
2606   if test -s conftest.err; then
2607     ac_cpp_err=$ac_c_preproc_warn_flag
2608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2609   else
2610     ac_cpp_err=
2611   fi
2612 else
2613   ac_cpp_err=yes
2614 fi
2615 if test -z "$ac_cpp_err"; then
2616   :
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621   # Broken: fails on valid input.
2622 continue
2623 fi
2624 rm -f conftest.err conftest.$ac_ext
2625
2626   # OK, works on sane cases.  Now check whether non-existent headers
2627   # can be detected and how.
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 #include <ac_nonexistent.h>
2635 _ACEOF
2636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } >/dev/null; then
2644   if test -s conftest.err; then
2645     ac_cpp_err=$ac_c_preproc_warn_flag
2646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2647   else
2648     ac_cpp_err=
2649   fi
2650 else
2651   ac_cpp_err=yes
2652 fi
2653 if test -z "$ac_cpp_err"; then
2654   # Broken: success on invalid input.
2655 continue
2656 else
2657   echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660   # Passes both tests.
2661 ac_preproc_ok=:
2662 break
2663 fi
2664 rm -f conftest.err conftest.$ac_ext
2665
2666 done
2667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2668 rm -f conftest.err conftest.$ac_ext
2669 if $ac_preproc_ok; then
2670   :
2671 else
2672   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2673 See \`config.log' for more details." >&5
2674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2675 See \`config.log' for more details." >&2;}
2676    { (exit 1); exit 1; }; }
2677 fi
2678
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684
2685
2686 echo "$as_me:$LINENO: checking for egrep" >&5
2687 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2688 if test "${ac_cv_prog_egrep+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2692     then ac_cv_prog_egrep='grep -E'
2693     else ac_cv_prog_egrep='egrep'
2694     fi
2695 fi
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2697 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2698  EGREP=$ac_cv_prog_egrep
2699
2700
2701
2702 echo "$as_me:$LINENO: checking for AIX" >&5
2703 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710 #ifdef _AIX
2711   yes
2712 #endif
2713
2714 _ACEOF
2715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2716   $EGREP "yes" >/dev/null 2>&1; then
2717   echo "$as_me:$LINENO: result: yes" >&5
2718 echo "${ECHO_T}yes" >&6
2719 cat >>confdefs.h <<\_ACEOF
2720 #define _ALL_SOURCE 1
2721 _ACEOF
2722
2723 else
2724   echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2726 fi
2727 rm -f conftest*
2728
2729
2730
2731 if test $ac_cv_c_compiler_gnu = yes; then
2732     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2733 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2734 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2735   echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737     ac_pattern="Autoconf.*'x'"
2738   cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744 #include <sgtty.h>
2745 Autoconf TIOCGETP
2746 _ACEOF
2747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2748   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2749   ac_cv_prog_gcc_traditional=yes
2750 else
2751   ac_cv_prog_gcc_traditional=no
2752 fi
2753 rm -f conftest*
2754
2755
2756   if test $ac_cv_prog_gcc_traditional = no; then
2757     cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 #include <termio.h>
2764 Autoconf TCGETA
2765 _ACEOF
2766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2767   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2768   ac_cv_prog_gcc_traditional=yes
2769 fi
2770 rm -f conftest*
2771
2772   fi
2773 fi
2774 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2775 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2776   if test $ac_cv_prog_gcc_traditional = yes; then
2777     CC="$CC -traditional"
2778   fi
2779 fi
2780
2781 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2782 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2783 if test "${ac_cv_prog_suncc+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   cat > conftest.c <<EOF
2787 #ifdef __SUNPRO_C
2788   yes;
2789 #endif
2790 EOF
2791 if { ac_try='${CC-cc} -E conftest.c'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2797   ac_cv_prog_suncc=yes
2798 else
2799   ac_cv_prog_suncc=no
2800 fi
2801 fi
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2803 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2804 if test -n "$ac_tool_prefix"; then
2805   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   if test -n "$RANLIB"; then
2813   ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 fi
2830 fi
2831 RANLIB=$ac_cv_prog_RANLIB
2832 if test -n "$RANLIB"; then
2833   echo "$as_me:$LINENO: result: $RANLIB" >&5
2834 echo "${ECHO_T}$RANLIB" >&6
2835 else
2836   echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2838 fi
2839
2840 fi
2841 if test -z "$ac_cv_prog_RANLIB"; then
2842   ac_ct_RANLIB=$RANLIB
2843   # Extract the first word of "ranlib", so it can be a program name with args.
2844 set dummy ranlib; ac_word=$2
2845 echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850   if test -n "$ac_ct_RANLIB"; then
2851   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858   for ac_exec_ext in '' $ac_executable_extensions; do
2859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860     ac_cv_prog_ac_ct_RANLIB="ranlib"
2861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862     break 2
2863   fi
2864 done
2865 done
2866
2867   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2868 fi
2869 fi
2870 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2871 if test -n "$ac_ct_RANLIB"; then
2872   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2873 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2874 else
2875   echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2877 fi
2878
2879   RANLIB=$ac_ct_RANLIB
2880 else
2881   RANLIB="$ac_cv_prog_RANLIB"
2882 fi
2883
2884
2885 abs_top_builddir=`pwd`
2886
2887
2888
2889 PACKAGE=freeradius
2890
2891 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2892 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2893 if test "${ac_cv_c_bigendian+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   # See if sys/param.h defines the BYTE_ORDER macro.
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #include <sys/types.h>
2904 #include <sys/param.h>
2905
2906 int
2907 main ()
2908 {
2909 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2910  bogus endian macros
2911 #endif
2912
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919   (eval $ac_compile) 2>conftest.er1
2920   ac_status=$?
2921   grep -v '^ *+' conftest.er1 >conftest.err
2922   rm -f conftest.er1
2923   cat conftest.err >&5
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); } &&
2926          { ac_try='test -z "$ac_c_werror_flag"
2927                          || test ! -s conftest.err'
2928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929   (eval $ac_try) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; } &&
2933          { ac_try='test -s conftest.$ac_objext'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; }; then
2939   # It does; now see whether it defined to BIG_ENDIAN or not.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #include <sys/types.h>
2947 #include <sys/param.h>
2948
2949 int
2950 main ()
2951 {
2952 #if BYTE_ORDER != BIG_ENDIAN
2953  not big endian
2954 #endif
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962   (eval $ac_compile) 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } &&
2969          { ac_try='test -z "$ac_c_werror_flag"
2970                          || test ! -s conftest.err'
2971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972   (eval $ac_try) 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; } &&
2976          { ac_try='test -s conftest.$ac_objext'
2977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978   (eval $ac_try) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }; }; then
2982   ac_cv_c_bigendian=yes
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 ac_cv_c_bigendian=no
2988 fi
2989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990 else
2991   echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 # It does not; compile a test program.
2995 if test "$cross_compiling" = yes; then
2996   # try to guess the endianness by grepping values into an object file
2997   ac_cv_c_bigendian=unknown
2998   cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3005 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3006 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3007 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3008 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3009 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3010 int
3011 main ()
3012 {
3013  _ascii (); _ebcdic ();
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020   (eval $ac_compile) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_c_werror_flag"
3028                          || test ! -s conftest.err'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036   (eval $ac_try) 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; }; then
3040   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3041   ac_cv_c_bigendian=yes
3042 fi
3043 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3044   if test "$ac_cv_c_bigendian" = unknown; then
3045     ac_cv_c_bigendian=no
3046   else
3047     # finding both strings is unlikely to happen, but who knows?
3048     ac_cv_c_bigendian=unknown
3049   fi
3050 fi
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 else
3058   cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064 int
3065 main ()
3066 {
3067   /* Are we little or big endian?  From Harbison&Steele.  */
3068   union
3069   {
3070     long l;
3071     char c[sizeof (long)];
3072   } u;
3073   u.l = 1;
3074   exit (u.c[sizeof (long) - 1] == 1);
3075 }
3076 _ACEOF
3077 rm -f conftest$ac_exeext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079   (eval $ac_link) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_cv_c_bigendian=no
3089 else
3090   echo "$as_me: program exited with status $ac_status" >&5
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 ( exit $ac_status )
3095 ac_cv_c_bigendian=yes
3096 fi
3097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3098 fi
3099 fi
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101 fi
3102 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3103 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3104 case $ac_cv_c_bigendian in
3105   yes)
3106
3107 cat >>confdefs.h <<\_ACEOF
3108 #define WORDS_BIGENDIAN 1
3109 _ACEOF
3110  ;;
3111   no)
3112      ;;
3113   *)
3114     { { echo "$as_me:$LINENO: error: unknown endianness
3115 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3116 echo "$as_me: error: unknown endianness
3117 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3118    { (exit 1); exit 1; }; } ;;
3119 esac
3120
3121
3122 # Extract the first word of "gmake", so it can be a program name with args.
3123 set dummy gmake; ac_word=$2
3124 echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126 if test "${ac_cv_prog_GMAKE+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   if test -n "$GMAKE"; then
3130   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137   for ac_exec_ext in '' $ac_executable_extensions; do
3138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139     ac_cv_prog_GMAKE="yes"
3140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144 done
3145
3146   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3147 fi
3148 fi
3149 GMAKE=$ac_cv_prog_GMAKE
3150 if test -n "$GMAKE"; then
3151   echo "$as_me:$LINENO: result: $GMAKE" >&5
3152 echo "${ECHO_T}$GMAKE" >&6
3153 else
3154   echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3156 fi
3157
3158 if test $GMAKE = no; then
3159   # Extract the first word of "make", so it can be a program name with args.
3160 set dummy make; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_path_MAKE+set}" = set; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166   case $MAKE in
3167   [\\/]* | ?:[\\/]*)
3168   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3169   ;;
3170   *)
3171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176   for ac_exec_ext in '' $ac_executable_extensions; do
3177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183 done
3184
3185   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3186   ;;
3187 esac
3188 fi
3189 MAKE=$ac_cv_path_MAKE
3190
3191 if test -n "$MAKE"; then
3192   echo "$as_me:$LINENO: result: $MAKE" >&5
3193 echo "${ECHO_T}$MAKE" >&6
3194 else
3195   echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi
3198
3199 else
3200   # Extract the first word of "gmake", so it can be a program name with args.
3201 set dummy gmake; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_path_MAKE+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   case $MAKE in
3208   [\\/]* | ?:[\\/]*)
3209   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3210   ;;
3211   *)
3212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217   for ac_exec_ext in '' $ac_executable_extensions; do
3218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224 done
3225
3226   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3227   ;;
3228 esac
3229 fi
3230 MAKE=$ac_cv_path_MAKE
3231
3232 if test -n "$MAKE"; then
3233   echo "$as_me:$LINENO: result: $MAKE" >&5
3234 echo "${ECHO_T}$MAKE" >&6
3235 else
3236   echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238 fi
3239
3240 fi
3241 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3242 if test -z "$makever"; then
3243   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3244                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3245 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3246                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3247    { (exit 1); exit 1; }; }
3248 fi
3249
3250   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3251 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3252 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   ac_check_lib_save_LIBS=$LIBS
3256 LIBS="-lltdl  $LIBS"
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 /* Override any gcc2 internal prototype to avoid an error.  */
3265 #ifdef __cplusplus
3266 extern "C"
3267 #endif
3268 /* We use char because int might match the return type of a gcc2
3269    builtin and then its argument prototype would still apply.  */
3270 char lt_dlinit ();
3271 int
3272 main ()
3273 {
3274 lt_dlinit ();
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281   (eval $ac_link) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -z "$ac_c_werror_flag"
3289                          || test ! -s conftest.err'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; } &&
3295          { ac_try='test -s conftest$ac_exeext'
3296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297   (eval $ac_try) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   ac_cv_lib_ltdl_lt_dlinit=yes
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 ac_cv_lib_ltdl_lt_dlinit=no
3307 fi
3308 rm -f conftest.err conftest.$ac_objext \
3309       conftest$ac_exeext conftest.$ac_ext
3310 LIBS=$ac_check_lib_save_LIBS
3311 fi
3312 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3313 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3314 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3315   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3316 else
3317   if test x"$enable_ltdl_install" = xno; then
3318      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3319 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3320    else
3321      enable_ltdl_install=yes
3322    fi
3323
3324 fi
3325
3326   if test x"$enable_ltdl_install" = x"yes"; then
3327     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3328     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3329     LTDLINCL='-I${top_srcdir}/''libltdl'
3330   else
3331     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3332     LIBLTDL="-lltdl"
3333     LTDLINCL=
3334   fi
3335   # For backwards non-gettext consistent compatibility...
3336   INCLTDL="$LTDLINCL"
3337
3338
3339 if test x"$enable_ltdl_install" = x"yes"; then
3340   LTDL_SUBDIRS=libltdl
3341 fi
3342
3343
3344 # Check whether --enable-shared or --disable-shared was given.
3345 if test "${enable_shared+set}" = set; then
3346   enableval="$enable_shared"
3347   p=${PACKAGE-default}
3348     case $enableval in
3349     yes) enable_shared=yes ;;
3350     no) enable_shared=no ;;
3351     *)
3352       enable_shared=no
3353       # Look at the argument we got.  We use all the common list separators.
3354       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3355       for pkg in $enableval; do
3356         IFS="$lt_save_ifs"
3357         if test "X$pkg" = "X$p"; then
3358           enable_shared=yes
3359         fi
3360       done
3361       IFS="$lt_save_ifs"
3362       ;;
3363     esac
3364 else
3365   enable_shared=yes
3366 fi;
3367
3368 # Check whether --enable-static or --disable-static was given.
3369 if test "${enable_static+set}" = set; then
3370   enableval="$enable_static"
3371   p=${PACKAGE-default}
3372     case $enableval in
3373     yes) enable_static=yes ;;
3374     no) enable_static=no ;;
3375     *)
3376      enable_static=no
3377       # Look at the argument we got.  We use all the common list separators.
3378       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3379       for pkg in $enableval; do
3380         IFS="$lt_save_ifs"
3381         if test "X$pkg" = "X$p"; then
3382           enable_static=yes
3383         fi
3384       done
3385       IFS="$lt_save_ifs"
3386       ;;
3387     esac
3388 else
3389   enable_static=yes
3390 fi;
3391
3392 # Check whether --enable-fast-install or --disable-fast-install was given.
3393 if test "${enable_fast_install+set}" = set; then
3394   enableval="$enable_fast_install"
3395   p=${PACKAGE-default}
3396     case $enableval in
3397     yes) enable_fast_install=yes ;;
3398     no) enable_fast_install=no ;;
3399     *)
3400       enable_fast_install=no
3401       # Look at the argument we got.  We use all the common list separators.
3402       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3403       for pkg in $enableval; do
3404         IFS="$lt_save_ifs"
3405         if test "X$pkg" = "X$p"; then
3406           enable_fast_install=yes
3407         fi
3408       done
3409       IFS="$lt_save_ifs"
3410       ;;
3411     esac
3412 else
3413   enable_fast_install=yes
3414 fi;
3415
3416 ac_aux_dir=
3417 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3418   if test -f $ac_dir/install-sh; then
3419     ac_aux_dir=$ac_dir
3420     ac_install_sh="$ac_aux_dir/install-sh -c"
3421     break
3422   elif test -f $ac_dir/install.sh; then
3423     ac_aux_dir=$ac_dir
3424     ac_install_sh="$ac_aux_dir/install.sh -c"
3425     break
3426   elif test -f $ac_dir/shtool; then
3427     ac_aux_dir=$ac_dir
3428     ac_install_sh="$ac_aux_dir/shtool install -c"
3429     break
3430   fi
3431 done
3432 if test -z "$ac_aux_dir"; then
3433   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3434 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3438 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3439 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3440
3441 # Make sure we can run config.sub.
3442 $ac_config_sub sun4 >/dev/null 2>&1 ||
3443   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3444 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3445    { (exit 1); exit 1; }; }
3446
3447 echo "$as_me:$LINENO: checking build system type" >&5
3448 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3449 if test "${ac_cv_build+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   ac_cv_build_alias=$build_alias
3453 test -z "$ac_cv_build_alias" &&
3454   ac_cv_build_alias=`$ac_config_guess`
3455 test -z "$ac_cv_build_alias" &&
3456   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3457 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3458    { (exit 1); exit 1; }; }
3459 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3460   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3461 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3462    { (exit 1); exit 1; }; }
3463
3464 fi
3465 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3466 echo "${ECHO_T}$ac_cv_build" >&6
3467 build=$ac_cv_build
3468 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3469 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3470 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3471
3472
3473 echo "$as_me:$LINENO: checking host system type" >&5
3474 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3475 if test "${ac_cv_host+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   ac_cv_host_alias=$host_alias
3479 test -z "$ac_cv_host_alias" &&
3480   ac_cv_host_alias=$ac_cv_build_alias
3481 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3482   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3483 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3484    { (exit 1); exit 1; }; }
3485
3486 fi
3487 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3488 echo "${ECHO_T}$ac_cv_host" >&6
3489 host=$ac_cv_host
3490 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3491 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3492 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3493
3494
3495 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3496 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3497 if test "${lt_cv_path_SED+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   # Loop through the user's path and test for sed and gsed.
3501 # Then use that list of sed's as ones to test for truncation.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505   IFS=$as_save_IFS
3506   test -z "$as_dir" && as_dir=.
3507   for lt_ac_prog in sed gsed; do
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3510         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3511       fi
3512     done
3513   done
3514 done
3515 lt_ac_max=0
3516 lt_ac_count=0
3517 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3518 # along with /bin/sed that truncates output.
3519 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3520   test ! -f $lt_ac_sed && continue
3521   cat /dev/null > conftest.in
3522   lt_ac_count=0
3523   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3524   # Check for GNU sed and select it if it is found.
3525   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3526     lt_cv_path_SED=$lt_ac_sed
3527     break
3528   fi
3529   while true; do
3530     cat conftest.in conftest.in >conftest.tmp
3531     mv conftest.tmp conftest.in
3532     cp conftest.in conftest.nl
3533     echo >>conftest.nl
3534     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3535     cmp -s conftest.out conftest.nl || break
3536     # 10000 chars as input seems more than enough
3537     test $lt_ac_count -gt 10 && break
3538     lt_ac_count=`expr $lt_ac_count + 1`
3539     if test $lt_ac_count -gt $lt_ac_max; then
3540       lt_ac_max=$lt_ac_count
3541       lt_cv_path_SED=$lt_ac_sed
3542     fi
3543   done
3544 done
3545
3546 fi
3547
3548 SED=$lt_cv_path_SED
3549 echo "$as_me:$LINENO: result: $SED" >&5
3550 echo "${ECHO_T}$SED" >&6
3551
3552
3553 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3554 if test "${with_gnu_ld+set}" = set; then
3555   withval="$with_gnu_ld"
3556   test "$withval" = no || with_gnu_ld=yes
3557 else
3558   with_gnu_ld=no
3559 fi;
3560 ac_prog=ld
3561 if test "$GCC" = yes; then
3562   # Check if gcc -print-prog-name=ld gives a path.
3563   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3564 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3565   case $host in
3566   *-*-mingw*)
3567     # gcc leaves a trailing carriage return which upsets mingw
3568     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3569   *)
3570     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3571   esac
3572   case $ac_prog in
3573     # Accept absolute paths.
3574     [\\/]* | ?:[\\/]*)
3575       re_direlt='/[^/][^/]*/\.\./'
3576       # Canonicalize the pathname of ld
3577       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3578       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3579         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3580       done
3581       test -z "$LD" && LD="$ac_prog"
3582       ;;
3583   "")
3584     # If it fails, then pretend we aren't using GCC.
3585     ac_prog=ld
3586     ;;
3587   *)
3588     # If it is relative, then search for the first ld in PATH.
3589     with_gnu_ld=unknown
3590     ;;
3591   esac
3592 elif test "$with_gnu_ld" = yes; then
3593   echo "$as_me:$LINENO: checking for GNU ld" >&5
3594 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3595 else
3596   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3597 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3598 fi
3599 if test "${lt_cv_path_LD+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   if test -z "$LD"; then
3603   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3604   for ac_dir in $PATH; do
3605     IFS="$lt_save_ifs"
3606     test -z "$ac_dir" && ac_dir=.
3607     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3608       lt_cv_path_LD="$ac_dir/$ac_prog"
3609       # Check to see if the program is GNU ld.  I'd rather use --version,
3610       # but apparently some variants of GNU ld only accept -v.
3611       # Break only if it was the GNU/non-GNU ld that we prefer.
3612       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3613       *GNU* | *'with BFD'*)
3614         test "$with_gnu_ld" != no && break
3615         ;;
3616       *)
3617         test "$with_gnu_ld" != yes && break
3618         ;;
3619       esac
3620     fi
3621   done
3622   IFS="$lt_save_ifs"
3623 else
3624   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3625 fi
3626 fi
3627
3628 LD="$lt_cv_path_LD"
3629 if test -n "$LD"; then
3630   echo "$as_me:$LINENO: result: $LD" >&5
3631 echo "${ECHO_T}$LD" >&6
3632 else
3633   echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 fi
3636 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3637 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3638    { (exit 1); exit 1; }; }
3639 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3640 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3641 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3645 case `$LD -v 2>&1 </dev/null` in
3646 *GNU* | *'with BFD'*)
3647   lt_cv_prog_gnu_ld=yes
3648   ;;
3649 *)
3650   lt_cv_prog_gnu_ld=no
3651   ;;
3652 esac
3653 fi
3654 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3655 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3656 with_gnu_ld=$lt_cv_prog_gnu_ld
3657
3658
3659 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3660 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3661 if test "${lt_cv_ld_reload_flag+set}" = set; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664   lt_cv_ld_reload_flag='-r'
3665 fi
3666 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3667 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3668 reload_flag=$lt_cv_ld_reload_flag
3669 case $reload_flag in
3670 "" | " "*) ;;
3671 *) reload_flag=" $reload_flag" ;;
3672 esac
3673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3674 case $host_os in
3675   darwin*)
3676     if test "$GCC" = yes; then
3677       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3678     else
3679       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3680     fi
3681     ;;
3682 esac
3683
3684 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3685 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3686 if test "${lt_cv_path_NM+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   if test -n "$NM"; then
3690   # Let the user override the test.
3691   lt_cv_path_NM="$NM"
3692 else
3693   lt_nm_to_check="${ac_tool_prefix}nm"
3694   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3695     lt_nm_to_check="$lt_nm_to_check nm"
3696   fi
3697   for lt_tmp_nm in $lt_nm_to_check; do
3698     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3699     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3700       IFS="$lt_save_ifs"
3701       test -z "$ac_dir" && ac_dir=.
3702       tmp_nm="$ac_dir/$lt_tmp_nm"
3703       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3704         # Check to see if the nm accepts a BSD-compat flag.
3705         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3706         #   nm: unknown option "B" ignored
3707         # Tru64's nm complains that /dev/null is an invalid object file
3708         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3709         */dev/null* | *'Invalid file or object type'*)
3710           lt_cv_path_NM="$tmp_nm -B"
3711           break
3712           ;;
3713         *)
3714           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3715           */dev/null*)
3716             lt_cv_path_NM="$tmp_nm -p"
3717             break
3718             ;;
3719           *)
3720             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3721             continue # so that we can try to find one that supports BSD flags
3722             ;;
3723           esac
3724           ;;
3725         esac
3726       fi
3727     done
3728     IFS="$lt_save_ifs"
3729   done
3730   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3731 fi
3732 fi
3733 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3734 echo "${ECHO_T}$lt_cv_path_NM" >&6
3735 NM="$lt_cv_path_NM"
3736
3737 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3739 LN_S=$as_ln_s
3740 if test "$LN_S" = "ln -s"; then
3741   echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3745 echo "${ECHO_T}no, using $LN_S" >&6
3746 fi
3747
3748 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3749 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3750 if test "${lt_cv_deplibs_check_method+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   lt_cv_file_magic_cmd='$MAGIC_CMD'
3754 lt_cv_file_magic_test_file=
3755 lt_cv_deplibs_check_method='unknown'
3756 # Need to set the preceding variable on all platforms that support
3757 # interlibrary dependencies.
3758 # 'none' -- dependencies not supported.
3759 # `unknown' -- same as none, but documents that we really don't know.
3760 # 'pass_all' -- all dependencies passed with no checks.
3761 # 'test_compile' -- check by making test program.
3762 # 'file_magic [[regex]]' -- check by looking for files in library path
3763 # which responds to the $file_magic_cmd with a given extended regex.
3764 # If you have `file' or equivalent on your system and you're not sure
3765 # whether `pass_all' will *always* work, you probably want this one.
3766
3767 case $host_os in
3768 aix4* | aix5*)
3769   lt_cv_deplibs_check_method=pass_all
3770   ;;
3771
3772 beos*)
3773   lt_cv_deplibs_check_method=pass_all
3774   ;;
3775
3776 bsdi[45]*)
3777   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3778   lt_cv_file_magic_cmd='/usr/bin/file -L'
3779   lt_cv_file_magic_test_file=/shlib/libc.so
3780   ;;
3781
3782 cygwin*)
3783   # func_win32_libid is a shell function defined in ltmain.sh
3784   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3785   lt_cv_file_magic_cmd='func_win32_libid'
3786   ;;
3787
3788 mingw* | pw32*)
3789   # Base MSYS/MinGW do not provide the 'file' command needed by
3790   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3791   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3792   lt_cv_file_magic_cmd='$OBJDUMP -f'
3793   ;;
3794
3795 darwin* | rhapsody*)
3796   lt_cv_deplibs_check_method=pass_all
3797   ;;
3798
3799 freebsd* | kfreebsd*-gnu | dragonfly*)
3800   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3801     case $host_cpu in
3802     i*86 )
3803       # Not sure whether the presence of OpenBSD here was a mistake.
3804       # Let's accept both of them until this is cleared up.
3805       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3806       lt_cv_file_magic_cmd=/usr/bin/file
3807       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3808       ;;
3809     esac
3810   else
3811     lt_cv_deplibs_check_method=pass_all
3812   fi
3813   ;;
3814
3815 gnu*)
3816   lt_cv_deplibs_check_method=pass_all
3817   ;;
3818
3819 hpux10.20* | hpux11*)
3820   lt_cv_file_magic_cmd=/usr/bin/file
3821   case $host_cpu in
3822   ia64*)
3823     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3824     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3825     ;;
3826   hppa*64*)
3827     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]'
3828     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3829     ;;
3830   *)
3831     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3832     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3833     ;;
3834   esac
3835   ;;
3836
3837 interix3*)
3838   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3839   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3840   ;;
3841
3842 irix5* | irix6* | nonstopux*)
3843   case $LD in
3844   *-32|*"-32 ") libmagic=32-bit;;
3845   *-n32|*"-n32 ") libmagic=N32;;
3846   *-64|*"-64 ") libmagic=64-bit;;
3847   *) libmagic=never-match;;
3848   esac
3849   lt_cv_deplibs_check_method=pass_all
3850   ;;
3851
3852 # This must be Linux ELF.
3853 linux*)
3854   lt_cv_deplibs_check_method=pass_all
3855   ;;
3856
3857 netbsd*)
3858   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3859     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3860   else
3861     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3862   fi
3863   ;;
3864
3865 newos6*)
3866   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3867   lt_cv_file_magic_cmd=/usr/bin/file
3868   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3869   ;;
3870
3871 nto-qnx*)
3872   lt_cv_deplibs_check_method=unknown
3873   ;;
3874
3875 openbsd*)
3876   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3877     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3878   else
3879     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3880   fi
3881   ;;
3882
3883 osf3* | osf4* | osf5*)
3884   lt_cv_deplibs_check_method=pass_all
3885   ;;
3886
3887 solaris*)
3888   lt_cv_deplibs_check_method=pass_all
3889   ;;
3890
3891 sysv4 | sysv4.3*)
3892   case $host_vendor in
3893   motorola)
3894     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]'
3895     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3896     ;;
3897   ncr)
3898     lt_cv_deplibs_check_method=pass_all
3899     ;;
3900   sequent)
3901     lt_cv_file_magic_cmd='/bin/file'
3902     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3903     ;;
3904   sni)
3905     lt_cv_file_magic_cmd='/bin/file'
3906     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3907     lt_cv_file_magic_test_file=/lib/libc.so
3908     ;;
3909   siemens)
3910     lt_cv_deplibs_check_method=pass_all
3911     ;;
3912   pc)
3913     lt_cv_deplibs_check_method=pass_all
3914     ;;
3915   esac
3916   ;;
3917
3918 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3919   lt_cv_deplibs_check_method=pass_all
3920   ;;
3921 esac
3922
3923 fi
3924 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3925 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3926 file_magic_cmd=$lt_cv_file_magic_cmd
3927 deplibs_check_method=$lt_cv_deplibs_check_method
3928 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3929
3930
3931
3932
3933 # If no C compiler was specified, use CC.
3934 LTCC=${LTCC-"$CC"}
3935
3936 # If no C compiler flags were specified, use CFLAGS.
3937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3938
3939 # Allow CC to be a program name with arguments.
3940 compiler=$CC
3941
3942 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3943 if test "${enable_libtool_lock+set}" = set; then
3944   enableval="$enable_libtool_lock"
3945
3946 fi;
3947 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3948
3949 # Some flags need to be propagated to the compiler or linker for good
3950 # libtool support.
3951 case $host in
3952 ia64-*-hpux*)
3953   # Find out which ABI we are using.
3954   echo 'int i;' > conftest.$ac_ext
3955   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956   (eval $ac_compile) 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }; then
3960     case `/usr/bin/file conftest.$ac_objext` in
3961     *ELF-32*)
3962       HPUX_IA64_MODE="32"
3963       ;;
3964     *ELF-64*)
3965       HPUX_IA64_MODE="64"
3966       ;;
3967     esac
3968   fi
3969   rm -rf conftest*
3970   ;;
3971 *-*-irix6*)
3972   # Find out which ABI we are using.
3973   echo '#line 3973 "configure"' > conftest.$ac_ext
3974   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975   (eval $ac_compile) 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; then
3979    if test "$lt_cv_prog_gnu_ld" = yes; then
3980     case `/usr/bin/file conftest.$ac_objext` in
3981     *32-bit*)
3982       LD="${LD-ld} -melf32bsmip"
3983       ;;
3984     *N32*)
3985       LD="${LD-ld} -melf32bmipn32"
3986       ;;
3987     *64-bit*)
3988       LD="${LD-ld} -melf64bmip"
3989       ;;
3990     esac
3991    else
3992     case `/usr/bin/file conftest.$ac_objext` in
3993     *32-bit*)
3994       LD="${LD-ld} -32"
3995       ;;
3996     *N32*)
3997       LD="${LD-ld} -n32"
3998       ;;
3999     *64-bit*)
4000       LD="${LD-ld} -64"
4001       ;;
4002     esac
4003    fi
4004   fi
4005   rm -rf conftest*
4006   ;;
4007
4008 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4009   # Find out which ABI we are using.
4010   echo 'int i;' > conftest.$ac_ext
4011   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012   (eval $ac_compile) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }; then
4016     case `/usr/bin/file conftest.o` in
4017     *32-bit*)
4018       case $host in
4019         x86_64-*linux*)
4020           LD="${LD-ld} -m elf_i386"
4021           ;;
4022         ppc64-*linux*|powerpc64-*linux*)
4023           LD="${LD-ld} -m elf32ppclinux"
4024           ;;
4025         s390x-*linux*)
4026           LD="${LD-ld} -m elf_s390"
4027           ;;
4028         sparc64-*linux*)
4029           LD="${LD-ld} -m elf32_sparc"
4030           ;;
4031       esac
4032       ;;
4033     *64-bit*)
4034       case $host in
4035         x86_64-*linux*)
4036           LD="${LD-ld} -m elf_x86_64"
4037           ;;
4038         ppc*-*linux*|powerpc*-*linux*)
4039           LD="${LD-ld} -m elf64ppc"
4040           ;;
4041         s390*-*linux*)
4042           LD="${LD-ld} -m elf64_s390"
4043           ;;
4044         sparc*-*linux*)
4045           LD="${LD-ld} -m elf64_sparc"
4046           ;;
4047       esac
4048       ;;
4049     esac
4050   fi
4051   rm -rf conftest*
4052   ;;
4053
4054 *-*-sco3.2v5*)
4055   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4056   SAVE_CFLAGS="$CFLAGS"
4057   CFLAGS="$CFLAGS -belf"
4058   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4059 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4060 if test "${lt_cv_cc_needs_belf+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068
4069      cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h.  */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h.  */
4075
4076 int
4077 main ()
4078 {
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext conftest$ac_exeext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4086   (eval $ac_link) 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } &&
4093          { ac_try='test -z "$ac_c_werror_flag"
4094                          || test ! -s conftest.err'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; } &&
4100          { ac_try='test -s conftest$ac_exeext'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   lt_cv_cc_needs_belf=yes
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 lt_cv_cc_needs_belf=no
4112 fi
4113 rm -f conftest.err conftest.$ac_objext \
4114       conftest$ac_exeext conftest.$ac_ext
4115      ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121 fi
4122 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4123 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4124   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4125     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4126     CFLAGS="$SAVE_CFLAGS"
4127   fi
4128   ;;
4129 sparc*-*solaris*)
4130   # Find out which ABI we are using.
4131   echo 'int i;' > conftest.$ac_ext
4132   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133   (eval $ac_compile) 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; then
4137     case `/usr/bin/file conftest.o` in
4138     *64-bit*)
4139       case $lt_cv_prog_gnu_ld in
4140       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4141       *)    LD="${LD-ld} -64" ;;
4142       esac
4143       ;;
4144     esac
4145   fi
4146   rm -rf conftest*
4147   ;;
4148
4149
4150 esac
4151
4152 need_locks="$enable_libtool_lock"
4153
4154
4155 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4156 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4157 if test "${ac_cv_header_stdc+set}" = set; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <stdlib.h>
4167 #include <stdarg.h>
4168 #include <string.h>
4169 #include <float.h>
4170
4171 int
4172 main ()
4173 {
4174
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181   (eval $ac_compile) 2>conftest.er1
4182   ac_status=$?
4183   grep -v '^ *+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } &&
4188          { ac_try='test -z "$ac_c_werror_flag"
4189                          || test ! -s conftest.err'
4190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191   (eval $ac_try) 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; } &&
4195          { ac_try='test -s conftest.$ac_objext'
4196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197   (eval $ac_try) 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; }; then
4201   ac_cv_header_stdc=yes
4202 else
4203   echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 ac_cv_header_stdc=no
4207 fi
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209
4210 if test $ac_cv_header_stdc = yes; then
4211   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <string.h>
4219
4220 _ACEOF
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222   $EGREP "memchr" >/dev/null 2>&1; then
4223   :
4224 else
4225   ac_cv_header_stdc=no
4226 fi
4227 rm -f conftest*
4228
4229 fi
4230
4231 if test $ac_cv_header_stdc = yes; then
4232   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4233   cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239 #include <stdlib.h>
4240
4241 _ACEOF
4242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243   $EGREP "free" >/dev/null 2>&1; then
4244   :
4245 else
4246   ac_cv_header_stdc=no
4247 fi
4248 rm -f conftest*
4249
4250 fi
4251
4252 if test $ac_cv_header_stdc = yes; then
4253   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4254   if test "$cross_compiling" = yes; then
4255   :
4256 else
4257   cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 #include <ctype.h>
4264 #if ((' ' & 0x0FF) == 0x020)
4265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4267 #else
4268 # define ISLOWER(c) \
4269                    (('a' <= (c) && (c) <= 'i') \
4270                      || ('j' <= (c) && (c) <= 'r') \
4271                      || ('s' <= (c) && (c) <= 'z'))
4272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4273 #endif
4274
4275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4276 int
4277 main ()
4278 {
4279   int i;
4280   for (i = 0; i < 256; i++)
4281     if (XOR (islower (i), ISLOWER (i))
4282         || toupper (i) != TOUPPER (i))
4283       exit(2);
4284   exit (0);
4285 }
4286 _ACEOF
4287 rm -f conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289   (eval $ac_link) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294   (eval $ac_try) 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; }; then
4298   :
4299 else
4300   echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304 ( exit $ac_status )
4305 ac_cv_header_stdc=no
4306 fi
4307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 fi
4310 fi
4311 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4312 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4313 if test $ac_cv_header_stdc = yes; then
4314
4315 cat >>confdefs.h <<\_ACEOF
4316 #define STDC_HEADERS 1
4317 _ACEOF
4318
4319 fi
4320
4321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4332                   inttypes.h stdint.h unistd.h
4333 do
4334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335 echo "$as_me:$LINENO: checking for $ac_header" >&5
4336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 $ac_includes_default
4347
4348 #include <$ac_header>
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352   (eval $ac_compile) 2>conftest.er1
4353   ac_status=$?
4354   grep -v '^ *+' conftest.er1 >conftest.err
4355   rm -f conftest.er1
4356   cat conftest.err >&5
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); } &&
4359          { ac_try='test -z "$ac_c_werror_flag"
4360                          || test ! -s conftest.err'
4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362   (eval $ac_try) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; } &&
4366          { ac_try='test -s conftest.$ac_objext'
4367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368   (eval $ac_try) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; }; then
4372   eval "$as_ac_Header=yes"
4373 else
4374   echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377 eval "$as_ac_Header=no"
4378 fi
4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4380 fi
4381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384   cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 _ACEOF
4387
4388 fi
4389
4390 done
4391
4392
4393
4394 for ac_header in dlfcn.h
4395 do
4396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398   echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 fi
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4405 else
4406   # Is the header compilable?
4407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 $ac_includes_default
4416 #include <$ac_header>
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420   (eval $ac_compile) 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_c_werror_flag"
4428                          || test ! -s conftest.err'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; } &&
4434          { ac_try='test -s conftest.$ac_objext'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; }; then
4440   ac_header_compiler=yes
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 ac_header_compiler=no
4446 fi
4447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449 echo "${ECHO_T}$ac_header_compiler" >&6
4450
4451 # Is the header present?
4452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 #include <$ac_header>
4461 _ACEOF
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } >/dev/null; then
4470   if test -s conftest.err; then
4471     ac_cpp_err=$ac_c_preproc_warn_flag
4472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4473   else
4474     ac_cpp_err=
4475   fi
4476 else
4477   ac_cpp_err=yes
4478 fi
4479 if test -z "$ac_cpp_err"; then
4480   ac_header_preproc=yes
4481 else
4482   echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485   ac_header_preproc=no
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489 echo "${ECHO_T}$ac_header_preproc" >&6
4490
4491 # So?  What about this header?
4492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4493   yes:no: )
4494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4498     ac_header_preproc=yes
4499     ;;
4500   no:yes:* )
4501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4513     (
4514       cat <<\_ASBOX
4515 ## ------------------------------------------ ##
4516 ## Report this to the AC_PACKAGE_NAME lists.  ##
4517 ## ------------------------------------------ ##
4518 _ASBOX
4519     ) |
4520       sed "s/^/$as_me: WARNING:     /" >&2
4521     ;;
4522 esac
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   eval "$as_ac_Header=\$ac_header_preproc"
4529 fi
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532
4533 fi
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535   cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 _ACEOF
4538
4539 fi
4540
4541 done
4542
4543 ac_ext=cc
4544 ac_cpp='$CXXCPP $CPPFLAGS'
4545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4548 if test -n "$ac_tool_prefix"; then
4549   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4550   do
4551     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_CXX+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   if test -n "$CXX"; then
4559   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574
4575 fi
4576 fi
4577 CXX=$ac_cv_prog_CXX
4578 if test -n "$CXX"; then
4579   echo "$as_me:$LINENO: result: $CXX" >&5
4580 echo "${ECHO_T}$CXX" >&6
4581 else
4582   echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4584 fi
4585
4586     test -n "$CXX" && break
4587   done
4588 fi
4589 if test -z "$CXX"; then
4590   ac_ct_CXX=$CXX
4591   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4592 do
4593   # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   if test -n "$ac_ct_CXX"; then
4601   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_prog_ac_ct_CXX="$ac_prog"
4611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616
4617 fi
4618 fi
4619 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4620 if test -n "$ac_ct_CXX"; then
4621   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4622 echo "${ECHO_T}$ac_ct_CXX" >&6
4623 else
4624   echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4626 fi
4627
4628   test -n "$ac_ct_CXX" && break
4629 done
4630 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4631
4632   CXX=$ac_ct_CXX
4633 fi
4634
4635
4636 # Provide some information about the compiler.
4637 echo "$as_me:$LINENO:" \
4638      "checking for C++ compiler version" >&5
4639 ac_compiler=`set X $ac_compile; echo $2`
4640 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4641   (eval $ac_compiler --version </dev/null >&5) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }
4645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4646   (eval $ac_compiler -v </dev/null >&5) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }
4650 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4651   (eval $ac_compiler -V </dev/null >&5) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }
4655
4656 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 int
4669 main ()
4670 {
4671 #ifndef __GNUC__
4672        choke me
4673 #endif
4674
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681   (eval $ac_compile) 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } &&
4688          { ac_try='test -z "$ac_cxx_werror_flag"
4689                          || test ! -s conftest.err'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; } &&
4695          { ac_try='test -s conftest.$ac_objext'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; }; then
4701   ac_compiler_gnu=yes
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_compiler_gnu=no
4707 fi
4708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4710
4711 fi
4712 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4713 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4714 GXX=`test $ac_compiler_gnu = yes && echo yes`
4715 ac_test_CXXFLAGS=${CXXFLAGS+set}
4716 ac_save_CXXFLAGS=$CXXFLAGS
4717 CXXFLAGS="-g"
4718 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4719 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4720 if test "${ac_cv_prog_cxx_g+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729
4730 int
4731 main ()
4732 {
4733
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740   (eval $ac_compile) 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } &&
4747          { ac_try='test -z "$ac_cxx_werror_flag"
4748                          || test ! -s conftest.err'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; } &&
4754          { ac_try='test -s conftest.$ac_objext'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; }; then
4760   ac_cv_prog_cxx_g=yes
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_cv_prog_cxx_g=no
4766 fi
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4770 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4771 if test "$ac_test_CXXFLAGS" = set; then
4772   CXXFLAGS=$ac_save_CXXFLAGS
4773 elif test $ac_cv_prog_cxx_g = yes; then
4774   if test "$GXX" = yes; then
4775     CXXFLAGS="-g -O2"
4776   else
4777     CXXFLAGS="-g"
4778   fi
4779 else
4780   if test "$GXX" = yes; then
4781     CXXFLAGS="-O2"
4782   else
4783     CXXFLAGS=
4784   fi
4785 fi
4786 for ac_declaration in \
4787    '' \
4788    'extern "C" void std::exit (int) throw (); using std::exit;' \
4789    'extern "C" void std::exit (int); using std::exit;' \
4790    'extern "C" void exit (int) throw ();' \
4791    'extern "C" void exit (int);' \
4792    'void exit (int);'
4793 do
4794   cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 $ac_declaration
4801 #include <stdlib.h>
4802 int
4803 main ()
4804 {
4805 exit (42);
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_cxx_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   :
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 continue
4838 fi
4839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4840   cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 $ac_declaration
4847 int
4848 main ()
4849 {
4850 exit (42);
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857   (eval $ac_compile) 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -z "$ac_cxx_werror_flag"
4865                          || test ! -s conftest.err'
4866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867   (eval $ac_try) 2>&5
4868   ac_status=$?
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; } &&
4871          { ac_try='test -s conftest.$ac_objext'
4872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873   (eval $ac_try) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; }; then
4877   break
4878 else
4879   echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 fi
4883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4884 done
4885 rm -f conftest*
4886 if test -n "$ac_declaration"; then
4887   echo '#ifdef __cplusplus' >>confdefs.h
4888   echo $ac_declaration      >>confdefs.h
4889   echo '#endif'             >>confdefs.h
4890 fi
4891
4892 ac_ext=cc
4893 ac_cpp='$CXXCPP $CPPFLAGS'
4894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4897
4898
4899
4900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4901     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4902     (test "X$CXX" != "Xg++"))) ; then
4903   ac_ext=cc
4904 ac_cpp='$CXXCPP $CPPFLAGS'
4905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4908 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4909 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4910 if test -z "$CXXCPP"; then
4911   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914       # Double quotes because CXXCPP needs to be expanded
4915     for CXXCPP in "$CXX -E" "/lib/cpp"
4916     do
4917       ac_preproc_ok=false
4918 for ac_cxx_preproc_warn_flag in '' yes
4919 do
4920   # Use a header file that comes with gcc, so configuring glibc
4921   # with a fresh cross-compiler works.
4922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923   # <limits.h> exists even on freestanding compilers.
4924   # On the NeXT, cc -E runs the code through the compiler's parser,
4925   # not just through cpp. "Syntax error" is here to catch this case.
4926   cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937                      Syntax error
4938 _ACEOF
4939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4941   ac_status=$?
4942   grep -v '^ *+' conftest.er1 >conftest.err
4943   rm -f conftest.er1
4944   cat conftest.err >&5
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); } >/dev/null; then
4947   if test -s conftest.err; then
4948     ac_cpp_err=$ac_cxx_preproc_warn_flag
4949     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4950   else
4951     ac_cpp_err=
4952   fi
4953 else
4954   ac_cpp_err=yes
4955 fi
4956 if test -z "$ac_cpp_err"; then
4957   :
4958 else
4959   echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962   # Broken: fails on valid input.
4963 continue
4964 fi
4965 rm -f conftest.err conftest.$ac_ext
4966
4967   # OK, works on sane cases.  Now check whether non-existent headers
4968   # can be detected and how.
4969   cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h.  */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h.  */
4975 #include <ac_nonexistent.h>
4976 _ACEOF
4977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4979   ac_status=$?
4980   grep -v '^ *+' conftest.er1 >conftest.err
4981   rm -f conftest.er1
4982   cat conftest.err >&5
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } >/dev/null; then
4985   if test -s conftest.err; then
4986     ac_cpp_err=$ac_cxx_preproc_warn_flag
4987     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4988   else
4989     ac_cpp_err=
4990   fi
4991 else
4992   ac_cpp_err=yes
4993 fi
4994 if test -z "$ac_cpp_err"; then
4995   # Broken: success on invalid input.
4996 continue
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001   # Passes both tests.
5002 ac_preproc_ok=:
5003 break
5004 fi
5005 rm -f conftest.err conftest.$ac_ext
5006
5007 done
5008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5009 rm -f conftest.err conftest.$ac_ext
5010 if $ac_preproc_ok; then
5011   break
5012 fi
5013
5014     done
5015     ac_cv_prog_CXXCPP=$CXXCPP
5016
5017 fi
5018   CXXCPP=$ac_cv_prog_CXXCPP
5019 else
5020   ac_cv_prog_CXXCPP=$CXXCPP
5021 fi
5022 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5023 echo "${ECHO_T}$CXXCPP" >&6
5024 ac_preproc_ok=false
5025 for ac_cxx_preproc_warn_flag in '' yes
5026 do
5027   # Use a header file that comes with gcc, so configuring glibc
5028   # with a fresh cross-compiler works.
5029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5030   # <limits.h> exists even on freestanding compilers.
5031   # On the NeXT, cc -E runs the code through the compiler's parser,
5032   # not just through cpp. "Syntax error" is here to catch this case.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #ifdef __STDC__
5040 # include <limits.h>
5041 #else
5042 # include <assert.h>
5043 #endif
5044                      Syntax error
5045 _ACEOF
5046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5048   ac_status=$?
5049   grep -v '^ *+' conftest.er1 >conftest.err
5050   rm -f conftest.er1
5051   cat conftest.err >&5
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } >/dev/null; then
5054   if test -s conftest.err; then
5055     ac_cpp_err=$ac_cxx_preproc_warn_flag
5056     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5057   else
5058     ac_cpp_err=
5059   fi
5060 else
5061   ac_cpp_err=yes
5062 fi
5063 if test -z "$ac_cpp_err"; then
5064   :
5065 else
5066   echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069   # Broken: fails on valid input.
5070 continue
5071 fi
5072 rm -f conftest.err conftest.$ac_ext
5073
5074   # OK, works on sane cases.  Now check whether non-existent headers
5075   # can be detected and how.
5076   cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082 #include <ac_nonexistent.h>
5083 _ACEOF
5084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } >/dev/null; then
5092   if test -s conftest.err; then
5093     ac_cpp_err=$ac_cxx_preproc_warn_flag
5094     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5095   else
5096     ac_cpp_err=
5097   fi
5098 else
5099   ac_cpp_err=yes
5100 fi
5101 if test -z "$ac_cpp_err"; then
5102   # Broken: success on invalid input.
5103 continue
5104 else
5105   echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108   # Passes both tests.
5109 ac_preproc_ok=:
5110 break
5111 fi
5112 rm -f conftest.err conftest.$ac_ext
5113
5114 done
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.err conftest.$ac_ext
5117 if $ac_preproc_ok; then
5118   :
5119 else
5120   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5123 See \`config.log' for more details." >&2;}
5124    { (exit 1); exit 1; }; }
5125 fi
5126
5127 ac_ext=cc
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5132
5133 fi
5134
5135
5136 ac_ext=f
5137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5140 if test -n "$ac_tool_prefix"; then
5141   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5142   do
5143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145 echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147 if test "${ac_cv_prog_F77+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   if test -n "$F77"; then
5151   ac_cv_prog_F77="$F77" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156   IFS=$as_save_IFS
5157   test -z "$as_dir" && as_dir=.
5158   for ac_exec_ext in '' $ac_executable_extensions; do
5159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162     break 2
5163   fi
5164 done
5165 done
5166
5167 fi
5168 fi
5169 F77=$ac_cv_prog_F77
5170 if test -n "$F77"; then
5171   echo "$as_me:$LINENO: result: $F77" >&5
5172 echo "${ECHO_T}$F77" >&6
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178     test -n "$F77" && break
5179   done
5180 fi
5181 if test -z "$F77"; then
5182   ac_ct_F77=$F77
5183   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5184 do
5185   # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   if test -n "$ac_ct_F77"; then
5193   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200   for ac_exec_ext in '' $ac_executable_extensions; do
5201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202     ac_cv_prog_ac_ct_F77="$ac_prog"
5203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207 done
5208
5209 fi
5210 fi
5211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5212 if test -n "$ac_ct_F77"; then
5213   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5214 echo "${ECHO_T}$ac_ct_F77" >&6
5215 else
5216   echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5218 fi
5219
5220   test -n "$ac_ct_F77" && break
5221 done
5222
5223   F77=$ac_ct_F77
5224 fi
5225
5226
5227 # Provide some information about the compiler.
5228 echo "$as_me:5228:" \
5229      "checking for Fortran 77 compiler version" >&5
5230 ac_compiler=`set X $ac_compile; echo $2`
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5232   (eval $ac_compiler --version </dev/null >&5) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5237   (eval $ac_compiler -v </dev/null >&5) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }
5241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5242   (eval $ac_compiler -V </dev/null >&5) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); }
5246 rm -f a.out
5247
5248 # If we don't use `.F' as extension, the preprocessor is not run on the
5249 # input file.  (Note that this only needs to work for GNU compilers.)
5250 ac_save_ext=$ac_ext
5251 ac_ext=F
5252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   cat >conftest.$ac_ext <<_ACEOF
5258       program main
5259 #ifndef __GNUC__
5260        choke me
5261 #endif
5262
5263       end
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267   (eval $ac_compile) 2>conftest.er1
5268   ac_status=$?
5269   grep -v '^ *+' conftest.er1 >conftest.err
5270   rm -f conftest.er1
5271   cat conftest.err >&5
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); } &&
5274          { ac_try='test -z "$ac_f77_werror_flag"
5275                          || test ! -s conftest.err'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; } &&
5281          { ac_try='test -s conftest.$ac_objext'
5282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283   (eval $ac_try) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; }; then
5287   ac_compiler_gnu=yes
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 ac_compiler_gnu=no
5293 fi
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5296
5297 fi
5298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5300 ac_ext=$ac_save_ext
5301 ac_test_FFLAGS=${FFLAGS+set}
5302 ac_save_FFLAGS=$FFLAGS
5303 FFLAGS=
5304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5306 if test "${ac_cv_prog_f77_g+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   FFLAGS=-g
5310 cat >conftest.$ac_ext <<_ACEOF
5311       program main
5312
5313       end
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317   (eval $ac_compile) 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } &&
5324          { ac_try='test -z "$ac_f77_werror_flag"
5325                          || test ! -s conftest.err'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; } &&
5331          { ac_try='test -s conftest.$ac_objext'
5332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333   (eval $ac_try) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; }; then
5337   ac_cv_prog_f77_g=yes
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 ac_cv_prog_f77_g=no
5343 fi
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5349 if test "$ac_test_FFLAGS" = set; then
5350   FFLAGS=$ac_save_FFLAGS
5351 elif test $ac_cv_prog_f77_g = yes; then
5352   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5353     FFLAGS="-g -O2"
5354   else
5355     FFLAGS="-g"
5356   fi
5357 else
5358   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5359     FFLAGS="-O2"
5360   else
5361     FFLAGS=
5362   fi
5363 fi
5364
5365 G77=`test $ac_compiler_gnu = yes && echo yes`
5366 ac_ext=c
5367 ac_cpp='$CPP $CPPFLAGS'
5368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5371
5372
5373
5374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5375
5376 # find the maximum length of command line arguments
5377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382     i=0
5383   teststring="ABCD"
5384
5385   case $build_os in
5386   msdosdjgpp*)
5387     # On DJGPP, this test can blow up pretty badly due to problems in libc
5388     # (any single argument exceeding 2000 bytes causes a buffer overrun
5389     # during glob expansion).  Even if it were fixed, the result of this
5390     # check would be larger than it should be.
5391     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5392     ;;
5393
5394   gnu*)
5395     # Under GNU Hurd, this test is not required because there is
5396     # no limit to the length of command line arguments.
5397     # Libtool will interpret -1 as no limit whatsoever
5398     lt_cv_sys_max_cmd_len=-1;
5399     ;;
5400
5401   cygwin* | mingw*)
5402     # On Win9x/ME, this test blows up -- it succeeds, but takes
5403     # about 5 minutes as the teststring grows exponentially.
5404     # Worse, since 9x/ME are not pre-emptively multitasking,
5405     # you end up with a "frozen" computer, even though with patience
5406     # the test eventually succeeds (with a max line length of 256k).
5407     # Instead, let's just punt: use the minimum linelength reported by
5408     # all of the supported platforms: 8192 (on NT/2K/XP).
5409     lt_cv_sys_max_cmd_len=8192;
5410     ;;
5411
5412   amigaos*)
5413     # On AmigaOS with pdksh, this test takes hours, literally.
5414     # So we just punt and use a minimum line length of 8192.
5415     lt_cv_sys_max_cmd_len=8192;
5416     ;;
5417
5418   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5419     # This has been around since 386BSD, at least.  Likely further.
5420     if test -x /sbin/sysctl; then
5421       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5422     elif test -x /usr/sbin/sysctl; then
5423       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5424     else
5425       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5426     fi
5427     # And add a safety zone
5428     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430     ;;
5431
5432   interix*)
5433     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5434     lt_cv_sys_max_cmd_len=196608
5435     ;;
5436
5437   osf*)
5438     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5439     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5440     # nice to cause kernel panics so lets avoid the loop below.
5441     # First set a reasonable default.
5442     lt_cv_sys_max_cmd_len=16384
5443     #
5444     if test -x /sbin/sysconfig; then
5445       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5446         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5447       esac
5448     fi
5449     ;;
5450   sco3.2v5*)
5451     lt_cv_sys_max_cmd_len=102400
5452     ;;
5453   sysv5* | sco5v6* | sysv4.2uw2*)
5454     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5455     if test -n "$kargmax"; then
5456       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5457     else
5458       lt_cv_sys_max_cmd_len=32768
5459     fi
5460     ;;
5461   *)
5462     # If test is not a shell built-in, we'll probably end up computing a
5463     # maximum length that is only half of the actual maximum length, but
5464     # we can't tell.
5465     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5466     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5467                = "XX$teststring") >/dev/null 2>&1 &&
5468             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5469             lt_cv_sys_max_cmd_len=$new_result &&
5470             test $i != 17 # 1/2 MB should be enough
5471     do
5472       i=`expr $i + 1`
5473       teststring=$teststring$teststring
5474     done
5475     teststring=
5476     # Add a significant safety factor because C++ compilers can tack on massive
5477     # amounts of additional arguments before passing them to the linker.
5478     # It appears as though 1/2 is a usable value.
5479     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5480     ;;
5481   esac
5482
5483 fi
5484
5485 if test -n $lt_cv_sys_max_cmd_len ; then
5486   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5487 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5488 else
5489   echo "$as_me:$LINENO: result: none" >&5
5490 echo "${ECHO_T}none" >&6
5491 fi
5492
5493
5494
5495
5496 # Check for command to grab the raw symbol name followed by C symbol from nm.
5497 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5498 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5499 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502
5503 # These are sane defaults that work on at least a few old systems.
5504 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5505
5506 # Character class describing NM global symbol codes.
5507 symcode='[BCDEGRST]'
5508
5509 # Regexp to match symbols that can be accessed directly from C.
5510 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5511
5512 # Transform an extracted symbol line into a proper C declaration
5513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5514
5515 # Transform an extracted symbol line into symbol name and symbol address
5516 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'"
5517
5518 # Define system-specific variables.
5519 case $host_os in
5520 aix*)
5521   symcode='[BCDT]'
5522   ;;
5523 cygwin* | mingw* | pw32*)
5524   symcode='[ABCDGISTW]'
5525   ;;
5526 hpux*) # Its linker distinguishes data from code symbols
5527   if test "$host_cpu" = ia64; then
5528     symcode='[ABCDEGRST]'
5529   fi
5530   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5531   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'"
5532   ;;
5533 linux*)
5534   if test "$host_cpu" = ia64; then
5535     symcode='[ABCDGIRSTW]'
5536     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5537     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'"
5538   fi
5539   ;;
5540 irix* | nonstopux*)
5541   symcode='[BCDEGRST]'
5542   ;;
5543 osf*)
5544   symcode='[BCDEGQRST]'
5545   ;;
5546 solaris*)
5547   symcode='[BDRT]'
5548   ;;
5549 sco3.2v5*)
5550   symcode='[DT]'
5551   ;;
5552 sysv4.2uw2*)
5553   symcode='[DT]'
5554   ;;
5555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5556   symcode='[ABDT]'
5557   ;;
5558 sysv4)
5559   symcode='[DFNSTU]'
5560   ;;
5561 esac
5562
5563 # Handle CRLF in mingw tool chain
5564 opt_cr=
5565 case $build_os in
5566 mingw*)
5567   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5568   ;;
5569 esac
5570
5571 # If we're using GNU nm, then use its standard symbol codes.
5572 case `$NM -V 2>&1` in
5573 *GNU* | *'with BFD'*)
5574   symcode='[ABCDGIRSTW]' ;;
5575 esac
5576
5577 # Try without a prefix undercore, then with it.
5578 for ac_symprfx in "" "_"; do
5579
5580   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5581   symxfrm="\\1 $ac_symprfx\\2 \\2"
5582
5583   # Write the raw and C identifiers.
5584   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5585
5586   # Check to see that the pipe works correctly.
5587   pipe_works=no
5588
5589   rm -f conftest*
5590   cat > conftest.$ac_ext <<EOF
5591 #ifdef __cplusplus
5592 extern "C" {
5593 #endif
5594 char nm_test_var;
5595 void nm_test_func(){}
5596 #ifdef __cplusplus
5597 }
5598 #endif
5599 int main(){nm_test_var='a';nm_test_func();return(0);}
5600 EOF
5601
5602   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603   (eval $ac_compile) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; then
5607     # Now try to grab the symbols.
5608     nlist=conftest.nm
5609     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5610   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } && test -s "$nlist"; then
5614       # Try sorting and uniquifying the output.
5615       if sort "$nlist" | uniq > "$nlist"T; then
5616         mv -f "$nlist"T "$nlist"
5617       else
5618         rm -f "$nlist"T
5619       fi
5620
5621       # Make sure that we snagged all the symbols we need.
5622       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5623         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5624           cat <<EOF > conftest.$ac_ext
5625 #ifdef __cplusplus
5626 extern "C" {
5627 #endif
5628
5629 EOF
5630           # Now generate the symbol file.
5631           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5632
5633           cat <<EOF >> conftest.$ac_ext
5634 #if defined (__STDC__) && __STDC__
5635 # define lt_ptr_t void *
5636 #else
5637 # define lt_ptr_t char *
5638 # define const
5639 #endif
5640
5641 /* The mapping between symbol names and symbols. */
5642 const struct {
5643   const char *name;
5644   lt_ptr_t address;
5645 }
5646 lt_preloaded_symbols[] =
5647 {
5648 EOF
5649           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5650           cat <<\EOF >> conftest.$ac_ext
5651   {0, (lt_ptr_t) 0}
5652 };
5653
5654 #ifdef __cplusplus
5655 }
5656 #endif
5657 EOF
5658           # Now try linking the two files.
5659           mv conftest.$ac_objext conftstm.$ac_objext
5660           lt_save_LIBS="$LIBS"
5661           lt_save_CFLAGS="$CFLAGS"
5662           LIBS="conftstm.$ac_objext"
5663           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5664           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665   (eval $ac_link) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5669             pipe_works=yes
5670           fi
5671           LIBS="$lt_save_LIBS"
5672           CFLAGS="$lt_save_CFLAGS"
5673         else
5674           echo "cannot find nm_test_func in $nlist" >&5
5675         fi
5676       else
5677         echo "cannot find nm_test_var in $nlist" >&5
5678       fi
5679     else
5680       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5681     fi
5682   else
5683     echo "$progname: failed program was:" >&5
5684     cat conftest.$ac_ext >&5
5685   fi
5686   rm -f conftest* conftst*
5687
5688   # Do not use the global_symbol_pipe unless it works.
5689   if test "$pipe_works" = yes; then
5690     break
5691   else
5692     lt_cv_sys_global_symbol_pipe=
5693   fi
5694 done
5695
5696 fi
5697
5698 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5699   lt_cv_sys_global_symbol_to_cdecl=
5700 fi
5701 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5702   echo "$as_me:$LINENO: result: failed" >&5
5703 echo "${ECHO_T}failed" >&6
5704 else
5705   echo "$as_me:$LINENO: result: ok" >&5
5706 echo "${ECHO_T}ok" >&6
5707 fi
5708
5709 echo "$as_me:$LINENO: checking for objdir" >&5
5710 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5711 if test "${lt_cv_objdir+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   rm -f .libs 2>/dev/null
5715 mkdir .libs 2>/dev/null
5716 if test -d .libs; then
5717   lt_cv_objdir=.libs
5718 else
5719   # MS-DOS does not allow filenames that begin with a dot.
5720   lt_cv_objdir=_libs
5721 fi
5722 rmdir .libs 2>/dev/null
5723 fi
5724 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5725 echo "${ECHO_T}$lt_cv_objdir" >&6
5726 objdir=$lt_cv_objdir
5727
5728
5729
5730
5731
5732 case $host_os in
5733 aix3*)
5734   # AIX sometimes has problems with the GCC collect2 program.  For some
5735   # reason, if we set the COLLECT_NAMES environment variable, the problems
5736   # vanish in a puff of smoke.
5737   if test "X${COLLECT_NAMES+set}" != Xset; then
5738     COLLECT_NAMES=
5739     export COLLECT_NAMES
5740   fi
5741   ;;
5742 esac
5743
5744 # Sed substitution that helps us do robust quoting.  It backslashifies
5745 # metacharacters that are still active within double-quoted strings.
5746 Xsed='sed -e 1s/^X//'
5747 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5748
5749 # Same as above, but do not quote variable references.
5750 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5751
5752 # Sed substitution to delay expansion of an escaped shell variable in a
5753 # double_quote_subst'ed string.
5754 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5755
5756 # Sed substitution to avoid accidental globbing in evaled expressions
5757 no_glob_subst='s/\*/\\\*/g'
5758
5759 # Constants:
5760 rm="rm -f"
5761
5762 # Global variables:
5763 default_ofile=libtool
5764 can_build_shared=yes
5765
5766 # All known linkers require a `.a' archive for static linking (except MSVC,
5767 # which needs '.lib').
5768 libext=a
5769 ltmain="$ac_aux_dir/ltmain.sh"
5770 ofile="$default_ofile"
5771 with_gnu_ld="$lt_cv_prog_gnu_ld"
5772
5773 if test -n "$ac_tool_prefix"; then
5774   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}ar; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_AR+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   if test -n "$AR"; then
5782   ac_cv_prog_AR="$AR" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789   for ac_exec_ext in '' $ac_executable_extensions; do
5790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791     ac_cv_prog_AR="${ac_tool_prefix}ar"
5792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796 done
5797
5798 fi
5799 fi
5800 AR=$ac_cv_prog_AR
5801 if test -n "$AR"; then
5802   echo "$as_me:$LINENO: result: $AR" >&5
5803 echo "${ECHO_T}$AR" >&6
5804 else
5805   echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5807 fi
5808
5809 fi
5810 if test -z "$ac_cv_prog_AR"; then
5811   ac_ct_AR=$AR
5812   # Extract the first word of "ar", so it can be a program name with args.
5813 set dummy ar; ac_word=$2
5814 echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5816 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   if test -n "$ac_ct_AR"; then
5820   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_prog_ac_ct_AR="ar"
5830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834 done
5835
5836   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5837 fi
5838 fi
5839 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5840 if test -n "$ac_ct_AR"; then
5841   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5842 echo "${ECHO_T}$ac_ct_AR" >&6
5843 else
5844   echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5846 fi
5847
5848   AR=$ac_ct_AR
5849 else
5850   AR="$ac_cv_prog_AR"
5851 fi
5852
5853 if test -n "$ac_tool_prefix"; then
5854   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_RANLIB+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -n "$RANLIB"; then
5862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877
5878 fi
5879 fi
5880 RANLIB=$ac_cv_prog_RANLIB
5881 if test -n "$RANLIB"; then
5882   echo "$as_me:$LINENO: result: $RANLIB" >&5
5883 echo "${ECHO_T}$RANLIB" >&6
5884 else
5885   echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5887 fi
5888
5889 fi
5890 if test -z "$ac_cv_prog_RANLIB"; then
5891   ac_ct_RANLIB=$RANLIB
5892   # Extract the first word of "ranlib", so it can be a program name with args.
5893 set dummy ranlib; ac_word=$2
5894 echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   if test -n "$ac_ct_RANLIB"; then
5900   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   for ac_exec_ext in '' $ac_executable_extensions; do
5908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909     ac_cv_prog_ac_ct_RANLIB="ranlib"
5910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914 done
5915
5916   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5917 fi
5918 fi
5919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5920 if test -n "$ac_ct_RANLIB"; then
5921   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5922 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5923 else
5924   echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5926 fi
5927
5928   RANLIB=$ac_ct_RANLIB
5929 else
5930   RANLIB="$ac_cv_prog_RANLIB"
5931 fi
5932
5933 if test -n "$ac_tool_prefix"; then
5934   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}strip; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_STRIP+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   if test -n "$STRIP"; then
5942   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949   for ac_exec_ext in '' $ac_executable_extensions; do
5950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956 done
5957
5958 fi
5959 fi
5960 STRIP=$ac_cv_prog_STRIP
5961 if test -n "$STRIP"; then
5962   echo "$as_me:$LINENO: result: $STRIP" >&5
5963 echo "${ECHO_T}$STRIP" >&6
5964 else
5965   echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969 fi
5970 if test -z "$ac_cv_prog_STRIP"; then
5971   ac_ct_STRIP=$STRIP
5972   # Extract the first word of "strip", so it can be a program name with args.
5973 set dummy strip; ac_word=$2
5974 echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5976 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   if test -n "$ac_ct_STRIP"; then
5980   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985   IFS=$as_save_IFS
5986   test -z "$as_dir" && as_dir=.
5987   for ac_exec_ext in '' $ac_executable_extensions; do
5988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989     ac_cv_prog_ac_ct_STRIP="strip"
5990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991     break 2
5992   fi
5993 done
5994 done
5995
5996   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5997 fi
5998 fi
5999 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6000 if test -n "$ac_ct_STRIP"; then
6001   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6002 echo "${ECHO_T}$ac_ct_STRIP" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   STRIP=$ac_ct_STRIP
6009 else
6010   STRIP="$ac_cv_prog_STRIP"
6011 fi
6012
6013
6014 old_CC="$CC"
6015 old_CFLAGS="$CFLAGS"
6016
6017 # Set sane defaults for various variables
6018 test -z "$AR" && AR=ar
6019 test -z "$AR_FLAGS" && AR_FLAGS=cru
6020 test -z "$AS" && AS=as
6021 test -z "$CC" && CC=cc
6022 test -z "$LTCC" && LTCC=$CC
6023 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6024 test -z "$DLLTOOL" && DLLTOOL=dlltool
6025 test -z "$LD" && LD=ld
6026 test -z "$LN_S" && LN_S="ln -s"
6027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6028 test -z "$NM" && NM=nm
6029 test -z "$SED" && SED=sed
6030 test -z "$OBJDUMP" && OBJDUMP=objdump
6031 test -z "$RANLIB" && RANLIB=:
6032 test -z "$STRIP" && STRIP=:
6033 test -z "$ac_objext" && ac_objext=o
6034
6035 # Determine commands to create old-style static archives.
6036 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6037 old_postinstall_cmds='chmod 644 $oldlib'
6038 old_postuninstall_cmds=
6039
6040 if test -n "$RANLIB"; then
6041   case $host_os in
6042   openbsd*)
6043     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6044     ;;
6045   *)
6046     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6047     ;;
6048   esac
6049   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6050 fi
6051
6052 for cc_temp in $compiler""; do
6053   case $cc_temp in
6054     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6055     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6056     \-*) ;;
6057     *) break;;
6058   esac
6059 done
6060 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6061
6062
6063 # Only perform the check for file, if the check method requires it
6064 case $deplibs_check_method in
6065 file_magic*)
6066   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6067     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6068 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   case $MAGIC_CMD in
6073 [\\/*] |  ?:[\\/]*)
6074   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6075   ;;
6076 *)
6077   lt_save_MAGIC_CMD="$MAGIC_CMD"
6078   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6079   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6080   for ac_dir in $ac_dummy; do
6081     IFS="$lt_save_ifs"
6082     test -z "$ac_dir" && ac_dir=.
6083     if test -f $ac_dir/${ac_tool_prefix}file; then
6084       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6085       if test -n "$file_magic_test_file"; then
6086         case $deplibs_check_method in
6087         "file_magic "*)
6088           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6089           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6091             $EGREP "$file_magic_regex" > /dev/null; then
6092             :
6093           else
6094             cat <<EOF 1>&2
6095
6096 *** Warning: the command libtool uses to detect shared libraries,
6097 *** $file_magic_cmd, produces output that libtool cannot recognize.
6098 *** The result is that libtool may fail to recognize shared libraries
6099 *** as such.  This will affect the creation of libtool libraries that
6100 *** depend on shared libraries, but programs linked with such libtool
6101 *** libraries will work regardless of this problem.  Nevertheless, you
6102 *** may want to report the problem to your system manager and/or to
6103 *** bug-libtool@gnu.org
6104
6105 EOF
6106           fi ;;
6107         esac
6108       fi
6109       break
6110     fi
6111   done
6112   IFS="$lt_save_ifs"
6113   MAGIC_CMD="$lt_save_MAGIC_CMD"
6114   ;;
6115 esac
6116 fi
6117
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119 if test -n "$MAGIC_CMD"; then
6120   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6121 echo "${ECHO_T}$MAGIC_CMD" >&6
6122 else
6123   echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6
6125 fi
6126
6127 if test -z "$lt_cv_path_MAGIC_CMD"; then
6128   if test -n "$ac_tool_prefix"; then
6129     echo "$as_me:$LINENO: checking for file" >&5
6130 echo $ECHO_N "checking for file... $ECHO_C" >&6
6131 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   case $MAGIC_CMD in
6135 [\\/*] |  ?:[\\/]*)
6136   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6137   ;;
6138 *)
6139   lt_save_MAGIC_CMD="$MAGIC_CMD"
6140   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6141   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6142   for ac_dir in $ac_dummy; do
6143     IFS="$lt_save_ifs"
6144     test -z "$ac_dir" && ac_dir=.
6145     if test -f $ac_dir/file; then
6146       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6147       if test -n "$file_magic_test_file"; then
6148         case $deplibs_check_method in
6149         "file_magic "*)
6150           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6151           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6152           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6153             $EGREP "$file_magic_regex" > /dev/null; then
6154             :
6155           else
6156             cat <<EOF 1>&2
6157
6158 *** Warning: the command libtool uses to detect shared libraries,
6159 *** $file_magic_cmd, produces output that libtool cannot recognize.
6160 *** The result is that libtool may fail to recognize shared libraries
6161 *** as such.  This will affect the creation of libtool libraries that
6162 *** depend on shared libraries, but programs linked with such libtool
6163 *** libraries will work regardless of this problem.  Nevertheless, you
6164 *** may want to report the problem to your system manager and/or to
6165 *** bug-libtool@gnu.org
6166
6167 EOF
6168           fi ;;
6169         esac
6170       fi
6171       break
6172     fi
6173   done
6174   IFS="$lt_save_ifs"
6175   MAGIC_CMD="$lt_save_MAGIC_CMD"
6176   ;;
6177 esac
6178 fi
6179
6180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6181 if test -n "$MAGIC_CMD"; then
6182   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6183 echo "${ECHO_T}$MAGIC_CMD" >&6
6184 else
6185   echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6
6187 fi
6188
6189   else
6190     MAGIC_CMD=:
6191   fi
6192 fi
6193
6194   fi
6195   ;;
6196 esac
6197
6198 enable_dlopen=yes
6199 enable_win32_dll=no
6200
6201 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6202 if test "${enable_libtool_lock+set}" = set; then
6203   enableval="$enable_libtool_lock"
6204
6205 fi;
6206 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6207
6208
6209 # Check whether --with-pic or --without-pic was given.
6210 if test "${with_pic+set}" = set; then
6211   withval="$with_pic"
6212   pic_mode="$withval"
6213 else
6214   pic_mode=default
6215 fi;
6216 test -z "$pic_mode" && pic_mode=default
6217
6218 # Use C for the default configuration in the libtool script
6219 tagname=
6220 lt_save_CC="$CC"
6221 ac_ext=c
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226
6227
6228 # Source file extension for C test sources.
6229 ac_ext=c
6230
6231 # Object file extension for compiled C test sources.
6232 objext=o
6233 objext=$objext
6234
6235 # Code to be used in simple compile tests
6236 lt_simple_compile_test_code="int some_variable = 0;\n"
6237
6238 # Code to be used in simple link tests
6239 lt_simple_link_test_code='int main(){return(0);}\n'
6240
6241
6242 # If no C compiler was specified, use CC.
6243 LTCC=${LTCC-"$CC"}
6244
6245 # If no C compiler flags were specified, use CFLAGS.
6246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6247
6248 # Allow CC to be a program name with arguments.
6249 compiler=$CC
6250
6251
6252 # save warnings/boilerplate of simple test code
6253 ac_outfile=conftest.$ac_objext
6254 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6256 _lt_compiler_boilerplate=`cat conftest.err`
6257 $rm conftest*
6258
6259 ac_outfile=conftest.$ac_objext
6260 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6262 _lt_linker_boilerplate=`cat conftest.err`
6263 $rm conftest*
6264
6265
6266 ## CAVEAT EMPTOR:
6267 ## There is no encapsulation within the following macros, do not change
6268 ## the running order or otherwise move them around unless you know exactly
6269 ## what you are doing...
6270
6271 lt_prog_compiler_no_builtin_flag=
6272
6273 if test "$GCC" = yes; then
6274   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6275
6276
6277 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6278 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6279 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   lt_cv_prog_compiler_rtti_exceptions=no
6283   ac_outfile=conftest.$ac_objext
6284    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6285    lt_compiler_flag="-fno-rtti -fno-exceptions"
6286    # Insert the option either (1) after the last *FLAGS variable, or
6287    # (2) before a word containing "conftest.", or (3) at the end.
6288    # Note that $ac_compile itself does not contain backslashes and begins
6289    # with a dollar sign (not a hyphen), so the echo should work correctly.
6290    # The option is referenced via a variable to avoid confusing sed.
6291    lt_compile=`echo "$ac_compile" | $SED \
6292    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6293    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6294    -e 's:$: $lt_compiler_flag:'`
6295    (eval echo "\"\$as_me:6295: $lt_compile\"" >&5)
6296    (eval "$lt_compile" 2>conftest.err)
6297    ac_status=$?
6298    cat conftest.err >&5
6299    echo "$as_me:6299: \$? = $ac_status" >&5
6300    if (exit $ac_status) && test -s "$ac_outfile"; then
6301      # The compiler can only warn and ignore the option if not recognized
6302      # So say no if there are warnings other than the usual output.
6303      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6304      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6305      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6306        lt_cv_prog_compiler_rtti_exceptions=yes
6307      fi
6308    fi
6309    $rm conftest*
6310
6311 fi
6312 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6313 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6314
6315 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6316     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6317 else
6318     :
6319 fi
6320
6321 fi
6322
6323 lt_prog_compiler_wl=
6324 lt_prog_compiler_pic=
6325 lt_prog_compiler_static=
6326
6327 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6328 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6329
6330   if test "$GCC" = yes; then
6331     lt_prog_compiler_wl='-Wl,'
6332     lt_prog_compiler_static='-static'
6333
6334     case $host_os in
6335       aix*)
6336       # All AIX code is PIC.
6337       if test "$host_cpu" = ia64; then
6338         # AIX 5 now supports IA64 processor
6339         lt_prog_compiler_static='-Bstatic'
6340       fi
6341       ;;
6342
6343     amigaos*)
6344       # FIXME: we need at least 68020 code to build shared libraries, but
6345       # adding the `-m68020' flag to GCC prevents building anything better,
6346       # like `-m68040'.
6347       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6348       ;;
6349
6350     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6351       # PIC is the default for these OSes.
6352       ;;
6353
6354     mingw* | pw32* | os2*)
6355       # This hack is so that the source file can tell whether it is being
6356       # built for inclusion in a dll (and should export symbols for example).
6357       lt_prog_compiler_pic='-DDLL_EXPORT'
6358       ;;
6359
6360     darwin* | rhapsody*)
6361       # PIC is the default on this platform
6362       # Common symbols not allowed in MH_DYLIB files
6363       lt_prog_compiler_pic='-fno-common'
6364       ;;
6365
6366     interix3*)
6367       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6368       # Instead, we relocate shared libraries at runtime.
6369       ;;
6370
6371     msdosdjgpp*)
6372       # Just because we use GCC doesn't mean we suddenly get shared libraries
6373       # on systems that don't support them.
6374       lt_prog_compiler_can_build_shared=no
6375       enable_shared=no
6376       ;;
6377
6378     sysv4*MP*)
6379       if test -d /usr/nec; then
6380         lt_prog_compiler_pic=-Kconform_pic
6381       fi
6382       ;;
6383
6384     hpux*)
6385       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6386       # not for PA HP-UX.
6387       case $host_cpu in
6388       hppa*64*|ia64*)
6389         # +Z the default
6390         ;;
6391       *)
6392         lt_prog_compiler_pic='-fPIC'
6393         ;;
6394       esac
6395       ;;
6396
6397     *)
6398       lt_prog_compiler_pic='-fPIC'
6399       ;;
6400     esac
6401   else
6402     # PORTME Check for flag to pass linker flags through the system compiler.
6403     case $host_os in
6404     aix*)
6405       lt_prog_compiler_wl='-Wl,'
6406       if test "$host_cpu" = ia64; then
6407         # AIX 5 now supports IA64 processor
6408         lt_prog_compiler_static='-Bstatic'
6409       else
6410         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6411       fi
6412       ;;
6413       darwin*)
6414         # PIC is the default on this platform
6415         # Common symbols not allowed in MH_DYLIB files
6416        case $cc_basename in
6417          xlc*)
6418          lt_prog_compiler_pic='-qnocommon'
6419          lt_prog_compiler_wl='-Wl,'
6420          ;;
6421        esac
6422        ;;
6423
6424     mingw* | pw32* | os2*)
6425       # This hack is so that the source file can tell whether it is being
6426       # built for inclusion in a dll (and should export symbols for example).
6427       lt_prog_compiler_pic='-DDLL_EXPORT'
6428       ;;
6429
6430     hpux9* | hpux10* | hpux11*)
6431       lt_prog_compiler_wl='-Wl,'
6432       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6433       # not for PA HP-UX.
6434       case $host_cpu in
6435       hppa*64*|ia64*)
6436         # +Z the default
6437         ;;
6438       *)
6439         lt_prog_compiler_pic='+Z'
6440         ;;
6441       esac
6442       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6443       lt_prog_compiler_static='${wl}-a ${wl}archive'
6444       ;;
6445
6446     irix5* | irix6* | nonstopux*)
6447       lt_prog_compiler_wl='-Wl,'
6448       # PIC (with -KPIC) is the default.
6449       lt_prog_compiler_static='-non_shared'
6450       ;;
6451
6452     newsos6)
6453       lt_prog_compiler_pic='-KPIC'
6454       lt_prog_compiler_static='-Bstatic'
6455       ;;
6456
6457     linux*)
6458       case $cc_basename in
6459       icc* | ecc*)
6460         lt_prog_compiler_wl='-Wl,'
6461         lt_prog_compiler_pic='-KPIC'
6462         lt_prog_compiler_static='-static'
6463         ;;
6464       pgcc* | pgf77* | pgf90* | pgf95*)
6465         # Portland Group compilers (*not* the Pentium gcc compiler,
6466         # which looks to be a dead project)
6467         lt_prog_compiler_wl='-Wl,'
6468         lt_prog_compiler_pic='-fpic'
6469         lt_prog_compiler_static='-Bstatic'
6470         ;;
6471       ccc*)
6472         lt_prog_compiler_wl='-Wl,'
6473         # All Alpha code is PIC.
6474         lt_prog_compiler_static='-non_shared'
6475         ;;
6476       esac
6477       ;;
6478
6479     osf3* | osf4* | osf5*)
6480       lt_prog_compiler_wl='-Wl,'
6481       # All OSF/1 code is PIC.
6482       lt_prog_compiler_static='-non_shared'
6483       ;;
6484
6485     solaris*)
6486       lt_prog_compiler_pic='-KPIC'
6487       lt_prog_compiler_static='-Bstatic'
6488       case $cc_basename in
6489       f77* | f90* | f95*)
6490         lt_prog_compiler_wl='-Qoption ld ';;
6491       *)
6492         lt_prog_compiler_wl='-Wl,';;
6493       esac
6494       ;;
6495
6496     sunos4*)
6497       lt_prog_compiler_wl='-Qoption ld '
6498       lt_prog_compiler_pic='-PIC'
6499       lt_prog_compiler_static='-Bstatic'
6500       ;;
6501
6502     sysv4 | sysv4.2uw2* | sysv4.3*)
6503       lt_prog_compiler_wl='-Wl,'
6504       lt_prog_compiler_pic='-KPIC'
6505       lt_prog_compiler_static='-Bstatic'
6506       ;;
6507
6508     sysv4*MP*)
6509       if test -d /usr/nec ;then
6510         lt_prog_compiler_pic='-Kconform_pic'
6511         lt_prog_compiler_static='-Bstatic'
6512       fi
6513       ;;
6514
6515     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6516       lt_prog_compiler_wl='-Wl,'
6517       lt_prog_compiler_pic='-KPIC'
6518       lt_prog_compiler_static='-Bstatic'
6519       ;;
6520
6521     unicos*)
6522       lt_prog_compiler_wl='-Wl,'
6523       lt_prog_compiler_can_build_shared=no
6524       ;;
6525
6526     uts4*)
6527       lt_prog_compiler_pic='-pic'
6528       lt_prog_compiler_static='-Bstatic'
6529       ;;
6530
6531     *)
6532       lt_prog_compiler_can_build_shared=no
6533       ;;
6534     esac
6535   fi
6536
6537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6538 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6539
6540 #
6541 # Check to make sure the PIC flag actually works.
6542 #
6543 if test -n "$lt_prog_compiler_pic"; then
6544
6545 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6546 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6547 if test "${lt_prog_compiler_pic_works+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   lt_prog_compiler_pic_works=no
6551   ac_outfile=conftest.$ac_objext
6552    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6553    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6554    # Insert the option either (1) after the last *FLAGS variable, or
6555    # (2) before a word containing "conftest.", or (3) at the end.
6556    # Note that $ac_compile itself does not contain backslashes and begins
6557    # with a dollar sign (not a hyphen), so the echo should work correctly.
6558    # The option is referenced via a variable to avoid confusing sed.
6559    lt_compile=`echo "$ac_compile" | $SED \
6560    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6562    -e 's:$: $lt_compiler_flag:'`
6563    (eval echo "\"\$as_me:6563: $lt_compile\"" >&5)
6564    (eval "$lt_compile" 2>conftest.err)
6565    ac_status=$?
6566    cat conftest.err >&5
6567    echo "$as_me:6567: \$? = $ac_status" >&5
6568    if (exit $ac_status) && test -s "$ac_outfile"; then
6569      # The compiler can only warn and ignore the option if not recognized
6570      # So say no if there are warnings other than the usual output.
6571      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6572      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6573      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6574        lt_prog_compiler_pic_works=yes
6575      fi
6576    fi
6577    $rm conftest*
6578
6579 fi
6580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6581 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6582
6583 if test x"$lt_prog_compiler_pic_works" = xyes; then
6584     case $lt_prog_compiler_pic in
6585      "" | " "*) ;;
6586      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6587      esac
6588 else
6589     lt_prog_compiler_pic=
6590      lt_prog_compiler_can_build_shared=no
6591 fi
6592
6593 fi
6594 case $host_os in
6595   # For platforms which do not support PIC, -DPIC is meaningless:
6596   *djgpp*)
6597     lt_prog_compiler_pic=
6598     ;;
6599   *)
6600     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6601     ;;
6602 esac
6603
6604 #
6605 # Check to make sure the static flag actually works.
6606 #
6607 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6608 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6609 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6610 if test "${lt_prog_compiler_static_works+set}" = set; then
6611   echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613   lt_prog_compiler_static_works=no
6614    save_LDFLAGS="$LDFLAGS"
6615    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6616    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6617    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6618      # The linker can only warn and ignore the option if not recognized
6619      # So say no if there are warnings
6620      if test -s conftest.err; then
6621        # Append any errors to the config.log.
6622        cat conftest.err 1>&5
6623        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6624        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6625        if diff conftest.exp conftest.er2 >/dev/null; then
6626          lt_prog_compiler_static_works=yes
6627        fi
6628      else
6629        lt_prog_compiler_static_works=yes
6630      fi
6631    fi
6632    $rm conftest*
6633    LDFLAGS="$save_LDFLAGS"
6634
6635 fi
6636 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6637 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6638
6639 if test x"$lt_prog_compiler_static_works" = xyes; then
6640     :
6641 else
6642     lt_prog_compiler_static=
6643 fi
6644
6645
6646 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6647 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6648 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   lt_cv_prog_compiler_c_o=no
6652    $rm -r conftest 2>/dev/null
6653    mkdir conftest
6654    cd conftest
6655    mkdir out
6656    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6657
6658    lt_compiler_flag="-o out/conftest2.$ac_objext"
6659    # Insert the option either (1) after the last *FLAGS variable, or
6660    # (2) before a word containing "conftest.", or (3) at the end.
6661    # Note that $ac_compile itself does not contain backslashes and begins
6662    # with a dollar sign (not a hyphen), so the echo should work correctly.
6663    lt_compile=`echo "$ac_compile" | $SED \
6664    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6665    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6666    -e 's:$: $lt_compiler_flag:'`
6667    (eval echo "\"\$as_me:6667: $lt_compile\"" >&5)
6668    (eval "$lt_compile" 2>out/conftest.err)
6669    ac_status=$?
6670    cat out/conftest.err >&5
6671    echo "$as_me:6671: \$? = $ac_status" >&5
6672    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6673    then
6674      # The compiler can only warn and ignore the option if not recognized
6675      # So say no if there are warnings
6676      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6677      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6678      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6679        lt_cv_prog_compiler_c_o=yes
6680      fi
6681    fi
6682    chmod u+w . 2>&5
6683    $rm conftest*
6684    # SGI C++ compiler will create directory out/ii_files/ for
6685    # template instantiation
6686    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6687    $rm out/* && rmdir out
6688    cd ..
6689    rmdir conftest
6690    $rm conftest*
6691
6692 fi
6693 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6694 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6695
6696
6697 hard_links="nottested"
6698 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6699   # do not overwrite the value of need_locks provided by the user
6700   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6701 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6702   hard_links=yes
6703   $rm conftest*
6704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6705   touch conftest.a
6706   ln conftest.a conftest.b 2>&5 || hard_links=no
6707   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6708   echo "$as_me:$LINENO: result: $hard_links" >&5
6709 echo "${ECHO_T}$hard_links" >&6
6710   if test "$hard_links" = no; then
6711     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6712 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6713     need_locks=warn
6714   fi
6715 else
6716   need_locks=no
6717 fi
6718
6719 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6720 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6721
6722   runpath_var=
6723   allow_undefined_flag=
6724   enable_shared_with_static_runtimes=no
6725   archive_cmds=
6726   archive_expsym_cmds=
6727   old_archive_From_new_cmds=
6728   old_archive_from_expsyms_cmds=
6729   export_dynamic_flag_spec=
6730   whole_archive_flag_spec=
6731   thread_safe_flag_spec=
6732   hardcode_libdir_flag_spec=
6733   hardcode_libdir_flag_spec_ld=
6734   hardcode_libdir_separator=
6735   hardcode_direct=no
6736   hardcode_minus_L=no
6737   hardcode_shlibpath_var=unsupported
6738   link_all_deplibs=unknown
6739   hardcode_automatic=no
6740   module_cmds=
6741   module_expsym_cmds=
6742   always_export_symbols=no
6743   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6744   # include_expsyms should be a list of space-separated symbols to be *always*
6745   # included in the symbol list
6746   include_expsyms=
6747   # exclude_expsyms can be an extended regexp of symbols to exclude
6748   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6749   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6750   # as well as any symbol that contains `d'.
6751   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6752   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6753   # platforms (ab)use it in PIC code, but their linkers get confused if
6754   # the symbol is explicitly referenced.  Since portable code cannot
6755   # rely on this symbol name, it's probably fine to never include it in
6756   # preloaded symbol tables.
6757   extract_expsyms_cmds=
6758   # Just being paranoid about ensuring that cc_basename is set.
6759   for cc_temp in $compiler""; do
6760   case $cc_temp in
6761     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6762     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6763     \-*) ;;
6764     *) break;;
6765   esac
6766 done
6767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6768
6769   case $host_os in
6770   cygwin* | mingw* | pw32*)
6771     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6772     # When not using gcc, we currently assume that we are using
6773     # Microsoft Visual C++.
6774     if test "$GCC" != yes; then
6775       with_gnu_ld=no
6776     fi
6777     ;;
6778   interix*)
6779     # we just hope/assume this is gcc and not c89 (= MSVC++)
6780     with_gnu_ld=yes
6781     ;;
6782   openbsd*)
6783     with_gnu_ld=no
6784     ;;
6785   esac
6786
6787   ld_shlibs=yes
6788   if test "$with_gnu_ld" = yes; then
6789     # If archive_cmds runs LD, not CC, wlarc should be empty
6790     wlarc='${wl}'
6791
6792     # Set some defaults for GNU ld with shared library support. These
6793     # are reset later if shared libraries are not supported. Putting them
6794     # here allows them to be overridden if necessary.
6795     runpath_var=LD_RUN_PATH
6796     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6797     export_dynamic_flag_spec='${wl}--export-dynamic'
6798     # ancient GNU ld didn't support --whole-archive et. al.
6799     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6800         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6801       else
6802         whole_archive_flag_spec=
6803     fi
6804     supports_anon_versioning=no
6805     case `$LD -v 2>/dev/null` in
6806       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6807       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6808       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6809       *\ 2.11.*) ;; # other 2.11 versions
6810       *) supports_anon_versioning=yes ;;
6811     esac
6812
6813     # See if GNU ld supports shared libraries.
6814     case $host_os in
6815     aix3* | aix4* | aix5*)
6816       # On AIX/PPC, the GNU linker is very broken
6817       if test "$host_cpu" != ia64; then
6818         ld_shlibs=no
6819         cat <<EOF 1>&2
6820
6821 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6822 *** to be unable to reliably create shared libraries on AIX.
6823 *** Therefore, libtool is disabling shared libraries support.  If you
6824 *** really care for shared libraries, you may want to modify your PATH
6825 *** so that a non-GNU linker is found, and then restart.
6826
6827 EOF
6828       fi
6829       ;;
6830
6831     amigaos*)
6832       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)'
6833       hardcode_libdir_flag_spec='-L$libdir'
6834       hardcode_minus_L=yes
6835
6836       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6837       # that the semantics of dynamic libraries on AmigaOS, at least up
6838       # to version 4, is to share data among multiple programs linked
6839       # with the same dynamic library.  Since this doesn't match the
6840       # behavior of shared libraries on other platforms, we can't use
6841       # them.
6842       ld_shlibs=no
6843       ;;
6844
6845     beos*)
6846       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847         allow_undefined_flag=unsupported
6848         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6849         # support --undefined.  This deserves some investigation.  FIXME
6850         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6851       else
6852         ld_shlibs=no
6853       fi
6854       ;;
6855
6856     cygwin* | mingw* | pw32*)
6857       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6858       # as there is no search path for DLLs.
6859       hardcode_libdir_flag_spec='-L$libdir'
6860       allow_undefined_flag=unsupported
6861       always_export_symbols=no
6862       enable_shared_with_static_runtimes=yes
6863       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6864
6865       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6866         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6867         # If the export-symbols file already is a .def file (1st line
6868         # is EXPORTS), use it as is; otherwise, prepend...
6869         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6870           cp $export_symbols $output_objdir/$soname.def;
6871         else
6872           echo EXPORTS > $output_objdir/$soname.def;
6873           cat $export_symbols >> $output_objdir/$soname.def;
6874         fi~
6875         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6876       else
6877         ld_shlibs=no
6878       fi
6879       ;;
6880
6881     interix3*)
6882       hardcode_direct=no
6883       hardcode_shlibpath_var=no
6884       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6885       export_dynamic_flag_spec='${wl}-E'
6886       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6887       # Instead, shared libraries are loaded at an image base (0x10000000 by
6888       # default) and relocated if they conflict, which is a slow very memory
6889       # consuming and fragmenting process.  To avoid this, we pick a random,
6890       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6891       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6892       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6893       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6894       ;;
6895
6896     linux*)
6897       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6898         tmp_addflag=
6899         case $cc_basename,$host_cpu in
6900         pgcc*)                          # Portland Group C compiler
6901           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6902           tmp_addflag=' $pic_flag'
6903           ;;
6904         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6905           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6906           tmp_addflag=' $pic_flag -Mnomain' ;;
6907         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6908           tmp_addflag=' -i_dynamic' ;;
6909         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6910           tmp_addflag=' -i_dynamic -nofor_main' ;;
6911         ifc* | ifort*)                  # Intel Fortran compiler
6912           tmp_addflag=' -nofor_main' ;;
6913         esac
6914         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6915
6916         if test $supports_anon_versioning = yes; then
6917           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6918   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6919   $echo "local: *; };" >> $output_objdir/$libname.ver~
6920           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6921         fi
6922       else
6923         ld_shlibs=no
6924       fi
6925       ;;
6926
6927     netbsd*)
6928       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6929         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6930         wlarc=
6931       else
6932         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6933         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6934       fi
6935       ;;
6936
6937     solaris*)
6938       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6939         ld_shlibs=no
6940         cat <<EOF 1>&2
6941
6942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6943 *** create shared libraries on Solaris systems.  Therefore, libtool
6944 *** is disabling shared libraries support.  We urge you to upgrade GNU
6945 *** binutils to release 2.9.1 or newer.  Another option is to modify
6946 *** your PATH or compiler configuration so that the native linker is
6947 *** used, and then restart.
6948
6949 EOF
6950       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6951         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6952         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6953       else
6954         ld_shlibs=no
6955       fi
6956       ;;
6957
6958     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6959       case `$LD -v 2>&1` in
6960         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6961         ld_shlibs=no
6962         cat <<_LT_EOF 1>&2
6963
6964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6965 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6966 *** is disabling shared libraries support.  We urge you to upgrade GNU
6967 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6968 *** your PATH or compiler configuration so that the native linker is
6969 *** used, and then restart.
6970
6971 _LT_EOF
6972         ;;
6973         *)
6974           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6975             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6976             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6977             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6978           else
6979             ld_shlibs=no
6980           fi
6981         ;;
6982       esac
6983       ;;
6984
6985     sunos4*)
6986       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6987       wlarc=
6988       hardcode_direct=yes
6989       hardcode_shlibpath_var=no
6990       ;;
6991
6992     *)
6993       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6994         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6995         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6996       else
6997         ld_shlibs=no
6998       fi
6999       ;;
7000     esac
7001
7002     if test "$ld_shlibs" = no; then
7003       runpath_var=
7004       hardcode_libdir_flag_spec=
7005       export_dynamic_flag_spec=
7006       whole_archive_flag_spec=
7007     fi
7008   else
7009     # PORTME fill in a description of your system's linker (not GNU ld)
7010     case $host_os in
7011     aix3*)
7012       allow_undefined_flag=unsupported
7013       always_export_symbols=yes
7014       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'
7015       # Note: this linker hardcodes the directories in LIBPATH if there
7016       # are no directories specified by -L.
7017       hardcode_minus_L=yes
7018       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7019         # Neither direct hardcoding nor static linking is supported with a
7020         # broken collect2.
7021         hardcode_direct=unsupported
7022       fi
7023       ;;
7024
7025     aix4* | aix5*)
7026       if test "$host_cpu" = ia64; then
7027         # On IA64, the linker does run time linking by default, so we don't
7028         # have to do anything special.
7029         aix_use_runtimelinking=no
7030         exp_sym_flag='-Bexport'
7031         no_entry_flag=""
7032       else
7033         # If we're using GNU nm, then we don't want the "-C" option.
7034         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7035         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7036           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'
7037         else
7038           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'
7039         fi
7040         aix_use_runtimelinking=no
7041
7042         # Test if we are trying to use run time linking or normal
7043         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7044         # need to do runtime linking.
7045         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7046           for ld_flag in $LDFLAGS; do
7047           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7048             aix_use_runtimelinking=yes
7049             break
7050           fi
7051           done
7052           ;;
7053         esac
7054
7055         exp_sym_flag='-bexport'
7056         no_entry_flag='-bnoentry'
7057       fi
7058
7059       # When large executables or shared objects are built, AIX ld can
7060       # have problems creating the table of contents.  If linking a library
7061       # or program results in "error TOC overflow" add -mminimal-toc to
7062       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7063       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7064
7065       archive_cmds=''
7066       hardcode_direct=yes
7067       hardcode_libdir_separator=':'
7068       link_all_deplibs=yes
7069
7070       if test "$GCC" = yes; then
7071         case $host_os in aix4.[012]|aix4.[012].*)
7072         # We only want to do this on AIX 4.2 and lower, the check
7073         # below for broken collect2 doesn't work under 4.3+
7074           collect2name=`${CC} -print-prog-name=collect2`
7075           if test -f "$collect2name" && \
7076            strings "$collect2name" | grep resolve_lib_name >/dev/null
7077           then
7078           # We have reworked collect2
7079           hardcode_direct=yes
7080           else
7081           # We have old collect2
7082           hardcode_direct=unsupported
7083           # It fails to find uninstalled libraries when the uninstalled
7084           # path is not listed in the libpath.  Setting hardcode_minus_L
7085           # to unsupported forces relinking
7086           hardcode_minus_L=yes
7087           hardcode_libdir_flag_spec='-L$libdir'
7088           hardcode_libdir_separator=
7089           fi
7090           ;;
7091         esac
7092         shared_flag='-shared'
7093         if test "$aix_use_runtimelinking" = yes; then
7094           shared_flag="$shared_flag "'${wl}-G'
7095         fi
7096       else
7097         # not using gcc
7098         if test "$host_cpu" = ia64; then
7099         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7100         # chokes on -Wl,-G. The following line is correct:
7101           shared_flag='-G'
7102         else
7103           if test "$aix_use_runtimelinking" = yes; then
7104             shared_flag='${wl}-G'
7105           else
7106             shared_flag='${wl}-bM:SRE'
7107           fi
7108         fi
7109       fi
7110
7111       # It seems that -bexpall does not export symbols beginning with
7112       # underscore (_), so it is better to generate a list of symbols to export.
7113       always_export_symbols=yes
7114       if test "$aix_use_runtimelinking" = yes; then
7115         # Warning - without using the other runtime loading flags (-brtl),
7116         # -berok will link without error, but may produce a broken library.
7117         allow_undefined_flag='-berok'
7118        # Determine the default libpath from the value encoded in an empty executable.
7119        cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h.  */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h.  */
7125
7126 int
7127 main ()
7128 {
7129
7130   ;
7131   return 0;
7132 }
7133 _ACEOF
7134 rm -f conftest.$ac_objext conftest$ac_exeext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7136   (eval $ac_link) 2>conftest.er1
7137   ac_status=$?
7138   grep -v '^ *+' conftest.er1 >conftest.err
7139   rm -f conftest.er1
7140   cat conftest.err >&5
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } &&
7143          { ac_try='test -z "$ac_c_werror_flag"
7144                          || test ! -s conftest.err'
7145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146   (eval $ac_try) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); }; } &&
7150          { ac_try='test -s conftest$ac_exeext'
7151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152   (eval $ac_try) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156
7157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7158 }'`
7159 # Check for a 64-bit object if we didn't find anything.
7160 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; }
7161 }'`; fi
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 fi
7167 rm -f conftest.err conftest.$ac_objext \
7168       conftest$ac_exeext conftest.$ac_ext
7169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7170
7171        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7172         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7173        else
7174         if test "$host_cpu" = ia64; then
7175           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7176           allow_undefined_flag="-z nodefs"
7177           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7178         else
7179          # Determine the default libpath from the value encoded in an empty executable.
7180          cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186
7187 int
7188 main ()
7189 {
7190
7191   ;
7192   return 0;
7193 }
7194 _ACEOF
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197   (eval $ac_link) 2>conftest.er1
7198   ac_status=$?
7199   grep -v '^ *+' conftest.er1 >conftest.err
7200   rm -f conftest.er1
7201   cat conftest.err >&5
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); } &&
7204          { ac_try='test -z "$ac_c_werror_flag"
7205                          || test ! -s conftest.err'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; } &&
7211          { ac_try='test -s conftest$ac_exeext'
7212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }; }; then
7217
7218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7219 }'`
7220 # Check for a 64-bit object if we didn't find anything.
7221 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; }
7222 }'`; fi
7223 else
7224   echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227 fi
7228 rm -f conftest.err conftest.$ac_objext \
7229       conftest$ac_exeext conftest.$ac_ext
7230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7231
7232          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7233           # Warning - without using the other run time loading flags,
7234           # -berok will link without error, but may produce a broken library.
7235           no_undefined_flag=' ${wl}-bernotok'
7236           allow_undefined_flag=' ${wl}-berok'
7237           # Exported symbols can be pulled into shared objects from archives
7238           whole_archive_flag_spec='$convenience'
7239           archive_cmds_need_lc=yes
7240           # This is similar to how AIX traditionally builds its shared libraries.
7241           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7242         fi
7243       fi
7244       ;;
7245
7246     amigaos*)
7247       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)'
7248       hardcode_libdir_flag_spec='-L$libdir'
7249       hardcode_minus_L=yes
7250       # see comment about different semantics on the GNU ld section
7251       ld_shlibs=no
7252       ;;
7253
7254     bsdi[45]*)
7255       export_dynamic_flag_spec=-rdynamic
7256       ;;
7257
7258     cygwin* | mingw* | pw32*)
7259       # When not using gcc, we currently assume that we are using
7260       # Microsoft Visual C++.
7261       # hardcode_libdir_flag_spec is actually meaningless, as there is
7262       # no search path for DLLs.
7263       hardcode_libdir_flag_spec=' '
7264       allow_undefined_flag=unsupported
7265       # Tell ltmain to make .lib files, not .a files.
7266       libext=lib
7267       # Tell ltmain to make .dll files, not .so files.
7268       shrext_cmds=".dll"
7269       # FIXME: Setting linknames here is a bad hack.
7270       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7271       # The linker will automatically build a .lib file if we build a DLL.
7272       old_archive_From_new_cmds='true'
7273       # FIXME: Should let the user specify the lib program.
7274       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7275       fix_srcfile_path='`cygpath -w "$srcfile"`'
7276       enable_shared_with_static_runtimes=yes
7277       ;;
7278
7279     darwin* | rhapsody*)
7280       case $host_os in
7281         rhapsody* | darwin1.[012])
7282          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7283          ;;
7284        *) # Darwin 1.3 on
7285          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7286            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7287          else
7288            case ${MACOSX_DEPLOYMENT_TARGET} in
7289              10.[012])
7290                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7291                ;;
7292              10.*)
7293                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7294                ;;
7295            esac
7296          fi
7297          ;;
7298       esac
7299       archive_cmds_need_lc=no
7300       hardcode_direct=no
7301       hardcode_automatic=yes
7302       hardcode_shlibpath_var=unsupported
7303       whole_archive_flag_spec=''
7304       link_all_deplibs=yes
7305     if test "$GCC" = yes ; then
7306         output_verbose_link_cmd='echo'
7307         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7308       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7309       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7310       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}'
7311       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}'
7312     else
7313       case $cc_basename in
7314         xlc*)
7315          output_verbose_link_cmd='echo'
7316          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7317          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7318           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7319          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7320           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}'
7321           ;;
7322        *)
7323          ld_shlibs=no
7324           ;;
7325       esac
7326     fi
7327       ;;
7328
7329     dgux*)
7330       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331       hardcode_libdir_flag_spec='-L$libdir'
7332       hardcode_shlibpath_var=no
7333       ;;
7334
7335     freebsd1*)
7336       ld_shlibs=no
7337       ;;
7338
7339     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7340     # support.  Future versions do this automatically, but an explicit c++rt0.o
7341     # does not break anything, and helps significantly (at the cost of a little
7342     # extra space).
7343     freebsd2.2*)
7344       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7345       hardcode_libdir_flag_spec='-R$libdir'
7346       hardcode_direct=yes
7347       hardcode_shlibpath_var=no
7348       ;;
7349
7350     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7351     freebsd2*)
7352       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7353       hardcode_direct=yes
7354       hardcode_minus_L=yes
7355       hardcode_shlibpath_var=no
7356       ;;
7357
7358     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7359     freebsd* | kfreebsd*-gnu | dragonfly*)
7360       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7361       hardcode_libdir_flag_spec='-R$libdir'
7362       hardcode_direct=yes
7363       hardcode_shlibpath_var=no
7364       ;;
7365
7366     hpux9*)
7367       if test "$GCC" = yes; then
7368         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'
7369       else
7370         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'
7371       fi
7372       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7373       hardcode_libdir_separator=:
7374       hardcode_direct=yes
7375
7376       # hardcode_minus_L: Not really in the search PATH,
7377       # but as the default location of the library.
7378       hardcode_minus_L=yes
7379       export_dynamic_flag_spec='${wl}-E'
7380       ;;
7381
7382     hpux10*)
7383       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7384         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7385       else
7386         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7387       fi
7388       if test "$with_gnu_ld" = no; then
7389         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7390         hardcode_libdir_separator=:
7391
7392         hardcode_direct=yes
7393         export_dynamic_flag_spec='${wl}-E'
7394
7395         # hardcode_minus_L: Not really in the search PATH,
7396         # but as the default location of the library.
7397         hardcode_minus_L=yes
7398       fi
7399       ;;
7400
7401     hpux11*)
7402       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7403         case $host_cpu in
7404         hppa*64*)
7405           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7406           ;;
7407         ia64*)
7408           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7409           ;;
7410         *)
7411           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7412           ;;
7413         esac
7414       else
7415         case $host_cpu in
7416         hppa*64*)
7417           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7418           ;;
7419         ia64*)
7420           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7421           ;;
7422         *)
7423           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7424           ;;
7425         esac
7426       fi
7427       if test "$with_gnu_ld" = no; then
7428         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7429         hardcode_libdir_separator=:
7430
7431         case $host_cpu in
7432         hppa*64*|ia64*)
7433           hardcode_libdir_flag_spec_ld='+b $libdir'
7434           hardcode_direct=no
7435           hardcode_shlibpath_var=no
7436           ;;
7437         *)
7438           hardcode_direct=yes
7439           export_dynamic_flag_spec='${wl}-E'
7440
7441           # hardcode_minus_L: Not really in the search PATH,
7442           # but as the default location of the library.
7443           hardcode_minus_L=yes
7444           ;;
7445         esac
7446       fi
7447       ;;
7448
7449     irix5* | irix6* | nonstopux*)
7450       if test "$GCC" = yes; then
7451         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'
7452       else
7453         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'
7454         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7455       fi
7456       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7457       hardcode_libdir_separator=:
7458       link_all_deplibs=yes
7459       ;;
7460
7461     netbsd*)
7462       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7463         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7464       else
7465         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7466       fi
7467       hardcode_libdir_flag_spec='-R$libdir'
7468       hardcode_direct=yes
7469       hardcode_shlibpath_var=no
7470       ;;
7471
7472     newsos6)
7473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7474       hardcode_direct=yes
7475       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7476       hardcode_libdir_separator=:
7477       hardcode_shlibpath_var=no
7478       ;;
7479
7480     openbsd*)
7481       hardcode_direct=yes
7482       hardcode_shlibpath_var=no
7483       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7484         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7485         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7486         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7487         export_dynamic_flag_spec='${wl}-E'
7488       else
7489        case $host_os in
7490          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7491            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7492            hardcode_libdir_flag_spec='-R$libdir'
7493            ;;
7494          *)
7495            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7496            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7497            ;;
7498        esac
7499       fi
7500       ;;
7501
7502     os2*)
7503       hardcode_libdir_flag_spec='-L$libdir'
7504       hardcode_minus_L=yes
7505       allow_undefined_flag=unsupported
7506       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'
7507       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7508       ;;
7509
7510     osf3*)
7511       if test "$GCC" = yes; then
7512         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7513         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'
7514       else
7515         allow_undefined_flag=' -expect_unresolved \*'
7516         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'
7517       fi
7518       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7519       hardcode_libdir_separator=:
7520       ;;
7521
7522     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7523       if test "$GCC" = yes; then
7524         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7525         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'
7526         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7527       else
7528         allow_undefined_flag=' -expect_unresolved \*'
7529         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'
7530         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7531         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7532
7533         # Both c and cxx compiler support -rpath directly
7534         hardcode_libdir_flag_spec='-rpath $libdir'
7535       fi
7536       hardcode_libdir_separator=:
7537       ;;
7538
7539     solaris*)
7540       no_undefined_flag=' -z text'
7541       if test "$GCC" = yes; then
7542         wlarc='${wl}'
7543         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7544         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7545           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7546       else
7547         wlarc=''
7548         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7549         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7550         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7551       fi
7552       hardcode_libdir_flag_spec='-R$libdir'
7553       hardcode_shlibpath_var=no
7554       case $host_os in
7555       solaris2.[0-5] | solaris2.[0-5].*) ;;
7556       *)
7557         # The compiler driver will combine linker options so we
7558         # cannot just pass the convience library names through
7559         # without $wl, iff we do not link with $LD.
7560         # Luckily, gcc supports the same syntax we need for Sun Studio.
7561         # Supported since Solaris 2.6 (maybe 2.5.1?)
7562         case $wlarc in
7563         '')
7564           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7565         *)
7566           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7567         esac ;;
7568       esac
7569       link_all_deplibs=yes
7570       ;;
7571
7572     sunos4*)
7573       if test "x$host_vendor" = xsequent; then
7574         # Use $CC to link under sequent, because it throws in some extra .o
7575         # files that make .init and .fini sections work.
7576         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7577       else
7578         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7579       fi
7580       hardcode_libdir_flag_spec='-L$libdir'
7581       hardcode_direct=yes
7582       hardcode_minus_L=yes
7583       hardcode_shlibpath_var=no
7584       ;;
7585
7586     sysv4)
7587       case $host_vendor in
7588         sni)
7589           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7590           hardcode_direct=yes # is this really true???
7591         ;;
7592         siemens)
7593           ## LD is ld it makes a PLAMLIB
7594           ## CC just makes a GrossModule.
7595           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7596           reload_cmds='$CC -r -o $output$reload_objs'
7597           hardcode_direct=no
7598         ;;
7599         motorola)
7600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7602         ;;
7603       esac
7604       runpath_var='LD_RUN_PATH'
7605       hardcode_shlibpath_var=no
7606       ;;
7607
7608     sysv4.3*)
7609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7610       hardcode_shlibpath_var=no
7611       export_dynamic_flag_spec='-Bexport'
7612       ;;
7613
7614     sysv4*MP*)
7615       if test -d /usr/nec; then
7616         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7617         hardcode_shlibpath_var=no
7618         runpath_var=LD_RUN_PATH
7619         hardcode_runpath_var=yes
7620         ld_shlibs=yes
7621       fi
7622       ;;
7623
7624     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7625       no_undefined_flag='${wl}-z,text'
7626       archive_cmds_need_lc=no
7627       hardcode_shlibpath_var=no
7628       runpath_var='LD_RUN_PATH'
7629
7630       if test "$GCC" = yes; then
7631         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7632         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7633       else
7634         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7635         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7636       fi
7637       ;;
7638
7639     sysv5* | sco3.2v5* | sco5v6*)
7640       # Note: We can NOT use -z defs as we might desire, because we do not
7641       # link with -lc, and that would cause any symbols used from libc to
7642       # always be unresolved, which means just about no library would
7643       # ever link correctly.  If we're not using GNU ld we use -z text
7644       # though, which does catch some bad symbols but isn't as heavy-handed
7645       # as -z defs.
7646       no_undefined_flag='${wl}-z,text'
7647       allow_undefined_flag='${wl}-z,nodefs'
7648       archive_cmds_need_lc=no
7649       hardcode_shlibpath_var=no
7650       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7651       hardcode_libdir_separator=':'
7652       link_all_deplibs=yes
7653       export_dynamic_flag_spec='${wl}-Bexport'
7654       runpath_var='LD_RUN_PATH'
7655
7656       if test "$GCC" = yes; then
7657         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7658         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7659       else
7660         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7661         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7662       fi
7663       ;;
7664
7665     uts4*)
7666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7667       hardcode_libdir_flag_spec='-L$libdir'
7668       hardcode_shlibpath_var=no
7669       ;;
7670
7671     *)
7672       ld_shlibs=no
7673       ;;
7674     esac
7675   fi
7676
7677 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7678 echo "${ECHO_T}$ld_shlibs" >&6
7679 test "$ld_shlibs" = no && can_build_shared=no
7680
7681 #
7682 # Do we need to explicitly link libc?
7683 #
7684 case "x$archive_cmds_need_lc" in
7685 x|xyes)
7686   # Assume -lc should be added
7687   archive_cmds_need_lc=yes
7688
7689   if test "$enable_shared" = yes && test "$GCC" = yes; then
7690     case $archive_cmds in
7691     *'~'*)
7692       # FIXME: we may have to deal with multi-command sequences.
7693       ;;
7694     '$CC '*)
7695       # Test whether the compiler implicitly links with -lc since on some
7696       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7697       # to ld, don't add -lc before -lgcc.
7698       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7699 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7700       $rm conftest*
7701       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702
7703       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704   (eval $ac_compile) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); } 2>conftest.err; then
7708         soname=conftest
7709         lib=conftest
7710         libobjs=conftest.$ac_objext
7711         deplibs=
7712         wl=$lt_prog_compiler_wl
7713         pic_flag=$lt_prog_compiler_pic
7714         compiler_flags=-v
7715         linker_flags=-v
7716         verstring=
7717         output_objdir=.
7718         libname=conftest
7719         lt_save_allow_undefined_flag=$allow_undefined_flag
7720         allow_undefined_flag=
7721         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7722   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); }
7726         then
7727           archive_cmds_need_lc=no
7728         else
7729           archive_cmds_need_lc=yes
7730         fi
7731         allow_undefined_flag=$lt_save_allow_undefined_flag
7732       else
7733         cat conftest.err 1>&5
7734       fi
7735       $rm conftest*
7736       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7737 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7738       ;;
7739     esac
7740   fi
7741   ;;
7742 esac
7743
7744 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7745 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7746 library_names_spec=
7747 libname_spec='lib$name'
7748 soname_spec=
7749 shrext_cmds=".so"
7750 postinstall_cmds=
7751 postuninstall_cmds=
7752 finish_cmds=
7753 finish_eval=
7754 shlibpath_var=
7755 shlibpath_overrides_runpath=unknown
7756 version_type=none
7757 dynamic_linker="$host_os ld.so"
7758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7759 if test "$GCC" = yes; then
7760   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7761   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7762     # if the path contains ";" then we assume it to be the separator
7763     # otherwise default to the standard path separator (i.e. ":") - it is
7764     # assumed that no part of a normal pathname contains ";" but that should
7765     # okay in the real world where ";" in dirpaths is itself problematic.
7766     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7767   else
7768     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7769   fi
7770 else
7771   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7772 fi
7773 need_lib_prefix=unknown
7774 hardcode_into_libs=no
7775
7776 # when you set need_version to no, make sure it does not cause -set_version
7777 # flags to be left without arguments
7778 need_version=unknown
7779
7780 case $host_os in
7781 aix3*)
7782   version_type=linux
7783   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7784   shlibpath_var=LIBPATH
7785
7786   # AIX 3 has no versioning support, so we append a major version to the name.
7787   soname_spec='${libname}${release}${shared_ext}$major'
7788   ;;
7789
7790 aix4* | aix5*)
7791   version_type=linux
7792   need_lib_prefix=no
7793   need_version=no
7794   hardcode_into_libs=yes
7795   if test "$host_cpu" = ia64; then
7796     # AIX 5 supports IA64
7797     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7798     shlibpath_var=LD_LIBRARY_PATH
7799   else
7800     # With GCC up to 2.95.x, collect2 would create an import file
7801     # for dependence libraries.  The import file would start with
7802     # the line `#! .'.  This would cause the generated library to
7803     # depend on `.', always an invalid library.  This was fixed in
7804     # development snapshots of GCC prior to 3.0.
7805     case $host_os in
7806       aix4 | aix4.[01] | aix4.[01].*)
7807       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7808            echo ' yes '
7809            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7810         :
7811       else
7812         can_build_shared=no
7813       fi
7814       ;;
7815     esac
7816     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7817     # soname into executable. Probably we can add versioning support to
7818     # collect2, so additional links can be useful in future.
7819     if test "$aix_use_runtimelinking" = yes; then
7820       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7821       # instead of lib<name>.a to let people know that these are not
7822       # typical AIX shared libraries.
7823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824     else
7825       # We preserve .a as extension for shared libraries through AIX4.2
7826       # and later when we are not doing run time linking.
7827       library_names_spec='${libname}${release}.a $libname.a'
7828       soname_spec='${libname}${release}${shared_ext}$major'
7829     fi
7830     shlibpath_var=LIBPATH
7831   fi
7832   ;;
7833
7834 amigaos*)
7835   library_names_spec='$libname.ixlibrary $libname.a'
7836   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7837   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'
7838   ;;
7839
7840 beos*)
7841   library_names_spec='${libname}${shared_ext}'
7842   dynamic_linker="$host_os ld.so"
7843   shlibpath_var=LIBRARY_PATH
7844   ;;
7845
7846 bsdi[45]*)
7847   version_type=linux
7848   need_version=no
7849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850   soname_spec='${libname}${release}${shared_ext}$major'
7851   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7852   shlibpath_var=LD_LIBRARY_PATH
7853   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7854   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7855   # the default ld.so.conf also contains /usr/contrib/lib and
7856   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7857   # libtool to hard-code these into programs
7858   ;;
7859
7860 cygwin* | mingw* | pw32*)
7861   version_type=windows
7862   shrext_cmds=".dll"
7863   need_version=no
7864   need_lib_prefix=no
7865
7866   case $GCC,$host_os in
7867   yes,cygwin* | yes,mingw* | yes,pw32*)
7868     library_names_spec='$libname.dll.a'
7869     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7870     postinstall_cmds='base_file=`basename \${file}`~
7871       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7872       dldir=$destdir/`dirname \$dlpath`~
7873       test -d \$dldir || mkdir -p \$dldir~
7874       $install_prog $dir/$dlname \$dldir/$dlname~
7875       chmod a+x \$dldir/$dlname'
7876     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7877       dlpath=$dir/\$dldll~
7878        $rm \$dlpath'
7879     shlibpath_overrides_runpath=yes
7880
7881     case $host_os in
7882     cygwin*)
7883       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7884       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7885       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7886       ;;
7887     mingw*)
7888       # MinGW DLLs use traditional 'lib' prefix
7889       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7891       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7892         # It is most probably a Windows format PATH printed by
7893         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7894         # path with ; separators, and with drive letters. We can handle the
7895         # drive letters (cygwin fileutils understands them), so leave them,
7896         # especially as we might pass files found there to a mingw objdump,
7897         # which wouldn't understand a cygwinified path. Ahh.
7898         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7899       else
7900         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7901       fi
7902       ;;
7903     pw32*)
7904       # pw32 DLLs use 'pw' prefix rather than 'lib'
7905       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7906       ;;
7907     esac
7908     ;;
7909
7910   *)
7911     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7912     ;;
7913   esac
7914   dynamic_linker='Win32 ld.exe'
7915   # FIXME: first we should search . and the directory the executable is in
7916   shlibpath_var=PATH
7917   ;;
7918
7919 darwin* | rhapsody*)
7920   dynamic_linker="$host_os dyld"
7921   version_type=darwin
7922   need_lib_prefix=no
7923   need_version=no
7924   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7925   soname_spec='${libname}${release}${major}$shared_ext'
7926   shlibpath_overrides_runpath=yes
7927   shlibpath_var=DYLD_LIBRARY_PATH
7928   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7929   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7930   if test "$GCC" = yes; then
7931     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"`
7932   else
7933     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7934   fi
7935   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7936   ;;
7937
7938 dgux*)
7939   version_type=linux
7940   need_lib_prefix=no
7941   need_version=no
7942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7943   soname_spec='${libname}${release}${shared_ext}$major'
7944   shlibpath_var=LD_LIBRARY_PATH
7945   ;;
7946
7947 freebsd1*)
7948   dynamic_linker=no
7949   ;;
7950
7951 kfreebsd*-gnu)
7952   version_type=linux
7953   need_lib_prefix=no
7954   need_version=no
7955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7956   soname_spec='${libname}${release}${shared_ext}$major'
7957   shlibpath_var=LD_LIBRARY_PATH
7958   shlibpath_overrides_runpath=no
7959   hardcode_into_libs=yes
7960   dynamic_linker='GNU ld.so'
7961   ;;
7962
7963 freebsd* | dragonfly*)
7964   # DragonFly does not have aout.  When/if they implement a new
7965   # versioning mechanism, adjust this.
7966   if test -x /usr/bin/objformat; then
7967     objformat=`/usr/bin/objformat`
7968   else
7969     case $host_os in
7970     freebsd[123]*) objformat=aout ;;
7971     *) objformat=elf ;;
7972     esac
7973   fi
7974   version_type=freebsd-$objformat
7975   case $version_type in
7976     freebsd-elf*)
7977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7978       need_version=no
7979       need_lib_prefix=no
7980       ;;
7981     freebsd-*)
7982       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7983       need_version=yes
7984       ;;
7985   esac
7986   shlibpath_var=LD_LIBRARY_PATH
7987   case $host_os in
7988   freebsd2*)
7989     shlibpath_overrides_runpath=yes
7990     ;;
7991   freebsd3.[01]* | freebsdelf3.[01]*)
7992     shlibpath_overrides_runpath=yes
7993     hardcode_into_libs=yes
7994     ;;
7995   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7996   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7997     shlibpath_overrides_runpath=no
7998     hardcode_into_libs=yes
7999     ;;
8000   freebsd*) # from 4.6 on
8001     shlibpath_overrides_runpath=yes
8002     hardcode_into_libs=yes
8003     ;;
8004   esac
8005   ;;
8006
8007 gnu*)
8008   version_type=linux
8009   need_lib_prefix=no
8010   need_version=no
8011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8012   soname_spec='${libname}${release}${shared_ext}$major'
8013   shlibpath_var=LD_LIBRARY_PATH
8014   hardcode_into_libs=yes
8015   ;;
8016
8017 hpux9* | hpux10* | hpux11*)
8018   # Give a soname corresponding to the major version so that dld.sl refuses to
8019   # link against other versions.
8020   version_type=sunos
8021   need_lib_prefix=no
8022   need_version=no
8023   case $host_cpu in
8024   ia64*)
8025     shrext_cmds='.so'
8026     hardcode_into_libs=yes
8027     dynamic_linker="$host_os dld.so"
8028     shlibpath_var=LD_LIBRARY_PATH
8029     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031     soname_spec='${libname}${release}${shared_ext}$major'
8032     if test "X$HPUX_IA64_MODE" = X32; then
8033       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8034     else
8035       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8036     fi
8037     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8038     ;;
8039    hppa*64*)
8040      shrext_cmds='.sl'
8041      hardcode_into_libs=yes
8042      dynamic_linker="$host_os dld.sl"
8043      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8044      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046      soname_spec='${libname}${release}${shared_ext}$major'
8047      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8048      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8049      ;;
8050    *)
8051     shrext_cmds='.sl'
8052     dynamic_linker="$host_os dld.sl"
8053     shlibpath_var=SHLIB_PATH
8054     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056     soname_spec='${libname}${release}${shared_ext}$major'
8057     ;;
8058   esac
8059   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8060   postinstall_cmds='chmod 555 $lib'
8061   ;;
8062
8063 interix3*)
8064   version_type=linux
8065   need_lib_prefix=no
8066   need_version=no
8067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8068   soname_spec='${libname}${release}${shared_ext}$major'
8069   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8070   shlibpath_var=LD_LIBRARY_PATH
8071   shlibpath_overrides_runpath=no
8072   hardcode_into_libs=yes
8073   ;;
8074
8075 irix5* | irix6* | nonstopux*)
8076   case $host_os in
8077     nonstopux*) version_type=nonstopux ;;
8078     *)
8079         if test "$lt_cv_prog_gnu_ld" = yes; then
8080                 version_type=linux
8081         else
8082                 version_type=irix
8083         fi ;;
8084   esac
8085   need_lib_prefix=no
8086   need_version=no
8087   soname_spec='${libname}${release}${shared_ext}$major'
8088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8089   case $host_os in
8090   irix5* | nonstopux*)
8091     libsuff= shlibsuff=
8092     ;;
8093   *)
8094     case $LD in # libtool.m4 will add one of these switches to LD
8095     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8096       libsuff= shlibsuff= libmagic=32-bit;;
8097     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8098       libsuff=32 shlibsuff=N32 libmagic=N32;;
8099     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8100       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8101     *) libsuff= shlibsuff= libmagic=never-match;;
8102     esac
8103     ;;
8104   esac
8105   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8106   shlibpath_overrides_runpath=no
8107   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8108   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8109   hardcode_into_libs=yes
8110   ;;
8111
8112 # No shared lib support for Linux oldld, aout, or coff.
8113 linux*oldld* | linux*aout* | linux*coff*)
8114   dynamic_linker=no
8115   ;;
8116
8117 # This must be Linux ELF.
8118 linux*)
8119   version_type=linux
8120   need_lib_prefix=no
8121   need_version=no
8122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8123   soname_spec='${libname}${release}${shared_ext}$major'
8124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8125   shlibpath_var=LD_LIBRARY_PATH
8126   shlibpath_overrides_runpath=no
8127   # This implies no fast_install, which is unacceptable.
8128   # Some rework will be needed to allow for fast_install
8129   # before this can be enabled.
8130   hardcode_into_libs=yes
8131
8132   # Append ld.so.conf contents to the search path
8133   if test -f /etc/ld.so.conf; then
8134     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8135     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8136   fi
8137
8138   # We used to test for /lib/ld.so.1 and disable shared libraries on
8139   # powerpc, because MkLinux only supported shared libraries with the
8140   # GNU dynamic linker.  Since this was broken with cross compilers,
8141   # most powerpc-linux boxes support dynamic linking these days and
8142   # people can always --disable-shared, the test was removed, and we
8143   # assume the GNU/Linux dynamic linker is in use.
8144   dynamic_linker='GNU/Linux ld.so'
8145   ;;
8146
8147 knetbsd*-gnu)
8148   version_type=linux
8149   need_lib_prefix=no
8150   need_version=no
8151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8152   soname_spec='${libname}${release}${shared_ext}$major'
8153   shlibpath_var=LD_LIBRARY_PATH
8154   shlibpath_overrides_runpath=no
8155   hardcode_into_libs=yes
8156   dynamic_linker='GNU ld.so'
8157   ;;
8158
8159 netbsd*)
8160   version_type=sunos
8161   need_lib_prefix=no
8162   need_version=no
8163   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8165     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8166     dynamic_linker='NetBSD (a.out) ld.so'
8167   else
8168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8169     soname_spec='${libname}${release}${shared_ext}$major'
8170     dynamic_linker='NetBSD ld.elf_so'
8171   fi
8172   shlibpath_var=LD_LIBRARY_PATH
8173   shlibpath_overrides_runpath=yes
8174   hardcode_into_libs=yes
8175   ;;
8176
8177 newsos6)
8178   version_type=linux
8179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8180   shlibpath_var=LD_LIBRARY_PATH
8181   shlibpath_overrides_runpath=yes
8182   ;;
8183
8184 nto-qnx*)
8185   version_type=linux
8186   need_lib_prefix=no
8187   need_version=no
8188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8189   soname_spec='${libname}${release}${shared_ext}$major'
8190   shlibpath_var=LD_LIBRARY_PATH
8191   shlibpath_overrides_runpath=yes
8192   ;;
8193
8194 openbsd*)
8195   version_type=sunos
8196   sys_lib_dlsearch_path_spec="/usr/lib"
8197   need_lib_prefix=no
8198   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8199   case $host_os in
8200     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8201     *)                         need_version=no  ;;
8202   esac
8203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8204   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8205   shlibpath_var=LD_LIBRARY_PATH
8206   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8207     case $host_os in
8208       openbsd2.[89] | openbsd2.[89].*)
8209         shlibpath_overrides_runpath=no
8210         ;;
8211       *)
8212         shlibpath_overrides_runpath=yes
8213         ;;
8214       esac
8215   else
8216     shlibpath_overrides_runpath=yes
8217   fi
8218   ;;
8219
8220 os2*)
8221   libname_spec='$name'
8222   shrext_cmds=".dll"
8223   need_lib_prefix=no
8224   library_names_spec='$libname${shared_ext} $libname.a'
8225   dynamic_linker='OS/2 ld.exe'
8226   shlibpath_var=LIBPATH
8227   ;;
8228
8229 osf3* | osf4* | osf5*)
8230   version_type=osf
8231   need_lib_prefix=no
8232   need_version=no
8233   soname_spec='${libname}${release}${shared_ext}$major'
8234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235   shlibpath_var=LD_LIBRARY_PATH
8236   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8237   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8238   ;;
8239
8240 solaris*)
8241   version_type=linux
8242   need_lib_prefix=no
8243   need_version=no
8244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8245   soname_spec='${libname}${release}${shared_ext}$major'
8246   shlibpath_var=LD_LIBRARY_PATH
8247   shlibpath_overrides_runpath=yes
8248   hardcode_into_libs=yes
8249   # ldd complains unless libraries are executable
8250   postinstall_cmds='chmod +x $lib'
8251   ;;
8252
8253 sunos4*)
8254   version_type=sunos
8255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8256   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8257   shlibpath_var=LD_LIBRARY_PATH
8258   shlibpath_overrides_runpath=yes
8259   if test "$with_gnu_ld" = yes; then
8260     need_lib_prefix=no
8261   fi
8262   need_version=yes
8263   ;;
8264
8265 sysv4 | sysv4.3*)
8266   version_type=linux
8267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268   soname_spec='${libname}${release}${shared_ext}$major'
8269   shlibpath_var=LD_LIBRARY_PATH
8270   case $host_vendor in
8271     sni)
8272       shlibpath_overrides_runpath=no
8273       need_lib_prefix=no
8274       export_dynamic_flag_spec='${wl}-Blargedynsym'
8275       runpath_var=LD_RUN_PATH
8276       ;;
8277     siemens)
8278       need_lib_prefix=no
8279       ;;
8280     motorola)
8281       need_lib_prefix=no
8282       need_version=no
8283       shlibpath_overrides_runpath=no
8284       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8285       ;;
8286   esac
8287   ;;
8288
8289 sysv4*MP*)
8290   if test -d /usr/nec ;then
8291     version_type=linux
8292     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8293     soname_spec='$libname${shared_ext}.$major'
8294     shlibpath_var=LD_LIBRARY_PATH
8295   fi
8296   ;;
8297
8298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8299   version_type=freebsd-elf
8300   need_lib_prefix=no
8301   need_version=no
8302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8303   soname_spec='${libname}${release}${shared_ext}$major'
8304   shlibpath_var=LD_LIBRARY_PATH
8305   hardcode_into_libs=yes
8306   if test "$with_gnu_ld" = yes; then
8307     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8308     shlibpath_overrides_runpath=no
8309   else
8310     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8311     shlibpath_overrides_runpath=yes
8312     case $host_os in
8313       sco3.2v5*)
8314         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8315         ;;
8316     esac
8317   fi
8318   sys_lib_dlsearch_path_spec='/usr/lib'
8319   ;;
8320
8321 uts4*)
8322   version_type=linux
8323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324   soname_spec='${libname}${release}${shared_ext}$major'
8325   shlibpath_var=LD_LIBRARY_PATH
8326   ;;
8327
8328 *)
8329   dynamic_linker=no
8330   ;;
8331 esac
8332 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8333 echo "${ECHO_T}$dynamic_linker" >&6
8334 test "$dynamic_linker" = no && can_build_shared=no
8335
8336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8337 if test "$GCC" = yes; then
8338   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8339 fi
8340
8341 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8343 hardcode_action=
8344 if test -n "$hardcode_libdir_flag_spec" || \
8345    test -n "$runpath_var" || \
8346    test "X$hardcode_automatic" = "Xyes" ; then
8347
8348   # We can hardcode non-existant directories.
8349   if test "$hardcode_direct" != no &&
8350      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8351      # have to relink, otherwise we might link with an installed library
8352      # when we should be linking with a yet-to-be-installed one
8353      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8354      test "$hardcode_minus_L" != no; then
8355     # Linking always hardcodes the temporary library directory.
8356     hardcode_action=relink
8357   else
8358     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8359     hardcode_action=immediate
8360   fi
8361 else
8362   # We cannot hardcode anything, or else we can only hardcode existing
8363   # directories.
8364   hardcode_action=unsupported
8365 fi
8366 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8367 echo "${ECHO_T}$hardcode_action" >&6
8368
8369 if test "$hardcode_action" = relink; then
8370   # Fast installation is not supported
8371   enable_fast_install=no
8372 elif test "$shlibpath_overrides_runpath" = yes ||
8373      test "$enable_shared" = no; then
8374   # Fast installation is not necessary
8375   enable_fast_install=needless
8376 fi
8377
8378 striplib=
8379 old_striplib=
8380 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8381 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8382 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8383   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8384   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8385   echo "$as_me:$LINENO: result: yes" >&5
8386 echo "${ECHO_T}yes" >&6
8387 else
8388 # FIXME - insert some real tests, host_os isn't really good enough
8389   case $host_os in
8390    darwin*)
8391        if test -n "$STRIP" ; then
8392          striplib="$STRIP -x"
8393          echo "$as_me:$LINENO: result: yes" >&5
8394 echo "${ECHO_T}yes" >&6
8395        else
8396   echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8398 fi
8399        ;;
8400    *)
8401   echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6
8403     ;;
8404   esac
8405 fi
8406
8407 if test "x$enable_dlopen" != xyes; then
8408   enable_dlopen=unknown
8409   enable_dlopen_self=unknown
8410   enable_dlopen_self_static=unknown
8411 else
8412   lt_cv_dlopen=no
8413   lt_cv_dlopen_libs=
8414
8415   case $host_os in
8416   beos*)
8417     lt_cv_dlopen="load_add_on"
8418     lt_cv_dlopen_libs=
8419     lt_cv_dlopen_self=yes
8420     ;;
8421
8422   mingw* | pw32*)
8423     lt_cv_dlopen="LoadLibrary"
8424     lt_cv_dlopen_libs=
8425    ;;
8426
8427   cygwin*)
8428     lt_cv_dlopen="dlopen"
8429     lt_cv_dlopen_libs=
8430    ;;
8431
8432   darwin*)
8433   # if libdl is installed we need to link against it
8434     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8435 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   ac_check_lib_save_LIBS=$LIBS
8440 LIBS="-ldl  $LIBS"
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447
8448 /* Override any gcc2 internal prototype to avoid an error.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 /* We use char because int might match the return type of a gcc2
8453    builtin and then its argument prototype would still apply.  */
8454 char dlopen ();
8455 int
8456 main ()
8457 {
8458 dlopen ();
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465   (eval $ac_link) 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } &&
8472          { ac_try='test -z "$ac_c_werror_flag"
8473                          || test ! -s conftest.err'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; } &&
8479          { ac_try='test -s conftest$ac_exeext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_cv_lib_dl_dlopen=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_cv_lib_dl_dlopen=no
8491 fi
8492 rm -f conftest.err conftest.$ac_objext \
8493       conftest$ac_exeext conftest.$ac_ext
8494 LIBS=$ac_check_lib_save_LIBS
8495 fi
8496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8498 if test $ac_cv_lib_dl_dlopen = yes; then
8499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8500 else
8501
8502     lt_cv_dlopen="dyld"
8503     lt_cv_dlopen_libs=
8504     lt_cv_dlopen_self=yes
8505
8506 fi
8507
8508    ;;
8509
8510   *)
8511     echo "$as_me:$LINENO: checking for shl_load" >&5
8512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8513 if test "${ac_cv_func_shl_load+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h.  */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h.  */
8522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8524 #define shl_load innocuous_shl_load
8525
8526 /* System header to define __stub macros and hopefully few prototypes,
8527     which can conflict with char shl_load (); below.
8528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8529     <limits.h> exists even on freestanding compilers.  */
8530
8531 #ifdef __STDC__
8532 # include <limits.h>
8533 #else
8534 # include <assert.h>
8535 #endif
8536
8537 #undef shl_load
8538
8539 /* Override any gcc2 internal prototype to avoid an error.  */
8540 #ifdef __cplusplus
8541 extern "C"
8542 {
8543 #endif
8544 /* We use char because int might match the return type of a gcc2
8545    builtin and then its argument prototype would still apply.  */
8546 char shl_load ();
8547 /* The GNU C library defines this for functions which it implements
8548     to always fail with ENOSYS.  Some functions are actually named
8549     something starting with __ and the normal name is an alias.  */
8550 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8551 choke me
8552 #else
8553 char (*f) () = shl_load;
8554 #endif
8555 #ifdef __cplusplus
8556 }
8557 #endif
8558
8559 int
8560 main ()
8561 {
8562 return f != shl_load;
8563   ;
8564   return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8569   (eval $ac_link) 2>conftest.er1
8570   ac_status=$?
8571   grep -v '^ *+' conftest.er1 >conftest.err
8572   rm -f conftest.er1
8573   cat conftest.err >&5
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); } &&
8576          { ac_try='test -z "$ac_c_werror_flag"
8577                          || test ! -s conftest.err'
8578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579   (eval $ac_try) 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; } &&
8583          { ac_try='test -s conftest$ac_exeext'
8584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585   (eval $ac_try) 2>&5
8586   ac_status=$?
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); }; }; then
8589   ac_cv_func_shl_load=yes
8590 else
8591   echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_cv_func_shl_load=no
8595 fi
8596 rm -f conftest.err conftest.$ac_objext \
8597       conftest$ac_exeext conftest.$ac_ext
8598 fi
8599 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8601 if test $ac_cv_func_shl_load = yes; then
8602   lt_cv_dlopen="shl_load"
8603 else
8604   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   ac_check_lib_save_LIBS=$LIBS
8610 LIBS="-ldld  $LIBS"
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617
8618 /* Override any gcc2 internal prototype to avoid an error.  */
8619 #ifdef __cplusplus
8620 extern "C"
8621 #endif
8622 /* We use char because int might match the return type of a gcc2
8623    builtin and then its argument prototype would still apply.  */
8624 char shl_load ();
8625 int
8626 main ()
8627 {
8628 shl_load ();
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635   (eval $ac_link) 2>conftest.er1
8636   ac_status=$?
8637   grep -v '^ *+' conftest.er1 >conftest.err
8638   rm -f conftest.er1
8639   cat conftest.err >&5
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); } &&
8642          { ac_try='test -z "$ac_c_werror_flag"
8643                          || test ! -s conftest.err'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; } &&
8649          { ac_try='test -s conftest$ac_exeext'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; }; then
8655   ac_cv_lib_dld_shl_load=yes
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_cv_lib_dld_shl_load=no
8661 fi
8662 rm -f conftest.err conftest.$ac_objext \
8663       conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8665 fi
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8668 if test $ac_cv_lib_dld_shl_load = yes; then
8669   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8670 else
8671   echo "$as_me:$LINENO: checking for dlopen" >&5
8672 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8673 if test "${ac_cv_func_dlopen+set}" = set; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8684 #define dlopen innocuous_dlopen
8685
8686 /* System header to define __stub macros and hopefully few prototypes,
8687     which can conflict with char dlopen (); below.
8688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8689     <limits.h> exists even on freestanding compilers.  */
8690
8691 #ifdef __STDC__
8692 # include <limits.h>
8693 #else
8694 # include <assert.h>
8695 #endif
8696
8697 #undef dlopen
8698
8699 /* Override any gcc2 internal prototype to avoid an error.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 {
8703 #endif
8704 /* We use char because int might match the return type of a gcc2
8705    builtin and then its argument prototype would still apply.  */
8706 char dlopen ();
8707 /* The GNU C library defines this for functions which it implements
8708     to always fail with ENOSYS.  Some functions are actually named
8709     something starting with __ and the normal name is an alias.  */
8710 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8711 choke me
8712 #else
8713 char (*f) () = dlopen;
8714 #endif
8715 #ifdef __cplusplus
8716 }
8717 #endif
8718
8719 int
8720 main ()
8721 {
8722 return f != dlopen;
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729   (eval $ac_link) 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } &&
8736          { ac_try='test -z "$ac_c_werror_flag"
8737                          || test ! -s conftest.err'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest$ac_exeext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   ac_cv_func_dlopen=yes
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_cv_func_dlopen=no
8755 fi
8756 rm -f conftest.err conftest.$ac_objext \
8757       conftest$ac_exeext conftest.$ac_ext
8758 fi
8759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8761 if test $ac_cv_func_dlopen = yes; then
8762   lt_cv_dlopen="dlopen"
8763 else
8764   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-ldl  $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777
8778 /* Override any gcc2 internal prototype to avoid an error.  */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 /* We use char because int might match the return type of a gcc2
8783    builtin and then its argument prototype would still apply.  */
8784 char dlopen ();
8785 int
8786 main ()
8787 {
8788 dlopen ();
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795   (eval $ac_link) 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag"
8803                          || test ! -s conftest.err'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; } &&
8809          { ac_try='test -s conftest$ac_exeext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_lib_dl_dlopen=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_cv_lib_dl_dlopen=no
8821 fi
8822 rm -f conftest.err conftest.$ac_objext \
8823       conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8825 fi
8826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8828 if test $ac_cv_lib_dl_dlopen = yes; then
8829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8830 else
8831   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8834   echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836   ac_check_lib_save_LIBS=$LIBS
8837 LIBS="-lsvld  $LIBS"
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h.  */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h.  */
8844
8845 /* Override any gcc2 internal prototype to avoid an error.  */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 /* We use char because int might match the return type of a gcc2
8850    builtin and then its argument prototype would still apply.  */
8851 char dlopen ();
8852 int
8853 main ()
8854 {
8855 dlopen ();
8856   ;
8857   return 0;
8858 }
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862   (eval $ac_link) 2>conftest.er1
8863   ac_status=$?
8864   grep -v '^ *+' conftest.er1 >conftest.err
8865   rm -f conftest.er1
8866   cat conftest.err >&5
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); } &&
8869          { ac_try='test -z "$ac_c_werror_flag"
8870                          || test ! -s conftest.err'
8871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872   (eval $ac_try) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; } &&
8876          { ac_try='test -s conftest$ac_exeext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   ac_cv_lib_svld_dlopen=yes
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 ac_cv_lib_svld_dlopen=no
8888 fi
8889 rm -f conftest.err conftest.$ac_objext \
8890       conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8892 fi
8893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8895 if test $ac_cv_lib_svld_dlopen = yes; then
8896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8897 else
8898   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903   ac_check_lib_save_LIBS=$LIBS
8904 LIBS="-ldld  $LIBS"
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911
8912 /* Override any gcc2 internal prototype to avoid an error.  */
8913 #ifdef __cplusplus
8914 extern "C"
8915 #endif
8916 /* We use char because int might match the return type of a gcc2
8917    builtin and then its argument prototype would still apply.  */
8918 char dld_link ();
8919 int
8920 main ()
8921 {
8922 dld_link ();
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929   (eval $ac_link) 2>conftest.er1
8930   ac_status=$?
8931   grep -v '^ *+' conftest.er1 >conftest.err
8932   rm -f conftest.er1
8933   cat conftest.err >&5
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -z "$ac_c_werror_flag"
8937                          || test ! -s conftest.err'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; } &&
8943          { ac_try='test -s conftest$ac_exeext'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; }; then
8949   ac_cv_lib_dld_dld_link=yes
8950 else
8951   echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954 ac_cv_lib_dld_dld_link=no
8955 fi
8956 rm -f conftest.err conftest.$ac_objext \
8957       conftest$ac_exeext conftest.$ac_ext
8958 LIBS=$ac_check_lib_save_LIBS
8959 fi
8960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8961 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8962 if test $ac_cv_lib_dld_dld_link = yes; then
8963   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8964 fi
8965
8966
8967 fi
8968
8969
8970 fi
8971
8972
8973 fi
8974
8975
8976 fi
8977
8978
8979 fi
8980
8981     ;;
8982   esac
8983
8984   if test "x$lt_cv_dlopen" != xno; then
8985     enable_dlopen=yes
8986   else
8987     enable_dlopen=no
8988   fi
8989
8990   case $lt_cv_dlopen in
8991   dlopen)
8992     save_CPPFLAGS="$CPPFLAGS"
8993     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8994
8995     save_LDFLAGS="$LDFLAGS"
8996     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8997
8998     save_LIBS="$LIBS"
8999     LIBS="$lt_cv_dlopen_libs $LIBS"
9000
9001     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9002 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9003 if test "${lt_cv_dlopen_self+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006           if test "$cross_compiling" = yes; then :
9007   lt_cv_dlopen_self=cross
9008 else
9009   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9010   lt_status=$lt_dlunknown
9011   cat > conftest.$ac_ext <<EOF
9012 #line 9012 "configure"
9013 #include "confdefs.h"
9014
9015 #if HAVE_DLFCN_H
9016 #include <dlfcn.h>
9017 #endif
9018
9019 #include <stdio.h>
9020
9021 #ifdef RTLD_GLOBAL
9022 #  define LT_DLGLOBAL           RTLD_GLOBAL
9023 #else
9024 #  ifdef DL_GLOBAL
9025 #    define LT_DLGLOBAL         DL_GLOBAL
9026 #  else
9027 #    define LT_DLGLOBAL         0
9028 #  endif
9029 #endif
9030
9031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9032    find out it does not work in some platform. */
9033 #ifndef LT_DLLAZY_OR_NOW
9034 #  ifdef RTLD_LAZY
9035 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9036 #  else
9037 #    ifdef DL_LAZY
9038 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9039 #    else
9040 #      ifdef RTLD_NOW
9041 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9042 #      else
9043 #        ifdef DL_NOW
9044 #          define LT_DLLAZY_OR_NOW      DL_NOW
9045 #        else
9046 #          define LT_DLLAZY_OR_NOW      0
9047 #        endif
9048 #      endif
9049 #    endif
9050 #  endif
9051 #endif
9052
9053 #ifdef __cplusplus
9054 extern "C" void exit (int);
9055 #endif
9056
9057 void fnord() { int i=42;}
9058 int main ()
9059 {
9060   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9061   int status = $lt_dlunknown;
9062
9063   if (self)
9064     {
9065       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9066       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9067       /* dlclose (self); */
9068     }
9069   else
9070     puts (dlerror ());
9071
9072     exit (status);
9073 }
9074 EOF
9075   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076   (eval $ac_link) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9080     (./conftest; exit; ) >&5 2>/dev/null
9081     lt_status=$?
9082     case x$lt_status in
9083       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9084       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9085       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9086     esac
9087   else :
9088     # compilation failed
9089     lt_cv_dlopen_self=no
9090   fi
9091 fi
9092 rm -fr conftest*
9093
9094
9095 fi
9096 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9097 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9098
9099     if test "x$lt_cv_dlopen_self" = xyes; then
9100       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9101       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9102 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9103 if test "${lt_cv_dlopen_self_static+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106           if test "$cross_compiling" = yes; then :
9107   lt_cv_dlopen_self_static=cross
9108 else
9109   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9110   lt_status=$lt_dlunknown
9111   cat > conftest.$ac_ext <<EOF
9112 #line 9112 "configure"
9113 #include "confdefs.h"
9114
9115 #if HAVE_DLFCN_H
9116 #include <dlfcn.h>
9117 #endif
9118
9119 #include <stdio.h>
9120
9121 #ifdef RTLD_GLOBAL
9122 #  define LT_DLGLOBAL           RTLD_GLOBAL
9123 #else
9124 #  ifdef DL_GLOBAL
9125 #    define LT_DLGLOBAL         DL_GLOBAL
9126 #  else
9127 #    define LT_DLGLOBAL         0
9128 #  endif
9129 #endif
9130
9131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9132    find out it does not work in some platform. */
9133 #ifndef LT_DLLAZY_OR_NOW
9134 #  ifdef RTLD_LAZY
9135 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9136 #  else
9137 #    ifdef DL_LAZY
9138 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9139 #    else
9140 #      ifdef RTLD_NOW
9141 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9142 #      else
9143 #        ifdef DL_NOW
9144 #          define LT_DLLAZY_OR_NOW      DL_NOW
9145 #        else
9146 #          define LT_DLLAZY_OR_NOW      0
9147 #        endif
9148 #      endif
9149 #    endif
9150 #  endif
9151 #endif
9152
9153 #ifdef __cplusplus
9154 extern "C" void exit (int);
9155 #endif
9156
9157 void fnord() { int i=42;}
9158 int main ()
9159 {
9160   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9161   int status = $lt_dlunknown;
9162
9163   if (self)
9164     {
9165       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9166       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9167       /* dlclose (self); */
9168     }
9169   else
9170     puts (dlerror ());
9171
9172     exit (status);
9173 }
9174 EOF
9175   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176   (eval $ac_link) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9180     (./conftest; exit; ) >&5 2>/dev/null
9181     lt_status=$?
9182     case x$lt_status in
9183       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9184       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9185       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9186     esac
9187   else :
9188     # compilation failed
9189     lt_cv_dlopen_self_static=no
9190   fi
9191 fi
9192 rm -fr conftest*
9193
9194
9195 fi
9196 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9197 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9198     fi
9199
9200     CPPFLAGS="$save_CPPFLAGS"
9201     LDFLAGS="$save_LDFLAGS"
9202     LIBS="$save_LIBS"
9203     ;;
9204   esac
9205
9206   case $lt_cv_dlopen_self in
9207   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9208   *) enable_dlopen_self=unknown ;;
9209   esac
9210
9211   case $lt_cv_dlopen_self_static in
9212   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9213   *) enable_dlopen_self_static=unknown ;;
9214   esac
9215 fi
9216
9217
9218 # Report which library types will actually be built
9219 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9220 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9221 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9222 echo "${ECHO_T}$can_build_shared" >&6
9223
9224 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9225 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9226 test "$can_build_shared" = "no" && enable_shared=no
9227
9228 # On AIX, shared libraries and static libraries use the same namespace, and
9229 # are all built from PIC.
9230 case $host_os in
9231 aix3*)
9232   test "$enable_shared" = yes && enable_static=no
9233   if test -n "$RANLIB"; then
9234     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9235     postinstall_cmds='$RANLIB $lib'
9236   fi
9237   ;;
9238
9239 aix4* | aix5*)
9240   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9241     test "$enable_shared" = yes && enable_static=no
9242   fi
9243     ;;
9244 esac
9245 echo "$as_me:$LINENO: result: $enable_shared" >&5
9246 echo "${ECHO_T}$enable_shared" >&6
9247
9248 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9249 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9250 # Make sure either enable_shared or enable_static is yes.
9251 test "$enable_shared" = yes || enable_static=yes
9252 echo "$as_me:$LINENO: result: $enable_static" >&5
9253 echo "${ECHO_T}$enable_static" >&6
9254
9255 # The else clause should only fire when bootstrapping the
9256 # libtool distribution, otherwise you forgot to ship ltmain.sh
9257 # with your package, and you will get complaints that there are
9258 # no rules to generate ltmain.sh.
9259 if test -f "$ltmain"; then
9260   # See if we are running on zsh, and set the options which allow our commands through
9261   # without removal of \ escapes.
9262   if test -n "${ZSH_VERSION+set}" ; then
9263     setopt NO_GLOB_SUBST
9264   fi
9265   # Now quote all the things that may contain metacharacters while being
9266   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9267   # variables and quote the copies for generation of the libtool script.
9268   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9269     SED SHELL STRIP \
9270     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9271     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9272     deplibs_check_method reload_flag reload_cmds need_locks \
9273     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9274     lt_cv_sys_global_symbol_to_c_name_address \
9275     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9276     old_postinstall_cmds old_postuninstall_cmds \
9277     compiler \
9278     CC \
9279     LD \
9280     lt_prog_compiler_wl \
9281     lt_prog_compiler_pic \
9282     lt_prog_compiler_static \
9283     lt_prog_compiler_no_builtin_flag \
9284     export_dynamic_flag_spec \
9285     thread_safe_flag_spec \
9286     whole_archive_flag_spec \
9287     enable_shared_with_static_runtimes \
9288     old_archive_cmds \
9289     old_archive_from_new_cmds \
9290     predep_objects \
9291     postdep_objects \
9292     predeps \
9293     postdeps \
9294     compiler_lib_search_path \
9295     archive_cmds \
9296     archive_expsym_cmds \
9297     postinstall_cmds \
9298     postuninstall_cmds \
9299     old_archive_from_expsyms_cmds \
9300     allow_undefined_flag \
9301     no_undefined_flag \
9302     export_symbols_cmds \
9303     hardcode_libdir_flag_spec \
9304     hardcode_libdir_flag_spec_ld \
9305     hardcode_libdir_separator \
9306     hardcode_automatic \
9307     module_cmds \
9308     module_expsym_cmds \
9309     lt_cv_prog_compiler_c_o \
9310     exclude_expsyms \
9311     include_expsyms; do
9312
9313     case $var in
9314     old_archive_cmds | \
9315     old_archive_from_new_cmds | \
9316     archive_cmds | \
9317     archive_expsym_cmds | \
9318     module_cmds | \
9319     module_expsym_cmds | \
9320     old_archive_from_expsyms_cmds | \
9321     export_symbols_cmds | \
9322     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9323     postinstall_cmds | postuninstall_cmds | \
9324     old_postinstall_cmds | old_postuninstall_cmds | \
9325     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9326       # Double-quote double-evaled strings.
9327       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9328       ;;
9329     *)
9330       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9331       ;;
9332     esac
9333   done
9334
9335   case $lt_echo in
9336   *'\$0 --fallback-echo"')
9337     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9338     ;;
9339   esac
9340
9341 cfgfile="${ofile}T"
9342   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9343   $rm -f "$cfgfile"
9344   { echo "$as_me:$LINENO: creating $ofile" >&5
9345 echo "$as_me: creating $ofile" >&6;}
9346
9347   cat <<__EOF__ >> "$cfgfile"
9348 #! $SHELL
9349
9350 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9351 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9352 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9353 #
9354 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9355 # Free Software Foundation, Inc.
9356 #
9357 # This file is part of GNU Libtool:
9358 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9359 #
9360 # This program is free software; you can redistribute it and/or modify
9361 # it under the terms of the GNU General Public License as published by
9362 # the Free Software Foundation; either version 2 of the License, or
9363 # (at your option) any later version.
9364 #
9365 # This program is distributed in the hope that it will be useful, but
9366 # WITHOUT ANY WARRANTY; without even the implied warranty of
9367 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9368 # General Public License for more details.
9369 #
9370 # You should have received a copy of the GNU General Public License
9371 # along with this program; if not, write to the Free Software
9372 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9373 #
9374 # As a special exception to the GNU General Public License, if you
9375 # distribute this file as part of a program that contains a
9376 # configuration script generated by Autoconf, you may include it under
9377 # the same distribution terms that you use for the rest of that program.
9378
9379 # A sed program that does not truncate output.
9380 SED=$lt_SED
9381
9382 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9383 Xsed="$SED -e 1s/^X//"
9384
9385 # The HP-UX ksh and POSIX shell print the target directory to stdout
9386 # if CDPATH is set.
9387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9388
9389 # The names of the tagged configurations supported by this script.
9390 available_tags=
9391
9392 # ### BEGIN LIBTOOL CONFIG
9393
9394 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9395
9396 # Shell to use when invoking shell scripts.
9397 SHELL=$lt_SHELL
9398
9399 # Whether or not to build shared libraries.
9400 build_libtool_libs=$enable_shared
9401
9402 # Whether or not to build static libraries.
9403 build_old_libs=$enable_static
9404
9405 # Whether or not to add -lc for building shared libraries.
9406 build_libtool_need_lc=$archive_cmds_need_lc
9407
9408 # Whether or not to disallow shared libs when runtime libs are static
9409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9410
9411 # Whether or not to optimize for fast installation.
9412 fast_install=$enable_fast_install
9413
9414 # The host system.
9415 host_alias=$host_alias
9416 host=$host
9417 host_os=$host_os
9418
9419 # The build system.
9420 build_alias=$build_alias
9421 build=$build
9422 build_os=$build_os
9423
9424 # An echo program that does not interpret backslashes.
9425 echo=$lt_echo
9426
9427 # The archiver.
9428 AR=$lt_AR
9429 AR_FLAGS=$lt_AR_FLAGS
9430
9431 # A C compiler.
9432 LTCC=$lt_LTCC
9433
9434 # LTCC compiler flags.
9435 LTCFLAGS=$lt_LTCFLAGS
9436
9437 # A language-specific compiler.
9438 CC=$lt_compiler
9439
9440 # Is the compiler the GNU C compiler?
9441 with_gcc=$GCC
9442
9443 # An ERE matcher.
9444 EGREP=$lt_EGREP
9445
9446 # The linker used to build libraries.
9447 LD=$lt_LD
9448
9449 # Whether we need hard or soft links.
9450 LN_S=$lt_LN_S
9451
9452 # A BSD-compatible nm program.
9453 NM=$lt_NM
9454
9455 # A symbol stripping program
9456 STRIP=$lt_STRIP
9457
9458 # Used to examine libraries when file_magic_cmd begins "file"
9459 MAGIC_CMD=$MAGIC_CMD
9460
9461 # Used on cygwin: DLL creation program.
9462 DLLTOOL="$DLLTOOL"
9463
9464 # Used on cygwin: object dumper.
9465 OBJDUMP="$OBJDUMP"
9466
9467 # Used on cygwin: assembler.
9468 AS="$AS"
9469
9470 # The name of the directory that contains temporary libtool files.
9471 objdir=$objdir
9472
9473 # How to create reloadable object files.
9474 reload_flag=$lt_reload_flag
9475 reload_cmds=$lt_reload_cmds
9476
9477 # How to pass a linker flag through the compiler.
9478 wl=$lt_lt_prog_compiler_wl
9479
9480 # Object file suffix (normally "o").
9481 objext="$ac_objext"
9482
9483 # Old archive suffix (normally "a").
9484 libext="$libext"
9485
9486 # Shared library suffix (normally ".so").
9487 shrext_cmds='$shrext_cmds'
9488
9489 # Executable file suffix (normally "").
9490 exeext="$exeext"
9491
9492 # Additional compiler flags for building library objects.
9493 pic_flag=$lt_lt_prog_compiler_pic
9494 pic_mode=$pic_mode
9495
9496 # What is the maximum length of a command?
9497 max_cmd_len=$lt_cv_sys_max_cmd_len
9498
9499 # Does compiler simultaneously support -c and -o options?
9500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9501
9502 # Must we lock files when doing compilation?
9503 need_locks=$lt_need_locks
9504
9505 # Do we need the lib prefix for modules?
9506 need_lib_prefix=$need_lib_prefix
9507
9508 # Do we need a version for libraries?
9509 need_version=$need_version
9510
9511 # Whether dlopen is supported.
9512 dlopen_support=$enable_dlopen
9513
9514 # Whether dlopen of programs is supported.
9515 dlopen_self=$enable_dlopen_self
9516
9517 # Whether dlopen of statically linked programs is supported.
9518 dlopen_self_static=$enable_dlopen_self_static
9519
9520 # Compiler flag to prevent dynamic linking.
9521 link_static_flag=$lt_lt_prog_compiler_static
9522
9523 # Compiler flag to turn off builtin functions.
9524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9525
9526 # Compiler flag to allow reflexive dlopens.
9527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9528
9529 # Compiler flag to generate shared objects directly from archives.
9530 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9531
9532 # Compiler flag to generate thread-safe objects.
9533 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9534
9535 # Library versioning type.
9536 version_type=$version_type
9537
9538 # Format of library name prefix.
9539 libname_spec=$lt_libname_spec
9540
9541 # List of archive names.  First name is the real one, the rest are links.
9542 # The last name is the one that the linker finds with -lNAME.
9543 library_names_spec=$lt_library_names_spec
9544
9545 # The coded name of the library, if different from the real name.
9546 soname_spec=$lt_soname_spec
9547
9548 # Commands used to build and install an old-style archive.
9549 RANLIB=$lt_RANLIB
9550 old_archive_cmds=$lt_old_archive_cmds
9551 old_postinstall_cmds=$lt_old_postinstall_cmds
9552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9553
9554 # Create an old-style archive from a shared archive.
9555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9556
9557 # Create a temporary old-style archive to link instead of a shared archive.
9558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9559
9560 # Commands used to build and install a shared archive.
9561 archive_cmds=$lt_archive_cmds
9562 archive_expsym_cmds=$lt_archive_expsym_cmds
9563 postinstall_cmds=$lt_postinstall_cmds
9564 postuninstall_cmds=$lt_postuninstall_cmds
9565
9566 # Commands used to build a loadable module (assumed same as above if empty)
9567 module_cmds=$lt_module_cmds
9568 module_expsym_cmds=$lt_module_expsym_cmds
9569
9570 # Commands to strip libraries.
9571 old_striplib=$lt_old_striplib
9572 striplib=$lt_striplib
9573
9574 # Dependencies to place before the objects being linked to create a
9575 # shared library.
9576 predep_objects=$lt_predep_objects
9577
9578 # Dependencies to place after the objects being linked to create a
9579 # shared library.
9580 postdep_objects=$lt_postdep_objects
9581
9582 # Dependencies to place before the objects being linked to create a
9583 # shared library.
9584 predeps=$lt_predeps
9585
9586 # Dependencies to place after the objects being linked to create a
9587 # shared library.
9588 postdeps=$lt_postdeps
9589
9590 # The library search path used internally by the compiler when linking
9591 # a shared library.
9592 compiler_lib_search_path=$lt_compiler_lib_search_path
9593
9594 # Method to check whether dependent libraries are shared objects.
9595 deplibs_check_method=$lt_deplibs_check_method
9596
9597 # Command to use when deplibs_check_method == file_magic.
9598 file_magic_cmd=$lt_file_magic_cmd
9599
9600 # Flag that allows shared libraries with undefined symbols to be built.
9601 allow_undefined_flag=$lt_allow_undefined_flag
9602
9603 # Flag that forces no undefined symbols.
9604 no_undefined_flag=$lt_no_undefined_flag
9605
9606 # Commands used to finish a libtool library installation in a directory.
9607 finish_cmds=$lt_finish_cmds
9608
9609 # Same as above, but a single script fragment to be evaled but not shown.
9610 finish_eval=$lt_finish_eval
9611
9612 # Take the output of nm and produce a listing of raw symbols and C names.
9613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9614
9615 # Transform the output of nm in a proper C declaration
9616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9617
9618 # Transform the output of nm in a C name address pair
9619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9620
9621 # This is the shared library runtime path variable.
9622 runpath_var=$runpath_var
9623
9624 # This is the shared library path variable.
9625 shlibpath_var=$shlibpath_var
9626
9627 # Is shlibpath searched before the hard-coded library search path?
9628 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9629
9630 # How to hardcode a shared library path into an executable.
9631 hardcode_action=$hardcode_action
9632
9633 # Whether we should hardcode library paths into libraries.
9634 hardcode_into_libs=$hardcode_into_libs
9635
9636 # Flag to hardcode \$libdir into a binary during linking.
9637 # This must work even if \$libdir does not exist.
9638 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9639
9640 # If ld is used when linking, flag to hardcode \$libdir into
9641 # a binary during linking. This must work even if \$libdir does
9642 # not exist.
9643 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9644
9645 # Whether we need a single -rpath flag with a separated argument.
9646 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9647
9648 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9649 # resulting binary.
9650 hardcode_direct=$hardcode_direct
9651
9652 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9653 # resulting binary.
9654 hardcode_minus_L=$hardcode_minus_L
9655
9656 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9657 # the resulting binary.
9658 hardcode_shlibpath_var=$hardcode_shlibpath_var
9659
9660 # Set to yes if building a shared library automatically hardcodes DIR into the library
9661 # and all subsequent libraries and executables linked against it.
9662 hardcode_automatic=$hardcode_automatic
9663
9664 # Variables whose values should be saved in libtool wrapper scripts and
9665 # restored at relink time.
9666 variables_saved_for_relink="$variables_saved_for_relink"
9667
9668 # Whether libtool must link a program against all its dependency libraries.
9669 link_all_deplibs=$link_all_deplibs
9670
9671 # Compile-time system search path for libraries
9672 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9673
9674 # Run-time system search path for libraries
9675 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9676
9677 # Fix the shell variable \$srcfile for the compiler.
9678 fix_srcfile_path="$fix_srcfile_path"
9679
9680 # Set to yes if exported symbols are required.
9681 always_export_symbols=$always_export_symbols
9682
9683 # The commands to list exported symbols.
9684 export_symbols_cmds=$lt_export_symbols_cmds
9685
9686 # The commands to extract the exported symbol list from a shared archive.
9687 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9688
9689 # Symbols that should not be listed in the preloaded symbols.
9690 exclude_expsyms=$lt_exclude_expsyms
9691
9692 # Symbols that must always be exported.
9693 include_expsyms=$lt_include_expsyms
9694
9695 # ### END LIBTOOL CONFIG
9696
9697 __EOF__
9698
9699
9700   case $host_os in
9701   aix3*)
9702     cat <<\EOF >> "$cfgfile"
9703
9704 # AIX sometimes has problems with the GCC collect2 program.  For some
9705 # reason, if we set the COLLECT_NAMES environment variable, the problems
9706 # vanish in a puff of smoke.
9707 if test "X${COLLECT_NAMES+set}" != Xset; then
9708   COLLECT_NAMES=
9709   export COLLECT_NAMES
9710 fi
9711 EOF
9712     ;;
9713   esac
9714
9715   # We use sed instead of cat because bash on DJGPP gets confused if
9716   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9717   # text mode, it properly converts lines to CR/LF.  This bash problem
9718   # is reportedly fixed, but why not run on old versions too?
9719   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9720
9721   mv -f "$cfgfile" "$ofile" || \
9722     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9723   chmod +x "$ofile"
9724
9725 else
9726   # If there is no Makefile yet, we rely on a make rule to execute
9727   # `config.status --recheck' to rerun these tests and create the
9728   # libtool script then.
9729   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9730   if test -f "$ltmain_in"; then
9731     test -f Makefile && make "$ltmain"
9732   fi
9733 fi
9734
9735
9736 ac_ext=c
9737 ac_cpp='$CPP $CPPFLAGS'
9738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9741
9742 CC="$lt_save_CC"
9743
9744
9745 # Check whether --with-tags or --without-tags was given.
9746 if test "${with_tags+set}" = set; then
9747   withval="$with_tags"
9748   tagnames="$withval"
9749 fi;
9750
9751 if test -f "$ltmain" && test -n "$tagnames"; then
9752   if test ! -f "${ofile}"; then
9753     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9754 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9755   fi
9756
9757   if test -z "$LTCC"; then
9758     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9759     if test -z "$LTCC"; then
9760       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9761 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9762     else
9763       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9764 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9765     fi
9766   fi
9767   if test -z "$LTCFLAGS"; then
9768     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9769   fi
9770
9771   # Extract list of available tagged configurations in $ofile.
9772   # Note that this assumes the entire list is on one line.
9773   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9774
9775   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9776   for tagname in $tagnames; do
9777     IFS="$lt_save_ifs"
9778     # Check whether tagname contains only valid characters
9779     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9780     "") ;;
9781     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9782 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9783    { (exit 1); exit 1; }; }
9784         ;;
9785     esac
9786
9787     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9788     then
9789       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9790 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9791    { (exit 1); exit 1; }; }
9792     fi
9793
9794     # Update the list of available tags.
9795     if test -n "$tagname"; then
9796       echo appending configuration tag \"$tagname\" to $ofile
9797
9798       case $tagname in
9799       CXX)
9800         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9801             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9802             (test "X$CXX" != "Xg++"))) ; then
9803           ac_ext=cc
9804 ac_cpp='$CXXCPP $CPPFLAGS'
9805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9808
9809
9810
9811
9812 archive_cmds_need_lc_CXX=no
9813 allow_undefined_flag_CXX=
9814 always_export_symbols_CXX=no
9815 archive_expsym_cmds_CXX=
9816 export_dynamic_flag_spec_CXX=
9817 hardcode_direct_CXX=no
9818 hardcode_libdir_flag_spec_CXX=
9819 hardcode_libdir_flag_spec_ld_CXX=
9820 hardcode_libdir_separator_CXX=
9821 hardcode_minus_L_CXX=no
9822 hardcode_shlibpath_var_CXX=unsupported
9823 hardcode_automatic_CXX=no
9824 module_cmds_CXX=
9825 module_expsym_cmds_CXX=
9826 link_all_deplibs_CXX=unknown
9827 old_archive_cmds_CXX=$old_archive_cmds
9828 no_undefined_flag_CXX=
9829 whole_archive_flag_spec_CXX=
9830 enable_shared_with_static_runtimes_CXX=no
9831
9832 # Dependencies to place before and after the object being linked:
9833 predep_objects_CXX=
9834 postdep_objects_CXX=
9835 predeps_CXX=
9836 postdeps_CXX=
9837 compiler_lib_search_path_CXX=
9838
9839 # Source file extension for C++ test sources.
9840 ac_ext=cpp
9841
9842 # Object file extension for compiled C++ test sources.
9843 objext=o
9844 objext_CXX=$objext
9845
9846 # Code to be used in simple compile tests
9847 lt_simple_compile_test_code="int some_variable = 0;\n"
9848
9849 # Code to be used in simple link tests
9850 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9851
9852 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9853
9854 # If no C compiler was specified, use CC.
9855 LTCC=${LTCC-"$CC"}
9856
9857 # If no C compiler flags were specified, use CFLAGS.
9858 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9859
9860 # Allow CC to be a program name with arguments.
9861 compiler=$CC
9862
9863
9864 # save warnings/boilerplate of simple test code
9865 ac_outfile=conftest.$ac_objext
9866 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9868 _lt_compiler_boilerplate=`cat conftest.err`
9869 $rm conftest*
9870
9871 ac_outfile=conftest.$ac_objext
9872 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9874 _lt_linker_boilerplate=`cat conftest.err`
9875 $rm conftest*
9876
9877
9878 # Allow CC to be a program name with arguments.
9879 lt_save_CC=$CC
9880 lt_save_LD=$LD
9881 lt_save_GCC=$GCC
9882 GCC=$GXX
9883 lt_save_with_gnu_ld=$with_gnu_ld
9884 lt_save_path_LD=$lt_cv_path_LD
9885 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9886   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9887 else
9888   $as_unset lt_cv_prog_gnu_ld
9889 fi
9890 if test -n "${lt_cv_path_LDCXX+set}"; then
9891   lt_cv_path_LD=$lt_cv_path_LDCXX
9892 else
9893   $as_unset lt_cv_path_LD
9894 fi
9895 test -z "${LDCXX+set}" || LD=$LDCXX
9896 CC=${CXX-"c++"}
9897 compiler=$CC
9898 compiler_CXX=$CC
9899 for cc_temp in $compiler""; do
9900   case $cc_temp in
9901     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9902     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9903     \-*) ;;
9904     *) break;;
9905   esac
9906 done
9907 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9908
9909
9910 # We don't want -fno-exception wen compiling C++ code, so set the
9911 # no_builtin_flag separately
9912 if test "$GXX" = yes; then
9913   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9914 else
9915   lt_prog_compiler_no_builtin_flag_CXX=
9916 fi
9917
9918 if test "$GXX" = yes; then
9919   # Set up default GNU C++ configuration
9920
9921
9922 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9923 if test "${with_gnu_ld+set}" = set; then
9924   withval="$with_gnu_ld"
9925   test "$withval" = no || with_gnu_ld=yes
9926 else
9927   with_gnu_ld=no
9928 fi;
9929 ac_prog=ld
9930 if test "$GCC" = yes; then
9931   # Check if gcc -print-prog-name=ld gives a path.
9932   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9933 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9934   case $host in
9935   *-*-mingw*)
9936     # gcc leaves a trailing carriage return which upsets mingw
9937     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9938   *)
9939     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9940   esac
9941   case $ac_prog in
9942     # Accept absolute paths.
9943     [\\/]* | ?:[\\/]*)
9944       re_direlt='/[^/][^/]*/\.\./'
9945       # Canonicalize the pathname of ld
9946       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9947       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9948         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9949       done
9950       test -z "$LD" && LD="$ac_prog"
9951       ;;
9952   "")
9953     # If it fails, then pretend we aren't using GCC.
9954     ac_prog=ld
9955     ;;
9956   *)
9957     # If it is relative, then search for the first ld in PATH.
9958     with_gnu_ld=unknown
9959     ;;
9960   esac
9961 elif test "$with_gnu_ld" = yes; then
9962   echo "$as_me:$LINENO: checking for GNU ld" >&5
9963 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9964 else
9965   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9966 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9967 fi
9968 if test "${lt_cv_path_LD+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   if test -z "$LD"; then
9972   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9973   for ac_dir in $PATH; do
9974     IFS="$lt_save_ifs"
9975     test -z "$ac_dir" && ac_dir=.
9976     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9977       lt_cv_path_LD="$ac_dir/$ac_prog"
9978       # Check to see if the program is GNU ld.  I'd rather use --version,
9979       # but apparently some variants of GNU ld only accept -v.
9980       # Break only if it was the GNU/non-GNU ld that we prefer.
9981       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9982       *GNU* | *'with BFD'*)
9983         test "$with_gnu_ld" != no && break
9984         ;;
9985       *)
9986         test "$with_gnu_ld" != yes && break
9987         ;;
9988       esac
9989     fi
9990   done
9991   IFS="$lt_save_ifs"
9992 else
9993   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9994 fi
9995 fi
9996
9997 LD="$lt_cv_path_LD"
9998 if test -n "$LD"; then
9999   echo "$as_me:$LINENO: result: $LD" >&5
10000 echo "${ECHO_T}$LD" >&6
10001 else
10002   echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10004 fi
10005 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10006 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10007    { (exit 1); exit 1; }; }
10008 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10009 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10010 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10014 case `$LD -v 2>&1 </dev/null` in
10015 *GNU* | *'with BFD'*)
10016   lt_cv_prog_gnu_ld=yes
10017   ;;
10018 *)
10019   lt_cv_prog_gnu_ld=no
10020   ;;
10021 esac
10022 fi
10023 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10024 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10025 with_gnu_ld=$lt_cv_prog_gnu_ld
10026
10027
10028
10029   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10030   # archiving commands below assume that GNU ld is being used.
10031   if test "$with_gnu_ld" = yes; then
10032     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10033     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'
10034
10035     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10036     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10037
10038     # If archive_cmds runs LD, not CC, wlarc should be empty
10039     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10040     #     investigate it a little bit more. (MM)
10041     wlarc='${wl}'
10042
10043     # ancient GNU ld didn't support --whole-archive et. al.
10044     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10045         grep 'no-whole-archive' > /dev/null; then
10046       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10047     else
10048       whole_archive_flag_spec_CXX=
10049     fi
10050   else
10051     with_gnu_ld=no
10052     wlarc=
10053
10054     # A generic and very simple default shared library creation
10055     # command for GNU C++ for the case where it uses the native
10056     # linker, instead of GNU ld.  If possible, this setting should
10057     # overridden to take advantage of the native linker features on
10058     # the platform it is being used on.
10059     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10060   fi
10061
10062   # Commands to make compiler produce verbose output that lists
10063   # what "hidden" libraries, object files and flags are used when
10064   # linking a shared library.
10065   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10066
10067 else
10068   GXX=no
10069   with_gnu_ld=no
10070   wlarc=
10071 fi
10072
10073 # PORTME: fill in a description of your system's C++ link characteristics
10074 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10075 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10076 ld_shlibs_CXX=yes
10077 case $host_os in
10078   aix3*)
10079     # FIXME: insert proper C++ library support
10080     ld_shlibs_CXX=no
10081     ;;
10082   aix4* | aix5*)
10083     if test "$host_cpu" = ia64; then
10084       # On IA64, the linker does run time linking by default, so we don't
10085       # have to do anything special.
10086       aix_use_runtimelinking=no
10087       exp_sym_flag='-Bexport'
10088       no_entry_flag=""
10089     else
10090       aix_use_runtimelinking=no
10091
10092       # Test if we are trying to use run time linking or normal
10093       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10094       # need to do runtime linking.
10095       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10096         for ld_flag in $LDFLAGS; do
10097           case $ld_flag in
10098           *-brtl*)
10099             aix_use_runtimelinking=yes
10100             break
10101             ;;
10102           esac
10103         done
10104         ;;
10105       esac
10106
10107       exp_sym_flag='-bexport'
10108       no_entry_flag='-bnoentry'
10109     fi
10110
10111     # When large executables or shared objects are built, AIX ld can
10112     # have problems creating the table of contents.  If linking a library
10113     # or program results in "error TOC overflow" add -mminimal-toc to
10114     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10115     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10116
10117     archive_cmds_CXX=''
10118     hardcode_direct_CXX=yes
10119     hardcode_libdir_separator_CXX=':'
10120     link_all_deplibs_CXX=yes
10121
10122     if test "$GXX" = yes; then
10123       case $host_os in aix4.[012]|aix4.[012].*)
10124       # We only want to do this on AIX 4.2 and lower, the check
10125       # below for broken collect2 doesn't work under 4.3+
10126         collect2name=`${CC} -print-prog-name=collect2`
10127         if test -f "$collect2name" && \
10128            strings "$collect2name" | grep resolve_lib_name >/dev/null
10129         then
10130           # We have reworked collect2
10131           hardcode_direct_CXX=yes
10132         else
10133           # We have old collect2
10134           hardcode_direct_CXX=unsupported
10135           # It fails to find uninstalled libraries when the uninstalled
10136           # path is not listed in the libpath.  Setting hardcode_minus_L
10137           # to unsupported forces relinking
10138           hardcode_minus_L_CXX=yes
10139           hardcode_libdir_flag_spec_CXX='-L$libdir'
10140           hardcode_libdir_separator_CXX=
10141         fi
10142         ;;
10143       esac
10144       shared_flag='-shared'
10145       if test "$aix_use_runtimelinking" = yes; then
10146         shared_flag="$shared_flag "'${wl}-G'
10147       fi
10148     else
10149       # not using gcc
10150       if test "$host_cpu" = ia64; then
10151         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10152         # chokes on -Wl,-G. The following line is correct:
10153         shared_flag='-G'
10154       else
10155         if test "$aix_use_runtimelinking" = yes; then
10156           shared_flag='${wl}-G'
10157         else
10158           shared_flag='${wl}-bM:SRE'
10159         fi
10160       fi
10161     fi
10162
10163     # It seems that -bexpall does not export symbols beginning with
10164     # underscore (_), so it is better to generate a list of symbols to export.
10165     always_export_symbols_CXX=yes
10166     if test "$aix_use_runtimelinking" = yes; then
10167       # Warning - without using the other runtime loading flags (-brtl),
10168       # -berok will link without error, but may produce a broken library.
10169       allow_undefined_flag_CXX='-berok'
10170       # Determine the default libpath from the value encoded in an empty executable.
10171       cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177
10178 int
10179 main ()
10180 {
10181
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188   (eval $ac_link) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_cxx_werror_flag"
10196                          || test ! -s conftest.err'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; } &&
10202          { ac_try='test -s conftest$ac_exeext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208
10209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10210 }'`
10211 # Check for a 64-bit object if we didn't find anything.
10212 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; }
10213 }'`; fi
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 fi
10219 rm -f conftest.err conftest.$ac_objext \
10220       conftest$ac_exeext conftest.$ac_ext
10221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10222
10223       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10224
10225       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10226      else
10227       if test "$host_cpu" = ia64; then
10228         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10229         allow_undefined_flag_CXX="-z nodefs"
10230         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10231       else
10232         # Determine the default libpath from the value encoded in an empty executable.
10233         cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239
10240 int
10241 main ()
10242 {
10243
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250   (eval $ac_link) 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_cxx_werror_flag"
10258                          || test ! -s conftest.err'
10259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260   (eval $ac_try) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; } &&
10264          { ac_try='test -s conftest$ac_exeext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270
10271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10272 }'`
10273 # Check for a 64-bit object if we didn't find anything.
10274 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; }
10275 }'`; fi
10276 else
10277   echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 fi
10281 rm -f conftest.err conftest.$ac_objext \
10282       conftest$ac_exeext conftest.$ac_ext
10283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10284
10285         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10286         # Warning - without using the other run time loading flags,
10287         # -berok will link without error, but may produce a broken library.
10288         no_undefined_flag_CXX=' ${wl}-bernotok'
10289         allow_undefined_flag_CXX=' ${wl}-berok'
10290         # Exported symbols can be pulled into shared objects from archives
10291         whole_archive_flag_spec_CXX='$convenience'
10292         archive_cmds_need_lc_CXX=yes
10293         # This is similar to how AIX traditionally builds its shared libraries.
10294         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10295       fi
10296     fi
10297     ;;
10298
10299   beos*)
10300     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10301       allow_undefined_flag_CXX=unsupported
10302       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10303       # support --undefined.  This deserves some investigation.  FIXME
10304       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305     else
10306       ld_shlibs_CXX=no
10307     fi
10308     ;;
10309
10310   chorus*)
10311     case $cc_basename in
10312       *)
10313         # FIXME: insert proper C++ library support
10314         ld_shlibs_CXX=no
10315         ;;
10316     esac
10317     ;;
10318
10319   cygwin* | mingw* | pw32*)
10320     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10321     # as there is no search path for DLLs.
10322     hardcode_libdir_flag_spec_CXX='-L$libdir'
10323     allow_undefined_flag_CXX=unsupported
10324     always_export_symbols_CXX=no
10325     enable_shared_with_static_runtimes_CXX=yes
10326
10327     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10328       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10329       # If the export-symbols file already is a .def file (1st line
10330       # is EXPORTS), use it as is; otherwise, prepend...
10331       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10332         cp $export_symbols $output_objdir/$soname.def;
10333       else
10334         echo EXPORTS > $output_objdir/$soname.def;
10335         cat $export_symbols >> $output_objdir/$soname.def;
10336       fi~
10337       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10338     else
10339       ld_shlibs_CXX=no
10340     fi
10341   ;;
10342       darwin* | rhapsody*)
10343         case $host_os in
10344         rhapsody* | darwin1.[012])
10345          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10346          ;;
10347        *) # Darwin 1.3 on
10348          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10349            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10350          else
10351            case ${MACOSX_DEPLOYMENT_TARGET} in
10352              10.[012])
10353                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10354                ;;
10355              10.*)
10356                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10357                ;;
10358            esac
10359          fi
10360          ;;
10361         esac
10362       archive_cmds_need_lc_CXX=no
10363       hardcode_direct_CXX=no
10364       hardcode_automatic_CXX=yes
10365       hardcode_shlibpath_var_CXX=unsupported
10366       whole_archive_flag_spec_CXX=''
10367       link_all_deplibs_CXX=yes
10368
10369     if test "$GXX" = yes ; then
10370       lt_int_apple_cc_single_mod=no
10371       output_verbose_link_cmd='echo'
10372       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10373        lt_int_apple_cc_single_mod=yes
10374       fi
10375       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10376        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10377       else
10378           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10379         fi
10380         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10381         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10382           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10383             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}'
10384           else
10385             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10386           fi
10387             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}'
10388       else
10389       case $cc_basename in
10390         xlc*)
10391          output_verbose_link_cmd='echo'
10392           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10393           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10394           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10395           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10396           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}'
10397           ;;
10398        *)
10399          ld_shlibs_CXX=no
10400           ;;
10401       esac
10402       fi
10403         ;;
10404
10405   dgux*)
10406     case $cc_basename in
10407       ec++*)
10408         # FIXME: insert proper C++ library support
10409         ld_shlibs_CXX=no
10410         ;;
10411       ghcx*)
10412         # Green Hills C++ Compiler
10413         # FIXME: insert proper C++ library support
10414         ld_shlibs_CXX=no
10415         ;;
10416       *)
10417         # FIXME: insert proper C++ library support
10418         ld_shlibs_CXX=no
10419         ;;
10420     esac
10421     ;;
10422   freebsd[12]*)
10423     # C++ shared libraries reported to be fairly broken before switch to ELF
10424     ld_shlibs_CXX=no
10425     ;;
10426   freebsd-elf*)
10427     archive_cmds_need_lc_CXX=no
10428     ;;
10429   freebsd* | kfreebsd*-gnu | dragonfly*)
10430     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10431     # conventions
10432     ld_shlibs_CXX=yes
10433     ;;
10434   gnu*)
10435     ;;
10436   hpux9*)
10437     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10438     hardcode_libdir_separator_CXX=:
10439     export_dynamic_flag_spec_CXX='${wl}-E'
10440     hardcode_direct_CXX=yes
10441     hardcode_minus_L_CXX=yes # Not in the search PATH,
10442                                 # but as the default
10443                                 # location of the library.
10444
10445     case $cc_basename in
10446     CC*)
10447       # FIXME: insert proper C++ library support
10448       ld_shlibs_CXX=no
10449       ;;
10450     aCC*)
10451       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'
10452       # Commands to make compiler produce verbose output that lists
10453       # what "hidden" libraries, object files and flags are used when
10454       # linking a shared library.
10455       #
10456       # There doesn't appear to be a way to prevent this compiler from
10457       # explicitly linking system object files so we need to strip them
10458       # from the output so that they don't get included in the library
10459       # dependencies.
10460       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'
10461       ;;
10462     *)
10463       if test "$GXX" = yes; then
10464         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'
10465       else
10466         # FIXME: insert proper C++ library support
10467         ld_shlibs_CXX=no
10468       fi
10469       ;;
10470     esac
10471     ;;
10472   hpux10*|hpux11*)
10473     if test $with_gnu_ld = no; then
10474       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10475       hardcode_libdir_separator_CXX=:
10476
10477       case $host_cpu in
10478       hppa*64*|ia64*)
10479         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10480         ;;
10481       *)
10482         export_dynamic_flag_spec_CXX='${wl}-E'
10483         ;;
10484       esac
10485     fi
10486     case $host_cpu in
10487     hppa*64*|ia64*)
10488       hardcode_direct_CXX=no
10489       hardcode_shlibpath_var_CXX=no
10490       ;;
10491     *)
10492       hardcode_direct_CXX=yes
10493       hardcode_minus_L_CXX=yes # Not in the search PATH,
10494                                               # but as the default
10495                                               # location of the library.
10496       ;;
10497     esac
10498
10499     case $cc_basename in
10500       CC*)
10501         # FIXME: insert proper C++ library support
10502         ld_shlibs_CXX=no
10503         ;;
10504       aCC*)
10505         case $host_cpu in
10506         hppa*64*)
10507           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10508           ;;
10509         ia64*)
10510           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10511           ;;
10512         *)
10513           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10514           ;;
10515         esac
10516         # Commands to make compiler produce verbose output that lists
10517         # what "hidden" libraries, object files and flags are used when
10518         # linking a shared library.
10519         #
10520         # There doesn't appear to be a way to prevent this compiler from
10521         # explicitly linking system object files so we need to strip them
10522         # from the output so that they don't get included in the library
10523         # dependencies.
10524         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'
10525         ;;
10526       *)
10527         if test "$GXX" = yes; then
10528           if test $with_gnu_ld = no; then
10529             case $host_cpu in
10530             hppa*64*)
10531               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10532               ;;
10533             ia64*)
10534               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10535               ;;
10536             *)
10537               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'
10538               ;;
10539             esac
10540           fi
10541         else
10542           # FIXME: insert proper C++ library support
10543           ld_shlibs_CXX=no
10544         fi
10545         ;;
10546     esac
10547     ;;
10548   interix3*)
10549     hardcode_direct_CXX=no
10550     hardcode_shlibpath_var_CXX=no
10551     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10552     export_dynamic_flag_spec_CXX='${wl}-E'
10553     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10554     # Instead, shared libraries are loaded at an image base (0x10000000 by
10555     # default) and relocated if they conflict, which is a slow very memory
10556     # consuming and fragmenting process.  To avoid this, we pick a random,
10557     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10558     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10559     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10560     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10561     ;;
10562   irix5* | irix6*)
10563     case $cc_basename in
10564       CC*)
10565         # SGI C++
10566         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10567
10568         # Archives containing C++ object files must be created using
10569         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10570         # necessary to make sure instantiated templates are included
10571         # in the archive.
10572         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10573         ;;
10574       *)
10575         if test "$GXX" = yes; then
10576           if test "$with_gnu_ld" = no; then
10577             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10578           else
10579             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'
10580           fi
10581         fi
10582         link_all_deplibs_CXX=yes
10583         ;;
10584     esac
10585     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10586     hardcode_libdir_separator_CXX=:
10587     ;;
10588   linux*)
10589     case $cc_basename in
10590       KCC*)
10591         # Kuck and Associates, Inc. (KAI) C++ Compiler
10592
10593         # KCC will only create a shared library if the output file
10594         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10595         # to its proper name (with version) after linking.
10596         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'
10597         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'
10598         # Commands to make compiler produce verbose output that lists
10599         # what "hidden" libraries, object files and flags are used when
10600         # linking a shared library.
10601         #
10602         # There doesn't appear to be a way to prevent this compiler from
10603         # explicitly linking system object files so we need to strip them
10604         # from the output so that they don't get included in the library
10605         # dependencies.
10606         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'
10607
10608         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10609         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10610
10611         # Archives containing C++ object files must be created using
10612         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10613         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10614         ;;
10615       icpc*)
10616         # Intel C++
10617         with_gnu_ld=yes
10618         # version 8.0 and above of icpc choke on multiply defined symbols
10619         # if we add $predep_objects and $postdep_objects, however 7.1 and
10620         # earlier do not add the objects themselves.
10621         case `$CC -V 2>&1` in
10622         *"Version 7."*)
10623           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10624           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'
10625           ;;
10626         *)  # Version 8.0 or newer
10627           tmp_idyn=
10628           case $host_cpu in
10629             ia64*) tmp_idyn=' -i_dynamic';;
10630           esac
10631           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10632           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10633           ;;
10634         esac
10635         archive_cmds_need_lc_CXX=no
10636         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10637         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10638         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10639         ;;
10640       pgCC*)
10641         # Portland Group C++ compiler
10642         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10643         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10644
10645         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10646         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10647         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10648         ;;
10649       cxx*)
10650         # Compaq C++
10651         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10652         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'
10653
10654         runpath_var=LD_RUN_PATH
10655         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10656         hardcode_libdir_separator_CXX=:
10657
10658         # Commands to make compiler produce verbose output that lists
10659         # what "hidden" libraries, object files and flags are used when
10660         # linking a shared library.
10661         #
10662         # There doesn't appear to be a way to prevent this compiler from
10663         # explicitly linking system object files so we need to strip them
10664         # from the output so that they don't get included in the library
10665         # dependencies.
10666         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'
10667         ;;
10668     esac
10669     ;;
10670   lynxos*)
10671     # FIXME: insert proper C++ library support
10672     ld_shlibs_CXX=no
10673     ;;
10674   m88k*)
10675     # FIXME: insert proper C++ library support
10676     ld_shlibs_CXX=no
10677     ;;
10678   mvs*)
10679     case $cc_basename in
10680       cxx*)
10681         # FIXME: insert proper C++ library support
10682         ld_shlibs_CXX=no
10683         ;;
10684       *)
10685         # FIXME: insert proper C++ library support
10686         ld_shlibs_CXX=no
10687         ;;
10688     esac
10689     ;;
10690   netbsd*)
10691     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10692       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10693       wlarc=
10694       hardcode_libdir_flag_spec_CXX='-R$libdir'
10695       hardcode_direct_CXX=yes
10696       hardcode_shlibpath_var_CXX=no
10697     fi
10698     # Workaround some broken pre-1.5 toolchains
10699     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10700     ;;
10701   openbsd2*)
10702     # C++ shared libraries are fairly broken
10703     ld_shlibs_CXX=no
10704     ;;
10705   openbsd*)
10706     hardcode_direct_CXX=yes
10707     hardcode_shlibpath_var_CXX=no
10708     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10709     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10710     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10711       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10712       export_dynamic_flag_spec_CXX='${wl}-E'
10713       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10714     fi
10715     output_verbose_link_cmd='echo'
10716     ;;
10717   osf3*)
10718     case $cc_basename in
10719       KCC*)
10720         # Kuck and Associates, Inc. (KAI) C++ Compiler
10721
10722         # KCC will only create a shared library if the output file
10723         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10724         # to its proper name (with version) after linking.
10725         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'
10726
10727         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10728         hardcode_libdir_separator_CXX=:
10729
10730         # Archives containing C++ object files must be created using
10731         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10732         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10733
10734         ;;
10735       RCC*)
10736         # Rational C++ 2.4.1
10737         # FIXME: insert proper C++ library support
10738         ld_shlibs_CXX=no
10739         ;;
10740       cxx*)
10741         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10742         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10743
10744         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10745         hardcode_libdir_separator_CXX=:
10746
10747         # Commands to make compiler produce verbose output that lists
10748         # what "hidden" libraries, object files and flags are used when
10749         # linking a shared library.
10750         #
10751         # There doesn't appear to be a way to prevent this compiler from
10752         # explicitly linking system object files so we need to strip them
10753         # from the output so that they don't get included in the library
10754         # dependencies.
10755         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'
10756         ;;
10757       *)
10758         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10759           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10760           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10761
10762           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10763           hardcode_libdir_separator_CXX=:
10764
10765           # Commands to make compiler produce verbose output that lists
10766           # what "hidden" libraries, object files and flags are used when
10767           # linking a shared library.
10768           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10769
10770         else
10771           # FIXME: insert proper C++ library support
10772           ld_shlibs_CXX=no
10773         fi
10774         ;;
10775     esac
10776     ;;
10777   osf4* | osf5*)
10778     case $cc_basename in
10779       KCC*)
10780         # Kuck and Associates, Inc. (KAI) C++ Compiler
10781
10782         # KCC will only create a shared library if the output file
10783         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10784         # to its proper name (with version) after linking.
10785         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'
10786
10787         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10788         hardcode_libdir_separator_CXX=:
10789
10790         # Archives containing C++ object files must be created using
10791         # the KAI C++ compiler.
10792         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10793         ;;
10794       RCC*)
10795         # Rational C++ 2.4.1
10796         # FIXME: insert proper C++ library support
10797         ld_shlibs_CXX=no
10798         ;;
10799       cxx*)
10800         allow_undefined_flag_CXX=' -expect_unresolved \*'
10801         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10802         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10803           echo "-hidden">> $lib.exp~
10804           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10805           $rm $lib.exp'
10806
10807         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10808         hardcode_libdir_separator_CXX=:
10809
10810         # Commands to make compiler produce verbose output that lists
10811         # what "hidden" libraries, object files and flags are used when
10812         # linking a shared library.
10813         #
10814         # There doesn't appear to be a way to prevent this compiler from
10815         # explicitly linking system object files so we need to strip them
10816         # from the output so that they don't get included in the library
10817         # dependencies.
10818         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'
10819         ;;
10820       *)
10821         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10822           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10823          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10824
10825           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10826           hardcode_libdir_separator_CXX=:
10827
10828           # Commands to make compiler produce verbose output that lists
10829           # what "hidden" libraries, object files and flags are used when
10830           # linking a shared library.
10831           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10832
10833         else
10834           # FIXME: insert proper C++ library support
10835           ld_shlibs_CXX=no
10836         fi
10837         ;;
10838     esac
10839     ;;
10840   psos*)
10841     # FIXME: insert proper C++ library support
10842     ld_shlibs_CXX=no
10843     ;;
10844   sunos4*)
10845     case $cc_basename in
10846       CC*)
10847         # Sun C++ 4.x
10848         # FIXME: insert proper C++ library support
10849         ld_shlibs_CXX=no
10850         ;;
10851       lcc*)
10852         # Lucid
10853         # FIXME: insert proper C++ library support
10854         ld_shlibs_CXX=no
10855         ;;
10856       *)
10857         # FIXME: insert proper C++ library support
10858         ld_shlibs_CXX=no
10859         ;;
10860     esac
10861     ;;
10862   solaris*)
10863     case $cc_basename in
10864       CC*)
10865         # Sun C++ 4.2, 5.x and Centerline C++
10866         archive_cmds_need_lc_CXX=yes
10867         no_undefined_flag_CXX=' -zdefs'
10868         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10869         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10870         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10871
10872         hardcode_libdir_flag_spec_CXX='-R$libdir'
10873         hardcode_shlibpath_var_CXX=no
10874         case $host_os in
10875           solaris2.[0-5] | solaris2.[0-5].*) ;;
10876           *)
10877             # The C++ compiler is used as linker so we must use $wl
10878             # flag to pass the commands to the underlying system
10879             # linker. We must also pass each convience library through
10880             # to the system linker between allextract/defaultextract.
10881             # The C++ compiler will combine linker options so we
10882             # cannot just pass the convience library names through
10883             # without $wl.
10884             # Supported since Solaris 2.6 (maybe 2.5.1?)
10885             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10886             ;;
10887         esac
10888         link_all_deplibs_CXX=yes
10889
10890         output_verbose_link_cmd='echo'
10891
10892         # Archives containing C++ object files must be created using
10893         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10894         # necessary to make sure instantiated templates are included
10895         # in the archive.
10896         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10897         ;;
10898       gcx*)
10899         # Green Hills C++ Compiler
10900         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10901
10902         # The C++ compiler must be used to create the archive.
10903         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10904         ;;
10905       *)
10906         # GNU C++ compiler with Solaris linker
10907         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10908           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10909           if $CC --version | grep -v '^2\.7' > /dev/null; then
10910             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10911             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10912                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10913
10914             # Commands to make compiler produce verbose output that lists
10915             # what "hidden" libraries, object files and flags are used when
10916             # linking a shared library.
10917             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10918           else
10919             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10920             # platform.
10921             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10922             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10923                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10924
10925             # Commands to make compiler produce verbose output that lists
10926             # what "hidden" libraries, object files and flags are used when
10927             # linking a shared library.
10928             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10929           fi
10930
10931           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10932         fi
10933         ;;
10934     esac
10935     ;;
10936   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10937     no_undefined_flag_CXX='${wl}-z,text'
10938     archive_cmds_need_lc_CXX=no
10939     hardcode_shlibpath_var_CXX=no
10940     runpath_var='LD_RUN_PATH'
10941
10942     case $cc_basename in
10943       CC*)
10944         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946         ;;
10947       *)
10948         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950         ;;
10951     esac
10952     ;;
10953   sysv5* | sco3.2v5* | sco5v6*)
10954     # Note: We can NOT use -z defs as we might desire, because we do not
10955     # link with -lc, and that would cause any symbols used from libc to
10956     # always be unresolved, which means just about no library would
10957     # ever link correctly.  If we're not using GNU ld we use -z text
10958     # though, which does catch some bad symbols but isn't as heavy-handed
10959     # as -z defs.
10960     # For security reasons, it is highly recommended that you always
10961     # use absolute paths for naming shared libraries, and exclude the
10962     # DT_RUNPATH tag from executables and libraries.  But doing so
10963     # requires that you compile everything twice, which is a pain.
10964     # So that behaviour is only enabled if SCOABSPATH is set to a
10965     # non-empty value in the environment.  Most likely only useful for
10966     # creating official distributions of packages.
10967     # This is a hack until libtool officially supports absolute path
10968     # names for shared libraries.
10969     no_undefined_flag_CXX='${wl}-z,text'
10970     allow_undefined_flag_CXX='${wl}-z,nodefs'
10971     archive_cmds_need_lc_CXX=no
10972     hardcode_shlibpath_var_CXX=no
10973     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10974     hardcode_libdir_separator_CXX=':'
10975     link_all_deplibs_CXX=yes
10976     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10977     runpath_var='LD_RUN_PATH'
10978
10979     case $cc_basename in
10980       CC*)
10981         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10982         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10983         ;;
10984       *)
10985         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10986         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10987         ;;
10988     esac
10989     ;;
10990   tandem*)
10991     case $cc_basename in
10992       NCC*)
10993         # NonStop-UX NCC 3.20
10994         # FIXME: insert proper C++ library support
10995         ld_shlibs_CXX=no
10996         ;;
10997       *)
10998         # FIXME: insert proper C++ library support
10999         ld_shlibs_CXX=no
11000         ;;
11001     esac
11002     ;;
11003   vxworks*)
11004     # FIXME: insert proper C++ library support
11005     ld_shlibs_CXX=no
11006     ;;
11007   *)
11008     # FIXME: insert proper C++ library support
11009     ld_shlibs_CXX=no
11010     ;;
11011 esac
11012 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11013 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11014 test "$ld_shlibs_CXX" = no && can_build_shared=no
11015
11016 GCC_CXX="$GXX"
11017 LD_CXX="$LD"
11018
11019 ## CAVEAT EMPTOR:
11020 ## There is no encapsulation within the following macros, do not change
11021 ## the running order or otherwise move them around unless you know exactly
11022 ## what you are doing...
11023
11024 cat > conftest.$ac_ext <<EOF
11025 class Foo
11026 {
11027 public:
11028   Foo (void) { a = 0; }
11029 private:
11030   int a;
11031 };
11032 EOF
11033
11034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035   (eval $ac_compile) 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; then
11039   # Parse the compiler output and extract the necessary
11040   # objects, libraries and library flags.
11041
11042   # Sentinel used to keep track of whether or not we are before
11043   # the conftest object file.
11044   pre_test_object_deps_done=no
11045
11046   # The `*' in the case matches for architectures that use `case' in
11047   # $output_verbose_cmd can trigger glob expansion during the loop
11048   # eval without this substitution.
11049   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11050
11051   for p in `eval $output_verbose_link_cmd`; do
11052     case $p in
11053
11054     -L* | -R* | -l*)
11055        # Some compilers place space between "-{L,R}" and the path.
11056        # Remove the space.
11057        if test $p = "-L" \
11058           || test $p = "-R"; then
11059          prev=$p
11060          continue
11061        else
11062          prev=
11063        fi
11064
11065        if test "$pre_test_object_deps_done" = no; then
11066          case $p in
11067          -L* | -R*)
11068            # Internal compiler library paths should come after those
11069            # provided the user.  The postdeps already come after the
11070            # user supplied libs so there is no need to process them.
11071            if test -z "$compiler_lib_search_path_CXX"; then
11072              compiler_lib_search_path_CXX="${prev}${p}"
11073            else
11074              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11075            fi
11076            ;;
11077          # The "-l" case would never come before the object being
11078          # linked, so don't bother handling this case.
11079          esac
11080        else
11081          if test -z "$postdeps_CXX"; then
11082            postdeps_CXX="${prev}${p}"
11083          else
11084            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11085          fi
11086        fi
11087        ;;
11088
11089     *.$objext)
11090        # This assumes that the test object file only shows up
11091        # once in the compiler output.
11092        if test "$p" = "conftest.$objext"; then
11093          pre_test_object_deps_done=yes
11094          continue
11095        fi
11096
11097        if test "$pre_test_object_deps_done" = no; then
11098          if test -z "$predep_objects_CXX"; then
11099            predep_objects_CXX="$p"
11100          else
11101            predep_objects_CXX="$predep_objects_CXX $p"
11102          fi
11103        else
11104          if test -z "$postdep_objects_CXX"; then
11105            postdep_objects_CXX="$p"
11106          else
11107            postdep_objects_CXX="$postdep_objects_CXX $p"
11108          fi
11109        fi
11110        ;;
11111
11112     *) ;; # Ignore the rest.
11113
11114     esac
11115   done
11116
11117   # Clean up.
11118   rm -f a.out a.exe
11119 else
11120   echo "libtool.m4: error: problem compiling CXX test program"
11121 fi
11122
11123 $rm -f confest.$objext
11124
11125 # PORTME: override above test on systems where it is broken
11126 case $host_os in
11127 interix3*)
11128   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11129   # hack all around it, let's just trust "g++" to DTRT.
11130   predep_objects_CXX=
11131   postdep_objects_CXX=
11132   postdeps_CXX=
11133   ;;
11134
11135 solaris*)
11136   case $cc_basename in
11137   CC*)
11138     # Adding this requires a known-good setup of shared libraries for
11139     # Sun compiler versions before 5.6, else PIC objects from an old
11140     # archive will be linked into the output, leading to subtle bugs.
11141     postdeps_CXX='-lCstd -lCrun'
11142     ;;
11143   esac
11144   ;;
11145 esac
11146
11147
11148 case " $postdeps_CXX " in
11149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11150 esac
11151
11152 lt_prog_compiler_wl_CXX=
11153 lt_prog_compiler_pic_CXX=
11154 lt_prog_compiler_static_CXX=
11155
11156 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11158
11159   # C++ specific cases for pic, static, wl, etc.
11160   if test "$GXX" = yes; then
11161     lt_prog_compiler_wl_CXX='-Wl,'
11162     lt_prog_compiler_static_CXX='-static'
11163
11164     case $host_os in
11165     aix*)
11166       # All AIX code is PIC.
11167       if test "$host_cpu" = ia64; then
11168         # AIX 5 now supports IA64 processor
11169         lt_prog_compiler_static_CXX='-Bstatic'
11170       fi
11171       ;;
11172     amigaos*)
11173       # FIXME: we need at least 68020 code to build shared libraries, but
11174       # adding the `-m68020' flag to GCC prevents building anything better,
11175       # like `-m68040'.
11176       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11177       ;;
11178     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11179       # PIC is the default for these OSes.
11180       ;;
11181     mingw* | os2* | pw32*)
11182       # This hack is so that the source file can tell whether it is being
11183       # built for inclusion in a dll (and should export symbols for example).
11184       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11185       ;;
11186     darwin* | rhapsody*)
11187       # PIC is the default on this platform
11188       # Common symbols not allowed in MH_DYLIB files
11189       lt_prog_compiler_pic_CXX='-fno-common'
11190       ;;
11191     *djgpp*)
11192       # DJGPP does not support shared libraries at all
11193       lt_prog_compiler_pic_CXX=
11194       ;;
11195     interix3*)
11196       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11197       # Instead, we relocate shared libraries at runtime.
11198       ;;
11199     sysv4*MP*)
11200       if test -d /usr/nec; then
11201         lt_prog_compiler_pic_CXX=-Kconform_pic
11202       fi
11203       ;;
11204     hpux*)
11205       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11206       # not for PA HP-UX.
11207       case $host_cpu in
11208       hppa*64*|ia64*)
11209         ;;
11210       *)
11211         lt_prog_compiler_pic_CXX='-fPIC'
11212         ;;
11213       esac
11214       ;;
11215     *)
11216       lt_prog_compiler_pic_CXX='-fPIC'
11217       ;;
11218     esac
11219   else
11220     case $host_os in
11221       aix4* | aix5*)
11222         # All AIX code is PIC.
11223         if test "$host_cpu" = ia64; then
11224           # AIX 5 now supports IA64 processor
11225           lt_prog_compiler_static_CXX='-Bstatic'
11226         else
11227           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11228         fi
11229         ;;
11230       chorus*)
11231         case $cc_basename in
11232         cxch68*)
11233           # Green Hills C++ Compiler
11234           # _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"
11235           ;;
11236         esac
11237         ;;
11238        darwin*)
11239          # PIC is the default on this platform
11240          # Common symbols not allowed in MH_DYLIB files
11241          case $cc_basename in
11242            xlc*)
11243            lt_prog_compiler_pic_CXX='-qnocommon'
11244            lt_prog_compiler_wl_CXX='-Wl,'
11245            ;;
11246          esac
11247        ;;
11248       dgux*)
11249         case $cc_basename in
11250           ec++*)
11251             lt_prog_compiler_pic_CXX='-KPIC'
11252             ;;
11253           ghcx*)
11254             # Green Hills C++ Compiler
11255             lt_prog_compiler_pic_CXX='-pic'
11256             ;;
11257           *)
11258             ;;
11259         esac
11260         ;;
11261       freebsd* | kfreebsd*-gnu | dragonfly*)
11262         # FreeBSD uses GNU C++
11263         ;;
11264       hpux9* | hpux10* | hpux11*)
11265         case $cc_basename in
11266           CC*)
11267             lt_prog_compiler_wl_CXX='-Wl,'
11268             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11269             if test "$host_cpu" != ia64; then
11270               lt_prog_compiler_pic_CXX='+Z'
11271             fi
11272             ;;
11273           aCC*)
11274             lt_prog_compiler_wl_CXX='-Wl,'
11275             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11276             case $host_cpu in
11277             hppa*64*|ia64*)
11278               # +Z the default
11279               ;;
11280             *)
11281               lt_prog_compiler_pic_CXX='+Z'
11282               ;;
11283             esac
11284             ;;
11285           *)
11286             ;;
11287         esac
11288         ;;
11289       interix*)
11290         # This is c89, which is MS Visual C++ (no shared libs)
11291         # Anyone wants to do a port?
11292         ;;
11293       irix5* | irix6* | nonstopux*)
11294         case $cc_basename in
11295           CC*)
11296             lt_prog_compiler_wl_CXX='-Wl,'
11297             lt_prog_compiler_static_CXX='-non_shared'
11298             # CC pic flag -KPIC is the default.
11299             ;;
11300           *)
11301             ;;
11302         esac
11303         ;;
11304       linux*)
11305         case $cc_basename in
11306           KCC*)
11307             # KAI C++ Compiler
11308             lt_prog_compiler_wl_CXX='--backend -Wl,'
11309             lt_prog_compiler_pic_CXX='-fPIC'
11310             ;;
11311           icpc* | ecpc*)
11312             # Intel C++
11313             lt_prog_compiler_wl_CXX='-Wl,'
11314             lt_prog_compiler_pic_CXX='-KPIC'
11315             lt_prog_compiler_static_CXX='-static'
11316             ;;
11317           pgCC*)
11318             # Portland Group C++ compiler.
11319             lt_prog_compiler_wl_CXX='-Wl,'
11320             lt_prog_compiler_pic_CXX='-fpic'
11321             lt_prog_compiler_static_CXX='-Bstatic'
11322             ;;
11323           cxx*)
11324             # Compaq C++
11325             # Make sure the PIC flag is empty.  It appears that all Alpha
11326             # Linux and Compaq Tru64 Unix objects are PIC.
11327             lt_prog_compiler_pic_CXX=
11328             lt_prog_compiler_static_CXX='-non_shared'
11329             ;;
11330           *)
11331             ;;
11332         esac
11333         ;;
11334       lynxos*)
11335         ;;
11336       m88k*)
11337         ;;
11338       mvs*)
11339         case $cc_basename in
11340           cxx*)
11341             lt_prog_compiler_pic_CXX='-W c,exportall'
11342             ;;
11343           *)
11344             ;;
11345         esac
11346         ;;
11347       netbsd*)
11348         ;;
11349       osf3* | osf4* | osf5*)
11350         case $cc_basename in
11351           KCC*)
11352             lt_prog_compiler_wl_CXX='--backend -Wl,'
11353             ;;
11354           RCC*)
11355             # Rational C++ 2.4.1
11356             lt_prog_compiler_pic_CXX='-pic'
11357             ;;
11358           cxx*)
11359             # Digital/Compaq C++
11360             lt_prog_compiler_wl_CXX='-Wl,'
11361             # Make sure the PIC flag is empty.  It appears that all Alpha
11362             # Linux and Compaq Tru64 Unix objects are PIC.
11363             lt_prog_compiler_pic_CXX=
11364             lt_prog_compiler_static_CXX='-non_shared'
11365             ;;
11366           *)
11367             ;;
11368         esac
11369         ;;
11370       psos*)
11371         ;;
11372       solaris*)
11373         case $cc_basename in
11374           CC*)
11375             # Sun C++ 4.2, 5.x and Centerline C++
11376             lt_prog_compiler_pic_CXX='-KPIC'
11377             lt_prog_compiler_static_CXX='-Bstatic'
11378             lt_prog_compiler_wl_CXX='-Qoption ld '
11379             ;;
11380           gcx*)
11381             # Green Hills C++ Compiler
11382             lt_prog_compiler_pic_CXX='-PIC'
11383             ;;
11384           *)
11385             ;;
11386         esac
11387         ;;
11388       sunos4*)
11389         case $cc_basename in
11390           CC*)
11391             # Sun C++ 4.x
11392             lt_prog_compiler_pic_CXX='-pic'
11393             lt_prog_compiler_static_CXX='-Bstatic'
11394             ;;
11395           lcc*)
11396             # Lucid
11397             lt_prog_compiler_pic_CXX='-pic'
11398             ;;
11399           *)
11400             ;;
11401         esac
11402         ;;
11403       tandem*)
11404         case $cc_basename in
11405           NCC*)
11406             # NonStop-UX NCC 3.20
11407             lt_prog_compiler_pic_CXX='-KPIC'
11408             ;;
11409           *)
11410             ;;
11411         esac
11412         ;;
11413       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11414         case $cc_basename in
11415           CC*)
11416             lt_prog_compiler_wl_CXX='-Wl,'
11417             lt_prog_compiler_pic_CXX='-KPIC'
11418             lt_prog_compiler_static_CXX='-Bstatic'
11419             ;;
11420         esac
11421         ;;
11422       vxworks*)
11423         ;;
11424       *)
11425         lt_prog_compiler_can_build_shared_CXX=no
11426         ;;
11427     esac
11428   fi
11429
11430 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11431 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11432
11433 #
11434 # Check to make sure the PIC flag actually works.
11435 #
11436 if test -n "$lt_prog_compiler_pic_CXX"; then
11437
11438 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11440 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   lt_prog_compiler_pic_works_CXX=no
11444   ac_outfile=conftest.$ac_objext
11445    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11446    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11447    # Insert the option either (1) after the last *FLAGS variable, or
11448    # (2) before a word containing "conftest.", or (3) at the end.
11449    # Note that $ac_compile itself does not contain backslashes and begins
11450    # with a dollar sign (not a hyphen), so the echo should work correctly.
11451    # The option is referenced via a variable to avoid confusing sed.
11452    lt_compile=`echo "$ac_compile" | $SED \
11453    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11454    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11455    -e 's:$: $lt_compiler_flag:'`
11456    (eval echo "\"\$as_me:11456: $lt_compile\"" >&5)
11457    (eval "$lt_compile" 2>conftest.err)
11458    ac_status=$?
11459    cat conftest.err >&5
11460    echo "$as_me:11460: \$? = $ac_status" >&5
11461    if (exit $ac_status) && test -s "$ac_outfile"; then
11462      # The compiler can only warn and ignore the option if not recognized
11463      # So say no if there are warnings other than the usual output.
11464      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11465      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11466      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11467        lt_prog_compiler_pic_works_CXX=yes
11468      fi
11469    fi
11470    $rm conftest*
11471
11472 fi
11473 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11474 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11475
11476 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11477     case $lt_prog_compiler_pic_CXX in
11478      "" | " "*) ;;
11479      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11480      esac
11481 else
11482     lt_prog_compiler_pic_CXX=
11483      lt_prog_compiler_can_build_shared_CXX=no
11484 fi
11485
11486 fi
11487 case $host_os in
11488   # For platforms which do not support PIC, -DPIC is meaningless:
11489   *djgpp*)
11490     lt_prog_compiler_pic_CXX=
11491     ;;
11492   *)
11493     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11494     ;;
11495 esac
11496
11497 #
11498 # Check to make sure the static flag actually works.
11499 #
11500 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11501 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11503 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11504   echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506   lt_prog_compiler_static_works_CXX=no
11507    save_LDFLAGS="$LDFLAGS"
11508    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11509    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11510    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11511      # The linker can only warn and ignore the option if not recognized
11512      # So say no if there are warnings
11513      if test -s conftest.err; then
11514        # Append any errors to the config.log.
11515        cat conftest.err 1>&5
11516        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11517        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11518        if diff conftest.exp conftest.er2 >/dev/null; then
11519          lt_prog_compiler_static_works_CXX=yes
11520        fi
11521      else
11522        lt_prog_compiler_static_works_CXX=yes
11523      fi
11524    fi
11525    $rm conftest*
11526    LDFLAGS="$save_LDFLAGS"
11527
11528 fi
11529 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11530 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11531
11532 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11533     :
11534 else
11535     lt_prog_compiler_static_CXX=
11536 fi
11537
11538
11539 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   lt_cv_prog_compiler_c_o_CXX=no
11545    $rm -r conftest 2>/dev/null
11546    mkdir conftest
11547    cd conftest
11548    mkdir out
11549    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11550
11551    lt_compiler_flag="-o out/conftest2.$ac_objext"
11552    # Insert the option either (1) after the last *FLAGS variable, or
11553    # (2) before a word containing "conftest.", or (3) at the end.
11554    # Note that $ac_compile itself does not contain backslashes and begins
11555    # with a dollar sign (not a hyphen), so the echo should work correctly.
11556    lt_compile=`echo "$ac_compile" | $SED \
11557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11559    -e 's:$: $lt_compiler_flag:'`
11560    (eval echo "\"\$as_me:11560: $lt_compile\"" >&5)
11561    (eval "$lt_compile" 2>out/conftest.err)
11562    ac_status=$?
11563    cat out/conftest.err >&5
11564    echo "$as_me:11564: \$? = $ac_status" >&5
11565    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11566    then
11567      # The compiler can only warn and ignore the option if not recognized
11568      # So say no if there are warnings
11569      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11570      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11571      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11572        lt_cv_prog_compiler_c_o_CXX=yes
11573      fi
11574    fi
11575    chmod u+w . 2>&5
11576    $rm conftest*
11577    # SGI C++ compiler will create directory out/ii_files/ for
11578    # template instantiation
11579    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11580    $rm out/* && rmdir out
11581    cd ..
11582    rmdir conftest
11583    $rm conftest*
11584
11585 fi
11586 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11588
11589
11590 hard_links="nottested"
11591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11592   # do not overwrite the value of need_locks provided by the user
11593   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11595   hard_links=yes
11596   $rm conftest*
11597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11598   touch conftest.a
11599   ln conftest.a conftest.b 2>&5 || hard_links=no
11600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11601   echo "$as_me:$LINENO: result: $hard_links" >&5
11602 echo "${ECHO_T}$hard_links" >&6
11603   if test "$hard_links" = no; then
11604     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11606     need_locks=warn
11607   fi
11608 else
11609   need_locks=no
11610 fi
11611
11612 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11614
11615   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11616   case $host_os in
11617   aix4* | aix5*)
11618     # If we're using GNU nm, then we don't want the "-C" option.
11619     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11620     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11621       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'
11622     else
11623       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'
11624     fi
11625     ;;
11626   pw32*)
11627     export_symbols_cmds_CXX="$ltdll_cmds"
11628   ;;
11629   cygwin* | mingw*)
11630     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11631   ;;
11632   *)
11633     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11634   ;;
11635   esac
11636
11637 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11638 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11639 test "$ld_shlibs_CXX" = no && can_build_shared=no
11640
11641 #
11642 # Do we need to explicitly link libc?
11643 #
11644 case "x$archive_cmds_need_lc_CXX" in
11645 x|xyes)
11646   # Assume -lc should be added
11647   archive_cmds_need_lc_CXX=yes
11648
11649   if test "$enable_shared" = yes && test "$GCC" = yes; then
11650     case $archive_cmds_CXX in
11651     *'~'*)
11652       # FIXME: we may have to deal with multi-command sequences.
11653       ;;
11654     '$CC '*)
11655       # Test whether the compiler implicitly links with -lc since on some
11656       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11657       # to ld, don't add -lc before -lgcc.
11658       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11660       $rm conftest*
11661       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11662
11663       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664   (eval $ac_compile) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } 2>conftest.err; then
11668         soname=conftest
11669         lib=conftest
11670         libobjs=conftest.$ac_objext
11671         deplibs=
11672         wl=$lt_prog_compiler_wl_CXX
11673         pic_flag=$lt_prog_compiler_pic_CXX
11674         compiler_flags=-v
11675         linker_flags=-v
11676         verstring=
11677         output_objdir=.
11678         libname=conftest
11679         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11680         allow_undefined_flag_CXX=
11681         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11682   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }
11686         then
11687           archive_cmds_need_lc_CXX=no
11688         else
11689           archive_cmds_need_lc_CXX=yes
11690         fi
11691         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11692       else
11693         cat conftest.err 1>&5
11694       fi
11695       $rm conftest*
11696       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11697 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11698       ;;
11699     esac
11700   fi
11701   ;;
11702 esac
11703
11704 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11706 library_names_spec=
11707 libname_spec='lib$name'
11708 soname_spec=
11709 shrext_cmds=".so"
11710 postinstall_cmds=
11711 postuninstall_cmds=
11712 finish_cmds=
11713 finish_eval=
11714 shlibpath_var=
11715 shlibpath_overrides_runpath=unknown
11716 version_type=none
11717 dynamic_linker="$host_os ld.so"
11718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11719 if test "$GCC" = yes; then
11720   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11721   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11722     # if the path contains ";" then we assume it to be the separator
11723     # otherwise default to the standard path separator (i.e. ":") - it is
11724     # assumed that no part of a normal pathname contains ";" but that should
11725     # okay in the real world where ";" in dirpaths is itself problematic.
11726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11727   else
11728     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11729   fi
11730 else
11731   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11732 fi
11733 need_lib_prefix=unknown
11734 hardcode_into_libs=no
11735
11736 # when you set need_version to no, make sure it does not cause -set_version
11737 # flags to be left without arguments
11738 need_version=unknown
11739
11740 case $host_os in
11741 aix3*)
11742   version_type=linux
11743   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11744   shlibpath_var=LIBPATH
11745
11746   # AIX 3 has no versioning support, so we append a major version to the name.
11747   soname_spec='${libname}${release}${shared_ext}$major'
11748   ;;
11749
11750 aix4* | aix5*)
11751   version_type=linux
11752   need_lib_prefix=no
11753   need_version=no
11754   hardcode_into_libs=yes
11755   if test "$host_cpu" = ia64; then
11756     # AIX 5 supports IA64
11757     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11758     shlibpath_var=LD_LIBRARY_PATH
11759   else
11760     # With GCC up to 2.95.x, collect2 would create an import file
11761     # for dependence libraries.  The import file would start with
11762     # the line `#! .'.  This would cause the generated library to
11763     # depend on `.', always an invalid library.  This was fixed in
11764     # development snapshots of GCC prior to 3.0.
11765     case $host_os in
11766       aix4 | aix4.[01] | aix4.[01].*)
11767       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11768            echo ' yes '
11769            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11770         :
11771       else
11772         can_build_shared=no
11773       fi
11774       ;;
11775     esac
11776     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11777     # soname into executable. Probably we can add versioning support to
11778     # collect2, so additional links can be useful in future.
11779     if test "$aix_use_runtimelinking" = yes; then
11780       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11781       # instead of lib<name>.a to let people know that these are not
11782       # typical AIX shared libraries.
11783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784     else
11785       # We preserve .a as extension for shared libraries through AIX4.2
11786       # and later when we are not doing run time linking.
11787       library_names_spec='${libname}${release}.a $libname.a'
11788       soname_spec='${libname}${release}${shared_ext}$major'
11789     fi
11790     shlibpath_var=LIBPATH
11791   fi
11792   ;;
11793
11794 amigaos*)
11795   library_names_spec='$libname.ixlibrary $libname.a'
11796   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11797   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'
11798   ;;
11799
11800 beos*)
11801   library_names_spec='${libname}${shared_ext}'
11802   dynamic_linker="$host_os ld.so"
11803   shlibpath_var=LIBRARY_PATH
11804   ;;
11805
11806 bsdi[45]*)
11807   version_type=linux
11808   need_version=no
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   soname_spec='${libname}${release}${shared_ext}$major'
11811   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11812   shlibpath_var=LD_LIBRARY_PATH
11813   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11814   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11815   # the default ld.so.conf also contains /usr/contrib/lib and
11816   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11817   # libtool to hard-code these into programs
11818   ;;
11819
11820 cygwin* | mingw* | pw32*)
11821   version_type=windows
11822   shrext_cmds=".dll"
11823   need_version=no
11824   need_lib_prefix=no
11825
11826   case $GCC,$host_os in
11827   yes,cygwin* | yes,mingw* | yes,pw32*)
11828     library_names_spec='$libname.dll.a'
11829     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11830     postinstall_cmds='base_file=`basename \${file}`~
11831       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11832       dldir=$destdir/`dirname \$dlpath`~
11833       test -d \$dldir || mkdir -p \$dldir~
11834       $install_prog $dir/$dlname \$dldir/$dlname~
11835       chmod a+x \$dldir/$dlname'
11836     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11837       dlpath=$dir/\$dldll~
11838        $rm \$dlpath'
11839     shlibpath_overrides_runpath=yes
11840
11841     case $host_os in
11842     cygwin*)
11843       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11844       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11845       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11846       ;;
11847     mingw*)
11848       # MinGW DLLs use traditional 'lib' prefix
11849       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11850       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11851       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11852         # It is most probably a Windows format PATH printed by
11853         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11854         # path with ; separators, and with drive letters. We can handle the
11855         # drive letters (cygwin fileutils understands them), so leave them,
11856         # especially as we might pass files found there to a mingw objdump,
11857         # which wouldn't understand a cygwinified path. Ahh.
11858         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11859       else
11860         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11861       fi
11862       ;;
11863     pw32*)
11864       # pw32 DLLs use 'pw' prefix rather than 'lib'
11865       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11866       ;;
11867     esac
11868     ;;
11869
11870   *)
11871     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11872     ;;
11873   esac
11874   dynamic_linker='Win32 ld.exe'
11875   # FIXME: first we should search . and the directory the executable is in
11876   shlibpath_var=PATH
11877   ;;
11878
11879 darwin* | rhapsody*)
11880   dynamic_linker="$host_os dyld"
11881   version_type=darwin
11882   need_lib_prefix=no
11883   need_version=no
11884   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11885   soname_spec='${libname}${release}${major}$shared_ext'
11886   shlibpath_overrides_runpath=yes
11887   shlibpath_var=DYLD_LIBRARY_PATH
11888   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11889   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11890   if test "$GCC" = yes; then
11891     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"`
11892   else
11893     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11894   fi
11895   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11896   ;;
11897
11898 dgux*)
11899   version_type=linux
11900   need_lib_prefix=no
11901   need_version=no
11902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11903   soname_spec='${libname}${release}${shared_ext}$major'
11904   shlibpath_var=LD_LIBRARY_PATH
11905   ;;
11906
11907 freebsd1*)
11908   dynamic_linker=no
11909   ;;
11910
11911 kfreebsd*-gnu)
11912   version_type=linux
11913   need_lib_prefix=no
11914   need_version=no
11915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11916   soname_spec='${libname}${release}${shared_ext}$major'
11917   shlibpath_var=LD_LIBRARY_PATH
11918   shlibpath_overrides_runpath=no
11919   hardcode_into_libs=yes
11920   dynamic_linker='GNU ld.so'
11921   ;;
11922
11923 freebsd* | dragonfly*)
11924   # DragonFly does not have aout.  When/if they implement a new
11925   # versioning mechanism, adjust this.
11926   if test -x /usr/bin/objformat; then
11927     objformat=`/usr/bin/objformat`
11928   else
11929     case $host_os in
11930     freebsd[123]*) objformat=aout ;;
11931     *) objformat=elf ;;
11932     esac
11933   fi
11934   version_type=freebsd-$objformat
11935   case $version_type in
11936     freebsd-elf*)
11937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938       need_version=no
11939       need_lib_prefix=no
11940       ;;
11941     freebsd-*)
11942       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11943       need_version=yes
11944       ;;
11945   esac
11946   shlibpath_var=LD_LIBRARY_PATH
11947   case $host_os in
11948   freebsd2*)
11949     shlibpath_overrides_runpath=yes
11950     ;;
11951   freebsd3.[01]* | freebsdelf3.[01]*)
11952     shlibpath_overrides_runpath=yes
11953     hardcode_into_libs=yes
11954     ;;
11955   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11956   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11957     shlibpath_overrides_runpath=no
11958     hardcode_into_libs=yes
11959     ;;
11960   freebsd*) # from 4.6 on
11961     shlibpath_overrides_runpath=yes
11962     hardcode_into_libs=yes
11963     ;;
11964   esac
11965   ;;
11966
11967 gnu*)
11968   version_type=linux
11969   need_lib_prefix=no
11970   need_version=no
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11972   soname_spec='${libname}${release}${shared_ext}$major'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   hardcode_into_libs=yes
11975   ;;
11976
11977 hpux9* | hpux10* | hpux11*)
11978   # Give a soname corresponding to the major version so that dld.sl refuses to
11979   # link against other versions.
11980   version_type=sunos
11981   need_lib_prefix=no
11982   need_version=no
11983   case $host_cpu in
11984   ia64*)
11985     shrext_cmds='.so'
11986     hardcode_into_libs=yes
11987     dynamic_linker="$host_os dld.so"
11988     shlibpath_var=LD_LIBRARY_PATH
11989     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991     soname_spec='${libname}${release}${shared_ext}$major'
11992     if test "X$HPUX_IA64_MODE" = X32; then
11993       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11994     else
11995       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11996     fi
11997     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11998     ;;
11999    hppa*64*)
12000      shrext_cmds='.sl'
12001      hardcode_into_libs=yes
12002      dynamic_linker="$host_os dld.sl"
12003      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12004      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12005      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006      soname_spec='${libname}${release}${shared_ext}$major'
12007      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12008      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12009      ;;
12010    *)
12011     shrext_cmds='.sl'
12012     dynamic_linker="$host_os dld.sl"
12013     shlibpath_var=SHLIB_PATH
12014     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12015     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12016     soname_spec='${libname}${release}${shared_ext}$major'
12017     ;;
12018   esac
12019   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12020   postinstall_cmds='chmod 555 $lib'
12021   ;;
12022
12023 interix3*)
12024   version_type=linux
12025   need_lib_prefix=no
12026   need_version=no
12027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12028   soname_spec='${libname}${release}${shared_ext}$major'
12029   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12030   shlibpath_var=LD_LIBRARY_PATH
12031   shlibpath_overrides_runpath=no
12032   hardcode_into_libs=yes
12033   ;;
12034
12035 irix5* | irix6* | nonstopux*)
12036   case $host_os in
12037     nonstopux*) version_type=nonstopux ;;
12038     *)
12039         if test "$lt_cv_prog_gnu_ld" = yes; then
12040                 version_type=linux
12041         else
12042                 version_type=irix
12043         fi ;;
12044   esac
12045   need_lib_prefix=no
12046   need_version=no
12047   soname_spec='${libname}${release}${shared_ext}$major'
12048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12049   case $host_os in
12050   irix5* | nonstopux*)
12051     libsuff= shlibsuff=
12052     ;;
12053   *)
12054     case $LD in # libtool.m4 will add one of these switches to LD
12055     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12056       libsuff= shlibsuff= libmagic=32-bit;;
12057     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12058       libsuff=32 shlibsuff=N32 libmagic=N32;;
12059     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12060       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12061     *) libsuff= shlibsuff= libmagic=never-match;;
12062     esac
12063     ;;
12064   esac
12065   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12066   shlibpath_overrides_runpath=no
12067   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12068   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12069   hardcode_into_libs=yes
12070   ;;
12071
12072 # No shared lib support for Linux oldld, aout, or coff.
12073 linux*oldld* | linux*aout* | linux*coff*)
12074   dynamic_linker=no
12075   ;;
12076
12077 # This must be Linux ELF.
12078 linux*)
12079   version_type=linux
12080   need_lib_prefix=no
12081   need_version=no
12082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12083   soname_spec='${libname}${release}${shared_ext}$major'
12084   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12085   shlibpath_var=LD_LIBRARY_PATH
12086   shlibpath_overrides_runpath=no
12087   # This implies no fast_install, which is unacceptable.
12088   # Some rework will be needed to allow for fast_install
12089   # before this can be enabled.
12090   hardcode_into_libs=yes
12091
12092   # Append ld.so.conf contents to the search path
12093   if test -f /etc/ld.so.conf; then
12094     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12095     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12096   fi
12097
12098   # We used to test for /lib/ld.so.1 and disable shared libraries on
12099   # powerpc, because MkLinux only supported shared libraries with the
12100   # GNU dynamic linker.  Since this was broken with cross compilers,
12101   # most powerpc-linux boxes support dynamic linking these days and
12102   # people can always --disable-shared, the test was removed, and we
12103   # assume the GNU/Linux dynamic linker is in use.
12104   dynamic_linker='GNU/Linux ld.so'
12105   ;;
12106
12107 knetbsd*-gnu)
12108   version_type=linux
12109   need_lib_prefix=no
12110   need_version=no
12111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12112   soname_spec='${libname}${release}${shared_ext}$major'
12113   shlibpath_var=LD_LIBRARY_PATH
12114   shlibpath_overrides_runpath=no
12115   hardcode_into_libs=yes
12116   dynamic_linker='GNU ld.so'
12117   ;;
12118
12119 netbsd*)
12120   version_type=sunos
12121   need_lib_prefix=no
12122   need_version=no
12123   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12125     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12126     dynamic_linker='NetBSD (a.out) ld.so'
12127   else
12128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12129     soname_spec='${libname}${release}${shared_ext}$major'
12130     dynamic_linker='NetBSD ld.elf_so'
12131   fi
12132   shlibpath_var=LD_LIBRARY_PATH
12133   shlibpath_overrides_runpath=yes
12134   hardcode_into_libs=yes
12135   ;;
12136
12137 newsos6)
12138   version_type=linux
12139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140   shlibpath_var=LD_LIBRARY_PATH
12141   shlibpath_overrides_runpath=yes
12142   ;;
12143
12144 nto-qnx*)
12145   version_type=linux
12146   need_lib_prefix=no
12147   need_version=no
12148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149   soname_spec='${libname}${release}${shared_ext}$major'
12150   shlibpath_var=LD_LIBRARY_PATH
12151   shlibpath_overrides_runpath=yes
12152   ;;
12153
12154 openbsd*)
12155   version_type=sunos
12156   sys_lib_dlsearch_path_spec="/usr/lib"
12157   need_lib_prefix=no
12158   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12159   case $host_os in
12160     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12161     *)                         need_version=no  ;;
12162   esac
12163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12165   shlibpath_var=LD_LIBRARY_PATH
12166   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12167     case $host_os in
12168       openbsd2.[89] | openbsd2.[89].*)
12169         shlibpath_overrides_runpath=no
12170         ;;
12171       *)
12172         shlibpath_overrides_runpath=yes
12173         ;;
12174       esac
12175   else
12176     shlibpath_overrides_runpath=yes
12177   fi
12178   ;;
12179
12180 os2*)
12181   libname_spec='$name'
12182   shrext_cmds=".dll"
12183   need_lib_prefix=no
12184   library_names_spec='$libname${shared_ext} $libname.a'
12185   dynamic_linker='OS/2 ld.exe'
12186   shlibpath_var=LIBPATH
12187   ;;
12188
12189 osf3* | osf4* | osf5*)
12190   version_type=osf
12191   need_lib_prefix=no
12192   need_version=no
12193   soname_spec='${libname}${release}${shared_ext}$major'
12194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195   shlibpath_var=LD_LIBRARY_PATH
12196   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12197   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12198   ;;
12199
12200 solaris*)
12201   version_type=linux
12202   need_lib_prefix=no
12203   need_version=no
12204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205   soname_spec='${libname}${release}${shared_ext}$major'
12206   shlibpath_var=LD_LIBRARY_PATH
12207   shlibpath_overrides_runpath=yes
12208   hardcode_into_libs=yes
12209   # ldd complains unless libraries are executable
12210   postinstall_cmds='chmod +x $lib'
12211   ;;
12212
12213 sunos4*)
12214   version_type=sunos
12215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12216   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12217   shlibpath_var=LD_LIBRARY_PATH
12218   shlibpath_overrides_runpath=yes
12219   if test "$with_gnu_ld" = yes; then
12220     need_lib_prefix=no
12221   fi
12222   need_version=yes
12223   ;;
12224
12225 sysv4 | sysv4.3*)
12226   version_type=linux
12227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12228   soname_spec='${libname}${release}${shared_ext}$major'
12229   shlibpath_var=LD_LIBRARY_PATH
12230   case $host_vendor in
12231     sni)
12232       shlibpath_overrides_runpath=no
12233       need_lib_prefix=no
12234       export_dynamic_flag_spec='${wl}-Blargedynsym'
12235       runpath_var=LD_RUN_PATH
12236       ;;
12237     siemens)
12238       need_lib_prefix=no
12239       ;;
12240     motorola)
12241       need_lib_prefix=no
12242       need_version=no
12243       shlibpath_overrides_runpath=no
12244       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12245       ;;
12246   esac
12247   ;;
12248
12249 sysv4*MP*)
12250   if test -d /usr/nec ;then
12251     version_type=linux
12252     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12253     soname_spec='$libname${shared_ext}.$major'
12254     shlibpath_var=LD_LIBRARY_PATH
12255   fi
12256   ;;
12257
12258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12259   version_type=freebsd-elf
12260   need_lib_prefix=no
12261   need_version=no
12262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12263   soname_spec='${libname}${release}${shared_ext}$major'
12264   shlibpath_var=LD_LIBRARY_PATH
12265   hardcode_into_libs=yes
12266   if test "$with_gnu_ld" = yes; then
12267     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12268     shlibpath_overrides_runpath=no
12269   else
12270     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12271     shlibpath_overrides_runpath=yes
12272     case $host_os in
12273       sco3.2v5*)
12274         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12275         ;;
12276     esac
12277   fi
12278   sys_lib_dlsearch_path_spec='/usr/lib'
12279   ;;
12280
12281 uts4*)
12282   version_type=linux
12283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284   soname_spec='${libname}${release}${shared_ext}$major'
12285   shlibpath_var=LD_LIBRARY_PATH
12286   ;;
12287
12288 *)
12289   dynamic_linker=no
12290   ;;
12291 esac
12292 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12293 echo "${ECHO_T}$dynamic_linker" >&6
12294 test "$dynamic_linker" = no && can_build_shared=no
12295
12296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12297 if test "$GCC" = yes; then
12298   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12299 fi
12300
12301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12303 hardcode_action_CXX=
12304 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12305    test -n "$runpath_var_CXX" || \
12306    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12307
12308   # We can hardcode non-existant directories.
12309   if test "$hardcode_direct_CXX" != no &&
12310      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12311      # have to relink, otherwise we might link with an installed library
12312      # when we should be linking with a yet-to-be-installed one
12313      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12314      test "$hardcode_minus_L_CXX" != no; then
12315     # Linking always hardcodes the temporary library directory.
12316     hardcode_action_CXX=relink
12317   else
12318     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12319     hardcode_action_CXX=immediate
12320   fi
12321 else
12322   # We cannot hardcode anything, or else we can only hardcode existing
12323   # directories.
12324   hardcode_action_CXX=unsupported
12325 fi
12326 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12327 echo "${ECHO_T}$hardcode_action_CXX" >&6
12328
12329 if test "$hardcode_action_CXX" = relink; then
12330   # Fast installation is not supported
12331   enable_fast_install=no
12332 elif test "$shlibpath_overrides_runpath" = yes ||
12333      test "$enable_shared" = no; then
12334   # Fast installation is not necessary
12335   enable_fast_install=needless
12336 fi
12337
12338
12339 # The else clause should only fire when bootstrapping the
12340 # libtool distribution, otherwise you forgot to ship ltmain.sh
12341 # with your package, and you will get complaints that there are
12342 # no rules to generate ltmain.sh.
12343 if test -f "$ltmain"; then
12344   # See if we are running on zsh, and set the options which allow our commands through
12345   # without removal of \ escapes.
12346   if test -n "${ZSH_VERSION+set}" ; then
12347     setopt NO_GLOB_SUBST
12348   fi
12349   # Now quote all the things that may contain metacharacters while being
12350   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12351   # variables and quote the copies for generation of the libtool script.
12352   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12353     SED SHELL STRIP \
12354     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12355     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12356     deplibs_check_method reload_flag reload_cmds need_locks \
12357     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12358     lt_cv_sys_global_symbol_to_c_name_address \
12359     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12360     old_postinstall_cmds old_postuninstall_cmds \
12361     compiler_CXX \
12362     CC_CXX \
12363     LD_CXX \
12364     lt_prog_compiler_wl_CXX \
12365     lt_prog_compiler_pic_CXX \
12366     lt_prog_compiler_static_CXX \
12367     lt_prog_compiler_no_builtin_flag_CXX \
12368     export_dynamic_flag_spec_CXX \
12369     thread_safe_flag_spec_CXX \
12370     whole_archive_flag_spec_CXX \
12371     enable_shared_with_static_runtimes_CXX \
12372     old_archive_cmds_CXX \
12373     old_archive_from_new_cmds_CXX \
12374     predep_objects_CXX \
12375     postdep_objects_CXX \
12376     predeps_CXX \
12377     postdeps_CXX \
12378     compiler_lib_search_path_CXX \
12379     archive_cmds_CXX \
12380     archive_expsym_cmds_CXX \
12381     postinstall_cmds_CXX \
12382     postuninstall_cmds_CXX \
12383     old_archive_from_expsyms_cmds_CXX \
12384     allow_undefined_flag_CXX \
12385     no_undefined_flag_CXX \
12386     export_symbols_cmds_CXX \
12387     hardcode_libdir_flag_spec_CXX \
12388     hardcode_libdir_flag_spec_ld_CXX \
12389     hardcode_libdir_separator_CXX \
12390     hardcode_automatic_CXX \
12391     module_cmds_CXX \
12392     module_expsym_cmds_CXX \
12393     lt_cv_prog_compiler_c_o_CXX \
12394     exclude_expsyms_CXX \
12395     include_expsyms_CXX; do
12396
12397     case $var in
12398     old_archive_cmds_CXX | \
12399     old_archive_from_new_cmds_CXX | \
12400     archive_cmds_CXX | \
12401     archive_expsym_cmds_CXX | \
12402     module_cmds_CXX | \
12403     module_expsym_cmds_CXX | \
12404     old_archive_from_expsyms_cmds_CXX | \
12405     export_symbols_cmds_CXX | \
12406     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12407     postinstall_cmds | postuninstall_cmds | \
12408     old_postinstall_cmds | old_postuninstall_cmds | \
12409     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12410       # Double-quote double-evaled strings.
12411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12412       ;;
12413     *)
12414       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12415       ;;
12416     esac
12417   done
12418
12419   case $lt_echo in
12420   *'\$0 --fallback-echo"')
12421     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12422     ;;
12423   esac
12424
12425 cfgfile="$ofile"
12426
12427   cat <<__EOF__ >> "$cfgfile"
12428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12429
12430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12431
12432 # Shell to use when invoking shell scripts.
12433 SHELL=$lt_SHELL
12434
12435 # Whether or not to build shared libraries.
12436 build_libtool_libs=$enable_shared
12437
12438 # Whether or not to build static libraries.
12439 build_old_libs=$enable_static
12440
12441 # Whether or not to add -lc for building shared libraries.
12442 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12443
12444 # Whether or not to disallow shared libs when runtime libs are static
12445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12446
12447 # Whether or not to optimize for fast installation.
12448 fast_install=$enable_fast_install
12449
12450 # The host system.
12451 host_alias=$host_alias
12452 host=$host
12453 host_os=$host_os
12454
12455 # The build system.
12456 build_alias=$build_alias
12457 build=$build
12458 build_os=$build_os
12459
12460 # An echo program that does not interpret backslashes.
12461 echo=$lt_echo
12462
12463 # The archiver.
12464 AR=$lt_AR
12465 AR_FLAGS=$lt_AR_FLAGS
12466
12467 # A C compiler.
12468 LTCC=$lt_LTCC
12469
12470 # LTCC compiler flags.
12471 LTCFLAGS=$lt_LTCFLAGS
12472
12473 # A language-specific compiler.
12474 CC=$lt_compiler_CXX
12475
12476 # Is the compiler the GNU C compiler?
12477 with_gcc=$GCC_CXX
12478
12479 # An ERE matcher.
12480 EGREP=$lt_EGREP
12481
12482 # The linker used to build libraries.
12483 LD=$lt_LD_CXX
12484
12485 # Whether we need hard or soft links.
12486 LN_S=$lt_LN_S
12487
12488 # A BSD-compatible nm program.
12489 NM=$lt_NM
12490
12491 # A symbol stripping program
12492 STRIP=$lt_STRIP
12493
12494 # Used to examine libraries when file_magic_cmd begins "file"
12495 MAGIC_CMD=$MAGIC_CMD
12496
12497 # Used on cygwin: DLL creation program.
12498 DLLTOOL="$DLLTOOL"
12499
12500 # Used on cygwin: object dumper.
12501 OBJDUMP="$OBJDUMP"
12502
12503 # Used on cygwin: assembler.
12504 AS="$AS"
12505
12506 # The name of the directory that contains temporary libtool files.
12507 objdir=$objdir
12508
12509 # How to create reloadable object files.
12510 reload_flag=$lt_reload_flag
12511 reload_cmds=$lt_reload_cmds
12512
12513 # How to pass a linker flag through the compiler.
12514 wl=$lt_lt_prog_compiler_wl_CXX
12515
12516 # Object file suffix (normally "o").
12517 objext="$ac_objext"
12518
12519 # Old archive suffix (normally "a").
12520 libext="$libext"
12521
12522 # Shared library suffix (normally ".so").
12523 shrext_cmds='$shrext_cmds'
12524
12525 # Executable file suffix (normally "").
12526 exeext="$exeext"
12527
12528 # Additional compiler flags for building library objects.
12529 pic_flag=$lt_lt_prog_compiler_pic_CXX
12530 pic_mode=$pic_mode
12531
12532 # What is the maximum length of a command?
12533 max_cmd_len=$lt_cv_sys_max_cmd_len
12534
12535 # Does compiler simultaneously support -c and -o options?
12536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12537
12538 # Must we lock files when doing compilation?
12539 need_locks=$lt_need_locks
12540
12541 # Do we need the lib prefix for modules?
12542 need_lib_prefix=$need_lib_prefix
12543
12544 # Do we need a version for libraries?
12545 need_version=$need_version
12546
12547 # Whether dlopen is supported.
12548 dlopen_support=$enable_dlopen
12549
12550 # Whether dlopen of programs is supported.
12551 dlopen_self=$enable_dlopen_self
12552
12553 # Whether dlopen of statically linked programs is supported.
12554 dlopen_self_static=$enable_dlopen_self_static
12555
12556 # Compiler flag to prevent dynamic linking.
12557 link_static_flag=$lt_lt_prog_compiler_static_CXX
12558
12559 # Compiler flag to turn off builtin functions.
12560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12561
12562 # Compiler flag to allow reflexive dlopens.
12563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12564
12565 # Compiler flag to generate shared objects directly from archives.
12566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12567
12568 # Compiler flag to generate thread-safe objects.
12569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12570
12571 # Library versioning type.
12572 version_type=$version_type
12573
12574 # Format of library name prefix.
12575 libname_spec=$lt_libname_spec
12576
12577 # List of archive names.  First name is the real one, the rest are links.
12578 # The last name is the one that the linker finds with -lNAME.
12579 library_names_spec=$lt_library_names_spec
12580
12581 # The coded name of the library, if different from the real name.
12582 soname_spec=$lt_soname_spec
12583
12584 # Commands used to build and install an old-style archive.
12585 RANLIB=$lt_RANLIB
12586 old_archive_cmds=$lt_old_archive_cmds_CXX
12587 old_postinstall_cmds=$lt_old_postinstall_cmds
12588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12589
12590 # Create an old-style archive from a shared archive.
12591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12592
12593 # Create a temporary old-style archive to link instead of a shared archive.
12594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12595
12596 # Commands used to build and install a shared archive.
12597 archive_cmds=$lt_archive_cmds_CXX
12598 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12599 postinstall_cmds=$lt_postinstall_cmds
12600 postuninstall_cmds=$lt_postuninstall_cmds
12601
12602 # Commands used to build a loadable module (assumed same as above if empty)
12603 module_cmds=$lt_module_cmds_CXX
12604 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12605
12606 # Commands to strip libraries.
12607 old_striplib=$lt_old_striplib
12608 striplib=$lt_striplib
12609
12610 # Dependencies to place before the objects being linked to create a
12611 # shared library.
12612 predep_objects=$lt_predep_objects_CXX
12613
12614 # Dependencies to place after the objects being linked to create a
12615 # shared library.
12616 postdep_objects=$lt_postdep_objects_CXX
12617
12618 # Dependencies to place before the objects being linked to create a
12619 # shared library.
12620 predeps=$lt_predeps_CXX
12621
12622 # Dependencies to place after the objects being linked to create a
12623 # shared library.
12624 postdeps=$lt_postdeps_CXX
12625
12626 # The library search path used internally by the compiler when linking
12627 # a shared library.
12628 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12629
12630 # Method to check whether dependent libraries are shared objects.
12631 deplibs_check_method=$lt_deplibs_check_method
12632
12633 # Command to use when deplibs_check_method == file_magic.
12634 file_magic_cmd=$lt_file_magic_cmd
12635
12636 # Flag that allows shared libraries with undefined symbols to be built.
12637 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12638
12639 # Flag that forces no undefined symbols.
12640 no_undefined_flag=$lt_no_undefined_flag_CXX
12641
12642 # Commands used to finish a libtool library installation in a directory.
12643 finish_cmds=$lt_finish_cmds
12644
12645 # Same as above, but a single script fragment to be evaled but not shown.
12646 finish_eval=$lt_finish_eval
12647
12648 # Take the output of nm and produce a listing of raw symbols and C names.
12649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12650
12651 # Transform the output of nm in a proper C declaration
12652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12653
12654 # Transform the output of nm in a C name address pair
12655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12656
12657 # This is the shared library runtime path variable.
12658 runpath_var=$runpath_var
12659
12660 # This is the shared library path variable.
12661 shlibpath_var=$shlibpath_var
12662
12663 # Is shlibpath searched before the hard-coded library search path?
12664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12665
12666 # How to hardcode a shared library path into an executable.
12667 hardcode_action=$hardcode_action_CXX
12668
12669 # Whether we should hardcode library paths into libraries.
12670 hardcode_into_libs=$hardcode_into_libs
12671
12672 # Flag to hardcode \$libdir into a binary during linking.
12673 # This must work even if \$libdir does not exist.
12674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12675
12676 # If ld is used when linking, flag to hardcode \$libdir into
12677 # a binary during linking. This must work even if \$libdir does
12678 # not exist.
12679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12680
12681 # Whether we need a single -rpath flag with a separated argument.
12682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12683
12684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12685 # resulting binary.
12686 hardcode_direct=$hardcode_direct_CXX
12687
12688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12689 # resulting binary.
12690 hardcode_minus_L=$hardcode_minus_L_CXX
12691
12692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12693 # the resulting binary.
12694 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12695
12696 # Set to yes if building a shared library automatically hardcodes DIR into the library
12697 # and all subsequent libraries and executables linked against it.
12698 hardcode_automatic=$hardcode_automatic_CXX
12699
12700 # Variables whose values should be saved in libtool wrapper scripts and
12701 # restored at relink time.
12702 variables_saved_for_relink="$variables_saved_for_relink"
12703
12704 # Whether libtool must link a program against all its dependency libraries.
12705 link_all_deplibs=$link_all_deplibs_CXX
12706
12707 # Compile-time system search path for libraries
12708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12709
12710 # Run-time system search path for libraries
12711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12712
12713 # Fix the shell variable \$srcfile for the compiler.
12714 fix_srcfile_path="$fix_srcfile_path_CXX"
12715
12716 # Set to yes if exported symbols are required.
12717 always_export_symbols=$always_export_symbols_CXX
12718
12719 # The commands to list exported symbols.
12720 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12721
12722 # The commands to extract the exported symbol list from a shared archive.
12723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12724
12725 # Symbols that should not be listed in the preloaded symbols.
12726 exclude_expsyms=$lt_exclude_expsyms_CXX
12727
12728 # Symbols that must always be exported.
12729 include_expsyms=$lt_include_expsyms_CXX
12730
12731 # ### END LIBTOOL TAG CONFIG: $tagname
12732
12733 __EOF__
12734
12735
12736 else
12737   # If there is no Makefile yet, we rely on a make rule to execute
12738   # `config.status --recheck' to rerun these tests and create the
12739   # libtool script then.
12740   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12741   if test -f "$ltmain_in"; then
12742     test -f Makefile && make "$ltmain"
12743   fi
12744 fi
12745
12746
12747 ac_ext=c
12748 ac_cpp='$CPP $CPPFLAGS'
12749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12752
12753 CC=$lt_save_CC
12754 LDCXX=$LD
12755 LD=$lt_save_LD
12756 GCC=$lt_save_GCC
12757 with_gnu_ldcxx=$with_gnu_ld
12758 with_gnu_ld=$lt_save_with_gnu_ld
12759 lt_cv_path_LDCXX=$lt_cv_path_LD
12760 lt_cv_path_LD=$lt_save_path_LD
12761 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12762 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12763
12764         else
12765           tagname=""
12766         fi
12767         ;;
12768
12769       F77)
12770         if test -n "$F77" && test "X$F77" != "Xno"; then
12771
12772 ac_ext=f
12773 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12774 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12775 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12776
12777
12778 archive_cmds_need_lc_F77=no
12779 allow_undefined_flag_F77=
12780 always_export_symbols_F77=no
12781 archive_expsym_cmds_F77=
12782 export_dynamic_flag_spec_F77=
12783 hardcode_direct_F77=no
12784 hardcode_libdir_flag_spec_F77=
12785 hardcode_libdir_flag_spec_ld_F77=
12786 hardcode_libdir_separator_F77=
12787 hardcode_minus_L_F77=no
12788 hardcode_automatic_F77=no
12789 module_cmds_F77=
12790 module_expsym_cmds_F77=
12791 link_all_deplibs_F77=unknown
12792 old_archive_cmds_F77=$old_archive_cmds
12793 no_undefined_flag_F77=
12794 whole_archive_flag_spec_F77=
12795 enable_shared_with_static_runtimes_F77=no
12796
12797 # Source file extension for f77 test sources.
12798 ac_ext=f
12799
12800 # Object file extension for compiled f77 test sources.
12801 objext=o
12802 objext_F77=$objext
12803
12804 # Code to be used in simple compile tests
12805 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12806
12807 # Code to be used in simple link tests
12808 lt_simple_link_test_code="      program t\n      end\n"
12809
12810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12811
12812 # If no C compiler was specified, use CC.
12813 LTCC=${LTCC-"$CC"}
12814
12815 # If no C compiler flags were specified, use CFLAGS.
12816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12817
12818 # Allow CC to be a program name with arguments.
12819 compiler=$CC
12820
12821
12822 # save warnings/boilerplate of simple test code
12823 ac_outfile=conftest.$ac_objext
12824 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12826 _lt_compiler_boilerplate=`cat conftest.err`
12827 $rm conftest*
12828
12829 ac_outfile=conftest.$ac_objext
12830 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12832 _lt_linker_boilerplate=`cat conftest.err`
12833 $rm conftest*
12834
12835
12836 # Allow CC to be a program name with arguments.
12837 lt_save_CC="$CC"
12838 CC=${F77-"f77"}
12839 compiler=$CC
12840 compiler_F77=$CC
12841 for cc_temp in $compiler""; do
12842   case $cc_temp in
12843     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12844     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12845     \-*) ;;
12846     *) break;;
12847   esac
12848 done
12849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12850
12851
12852 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12853 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12854 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12855 echo "${ECHO_T}$can_build_shared" >&6
12856
12857 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12858 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12859 test "$can_build_shared" = "no" && enable_shared=no
12860
12861 # On AIX, shared libraries and static libraries use the same namespace, and
12862 # are all built from PIC.
12863 case $host_os in
12864 aix3*)
12865   test "$enable_shared" = yes && enable_static=no
12866   if test -n "$RANLIB"; then
12867     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12868     postinstall_cmds='$RANLIB $lib'
12869   fi
12870   ;;
12871 aix4* | aix5*)
12872   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12873     test "$enable_shared" = yes && enable_static=no
12874   fi
12875   ;;
12876 esac
12877 echo "$as_me:$LINENO: result: $enable_shared" >&5
12878 echo "${ECHO_T}$enable_shared" >&6
12879
12880 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12881 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12882 # Make sure either enable_shared or enable_static is yes.
12883 test "$enable_shared" = yes || enable_static=yes
12884 echo "$as_me:$LINENO: result: $enable_static" >&5
12885 echo "${ECHO_T}$enable_static" >&6
12886
12887 GCC_F77="$G77"
12888 LD_F77="$LD"
12889
12890 lt_prog_compiler_wl_F77=
12891 lt_prog_compiler_pic_F77=
12892 lt_prog_compiler_static_F77=
12893
12894 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12896
12897   if test "$GCC" = yes; then
12898     lt_prog_compiler_wl_F77='-Wl,'
12899     lt_prog_compiler_static_F77='-static'
12900
12901     case $host_os in
12902       aix*)
12903       # All AIX code is PIC.
12904       if test "$host_cpu" = ia64; then
12905         # AIX 5 now supports IA64 processor
12906         lt_prog_compiler_static_F77='-Bstatic'
12907       fi
12908       ;;
12909
12910     amigaos*)
12911       # FIXME: we need at least 68020 code to build shared libraries, but
12912       # adding the `-m68020' flag to GCC prevents building anything better,
12913       # like `-m68040'.
12914       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12915       ;;
12916
12917     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12918       # PIC is the default for these OSes.
12919       ;;
12920
12921     mingw* | pw32* | os2*)
12922       # This hack is so that the source file can tell whether it is being
12923       # built for inclusion in a dll (and should export symbols for example).
12924       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12925       ;;
12926
12927     darwin* | rhapsody*)
12928       # PIC is the default on this platform
12929       # Common symbols not allowed in MH_DYLIB files
12930       lt_prog_compiler_pic_F77='-fno-common'
12931       ;;
12932
12933     interix3*)
12934       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12935       # Instead, we relocate shared libraries at runtime.
12936       ;;
12937
12938     msdosdjgpp*)
12939       # Just because we use GCC doesn't mean we suddenly get shared libraries
12940       # on systems that don't support them.
12941       lt_prog_compiler_can_build_shared_F77=no
12942       enable_shared=no
12943       ;;
12944
12945     sysv4*MP*)
12946       if test -d /usr/nec; then
12947         lt_prog_compiler_pic_F77=-Kconform_pic
12948       fi
12949       ;;
12950
12951     hpux*)
12952       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12953       # not for PA HP-UX.
12954       case $host_cpu in
12955       hppa*64*|ia64*)
12956         # +Z the default
12957         ;;
12958       *)
12959         lt_prog_compiler_pic_F77='-fPIC'
12960         ;;
12961       esac
12962       ;;
12963
12964     *)
12965       lt_prog_compiler_pic_F77='-fPIC'
12966       ;;
12967     esac
12968   else
12969     # PORTME Check for flag to pass linker flags through the system compiler.
12970     case $host_os in
12971     aix*)
12972       lt_prog_compiler_wl_F77='-Wl,'
12973       if test "$host_cpu" = ia64; then
12974         # AIX 5 now supports IA64 processor
12975         lt_prog_compiler_static_F77='-Bstatic'
12976       else
12977         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12978       fi
12979       ;;
12980       darwin*)
12981         # PIC is the default on this platform
12982         # Common symbols not allowed in MH_DYLIB files
12983        case $cc_basename in
12984          xlc*)
12985          lt_prog_compiler_pic_F77='-qnocommon'
12986          lt_prog_compiler_wl_F77='-Wl,'
12987          ;;
12988        esac
12989        ;;
12990
12991     mingw* | pw32* | os2*)
12992       # This hack is so that the source file can tell whether it is being
12993       # built for inclusion in a dll (and should export symbols for example).
12994       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12995       ;;
12996
12997     hpux9* | hpux10* | hpux11*)
12998       lt_prog_compiler_wl_F77='-Wl,'
12999       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13000       # not for PA HP-UX.
13001       case $host_cpu in
13002       hppa*64*|ia64*)
13003         # +Z the default
13004         ;;
13005       *)
13006         lt_prog_compiler_pic_F77='+Z'
13007         ;;
13008       esac
13009       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13010       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13011       ;;
13012
13013     irix5* | irix6* | nonstopux*)
13014       lt_prog_compiler_wl_F77='-Wl,'
13015       # PIC (with -KPIC) is the default.
13016       lt_prog_compiler_static_F77='-non_shared'
13017       ;;
13018
13019     newsos6)
13020       lt_prog_compiler_pic_F77='-KPIC'
13021       lt_prog_compiler_static_F77='-Bstatic'
13022       ;;
13023
13024     linux*)
13025       case $cc_basename in
13026       icc* | ecc*)
13027         lt_prog_compiler_wl_F77='-Wl,'
13028         lt_prog_compiler_pic_F77='-KPIC'
13029         lt_prog_compiler_static_F77='-static'
13030         ;;
13031       pgcc* | pgf77* | pgf90* | pgf95*)
13032         # Portland Group compilers (*not* the Pentium gcc compiler,
13033         # which looks to be a dead project)
13034         lt_prog_compiler_wl_F77='-Wl,'
13035         lt_prog_compiler_pic_F77='-fpic'
13036         lt_prog_compiler_static_F77='-Bstatic'
13037         ;;
13038       ccc*)
13039         lt_prog_compiler_wl_F77='-Wl,'
13040         # All Alpha code is PIC.
13041         lt_prog_compiler_static_F77='-non_shared'
13042         ;;
13043       esac
13044       ;;
13045
13046     osf3* | osf4* | osf5*)
13047       lt_prog_compiler_wl_F77='-Wl,'
13048       # All OSF/1 code is PIC.
13049       lt_prog_compiler_static_F77='-non_shared'
13050       ;;
13051
13052     solaris*)
13053       lt_prog_compiler_pic_F77='-KPIC'
13054       lt_prog_compiler_static_F77='-Bstatic'
13055       case $cc_basename in
13056       f77* | f90* | f95*)
13057         lt_prog_compiler_wl_F77='-Qoption ld ';;
13058       *)
13059         lt_prog_compiler_wl_F77='-Wl,';;
13060       esac
13061       ;;
13062
13063     sunos4*)
13064       lt_prog_compiler_wl_F77='-Qoption ld '
13065       lt_prog_compiler_pic_F77='-PIC'
13066       lt_prog_compiler_static_F77='-Bstatic'
13067       ;;
13068
13069     sysv4 | sysv4.2uw2* | sysv4.3*)
13070       lt_prog_compiler_wl_F77='-Wl,'
13071       lt_prog_compiler_pic_F77='-KPIC'
13072       lt_prog_compiler_static_F77='-Bstatic'
13073       ;;
13074
13075     sysv4*MP*)
13076       if test -d /usr/nec ;then
13077         lt_prog_compiler_pic_F77='-Kconform_pic'
13078         lt_prog_compiler_static_F77='-Bstatic'
13079       fi
13080       ;;
13081
13082     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13083       lt_prog_compiler_wl_F77='-Wl,'
13084       lt_prog_compiler_pic_F77='-KPIC'
13085       lt_prog_compiler_static_F77='-Bstatic'
13086       ;;
13087
13088     unicos*)
13089       lt_prog_compiler_wl_F77='-Wl,'
13090       lt_prog_compiler_can_build_shared_F77=no
13091       ;;
13092
13093     uts4*)
13094       lt_prog_compiler_pic_F77='-pic'
13095       lt_prog_compiler_static_F77='-Bstatic'
13096       ;;
13097
13098     *)
13099       lt_prog_compiler_can_build_shared_F77=no
13100       ;;
13101     esac
13102   fi
13103
13104 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13105 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13106
13107 #
13108 # Check to make sure the PIC flag actually works.
13109 #
13110 if test -n "$lt_prog_compiler_pic_F77"; then
13111
13112 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13114 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117   lt_prog_compiler_pic_works_F77=no
13118   ac_outfile=conftest.$ac_objext
13119    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13120    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13121    # Insert the option either (1) after the last *FLAGS variable, or
13122    # (2) before a word containing "conftest.", or (3) at the end.
13123    # Note that $ac_compile itself does not contain backslashes and begins
13124    # with a dollar sign (not a hyphen), so the echo should work correctly.
13125    # The option is referenced via a variable to avoid confusing sed.
13126    lt_compile=`echo "$ac_compile" | $SED \
13127    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13129    -e 's:$: $lt_compiler_flag:'`
13130    (eval echo "\"\$as_me:13130: $lt_compile\"" >&5)
13131    (eval "$lt_compile" 2>conftest.err)
13132    ac_status=$?
13133    cat conftest.err >&5
13134    echo "$as_me:13134: \$? = $ac_status" >&5
13135    if (exit $ac_status) && test -s "$ac_outfile"; then
13136      # The compiler can only warn and ignore the option if not recognized
13137      # So say no if there are warnings other than the usual output.
13138      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13139      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13140      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13141        lt_prog_compiler_pic_works_F77=yes
13142      fi
13143    fi
13144    $rm conftest*
13145
13146 fi
13147 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13148 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13149
13150 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13151     case $lt_prog_compiler_pic_F77 in
13152      "" | " "*) ;;
13153      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13154      esac
13155 else
13156     lt_prog_compiler_pic_F77=
13157      lt_prog_compiler_can_build_shared_F77=no
13158 fi
13159
13160 fi
13161 case $host_os in
13162   # For platforms which do not support PIC, -DPIC is meaningless:
13163   *djgpp*)
13164     lt_prog_compiler_pic_F77=
13165     ;;
13166   *)
13167     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13168     ;;
13169 esac
13170
13171 #
13172 # Check to make sure the static flag actually works.
13173 #
13174 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13175 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13176 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13177 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13178   echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180   lt_prog_compiler_static_works_F77=no
13181    save_LDFLAGS="$LDFLAGS"
13182    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13183    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13184    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13185      # The linker can only warn and ignore the option if not recognized
13186      # So say no if there are warnings
13187      if test -s conftest.err; then
13188        # Append any errors to the config.log.
13189        cat conftest.err 1>&5
13190        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13191        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13192        if diff conftest.exp conftest.er2 >/dev/null; then
13193          lt_prog_compiler_static_works_F77=yes
13194        fi
13195      else
13196        lt_prog_compiler_static_works_F77=yes
13197      fi
13198    fi
13199    $rm conftest*
13200    LDFLAGS="$save_LDFLAGS"
13201
13202 fi
13203 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13204 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13205
13206 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13207     :
13208 else
13209     lt_prog_compiler_static_F77=
13210 fi
13211
13212
13213 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13214 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13215 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   lt_cv_prog_compiler_c_o_F77=no
13219    $rm -r conftest 2>/dev/null
13220    mkdir conftest
13221    cd conftest
13222    mkdir out
13223    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13224
13225    lt_compiler_flag="-o out/conftest2.$ac_objext"
13226    # Insert the option either (1) after the last *FLAGS variable, or
13227    # (2) before a word containing "conftest.", or (3) at the end.
13228    # Note that $ac_compile itself does not contain backslashes and begins
13229    # with a dollar sign (not a hyphen), so the echo should work correctly.
13230    lt_compile=`echo "$ac_compile" | $SED \
13231    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13233    -e 's:$: $lt_compiler_flag:'`
13234    (eval echo "\"\$as_me:13234: $lt_compile\"" >&5)
13235    (eval "$lt_compile" 2>out/conftest.err)
13236    ac_status=$?
13237    cat out/conftest.err >&5
13238    echo "$as_me:13238: \$? = $ac_status" >&5
13239    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13240    then
13241      # The compiler can only warn and ignore the option if not recognized
13242      # So say no if there are warnings
13243      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13244      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13245      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13246        lt_cv_prog_compiler_c_o_F77=yes
13247      fi
13248    fi
13249    chmod u+w . 2>&5
13250    $rm conftest*
13251    # SGI C++ compiler will create directory out/ii_files/ for
13252    # template instantiation
13253    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13254    $rm out/* && rmdir out
13255    cd ..
13256    rmdir conftest
13257    $rm conftest*
13258
13259 fi
13260 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13261 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13262
13263
13264 hard_links="nottested"
13265 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13266   # do not overwrite the value of need_locks provided by the user
13267   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13268 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13269   hard_links=yes
13270   $rm conftest*
13271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13272   touch conftest.a
13273   ln conftest.a conftest.b 2>&5 || hard_links=no
13274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13275   echo "$as_me:$LINENO: result: $hard_links" >&5
13276 echo "${ECHO_T}$hard_links" >&6
13277   if test "$hard_links" = no; then
13278     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13280     need_locks=warn
13281   fi
13282 else
13283   need_locks=no
13284 fi
13285
13286 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13287 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13288
13289   runpath_var=
13290   allow_undefined_flag_F77=
13291   enable_shared_with_static_runtimes_F77=no
13292   archive_cmds_F77=
13293   archive_expsym_cmds_F77=
13294   old_archive_From_new_cmds_F77=
13295   old_archive_from_expsyms_cmds_F77=
13296   export_dynamic_flag_spec_F77=
13297   whole_archive_flag_spec_F77=
13298   thread_safe_flag_spec_F77=
13299   hardcode_libdir_flag_spec_F77=
13300   hardcode_libdir_flag_spec_ld_F77=
13301   hardcode_libdir_separator_F77=
13302   hardcode_direct_F77=no
13303   hardcode_minus_L_F77=no
13304   hardcode_shlibpath_var_F77=unsupported
13305   link_all_deplibs_F77=unknown
13306   hardcode_automatic_F77=no
13307   module_cmds_F77=
13308   module_expsym_cmds_F77=
13309   always_export_symbols_F77=no
13310   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13311   # include_expsyms should be a list of space-separated symbols to be *always*
13312   # included in the symbol list
13313   include_expsyms_F77=
13314   # exclude_expsyms can be an extended regexp of symbols to exclude
13315   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13316   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13317   # as well as any symbol that contains `d'.
13318   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13319   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13320   # platforms (ab)use it in PIC code, but their linkers get confused if
13321   # the symbol is explicitly referenced.  Since portable code cannot
13322   # rely on this symbol name, it's probably fine to never include it in
13323   # preloaded symbol tables.
13324   extract_expsyms_cmds=
13325   # Just being paranoid about ensuring that cc_basename is set.
13326   for cc_temp in $compiler""; do
13327   case $cc_temp in
13328     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13329     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13330     \-*) ;;
13331     *) break;;
13332   esac
13333 done
13334 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13335
13336   case $host_os in
13337   cygwin* | mingw* | pw32*)
13338     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13339     # When not using gcc, we currently assume that we are using
13340     # Microsoft Visual C++.
13341     if test "$GCC" != yes; then
13342       with_gnu_ld=no
13343     fi
13344     ;;
13345   interix*)
13346     # we just hope/assume this is gcc and not c89 (= MSVC++)
13347     with_gnu_ld=yes
13348     ;;
13349   openbsd*)
13350     with_gnu_ld=no
13351     ;;
13352   esac
13353
13354   ld_shlibs_F77=yes
13355   if test "$with_gnu_ld" = yes; then
13356     # If archive_cmds runs LD, not CC, wlarc should be empty
13357     wlarc='${wl}'
13358
13359     # Set some defaults for GNU ld with shared library support. These
13360     # are reset later if shared libraries are not supported. Putting them
13361     # here allows them to be overridden if necessary.
13362     runpath_var=LD_RUN_PATH
13363     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13364     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13365     # ancient GNU ld didn't support --whole-archive et. al.
13366     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13367         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13368       else
13369         whole_archive_flag_spec_F77=
13370     fi
13371     supports_anon_versioning=no
13372     case `$LD -v 2>/dev/null` in
13373       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13374       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13375       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13376       *\ 2.11.*) ;; # other 2.11 versions
13377       *) supports_anon_versioning=yes ;;
13378     esac
13379
13380     # See if GNU ld supports shared libraries.
13381     case $host_os in
13382     aix3* | aix4* | aix5*)
13383       # On AIX/PPC, the GNU linker is very broken
13384       if test "$host_cpu" != ia64; then
13385         ld_shlibs_F77=no
13386         cat <<EOF 1>&2
13387
13388 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13389 *** to be unable to reliably create shared libraries on AIX.
13390 *** Therefore, libtool is disabling shared libraries support.  If you
13391 *** really care for shared libraries, you may want to modify your PATH
13392 *** so that a non-GNU linker is found, and then restart.
13393
13394 EOF
13395       fi
13396       ;;
13397
13398     amigaos*)
13399       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)'
13400       hardcode_libdir_flag_spec_F77='-L$libdir'
13401       hardcode_minus_L_F77=yes
13402
13403       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13404       # that the semantics of dynamic libraries on AmigaOS, at least up
13405       # to version 4, is to share data among multiple programs linked
13406       # with the same dynamic library.  Since this doesn't match the
13407       # behavior of shared libraries on other platforms, we can't use
13408       # them.
13409       ld_shlibs_F77=no
13410       ;;
13411
13412     beos*)
13413       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13414         allow_undefined_flag_F77=unsupported
13415         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13416         # support --undefined.  This deserves some investigation.  FIXME
13417         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13418       else
13419         ld_shlibs_F77=no
13420       fi
13421       ;;
13422
13423     cygwin* | mingw* | pw32*)
13424       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13425       # as there is no search path for DLLs.
13426       hardcode_libdir_flag_spec_F77='-L$libdir'
13427       allow_undefined_flag_F77=unsupported
13428       always_export_symbols_F77=no
13429       enable_shared_with_static_runtimes_F77=yes
13430       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13431
13432       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13433         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13434         # If the export-symbols file already is a .def file (1st line
13435         # is EXPORTS), use it as is; otherwise, prepend...
13436         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13437           cp $export_symbols $output_objdir/$soname.def;
13438         else
13439           echo EXPORTS > $output_objdir/$soname.def;
13440           cat $export_symbols >> $output_objdir/$soname.def;
13441         fi~
13442         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13443       else
13444         ld_shlibs_F77=no
13445       fi
13446       ;;
13447
13448     interix3*)
13449       hardcode_direct_F77=no
13450       hardcode_shlibpath_var_F77=no
13451       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13452       export_dynamic_flag_spec_F77='${wl}-E'
13453       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13454       # Instead, shared libraries are loaded at an image base (0x10000000 by
13455       # default) and relocated if they conflict, which is a slow very memory
13456       # consuming and fragmenting process.  To avoid this, we pick a random,
13457       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13458       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13459       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13460       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13461       ;;
13462
13463     linux*)
13464       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13465         tmp_addflag=
13466         case $cc_basename,$host_cpu in
13467         pgcc*)                          # Portland Group C compiler
13468           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13469           tmp_addflag=' $pic_flag'
13470           ;;
13471         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13472           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13473           tmp_addflag=' $pic_flag -Mnomain' ;;
13474         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13475           tmp_addflag=' -i_dynamic' ;;
13476         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13477           tmp_addflag=' -i_dynamic -nofor_main' ;;
13478         ifc* | ifort*)                  # Intel Fortran compiler
13479           tmp_addflag=' -nofor_main' ;;
13480         esac
13481         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482
13483         if test $supports_anon_versioning = yes; then
13484           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13485   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13486   $echo "local: *; };" >> $output_objdir/$libname.ver~
13487           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13488         fi
13489       else
13490         ld_shlibs_F77=no
13491       fi
13492       ;;
13493
13494     netbsd*)
13495       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13496         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13497         wlarc=
13498       else
13499         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13501       fi
13502       ;;
13503
13504     solaris*)
13505       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13506         ld_shlibs_F77=no
13507         cat <<EOF 1>&2
13508
13509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13510 *** create shared libraries on Solaris systems.  Therefore, libtool
13511 *** is disabling shared libraries support.  We urge you to upgrade GNU
13512 *** binutils to release 2.9.1 or newer.  Another option is to modify
13513 *** your PATH or compiler configuration so that the native linker is
13514 *** used, and then restart.
13515
13516 EOF
13517       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13518         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13520       else
13521         ld_shlibs_F77=no
13522       fi
13523       ;;
13524
13525     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13526       case `$LD -v 2>&1` in
13527         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13528         ld_shlibs_F77=no
13529         cat <<_LT_EOF 1>&2
13530
13531 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13532 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13533 *** is disabling shared libraries support.  We urge you to upgrade GNU
13534 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13535 *** your PATH or compiler configuration so that the native linker is
13536 *** used, and then restart.
13537
13538 _LT_EOF
13539         ;;
13540         *)
13541           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13542             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13543             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13544             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13545           else
13546             ld_shlibs_F77=no
13547           fi
13548         ;;
13549       esac
13550       ;;
13551
13552     sunos4*)
13553       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13554       wlarc=
13555       hardcode_direct_F77=yes
13556       hardcode_shlibpath_var_F77=no
13557       ;;
13558
13559     *)
13560       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13563       else
13564         ld_shlibs_F77=no
13565       fi
13566       ;;
13567     esac
13568
13569     if test "$ld_shlibs_F77" = no; then
13570       runpath_var=
13571       hardcode_libdir_flag_spec_F77=
13572       export_dynamic_flag_spec_F77=
13573       whole_archive_flag_spec_F77=
13574     fi
13575   else
13576     # PORTME fill in a description of your system's linker (not GNU ld)
13577     case $host_os in
13578     aix3*)
13579       allow_undefined_flag_F77=unsupported
13580       always_export_symbols_F77=yes
13581       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'
13582       # Note: this linker hardcodes the directories in LIBPATH if there
13583       # are no directories specified by -L.
13584       hardcode_minus_L_F77=yes
13585       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13586         # Neither direct hardcoding nor static linking is supported with a
13587         # broken collect2.
13588         hardcode_direct_F77=unsupported
13589       fi
13590       ;;
13591
13592     aix4* | aix5*)
13593       if test "$host_cpu" = ia64; then
13594         # On IA64, the linker does run time linking by default, so we don't
13595         # have to do anything special.
13596         aix_use_runtimelinking=no
13597         exp_sym_flag='-Bexport'
13598         no_entry_flag=""
13599       else
13600         # If we're using GNU nm, then we don't want the "-C" option.
13601         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13602         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13603           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'
13604         else
13605           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'
13606         fi
13607         aix_use_runtimelinking=no
13608
13609         # Test if we are trying to use run time linking or normal
13610         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13611         # need to do runtime linking.
13612         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13613           for ld_flag in $LDFLAGS; do
13614           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13615             aix_use_runtimelinking=yes
13616             break
13617           fi
13618           done
13619           ;;
13620         esac
13621
13622         exp_sym_flag='-bexport'
13623         no_entry_flag='-bnoentry'
13624       fi
13625
13626       # When large executables or shared objects are built, AIX ld can
13627       # have problems creating the table of contents.  If linking a library
13628       # or program results in "error TOC overflow" add -mminimal-toc to
13629       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13630       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13631
13632       archive_cmds_F77=''
13633       hardcode_direct_F77=yes
13634       hardcode_libdir_separator_F77=':'
13635       link_all_deplibs_F77=yes
13636
13637       if test "$GCC" = yes; then
13638         case $host_os in aix4.[012]|aix4.[012].*)
13639         # We only want to do this on AIX 4.2 and lower, the check
13640         # below for broken collect2 doesn't work under 4.3+
13641           collect2name=`${CC} -print-prog-name=collect2`
13642           if test -f "$collect2name" && \
13643            strings "$collect2name" | grep resolve_lib_name >/dev/null
13644           then
13645           # We have reworked collect2
13646           hardcode_direct_F77=yes
13647           else
13648           # We have old collect2
13649           hardcode_direct_F77=unsupported
13650           # It fails to find uninstalled libraries when the uninstalled
13651           # path is not listed in the libpath.  Setting hardcode_minus_L
13652           # to unsupported forces relinking
13653           hardcode_minus_L_F77=yes
13654           hardcode_libdir_flag_spec_F77='-L$libdir'
13655           hardcode_libdir_separator_F77=
13656           fi
13657           ;;
13658         esac
13659         shared_flag='-shared'
13660         if test "$aix_use_runtimelinking" = yes; then
13661           shared_flag="$shared_flag "'${wl}-G'
13662         fi
13663       else
13664         # not using gcc
13665         if test "$host_cpu" = ia64; then
13666         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13667         # chokes on -Wl,-G. The following line is correct:
13668           shared_flag='-G'
13669         else
13670           if test "$aix_use_runtimelinking" = yes; then
13671             shared_flag='${wl}-G'
13672           else
13673             shared_flag='${wl}-bM:SRE'
13674           fi
13675         fi
13676       fi
13677
13678       # It seems that -bexpall does not export symbols beginning with
13679       # underscore (_), so it is better to generate a list of symbols to export.
13680       always_export_symbols_F77=yes
13681       if test "$aix_use_runtimelinking" = yes; then
13682         # Warning - without using the other runtime loading flags (-brtl),
13683         # -berok will link without error, but may produce a broken library.
13684         allow_undefined_flag_F77='-berok'
13685        # Determine the default libpath from the value encoded in an empty executable.
13686        cat >conftest.$ac_ext <<_ACEOF
13687       program main
13688
13689       end
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693   (eval $ac_link) 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } &&
13700          { ac_try='test -z "$ac_f77_werror_flag"
13701                          || test ! -s conftest.err'
13702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703   (eval $ac_try) 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); }; } &&
13707          { ac_try='test -s conftest$ac_exeext'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713
13714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13715 }'`
13716 # Check for a 64-bit object if we didn't find anything.
13717 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; }
13718 }'`; fi
13719 else
13720   echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13722
13723 fi
13724 rm -f conftest.err conftest.$ac_objext \
13725       conftest$ac_exeext conftest.$ac_ext
13726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13727
13728        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13729         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13730        else
13731         if test "$host_cpu" = ia64; then
13732           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13733           allow_undefined_flag_F77="-z nodefs"
13734           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13735         else
13736          # Determine the default libpath from the value encoded in an empty executable.
13737          cat >conftest.$ac_ext <<_ACEOF
13738       program main
13739
13740       end
13741 _ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744   (eval $ac_link) 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -z "$ac_f77_werror_flag"
13752                          || test ! -s conftest.err'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; } &&
13758          { ac_try='test -s conftest$ac_exeext'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764
13765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13766 }'`
13767 # Check for a 64-bit object if we didn't find anything.
13768 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; }
13769 }'`; fi
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 fi
13775 rm -f conftest.err conftest.$ac_objext \
13776       conftest$ac_exeext conftest.$ac_ext
13777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13778
13779          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13780           # Warning - without using the other run time loading flags,
13781           # -berok will link without error, but may produce a broken library.
13782           no_undefined_flag_F77=' ${wl}-bernotok'
13783           allow_undefined_flag_F77=' ${wl}-berok'
13784           # Exported symbols can be pulled into shared objects from archives
13785           whole_archive_flag_spec_F77='$convenience'
13786           archive_cmds_need_lc_F77=yes
13787           # This is similar to how AIX traditionally builds its shared libraries.
13788           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13789         fi
13790       fi
13791       ;;
13792
13793     amigaos*)
13794       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)'
13795       hardcode_libdir_flag_spec_F77='-L$libdir'
13796       hardcode_minus_L_F77=yes
13797       # see comment about different semantics on the GNU ld section
13798       ld_shlibs_F77=no
13799       ;;
13800
13801     bsdi[45]*)
13802       export_dynamic_flag_spec_F77=-rdynamic
13803       ;;
13804
13805     cygwin* | mingw* | pw32*)
13806       # When not using gcc, we currently assume that we are using
13807       # Microsoft Visual C++.
13808       # hardcode_libdir_flag_spec is actually meaningless, as there is
13809       # no search path for DLLs.
13810       hardcode_libdir_flag_spec_F77=' '
13811       allow_undefined_flag_F77=unsupported
13812       # Tell ltmain to make .lib files, not .a files.
13813       libext=lib
13814       # Tell ltmain to make .dll files, not .so files.
13815       shrext_cmds=".dll"
13816       # FIXME: Setting linknames here is a bad hack.
13817       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13818       # The linker will automatically build a .lib file if we build a DLL.
13819       old_archive_From_new_cmds_F77='true'
13820       # FIXME: Should let the user specify the lib program.
13821       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13822       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13823       enable_shared_with_static_runtimes_F77=yes
13824       ;;
13825
13826     darwin* | rhapsody*)
13827       case $host_os in
13828         rhapsody* | darwin1.[012])
13829          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13830          ;;
13831        *) # Darwin 1.3 on
13832          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13833            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13834          else
13835            case ${MACOSX_DEPLOYMENT_TARGET} in
13836              10.[012])
13837                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13838                ;;
13839              10.*)
13840                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13841                ;;
13842            esac
13843          fi
13844          ;;
13845       esac
13846       archive_cmds_need_lc_F77=no
13847       hardcode_direct_F77=no
13848       hardcode_automatic_F77=yes
13849       hardcode_shlibpath_var_F77=unsupported
13850       whole_archive_flag_spec_F77=''
13851       link_all_deplibs_F77=yes
13852     if test "$GCC" = yes ; then
13853         output_verbose_link_cmd='echo'
13854         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13855       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13856       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13857       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13858       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}'
13859     else
13860       case $cc_basename in
13861         xlc*)
13862          output_verbose_link_cmd='echo'
13863          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13864          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13865           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13866          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13867           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}'
13868           ;;
13869        *)
13870          ld_shlibs_F77=no
13871           ;;
13872       esac
13873     fi
13874       ;;
13875
13876     dgux*)
13877       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878       hardcode_libdir_flag_spec_F77='-L$libdir'
13879       hardcode_shlibpath_var_F77=no
13880       ;;
13881
13882     freebsd1*)
13883       ld_shlibs_F77=no
13884       ;;
13885
13886     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13887     # support.  Future versions do this automatically, but an explicit c++rt0.o
13888     # does not break anything, and helps significantly (at the cost of a little
13889     # extra space).
13890     freebsd2.2*)
13891       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13892       hardcode_libdir_flag_spec_F77='-R$libdir'
13893       hardcode_direct_F77=yes
13894       hardcode_shlibpath_var_F77=no
13895       ;;
13896
13897     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13898     freebsd2*)
13899       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13900       hardcode_direct_F77=yes
13901       hardcode_minus_L_F77=yes
13902       hardcode_shlibpath_var_F77=no
13903       ;;
13904
13905     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13906     freebsd* | kfreebsd*-gnu | dragonfly*)
13907       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13908       hardcode_libdir_flag_spec_F77='-R$libdir'
13909       hardcode_direct_F77=yes
13910       hardcode_shlibpath_var_F77=no
13911       ;;
13912
13913     hpux9*)
13914       if test "$GCC" = yes; then
13915         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'
13916       else
13917         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'
13918       fi
13919       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13920       hardcode_libdir_separator_F77=:
13921       hardcode_direct_F77=yes
13922
13923       # hardcode_minus_L: Not really in the search PATH,
13924       # but as the default location of the library.
13925       hardcode_minus_L_F77=yes
13926       export_dynamic_flag_spec_F77='${wl}-E'
13927       ;;
13928
13929     hpux10*)
13930       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13931         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13932       else
13933         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13934       fi
13935       if test "$with_gnu_ld" = no; then
13936         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13937         hardcode_libdir_separator_F77=:
13938
13939         hardcode_direct_F77=yes
13940         export_dynamic_flag_spec_F77='${wl}-E'
13941
13942         # hardcode_minus_L: Not really in the search PATH,
13943         # but as the default location of the library.
13944         hardcode_minus_L_F77=yes
13945       fi
13946       ;;
13947
13948     hpux11*)
13949       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13950         case $host_cpu in
13951         hppa*64*)
13952           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13953           ;;
13954         ia64*)
13955           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13956           ;;
13957         *)
13958           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13959           ;;
13960         esac
13961       else
13962         case $host_cpu in
13963         hppa*64*)
13964           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13965           ;;
13966         ia64*)
13967           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13968           ;;
13969         *)
13970           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13971           ;;
13972         esac
13973       fi
13974       if test "$with_gnu_ld" = no; then
13975         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13976         hardcode_libdir_separator_F77=:
13977
13978         case $host_cpu in
13979         hppa*64*|ia64*)
13980           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13981           hardcode_direct_F77=no
13982           hardcode_shlibpath_var_F77=no
13983           ;;
13984         *)
13985           hardcode_direct_F77=yes
13986           export_dynamic_flag_spec_F77='${wl}-E'
13987
13988           # hardcode_minus_L: Not really in the search PATH,
13989           # but as the default location of the library.
13990           hardcode_minus_L_F77=yes
13991           ;;
13992         esac
13993       fi
13994       ;;
13995
13996     irix5* | irix6* | nonstopux*)
13997       if test "$GCC" = yes; then
13998         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'
13999       else
14000         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'
14001         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14002       fi
14003       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14004       hardcode_libdir_separator_F77=:
14005       link_all_deplibs_F77=yes
14006       ;;
14007
14008     netbsd*)
14009       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14010         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14011       else
14012         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14013       fi
14014       hardcode_libdir_flag_spec_F77='-R$libdir'
14015       hardcode_direct_F77=yes
14016       hardcode_shlibpath_var_F77=no
14017       ;;
14018
14019     newsos6)
14020       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021       hardcode_direct_F77=yes
14022       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14023       hardcode_libdir_separator_F77=:
14024       hardcode_shlibpath_var_F77=no
14025       ;;
14026
14027     openbsd*)
14028       hardcode_direct_F77=yes
14029       hardcode_shlibpath_var_F77=no
14030       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14031         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14032         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14033         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14034         export_dynamic_flag_spec_F77='${wl}-E'
14035       else
14036        case $host_os in
14037          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14038            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14039            hardcode_libdir_flag_spec_F77='-R$libdir'
14040            ;;
14041          *)
14042            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14043            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14044            ;;
14045        esac
14046       fi
14047       ;;
14048
14049     os2*)
14050       hardcode_libdir_flag_spec_F77='-L$libdir'
14051       hardcode_minus_L_F77=yes
14052       allow_undefined_flag_F77=unsupported
14053       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'
14054       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14055       ;;
14056
14057     osf3*)
14058       if test "$GCC" = yes; then
14059         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14060         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'
14061       else
14062         allow_undefined_flag_F77=' -expect_unresolved \*'
14063         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'
14064       fi
14065       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14066       hardcode_libdir_separator_F77=:
14067       ;;
14068
14069     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14070       if test "$GCC" = yes; then
14071         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14072         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'
14073         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14074       else
14075         allow_undefined_flag_F77=' -expect_unresolved \*'
14076         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'
14077         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~
14078         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14079
14080         # Both c and cxx compiler support -rpath directly
14081         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14082       fi
14083       hardcode_libdir_separator_F77=:
14084       ;;
14085
14086     solaris*)
14087       no_undefined_flag_F77=' -z text'
14088       if test "$GCC" = yes; then
14089         wlarc='${wl}'
14090         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14091         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14092           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14093       else
14094         wlarc=''
14095         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14097         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14098       fi
14099       hardcode_libdir_flag_spec_F77='-R$libdir'
14100       hardcode_shlibpath_var_F77=no
14101       case $host_os in
14102       solaris2.[0-5] | solaris2.[0-5].*) ;;
14103       *)
14104         # The compiler driver will combine linker options so we
14105         # cannot just pass the convience library names through
14106         # without $wl, iff we do not link with $LD.
14107         # Luckily, gcc supports the same syntax we need for Sun Studio.
14108         # Supported since Solaris 2.6 (maybe 2.5.1?)
14109         case $wlarc in
14110         '')
14111           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14112         *)
14113           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14114         esac ;;
14115       esac
14116       link_all_deplibs_F77=yes
14117       ;;
14118
14119     sunos4*)
14120       if test "x$host_vendor" = xsequent; then
14121         # Use $CC to link under sequent, because it throws in some extra .o
14122         # files that make .init and .fini sections work.
14123         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14124       else
14125         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14126       fi
14127       hardcode_libdir_flag_spec_F77='-L$libdir'
14128       hardcode_direct_F77=yes
14129       hardcode_minus_L_F77=yes
14130       hardcode_shlibpath_var_F77=no
14131       ;;
14132
14133     sysv4)
14134       case $host_vendor in
14135         sni)
14136           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137           hardcode_direct_F77=yes # is this really true???
14138         ;;
14139         siemens)
14140           ## LD is ld it makes a PLAMLIB
14141           ## CC just makes a GrossModule.
14142           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14143           reload_cmds_F77='$CC -r -o $output$reload_objs'
14144           hardcode_direct_F77=no
14145         ;;
14146         motorola)
14147           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14148           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14149         ;;
14150       esac
14151       runpath_var='LD_RUN_PATH'
14152       hardcode_shlibpath_var_F77=no
14153       ;;
14154
14155     sysv4.3*)
14156       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14157       hardcode_shlibpath_var_F77=no
14158       export_dynamic_flag_spec_F77='-Bexport'
14159       ;;
14160
14161     sysv4*MP*)
14162       if test -d /usr/nec; then
14163         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164         hardcode_shlibpath_var_F77=no
14165         runpath_var=LD_RUN_PATH
14166         hardcode_runpath_var=yes
14167         ld_shlibs_F77=yes
14168       fi
14169       ;;
14170
14171     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14172       no_undefined_flag_F77='${wl}-z,text'
14173       archive_cmds_need_lc_F77=no
14174       hardcode_shlibpath_var_F77=no
14175       runpath_var='LD_RUN_PATH'
14176
14177       if test "$GCC" = yes; then
14178         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180       else
14181         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183       fi
14184       ;;
14185
14186     sysv5* | sco3.2v5* | sco5v6*)
14187       # Note: We can NOT use -z defs as we might desire, because we do not
14188       # link with -lc, and that would cause any symbols used from libc to
14189       # always be unresolved, which means just about no library would
14190       # ever link correctly.  If we're not using GNU ld we use -z text
14191       # though, which does catch some bad symbols but isn't as heavy-handed
14192       # as -z defs.
14193       no_undefined_flag_F77='${wl}-z,text'
14194       allow_undefined_flag_F77='${wl}-z,nodefs'
14195       archive_cmds_need_lc_F77=no
14196       hardcode_shlibpath_var_F77=no
14197       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14198       hardcode_libdir_separator_F77=':'
14199       link_all_deplibs_F77=yes
14200       export_dynamic_flag_spec_F77='${wl}-Bexport'
14201       runpath_var='LD_RUN_PATH'
14202
14203       if test "$GCC" = yes; then
14204         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14205         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14206       else
14207         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14208         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14209       fi
14210       ;;
14211
14212     uts4*)
14213       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14214       hardcode_libdir_flag_spec_F77='-L$libdir'
14215       hardcode_shlibpath_var_F77=no
14216       ;;
14217
14218     *)
14219       ld_shlibs_F77=no
14220       ;;
14221     esac
14222   fi
14223
14224 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14225 echo "${ECHO_T}$ld_shlibs_F77" >&6
14226 test "$ld_shlibs_F77" = no && can_build_shared=no
14227
14228 #
14229 # Do we need to explicitly link libc?
14230 #
14231 case "x$archive_cmds_need_lc_F77" in
14232 x|xyes)
14233   # Assume -lc should be added
14234   archive_cmds_need_lc_F77=yes
14235
14236   if test "$enable_shared" = yes && test "$GCC" = yes; then
14237     case $archive_cmds_F77 in
14238     *'~'*)
14239       # FIXME: we may have to deal with multi-command sequences.
14240       ;;
14241     '$CC '*)
14242       # Test whether the compiler implicitly links with -lc since on some
14243       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14244       # to ld, don't add -lc before -lgcc.
14245       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14246 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14247       $rm conftest*
14248       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14249
14250       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251   (eval $ac_compile) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } 2>conftest.err; then
14255         soname=conftest
14256         lib=conftest
14257         libobjs=conftest.$ac_objext
14258         deplibs=
14259         wl=$lt_prog_compiler_wl_F77
14260         pic_flag=$lt_prog_compiler_pic_F77
14261         compiler_flags=-v
14262         linker_flags=-v
14263         verstring=
14264         output_objdir=.
14265         libname=conftest
14266         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14267         allow_undefined_flag_F77=
14268         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14269   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }
14273         then
14274           archive_cmds_need_lc_F77=no
14275         else
14276           archive_cmds_need_lc_F77=yes
14277         fi
14278         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14279       else
14280         cat conftest.err 1>&5
14281       fi
14282       $rm conftest*
14283       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14284 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14285       ;;
14286     esac
14287   fi
14288   ;;
14289 esac
14290
14291 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14292 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14293 library_names_spec=
14294 libname_spec='lib$name'
14295 soname_spec=
14296 shrext_cmds=".so"
14297 postinstall_cmds=
14298 postuninstall_cmds=
14299 finish_cmds=
14300 finish_eval=
14301 shlibpath_var=
14302 shlibpath_overrides_runpath=unknown
14303 version_type=none
14304 dynamic_linker="$host_os ld.so"
14305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14306 if test "$GCC" = yes; then
14307   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14309     # if the path contains ";" then we assume it to be the separator
14310     # otherwise default to the standard path separator (i.e. ":") - it is
14311     # assumed that no part of a normal pathname contains ";" but that should
14312     # okay in the real world where ";" in dirpaths is itself problematic.
14313     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14314   else
14315     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14316   fi
14317 else
14318   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14319 fi
14320 need_lib_prefix=unknown
14321 hardcode_into_libs=no
14322
14323 # when you set need_version to no, make sure it does not cause -set_version
14324 # flags to be left without arguments
14325 need_version=unknown
14326
14327 case $host_os in
14328 aix3*)
14329   version_type=linux
14330   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14331   shlibpath_var=LIBPATH
14332
14333   # AIX 3 has no versioning support, so we append a major version to the name.
14334   soname_spec='${libname}${release}${shared_ext}$major'
14335   ;;
14336
14337 aix4* | aix5*)
14338   version_type=linux
14339   need_lib_prefix=no
14340   need_version=no
14341   hardcode_into_libs=yes
14342   if test "$host_cpu" = ia64; then
14343     # AIX 5 supports IA64
14344     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14345     shlibpath_var=LD_LIBRARY_PATH
14346   else
14347     # With GCC up to 2.95.x, collect2 would create an import file
14348     # for dependence libraries.  The import file would start with
14349     # the line `#! .'.  This would cause the generated library to
14350     # depend on `.', always an invalid library.  This was fixed in
14351     # development snapshots of GCC prior to 3.0.
14352     case $host_os in
14353       aix4 | aix4.[01] | aix4.[01].*)
14354       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14355            echo ' yes '
14356            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14357         :
14358       else
14359         can_build_shared=no
14360       fi
14361       ;;
14362     esac
14363     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14364     # soname into executable. Probably we can add versioning support to
14365     # collect2, so additional links can be useful in future.
14366     if test "$aix_use_runtimelinking" = yes; then
14367       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14368       # instead of lib<name>.a to let people know that these are not
14369       # typical AIX shared libraries.
14370       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371     else
14372       # We preserve .a as extension for shared libraries through AIX4.2
14373       # and later when we are not doing run time linking.
14374       library_names_spec='${libname}${release}.a $libname.a'
14375       soname_spec='${libname}${release}${shared_ext}$major'
14376     fi
14377     shlibpath_var=LIBPATH
14378   fi
14379   ;;
14380
14381 amigaos*)
14382   library_names_spec='$libname.ixlibrary $libname.a'
14383   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14384   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'
14385   ;;
14386
14387 beos*)
14388   library_names_spec='${libname}${shared_ext}'
14389   dynamic_linker="$host_os ld.so"
14390   shlibpath_var=LIBRARY_PATH
14391   ;;
14392
14393 bsdi[45]*)
14394   version_type=linux
14395   need_version=no
14396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397   soname_spec='${libname}${release}${shared_ext}$major'
14398   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14399   shlibpath_var=LD_LIBRARY_PATH
14400   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14401   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14402   # the default ld.so.conf also contains /usr/contrib/lib and
14403   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14404   # libtool to hard-code these into programs
14405   ;;
14406
14407 cygwin* | mingw* | pw32*)
14408   version_type=windows
14409   shrext_cmds=".dll"
14410   need_version=no
14411   need_lib_prefix=no
14412
14413   case $GCC,$host_os in
14414   yes,cygwin* | yes,mingw* | yes,pw32*)
14415     library_names_spec='$libname.dll.a'
14416     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14417     postinstall_cmds='base_file=`basename \${file}`~
14418       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14419       dldir=$destdir/`dirname \$dlpath`~
14420       test -d \$dldir || mkdir -p \$dldir~
14421       $install_prog $dir/$dlname \$dldir/$dlname~
14422       chmod a+x \$dldir/$dlname'
14423     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14424       dlpath=$dir/\$dldll~
14425        $rm \$dlpath'
14426     shlibpath_overrides_runpath=yes
14427
14428     case $host_os in
14429     cygwin*)
14430       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14431       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14432       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14433       ;;
14434     mingw*)
14435       # MinGW DLLs use traditional 'lib' prefix
14436       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14437       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14439         # It is most probably a Windows format PATH printed by
14440         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14441         # path with ; separators, and with drive letters. We can handle the
14442         # drive letters (cygwin fileutils understands them), so leave them,
14443         # especially as we might pass files found there to a mingw objdump,
14444         # which wouldn't understand a cygwinified path. Ahh.
14445         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14446       else
14447         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14448       fi
14449       ;;
14450     pw32*)
14451       # pw32 DLLs use 'pw' prefix rather than 'lib'
14452       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14453       ;;
14454     esac
14455     ;;
14456
14457   *)
14458     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14459     ;;
14460   esac
14461   dynamic_linker='Win32 ld.exe'
14462   # FIXME: first we should search . and the directory the executable is in
14463   shlibpath_var=PATH
14464   ;;
14465
14466 darwin* | rhapsody*)
14467   dynamic_linker="$host_os dyld"
14468   version_type=darwin
14469   need_lib_prefix=no
14470   need_version=no
14471   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14472   soname_spec='${libname}${release}${major}$shared_ext'
14473   shlibpath_overrides_runpath=yes
14474   shlibpath_var=DYLD_LIBRARY_PATH
14475   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14476   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14477   if test "$GCC" = yes; then
14478     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"`
14479   else
14480     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14481   fi
14482   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14483   ;;
14484
14485 dgux*)
14486   version_type=linux
14487   need_lib_prefix=no
14488   need_version=no
14489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14490   soname_spec='${libname}${release}${shared_ext}$major'
14491   shlibpath_var=LD_LIBRARY_PATH
14492   ;;
14493
14494 freebsd1*)
14495   dynamic_linker=no
14496   ;;
14497
14498 kfreebsd*-gnu)
14499   version_type=linux
14500   need_lib_prefix=no
14501   need_version=no
14502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14503   soname_spec='${libname}${release}${shared_ext}$major'
14504   shlibpath_var=LD_LIBRARY_PATH
14505   shlibpath_overrides_runpath=no
14506   hardcode_into_libs=yes
14507   dynamic_linker='GNU ld.so'
14508   ;;
14509
14510 freebsd* | dragonfly*)
14511   # DragonFly does not have aout.  When/if they implement a new
14512   # versioning mechanism, adjust this.
14513   if test -x /usr/bin/objformat; then
14514     objformat=`/usr/bin/objformat`
14515   else
14516     case $host_os in
14517     freebsd[123]*) objformat=aout ;;
14518     *) objformat=elf ;;
14519     esac
14520   fi
14521   version_type=freebsd-$objformat
14522   case $version_type in
14523     freebsd-elf*)
14524       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14525       need_version=no
14526       need_lib_prefix=no
14527       ;;
14528     freebsd-*)
14529       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14530       need_version=yes
14531       ;;
14532   esac
14533   shlibpath_var=LD_LIBRARY_PATH
14534   case $host_os in
14535   freebsd2*)
14536     shlibpath_overrides_runpath=yes
14537     ;;
14538   freebsd3.[01]* | freebsdelf3.[01]*)
14539     shlibpath_overrides_runpath=yes
14540     hardcode_into_libs=yes
14541     ;;
14542   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14543   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14544     shlibpath_overrides_runpath=no
14545     hardcode_into_libs=yes
14546     ;;
14547   freebsd*) # from 4.6 on
14548     shlibpath_overrides_runpath=yes
14549     hardcode_into_libs=yes
14550     ;;
14551   esac
14552   ;;
14553
14554 gnu*)
14555   version_type=linux
14556   need_lib_prefix=no
14557   need_version=no
14558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14559   soname_spec='${libname}${release}${shared_ext}$major'
14560   shlibpath_var=LD_LIBRARY_PATH
14561   hardcode_into_libs=yes
14562   ;;
14563
14564 hpux9* | hpux10* | hpux11*)
14565   # Give a soname corresponding to the major version so that dld.sl refuses to
14566   # link against other versions.
14567   version_type=sunos
14568   need_lib_prefix=no
14569   need_version=no
14570   case $host_cpu in
14571   ia64*)
14572     shrext_cmds='.so'
14573     hardcode_into_libs=yes
14574     dynamic_linker="$host_os dld.so"
14575     shlibpath_var=LD_LIBRARY_PATH
14576     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14578     soname_spec='${libname}${release}${shared_ext}$major'
14579     if test "X$HPUX_IA64_MODE" = X32; then
14580       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14581     else
14582       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14583     fi
14584     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14585     ;;
14586    hppa*64*)
14587      shrext_cmds='.sl'
14588      hardcode_into_libs=yes
14589      dynamic_linker="$host_os dld.sl"
14590      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14591      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593      soname_spec='${libname}${release}${shared_ext}$major'
14594      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14595      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14596      ;;
14597    *)
14598     shrext_cmds='.sl'
14599     dynamic_linker="$host_os dld.sl"
14600     shlibpath_var=SHLIB_PATH
14601     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603     soname_spec='${libname}${release}${shared_ext}$major'
14604     ;;
14605   esac
14606   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14607   postinstall_cmds='chmod 555 $lib'
14608   ;;
14609
14610 interix3*)
14611   version_type=linux
14612   need_lib_prefix=no
14613   need_version=no
14614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615   soname_spec='${libname}${release}${shared_ext}$major'
14616   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14617   shlibpath_var=LD_LIBRARY_PATH
14618   shlibpath_overrides_runpath=no
14619   hardcode_into_libs=yes
14620   ;;
14621
14622 irix5* | irix6* | nonstopux*)
14623   case $host_os in
14624     nonstopux*) version_type=nonstopux ;;
14625     *)
14626         if test "$lt_cv_prog_gnu_ld" = yes; then
14627                 version_type=linux
14628         else
14629                 version_type=irix
14630         fi ;;
14631   esac
14632   need_lib_prefix=no
14633   need_version=no
14634   soname_spec='${libname}${release}${shared_ext}$major'
14635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14636   case $host_os in
14637   irix5* | nonstopux*)
14638     libsuff= shlibsuff=
14639     ;;
14640   *)
14641     case $LD in # libtool.m4 will add one of these switches to LD
14642     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14643       libsuff= shlibsuff= libmagic=32-bit;;
14644     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14645       libsuff=32 shlibsuff=N32 libmagic=N32;;
14646     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14647       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14648     *) libsuff= shlibsuff= libmagic=never-match;;
14649     esac
14650     ;;
14651   esac
14652   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14653   shlibpath_overrides_runpath=no
14654   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14655   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14656   hardcode_into_libs=yes
14657   ;;
14658
14659 # No shared lib support for Linux oldld, aout, or coff.
14660 linux*oldld* | linux*aout* | linux*coff*)
14661   dynamic_linker=no
14662   ;;
14663
14664 # This must be Linux ELF.
14665 linux*)
14666   version_type=linux
14667   need_lib_prefix=no
14668   need_version=no
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670   soname_spec='${libname}${release}${shared_ext}$major'
14671   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14672   shlibpath_var=LD_LIBRARY_PATH
14673   shlibpath_overrides_runpath=no
14674   # This implies no fast_install, which is unacceptable.
14675   # Some rework will be needed to allow for fast_install
14676   # before this can be enabled.
14677   hardcode_into_libs=yes
14678
14679   # Append ld.so.conf contents to the search path
14680   if test -f /etc/ld.so.conf; then
14681     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14682     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14683   fi
14684
14685   # We used to test for /lib/ld.so.1 and disable shared libraries on
14686   # powerpc, because MkLinux only supported shared libraries with the
14687   # GNU dynamic linker.  Since this was broken with cross compilers,
14688   # most powerpc-linux boxes support dynamic linking these days and
14689   # people can always --disable-shared, the test was removed, and we
14690   # assume the GNU/Linux dynamic linker is in use.
14691   dynamic_linker='GNU/Linux ld.so'
14692   ;;
14693
14694 knetbsd*-gnu)
14695   version_type=linux
14696   need_lib_prefix=no
14697   need_version=no
14698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14699   soname_spec='${libname}${release}${shared_ext}$major'
14700   shlibpath_var=LD_LIBRARY_PATH
14701   shlibpath_overrides_runpath=no
14702   hardcode_into_libs=yes
14703   dynamic_linker='GNU ld.so'
14704   ;;
14705
14706 netbsd*)
14707   version_type=sunos
14708   need_lib_prefix=no
14709   need_version=no
14710   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14712     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14713     dynamic_linker='NetBSD (a.out) ld.so'
14714   else
14715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14716     soname_spec='${libname}${release}${shared_ext}$major'
14717     dynamic_linker='NetBSD ld.elf_so'
14718   fi
14719   shlibpath_var=LD_LIBRARY_PATH
14720   shlibpath_overrides_runpath=yes
14721   hardcode_into_libs=yes
14722   ;;
14723
14724 newsos6)
14725   version_type=linux
14726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727   shlibpath_var=LD_LIBRARY_PATH
14728   shlibpath_overrides_runpath=yes
14729   ;;
14730
14731 nto-qnx*)
14732   version_type=linux
14733   need_lib_prefix=no
14734   need_version=no
14735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736   soname_spec='${libname}${release}${shared_ext}$major'
14737   shlibpath_var=LD_LIBRARY_PATH
14738   shlibpath_overrides_runpath=yes
14739   ;;
14740
14741 openbsd*)
14742   version_type=sunos
14743   sys_lib_dlsearch_path_spec="/usr/lib"
14744   need_lib_prefix=no
14745   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14746   case $host_os in
14747     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14748     *)                         need_version=no  ;;
14749   esac
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14751   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14752   shlibpath_var=LD_LIBRARY_PATH
14753   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14754     case $host_os in
14755       openbsd2.[89] | openbsd2.[89].*)
14756         shlibpath_overrides_runpath=no
14757         ;;
14758       *)
14759         shlibpath_overrides_runpath=yes
14760         ;;
14761       esac
14762   else
14763     shlibpath_overrides_runpath=yes
14764   fi
14765   ;;
14766
14767 os2*)
14768   libname_spec='$name'
14769   shrext_cmds=".dll"
14770   need_lib_prefix=no
14771   library_names_spec='$libname${shared_ext} $libname.a'
14772   dynamic_linker='OS/2 ld.exe'
14773   shlibpath_var=LIBPATH
14774   ;;
14775
14776 osf3* | osf4* | osf5*)
14777   version_type=osf
14778   need_lib_prefix=no
14779   need_version=no
14780   soname_spec='${libname}${release}${shared_ext}$major'
14781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782   shlibpath_var=LD_LIBRARY_PATH
14783   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14784   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14785   ;;
14786
14787 solaris*)
14788   version_type=linux
14789   need_lib_prefix=no
14790   need_version=no
14791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792   soname_spec='${libname}${release}${shared_ext}$major'
14793   shlibpath_var=LD_LIBRARY_PATH
14794   shlibpath_overrides_runpath=yes
14795   hardcode_into_libs=yes
14796   # ldd complains unless libraries are executable
14797   postinstall_cmds='chmod +x $lib'
14798   ;;
14799
14800 sunos4*)
14801   version_type=sunos
14802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14803   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14804   shlibpath_var=LD_LIBRARY_PATH
14805   shlibpath_overrides_runpath=yes
14806   if test "$with_gnu_ld" = yes; then
14807     need_lib_prefix=no
14808   fi
14809   need_version=yes
14810   ;;
14811
14812 sysv4 | sysv4.3*)
14813   version_type=linux
14814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815   soname_spec='${libname}${release}${shared_ext}$major'
14816   shlibpath_var=LD_LIBRARY_PATH
14817   case $host_vendor in
14818     sni)
14819       shlibpath_overrides_runpath=no
14820       need_lib_prefix=no
14821       export_dynamic_flag_spec='${wl}-Blargedynsym'
14822       runpath_var=LD_RUN_PATH
14823       ;;
14824     siemens)
14825       need_lib_prefix=no
14826       ;;
14827     motorola)
14828       need_lib_prefix=no
14829       need_version=no
14830       shlibpath_overrides_runpath=no
14831       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14832       ;;
14833   esac
14834   ;;
14835
14836 sysv4*MP*)
14837   if test -d /usr/nec ;then
14838     version_type=linux
14839     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14840     soname_spec='$libname${shared_ext}.$major'
14841     shlibpath_var=LD_LIBRARY_PATH
14842   fi
14843   ;;
14844
14845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14846   version_type=freebsd-elf
14847   need_lib_prefix=no
14848   need_version=no
14849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14850   soname_spec='${libname}${release}${shared_ext}$major'
14851   shlibpath_var=LD_LIBRARY_PATH
14852   hardcode_into_libs=yes
14853   if test "$with_gnu_ld" = yes; then
14854     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14855     shlibpath_overrides_runpath=no
14856   else
14857     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14858     shlibpath_overrides_runpath=yes
14859     case $host_os in
14860       sco3.2v5*)
14861         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14862         ;;
14863     esac
14864   fi
14865   sys_lib_dlsearch_path_spec='/usr/lib'
14866   ;;
14867
14868 uts4*)
14869   version_type=linux
14870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   shlibpath_var=LD_LIBRARY_PATH
14873   ;;
14874
14875 *)
14876   dynamic_linker=no
14877   ;;
14878 esac
14879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14880 echo "${ECHO_T}$dynamic_linker" >&6
14881 test "$dynamic_linker" = no && can_build_shared=no
14882
14883 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14884 if test "$GCC" = yes; then
14885   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14886 fi
14887
14888 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14889 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14890 hardcode_action_F77=
14891 if test -n "$hardcode_libdir_flag_spec_F77" || \
14892    test -n "$runpath_var_F77" || \
14893    test "X$hardcode_automatic_F77" = "Xyes" ; then
14894
14895   # We can hardcode non-existant directories.
14896   if test "$hardcode_direct_F77" != no &&
14897      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14898      # have to relink, otherwise we might link with an installed library
14899      # when we should be linking with a yet-to-be-installed one
14900      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14901      test "$hardcode_minus_L_F77" != no; then
14902     # Linking always hardcodes the temporary library directory.
14903     hardcode_action_F77=relink
14904   else
14905     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14906     hardcode_action_F77=immediate
14907   fi
14908 else
14909   # We cannot hardcode anything, or else we can only hardcode existing
14910   # directories.
14911   hardcode_action_F77=unsupported
14912 fi
14913 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14914 echo "${ECHO_T}$hardcode_action_F77" >&6
14915
14916 if test "$hardcode_action_F77" = relink; then
14917   # Fast installation is not supported
14918   enable_fast_install=no
14919 elif test "$shlibpath_overrides_runpath" = yes ||
14920      test "$enable_shared" = no; then
14921   # Fast installation is not necessary
14922   enable_fast_install=needless
14923 fi
14924
14925
14926 # The else clause should only fire when bootstrapping the
14927 # libtool distribution, otherwise you forgot to ship ltmain.sh
14928 # with your package, and you will get complaints that there are
14929 # no rules to generate ltmain.sh.
14930 if test -f "$ltmain"; then
14931   # See if we are running on zsh, and set the options which allow our commands through
14932   # without removal of \ escapes.
14933   if test -n "${ZSH_VERSION+set}" ; then
14934     setopt NO_GLOB_SUBST
14935   fi
14936   # Now quote all the things that may contain metacharacters while being
14937   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14938   # variables and quote the copies for generation of the libtool script.
14939   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14940     SED SHELL STRIP \
14941     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14942     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14943     deplibs_check_method reload_flag reload_cmds need_locks \
14944     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14945     lt_cv_sys_global_symbol_to_c_name_address \
14946     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14947     old_postinstall_cmds old_postuninstall_cmds \
14948     compiler_F77 \
14949     CC_F77 \
14950     LD_F77 \
14951     lt_prog_compiler_wl_F77 \
14952     lt_prog_compiler_pic_F77 \
14953     lt_prog_compiler_static_F77 \
14954     lt_prog_compiler_no_builtin_flag_F77 \
14955     export_dynamic_flag_spec_F77 \
14956     thread_safe_flag_spec_F77 \
14957     whole_archive_flag_spec_F77 \
14958     enable_shared_with_static_runtimes_F77 \
14959     old_archive_cmds_F77 \
14960     old_archive_from_new_cmds_F77 \
14961     predep_objects_F77 \
14962     postdep_objects_F77 \
14963     predeps_F77 \
14964     postdeps_F77 \
14965     compiler_lib_search_path_F77 \
14966     archive_cmds_F77 \
14967     archive_expsym_cmds_F77 \
14968     postinstall_cmds_F77 \
14969     postuninstall_cmds_F77 \
14970     old_archive_from_expsyms_cmds_F77 \
14971     allow_undefined_flag_F77 \
14972     no_undefined_flag_F77 \
14973     export_symbols_cmds_F77 \
14974     hardcode_libdir_flag_spec_F77 \
14975     hardcode_libdir_flag_spec_ld_F77 \
14976     hardcode_libdir_separator_F77 \
14977     hardcode_automatic_F77 \
14978     module_cmds_F77 \
14979     module_expsym_cmds_F77 \
14980     lt_cv_prog_compiler_c_o_F77 \
14981     exclude_expsyms_F77 \
14982     include_expsyms_F77; do
14983
14984     case $var in
14985     old_archive_cmds_F77 | \
14986     old_archive_from_new_cmds_F77 | \
14987     archive_cmds_F77 | \
14988     archive_expsym_cmds_F77 | \
14989     module_cmds_F77 | \
14990     module_expsym_cmds_F77 | \
14991     old_archive_from_expsyms_cmds_F77 | \
14992     export_symbols_cmds_F77 | \
14993     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14994     postinstall_cmds | postuninstall_cmds | \
14995     old_postinstall_cmds | old_postuninstall_cmds | \
14996     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14997       # Double-quote double-evaled strings.
14998       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14999       ;;
15000     *)
15001       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15002       ;;
15003     esac
15004   done
15005
15006   case $lt_echo in
15007   *'\$0 --fallback-echo"')
15008     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15009     ;;
15010   esac
15011
15012 cfgfile="$ofile"
15013
15014   cat <<__EOF__ >> "$cfgfile"
15015 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15016
15017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15018
15019 # Shell to use when invoking shell scripts.
15020 SHELL=$lt_SHELL
15021
15022 # Whether or not to build shared libraries.
15023 build_libtool_libs=$enable_shared
15024
15025 # Whether or not to build static libraries.
15026 build_old_libs=$enable_static
15027
15028 # Whether or not to add -lc for building shared libraries.
15029 build_libtool_need_lc=$archive_cmds_need_lc_F77
15030
15031 # Whether or not to disallow shared libs when runtime libs are static
15032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15033
15034 # Whether or not to optimize for fast installation.
15035 fast_install=$enable_fast_install
15036
15037 # The host system.
15038 host_alias=$host_alias
15039 host=$host
15040 host_os=$host_os
15041
15042 # The build system.
15043 build_alias=$build_alias
15044 build=$build
15045 build_os=$build_os
15046
15047 # An echo program that does not interpret backslashes.
15048 echo=$lt_echo
15049
15050 # The archiver.
15051 AR=$lt_AR
15052 AR_FLAGS=$lt_AR_FLAGS
15053
15054 # A C compiler.
15055 LTCC=$lt_LTCC
15056
15057 # LTCC compiler flags.
15058 LTCFLAGS=$lt_LTCFLAGS
15059
15060 # A language-specific compiler.
15061 CC=$lt_compiler_F77
15062
15063 # Is the compiler the GNU C compiler?
15064 with_gcc=$GCC_F77
15065
15066 # An ERE matcher.
15067 EGREP=$lt_EGREP
15068
15069 # The linker used to build libraries.
15070 LD=$lt_LD_F77
15071
15072 # Whether we need hard or soft links.
15073 LN_S=$lt_LN_S
15074
15075 # A BSD-compatible nm program.
15076 NM=$lt_NM
15077
15078 # A symbol stripping program
15079 STRIP=$lt_STRIP
15080
15081 # Used to examine libraries when file_magic_cmd begins "file"
15082 MAGIC_CMD=$MAGIC_CMD
15083
15084 # Used on cygwin: DLL creation program.
15085 DLLTOOL="$DLLTOOL"
15086
15087 # Used on cygwin: object dumper.
15088 OBJDUMP="$OBJDUMP"
15089
15090 # Used on cygwin: assembler.
15091 AS="$AS"
15092
15093 # The name of the directory that contains temporary libtool files.
15094 objdir=$objdir
15095
15096 # How to create reloadable object files.
15097 reload_flag=$lt_reload_flag
15098 reload_cmds=$lt_reload_cmds
15099
15100 # How to pass a linker flag through the compiler.
15101 wl=$lt_lt_prog_compiler_wl_F77
15102
15103 # Object file suffix (normally "o").
15104 objext="$ac_objext"
15105
15106 # Old archive suffix (normally "a").
15107 libext="$libext"
15108
15109 # Shared library suffix (normally ".so").
15110 shrext_cmds='$shrext_cmds'
15111
15112 # Executable file suffix (normally "").
15113 exeext="$exeext"
15114
15115 # Additional compiler flags for building library objects.
15116 pic_flag=$lt_lt_prog_compiler_pic_F77
15117 pic_mode=$pic_mode
15118
15119 # What is the maximum length of a command?
15120 max_cmd_len=$lt_cv_sys_max_cmd_len
15121
15122 # Does compiler simultaneously support -c and -o options?
15123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15124
15125 # Must we lock files when doing compilation?
15126 need_locks=$lt_need_locks
15127
15128 # Do we need the lib prefix for modules?
15129 need_lib_prefix=$need_lib_prefix
15130
15131 # Do we need a version for libraries?
15132 need_version=$need_version
15133
15134 # Whether dlopen is supported.
15135 dlopen_support=$enable_dlopen
15136
15137 # Whether dlopen of programs is supported.
15138 dlopen_self=$enable_dlopen_self
15139
15140 # Whether dlopen of statically linked programs is supported.
15141 dlopen_self_static=$enable_dlopen_self_static
15142
15143 # Compiler flag to prevent dynamic linking.
15144 link_static_flag=$lt_lt_prog_compiler_static_F77
15145
15146 # Compiler flag to turn off builtin functions.
15147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15148
15149 # Compiler flag to allow reflexive dlopens.
15150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15151
15152 # Compiler flag to generate shared objects directly from archives.
15153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15154
15155 # Compiler flag to generate thread-safe objects.
15156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15157
15158 # Library versioning type.
15159 version_type=$version_type
15160
15161 # Format of library name prefix.
15162 libname_spec=$lt_libname_spec
15163
15164 # List of archive names.  First name is the real one, the rest are links.
15165 # The last name is the one that the linker finds with -lNAME.
15166 library_names_spec=$lt_library_names_spec
15167
15168 # The coded name of the library, if different from the real name.
15169 soname_spec=$lt_soname_spec
15170
15171 # Commands used to build and install an old-style archive.
15172 RANLIB=$lt_RANLIB
15173 old_archive_cmds=$lt_old_archive_cmds_F77
15174 old_postinstall_cmds=$lt_old_postinstall_cmds
15175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15176
15177 # Create an old-style archive from a shared archive.
15178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15179
15180 # Create a temporary old-style archive to link instead of a shared archive.
15181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15182
15183 # Commands used to build and install a shared archive.
15184 archive_cmds=$lt_archive_cmds_F77
15185 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15186 postinstall_cmds=$lt_postinstall_cmds
15187 postuninstall_cmds=$lt_postuninstall_cmds
15188
15189 # Commands used to build a loadable module (assumed same as above if empty)
15190 module_cmds=$lt_module_cmds_F77
15191 module_expsym_cmds=$lt_module_expsym_cmds_F77
15192
15193 # Commands to strip libraries.
15194 old_striplib=$lt_old_striplib
15195 striplib=$lt_striplib
15196
15197 # Dependencies to place before the objects being linked to create a
15198 # shared library.
15199 predep_objects=$lt_predep_objects_F77
15200
15201 # Dependencies to place after the objects being linked to create a
15202 # shared library.
15203 postdep_objects=$lt_postdep_objects_F77
15204
15205 # Dependencies to place before the objects being linked to create a
15206 # shared library.
15207 predeps=$lt_predeps_F77
15208
15209 # Dependencies to place after the objects being linked to create a
15210 # shared library.
15211 postdeps=$lt_postdeps_F77
15212
15213 # The library search path used internally by the compiler when linking
15214 # a shared library.
15215 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15216
15217 # Method to check whether dependent libraries are shared objects.
15218 deplibs_check_method=$lt_deplibs_check_method
15219
15220 # Command to use when deplibs_check_method == file_magic.
15221 file_magic_cmd=$lt_file_magic_cmd
15222
15223 # Flag that allows shared libraries with undefined symbols to be built.
15224 allow_undefined_flag=$lt_allow_undefined_flag_F77
15225
15226 # Flag that forces no undefined symbols.
15227 no_undefined_flag=$lt_no_undefined_flag_F77
15228
15229 # Commands used to finish a libtool library installation in a directory.
15230 finish_cmds=$lt_finish_cmds
15231
15232 # Same as above, but a single script fragment to be evaled but not shown.
15233 finish_eval=$lt_finish_eval
15234
15235 # Take the output of nm and produce a listing of raw symbols and C names.
15236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15237
15238 # Transform the output of nm in a proper C declaration
15239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15240
15241 # Transform the output of nm in a C name address pair
15242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15243
15244 # This is the shared library runtime path variable.
15245 runpath_var=$runpath_var
15246
15247 # This is the shared library path variable.
15248 shlibpath_var=$shlibpath_var
15249
15250 # Is shlibpath searched before the hard-coded library search path?
15251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15252
15253 # How to hardcode a shared library path into an executable.
15254 hardcode_action=$hardcode_action_F77
15255
15256 # Whether we should hardcode library paths into libraries.
15257 hardcode_into_libs=$hardcode_into_libs
15258
15259 # Flag to hardcode \$libdir into a binary during linking.
15260 # This must work even if \$libdir does not exist.
15261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15262
15263 # If ld is used when linking, flag to hardcode \$libdir into
15264 # a binary during linking. This must work even if \$libdir does
15265 # not exist.
15266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15267
15268 # Whether we need a single -rpath flag with a separated argument.
15269 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15270
15271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15272 # resulting binary.
15273 hardcode_direct=$hardcode_direct_F77
15274
15275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15276 # resulting binary.
15277 hardcode_minus_L=$hardcode_minus_L_F77
15278
15279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15280 # the resulting binary.
15281 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15282
15283 # Set to yes if building a shared library automatically hardcodes DIR into the library
15284 # and all subsequent libraries and executables linked against it.
15285 hardcode_automatic=$hardcode_automatic_F77
15286
15287 # Variables whose values should be saved in libtool wrapper scripts and
15288 # restored at relink time.
15289 variables_saved_for_relink="$variables_saved_for_relink"
15290
15291 # Whether libtool must link a program against all its dependency libraries.
15292 link_all_deplibs=$link_all_deplibs_F77
15293
15294 # Compile-time system search path for libraries
15295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15296
15297 # Run-time system search path for libraries
15298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15299
15300 # Fix the shell variable \$srcfile for the compiler.
15301 fix_srcfile_path="$fix_srcfile_path_F77"
15302
15303 # Set to yes if exported symbols are required.
15304 always_export_symbols=$always_export_symbols_F77
15305
15306 # The commands to list exported symbols.
15307 export_symbols_cmds=$lt_export_symbols_cmds_F77
15308
15309 # The commands to extract the exported symbol list from a shared archive.
15310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15311
15312 # Symbols that should not be listed in the preloaded symbols.
15313 exclude_expsyms=$lt_exclude_expsyms_F77
15314
15315 # Symbols that must always be exported.
15316 include_expsyms=$lt_include_expsyms_F77
15317
15318 # ### END LIBTOOL TAG CONFIG: $tagname
15319
15320 __EOF__
15321
15322
15323 else
15324   # If there is no Makefile yet, we rely on a make rule to execute
15325   # `config.status --recheck' to rerun these tests and create the
15326   # libtool script then.
15327   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15328   if test -f "$ltmain_in"; then
15329     test -f Makefile && make "$ltmain"
15330   fi
15331 fi
15332
15333
15334 ac_ext=c
15335 ac_cpp='$CPP $CPPFLAGS'
15336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15339
15340 CC="$lt_save_CC"
15341
15342         else
15343           tagname=""
15344         fi
15345         ;;
15346
15347       GCJ)
15348         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15349
15350
15351
15352 # Source file extension for Java test sources.
15353 ac_ext=java
15354
15355 # Object file extension for compiled Java test sources.
15356 objext=o
15357 objext_GCJ=$objext
15358
15359 # Code to be used in simple compile tests
15360 lt_simple_compile_test_code="class foo {}\n"
15361
15362 # Code to be used in simple link tests
15363 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15364
15365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15366
15367 # If no C compiler was specified, use CC.
15368 LTCC=${LTCC-"$CC"}
15369
15370 # If no C compiler flags were specified, use CFLAGS.
15371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15372
15373 # Allow CC to be a program name with arguments.
15374 compiler=$CC
15375
15376
15377 # save warnings/boilerplate of simple test code
15378 ac_outfile=conftest.$ac_objext
15379 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15381 _lt_compiler_boilerplate=`cat conftest.err`
15382 $rm conftest*
15383
15384 ac_outfile=conftest.$ac_objext
15385 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15387 _lt_linker_boilerplate=`cat conftest.err`
15388 $rm conftest*
15389
15390
15391 # Allow CC to be a program name with arguments.
15392 lt_save_CC="$CC"
15393 CC=${GCJ-"gcj"}
15394 compiler=$CC
15395 compiler_GCJ=$CC
15396 for cc_temp in $compiler""; do
15397   case $cc_temp in
15398     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15399     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15400     \-*) ;;
15401     *) break;;
15402   esac
15403 done
15404 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15405
15406
15407 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15408 archive_cmds_need_lc_GCJ=no
15409
15410 old_archive_cmds_GCJ=$old_archive_cmds
15411
15412 ## CAVEAT EMPTOR:
15413 ## There is no encapsulation within the following macros, do not change
15414 ## the running order or otherwise move them around unless you know exactly
15415 ## what you are doing...
15416
15417 lt_prog_compiler_no_builtin_flag_GCJ=
15418
15419 if test "$GCC" = yes; then
15420   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15421
15422
15423 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15424 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15425 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428   lt_cv_prog_compiler_rtti_exceptions=no
15429   ac_outfile=conftest.$ac_objext
15430    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15431    lt_compiler_flag="-fno-rtti -fno-exceptions"
15432    # Insert the option either (1) after the last *FLAGS variable, or
15433    # (2) before a word containing "conftest.", or (3) at the end.
15434    # Note that $ac_compile itself does not contain backslashes and begins
15435    # with a dollar sign (not a hyphen), so the echo should work correctly.
15436    # The option is referenced via a variable to avoid confusing sed.
15437    lt_compile=`echo "$ac_compile" | $SED \
15438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15440    -e 's:$: $lt_compiler_flag:'`
15441    (eval echo "\"\$as_me:15441: $lt_compile\"" >&5)
15442    (eval "$lt_compile" 2>conftest.err)
15443    ac_status=$?
15444    cat conftest.err >&5
15445    echo "$as_me:15445: \$? = $ac_status" >&5
15446    if (exit $ac_status) && test -s "$ac_outfile"; then
15447      # The compiler can only warn and ignore the option if not recognized
15448      # So say no if there are warnings other than the usual output.
15449      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15450      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15451      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15452        lt_cv_prog_compiler_rtti_exceptions=yes
15453      fi
15454    fi
15455    $rm conftest*
15456
15457 fi
15458 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15459 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15460
15461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15462     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15463 else
15464     :
15465 fi
15466
15467 fi
15468
15469 lt_prog_compiler_wl_GCJ=
15470 lt_prog_compiler_pic_GCJ=
15471 lt_prog_compiler_static_GCJ=
15472
15473 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15475
15476   if test "$GCC" = yes; then
15477     lt_prog_compiler_wl_GCJ='-Wl,'
15478     lt_prog_compiler_static_GCJ='-static'
15479
15480     case $host_os in
15481       aix*)
15482       # All AIX code is PIC.
15483       if test "$host_cpu" = ia64; then
15484         # AIX 5 now supports IA64 processor
15485         lt_prog_compiler_static_GCJ='-Bstatic'
15486       fi
15487       ;;
15488
15489     amigaos*)
15490       # FIXME: we need at least 68020 code to build shared libraries, but
15491       # adding the `-m68020' flag to GCC prevents building anything better,
15492       # like `-m68040'.
15493       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15494       ;;
15495
15496     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15497       # PIC is the default for these OSes.
15498       ;;
15499
15500     mingw* | pw32* | os2*)
15501       # This hack is so that the source file can tell whether it is being
15502       # built for inclusion in a dll (and should export symbols for example).
15503       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15504       ;;
15505
15506     darwin* | rhapsody*)
15507       # PIC is the default on this platform
15508       # Common symbols not allowed in MH_DYLIB files
15509       lt_prog_compiler_pic_GCJ='-fno-common'
15510       ;;
15511
15512     interix3*)
15513       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15514       # Instead, we relocate shared libraries at runtime.
15515       ;;
15516
15517     msdosdjgpp*)
15518       # Just because we use GCC doesn't mean we suddenly get shared libraries
15519       # on systems that don't support them.
15520       lt_prog_compiler_can_build_shared_GCJ=no
15521       enable_shared=no
15522       ;;
15523
15524     sysv4*MP*)
15525       if test -d /usr/nec; then
15526         lt_prog_compiler_pic_GCJ=-Kconform_pic
15527       fi
15528       ;;
15529
15530     hpux*)
15531       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15532       # not for PA HP-UX.
15533       case $host_cpu in
15534       hppa*64*|ia64*)
15535         # +Z the default
15536         ;;
15537       *)
15538         lt_prog_compiler_pic_GCJ='-fPIC'
15539         ;;
15540       esac
15541       ;;
15542
15543     *)
15544       lt_prog_compiler_pic_GCJ='-fPIC'
15545       ;;
15546     esac
15547   else
15548     # PORTME Check for flag to pass linker flags through the system compiler.
15549     case $host_os in
15550     aix*)
15551       lt_prog_compiler_wl_GCJ='-Wl,'
15552       if test "$host_cpu" = ia64; then
15553         # AIX 5 now supports IA64 processor
15554         lt_prog_compiler_static_GCJ='-Bstatic'
15555       else
15556         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15557       fi
15558       ;;
15559       darwin*)
15560         # PIC is the default on this platform
15561         # Common symbols not allowed in MH_DYLIB files
15562        case $cc_basename in
15563          xlc*)
15564          lt_prog_compiler_pic_GCJ='-qnocommon'
15565          lt_prog_compiler_wl_GCJ='-Wl,'
15566          ;;
15567        esac
15568        ;;
15569
15570     mingw* | pw32* | os2*)
15571       # This hack is so that the source file can tell whether it is being
15572       # built for inclusion in a dll (and should export symbols for example).
15573       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15574       ;;
15575
15576     hpux9* | hpux10* | hpux11*)
15577       lt_prog_compiler_wl_GCJ='-Wl,'
15578       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15579       # not for PA HP-UX.
15580       case $host_cpu in
15581       hppa*64*|ia64*)
15582         # +Z the default
15583         ;;
15584       *)
15585         lt_prog_compiler_pic_GCJ='+Z'
15586         ;;
15587       esac
15588       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15589       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15590       ;;
15591
15592     irix5* | irix6* | nonstopux*)
15593       lt_prog_compiler_wl_GCJ='-Wl,'
15594       # PIC (with -KPIC) is the default.
15595       lt_prog_compiler_static_GCJ='-non_shared'
15596       ;;
15597
15598     newsos6)
15599       lt_prog_compiler_pic_GCJ='-KPIC'
15600       lt_prog_compiler_static_GCJ='-Bstatic'
15601       ;;
15602
15603     linux*)
15604       case $cc_basename in
15605       icc* | ecc*)
15606         lt_prog_compiler_wl_GCJ='-Wl,'
15607         lt_prog_compiler_pic_GCJ='-KPIC'
15608         lt_prog_compiler_static_GCJ='-static'
15609         ;;
15610       pgcc* | pgf77* | pgf90* | pgf95*)
15611         # Portland Group compilers (*not* the Pentium gcc compiler,
15612         # which looks to be a dead project)
15613         lt_prog_compiler_wl_GCJ='-Wl,'
15614         lt_prog_compiler_pic_GCJ='-fpic'
15615         lt_prog_compiler_static_GCJ='-Bstatic'
15616         ;;
15617       ccc*)
15618         lt_prog_compiler_wl_GCJ='-Wl,'
15619         # All Alpha code is PIC.
15620         lt_prog_compiler_static_GCJ='-non_shared'
15621         ;;
15622       esac
15623       ;;
15624
15625     osf3* | osf4* | osf5*)
15626       lt_prog_compiler_wl_GCJ='-Wl,'
15627       # All OSF/1 code is PIC.
15628       lt_prog_compiler_static_GCJ='-non_shared'
15629       ;;
15630
15631     solaris*)
15632       lt_prog_compiler_pic_GCJ='-KPIC'
15633       lt_prog_compiler_static_GCJ='-Bstatic'
15634       case $cc_basename in
15635       f77* | f90* | f95*)
15636         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15637       *)
15638         lt_prog_compiler_wl_GCJ='-Wl,';;
15639       esac
15640       ;;
15641
15642     sunos4*)
15643       lt_prog_compiler_wl_GCJ='-Qoption ld '
15644       lt_prog_compiler_pic_GCJ='-PIC'
15645       lt_prog_compiler_static_GCJ='-Bstatic'
15646       ;;
15647
15648     sysv4 | sysv4.2uw2* | sysv4.3*)
15649       lt_prog_compiler_wl_GCJ='-Wl,'
15650       lt_prog_compiler_pic_GCJ='-KPIC'
15651       lt_prog_compiler_static_GCJ='-Bstatic'
15652       ;;
15653
15654     sysv4*MP*)
15655       if test -d /usr/nec ;then
15656         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15657         lt_prog_compiler_static_GCJ='-Bstatic'
15658       fi
15659       ;;
15660
15661     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15662       lt_prog_compiler_wl_GCJ='-Wl,'
15663       lt_prog_compiler_pic_GCJ='-KPIC'
15664       lt_prog_compiler_static_GCJ='-Bstatic'
15665       ;;
15666
15667     unicos*)
15668       lt_prog_compiler_wl_GCJ='-Wl,'
15669       lt_prog_compiler_can_build_shared_GCJ=no
15670       ;;
15671
15672     uts4*)
15673       lt_prog_compiler_pic_GCJ='-pic'
15674       lt_prog_compiler_static_GCJ='-Bstatic'
15675       ;;
15676
15677     *)
15678       lt_prog_compiler_can_build_shared_GCJ=no
15679       ;;
15680     esac
15681   fi
15682
15683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15684 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15685
15686 #
15687 # Check to make sure the PIC flag actually works.
15688 #
15689 if test -n "$lt_prog_compiler_pic_GCJ"; then
15690
15691 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15692 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15693 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15694   echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696   lt_prog_compiler_pic_works_GCJ=no
15697   ac_outfile=conftest.$ac_objext
15698    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15699    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15700    # Insert the option either (1) after the last *FLAGS variable, or
15701    # (2) before a word containing "conftest.", or (3) at the end.
15702    # Note that $ac_compile itself does not contain backslashes and begins
15703    # with a dollar sign (not a hyphen), so the echo should work correctly.
15704    # The option is referenced via a variable to avoid confusing sed.
15705    lt_compile=`echo "$ac_compile" | $SED \
15706    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15707    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15708    -e 's:$: $lt_compiler_flag:'`
15709    (eval echo "\"\$as_me:15709: $lt_compile\"" >&5)
15710    (eval "$lt_compile" 2>conftest.err)
15711    ac_status=$?
15712    cat conftest.err >&5
15713    echo "$as_me:15713: \$? = $ac_status" >&5
15714    if (exit $ac_status) && test -s "$ac_outfile"; then
15715      # The compiler can only warn and ignore the option if not recognized
15716      # So say no if there are warnings other than the usual output.
15717      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15718      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15719      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15720        lt_prog_compiler_pic_works_GCJ=yes
15721      fi
15722    fi
15723    $rm conftest*
15724
15725 fi
15726 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15727 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15728
15729 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15730     case $lt_prog_compiler_pic_GCJ in
15731      "" | " "*) ;;
15732      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15733      esac
15734 else
15735     lt_prog_compiler_pic_GCJ=
15736      lt_prog_compiler_can_build_shared_GCJ=no
15737 fi
15738
15739 fi
15740 case $host_os in
15741   # For platforms which do not support PIC, -DPIC is meaningless:
15742   *djgpp*)
15743     lt_prog_compiler_pic_GCJ=
15744     ;;
15745   *)
15746     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15747     ;;
15748 esac
15749
15750 #
15751 # Check to make sure the static flag actually works.
15752 #
15753 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15754 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15755 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15756 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15757   echo $ECHO_N "(cached) $ECHO_C" >&6
15758 else
15759   lt_prog_compiler_static_works_GCJ=no
15760    save_LDFLAGS="$LDFLAGS"
15761    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15762    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15763    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15764      # The linker can only warn and ignore the option if not recognized
15765      # So say no if there are warnings
15766      if test -s conftest.err; then
15767        # Append any errors to the config.log.
15768        cat conftest.err 1>&5
15769        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15770        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771        if diff conftest.exp conftest.er2 >/dev/null; then
15772          lt_prog_compiler_static_works_GCJ=yes
15773        fi
15774      else
15775        lt_prog_compiler_static_works_GCJ=yes
15776      fi
15777    fi
15778    $rm conftest*
15779    LDFLAGS="$save_LDFLAGS"
15780
15781 fi
15782 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15783 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15784
15785 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15786     :
15787 else
15788     lt_prog_compiler_static_GCJ=
15789 fi
15790
15791
15792 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15794 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15795   echo $ECHO_N "(cached) $ECHO_C" >&6
15796 else
15797   lt_cv_prog_compiler_c_o_GCJ=no
15798    $rm -r conftest 2>/dev/null
15799    mkdir conftest
15800    cd conftest
15801    mkdir out
15802    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15803
15804    lt_compiler_flag="-o out/conftest2.$ac_objext"
15805    # Insert the option either (1) after the last *FLAGS variable, or
15806    # (2) before a word containing "conftest.", or (3) at the end.
15807    # Note that $ac_compile itself does not contain backslashes and begins
15808    # with a dollar sign (not a hyphen), so the echo should work correctly.
15809    lt_compile=`echo "$ac_compile" | $SED \
15810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15812    -e 's:$: $lt_compiler_flag:'`
15813    (eval echo "\"\$as_me:15813: $lt_compile\"" >&5)
15814    (eval "$lt_compile" 2>out/conftest.err)
15815    ac_status=$?
15816    cat out/conftest.err >&5
15817    echo "$as_me:15817: \$? = $ac_status" >&5
15818    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15819    then
15820      # The compiler can only warn and ignore the option if not recognized
15821      # So say no if there are warnings
15822      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15823      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15824      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15825        lt_cv_prog_compiler_c_o_GCJ=yes
15826      fi
15827    fi
15828    chmod u+w . 2>&5
15829    $rm conftest*
15830    # SGI C++ compiler will create directory out/ii_files/ for
15831    # template instantiation
15832    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15833    $rm out/* && rmdir out
15834    cd ..
15835    rmdir conftest
15836    $rm conftest*
15837
15838 fi
15839 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15841
15842
15843 hard_links="nottested"
15844 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15845   # do not overwrite the value of need_locks provided by the user
15846   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15848   hard_links=yes
15849   $rm conftest*
15850   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15851   touch conftest.a
15852   ln conftest.a conftest.b 2>&5 || hard_links=no
15853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15854   echo "$as_me:$LINENO: result: $hard_links" >&5
15855 echo "${ECHO_T}$hard_links" >&6
15856   if test "$hard_links" = no; then
15857     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15859     need_locks=warn
15860   fi
15861 else
15862   need_locks=no
15863 fi
15864
15865 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15867
15868   runpath_var=
15869   allow_undefined_flag_GCJ=
15870   enable_shared_with_static_runtimes_GCJ=no
15871   archive_cmds_GCJ=
15872   archive_expsym_cmds_GCJ=
15873   old_archive_From_new_cmds_GCJ=
15874   old_archive_from_expsyms_cmds_GCJ=
15875   export_dynamic_flag_spec_GCJ=
15876   whole_archive_flag_spec_GCJ=
15877   thread_safe_flag_spec_GCJ=
15878   hardcode_libdir_flag_spec_GCJ=
15879   hardcode_libdir_flag_spec_ld_GCJ=
15880   hardcode_libdir_separator_GCJ=
15881   hardcode_direct_GCJ=no
15882   hardcode_minus_L_GCJ=no
15883   hardcode_shlibpath_var_GCJ=unsupported
15884   link_all_deplibs_GCJ=unknown
15885   hardcode_automatic_GCJ=no
15886   module_cmds_GCJ=
15887   module_expsym_cmds_GCJ=
15888   always_export_symbols_GCJ=no
15889   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15890   # include_expsyms should be a list of space-separated symbols to be *always*
15891   # included in the symbol list
15892   include_expsyms_GCJ=
15893   # exclude_expsyms can be an extended regexp of symbols to exclude
15894   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15895   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15896   # as well as any symbol that contains `d'.
15897   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15898   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15899   # platforms (ab)use it in PIC code, but their linkers get confused if
15900   # the symbol is explicitly referenced.  Since portable code cannot
15901   # rely on this symbol name, it's probably fine to never include it in
15902   # preloaded symbol tables.
15903   extract_expsyms_cmds=
15904   # Just being paranoid about ensuring that cc_basename is set.
15905   for cc_temp in $compiler""; do
15906   case $cc_temp in
15907     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15908     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15909     \-*) ;;
15910     *) break;;
15911   esac
15912 done
15913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15914
15915   case $host_os in
15916   cygwin* | mingw* | pw32*)
15917     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15918     # When not using gcc, we currently assume that we are using
15919     # Microsoft Visual C++.
15920     if test "$GCC" != yes; then
15921       with_gnu_ld=no
15922     fi
15923     ;;
15924   interix*)
15925     # we just hope/assume this is gcc and not c89 (= MSVC++)
15926     with_gnu_ld=yes
15927     ;;
15928   openbsd*)
15929     with_gnu_ld=no
15930     ;;
15931   esac
15932
15933   ld_shlibs_GCJ=yes
15934   if test "$with_gnu_ld" = yes; then
15935     # If archive_cmds runs LD, not CC, wlarc should be empty
15936     wlarc='${wl}'
15937
15938     # Set some defaults for GNU ld with shared library support. These
15939     # are reset later if shared libraries are not supported. Putting them
15940     # here allows them to be overridden if necessary.
15941     runpath_var=LD_RUN_PATH
15942     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15943     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15944     # ancient GNU ld didn't support --whole-archive et. al.
15945     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15946         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15947       else
15948         whole_archive_flag_spec_GCJ=
15949     fi
15950     supports_anon_versioning=no
15951     case `$LD -v 2>/dev/null` in
15952       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15953       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15954       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15955       *\ 2.11.*) ;; # other 2.11 versions
15956       *) supports_anon_versioning=yes ;;
15957     esac
15958
15959     # See if GNU ld supports shared libraries.
15960     case $host_os in
15961     aix3* | aix4* | aix5*)
15962       # On AIX/PPC, the GNU linker is very broken
15963       if test "$host_cpu" != ia64; then
15964         ld_shlibs_GCJ=no
15965         cat <<EOF 1>&2
15966
15967 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15968 *** to be unable to reliably create shared libraries on AIX.
15969 *** Therefore, libtool is disabling shared libraries support.  If you
15970 *** really care for shared libraries, you may want to modify your PATH
15971 *** so that a non-GNU linker is found, and then restart.
15972
15973 EOF
15974       fi
15975       ;;
15976
15977     amigaos*)
15978       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)'
15979       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15980       hardcode_minus_L_GCJ=yes
15981
15982       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15983       # that the semantics of dynamic libraries on AmigaOS, at least up
15984       # to version 4, is to share data among multiple programs linked
15985       # with the same dynamic library.  Since this doesn't match the
15986       # behavior of shared libraries on other platforms, we can't use
15987       # them.
15988       ld_shlibs_GCJ=no
15989       ;;
15990
15991     beos*)
15992       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15993         allow_undefined_flag_GCJ=unsupported
15994         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15995         # support --undefined.  This deserves some investigation.  FIXME
15996         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15997       else
15998         ld_shlibs_GCJ=no
15999       fi
16000       ;;
16001
16002     cygwin* | mingw* | pw32*)
16003       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16004       # as there is no search path for DLLs.
16005       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16006       allow_undefined_flag_GCJ=unsupported
16007       always_export_symbols_GCJ=no
16008       enable_shared_with_static_runtimes_GCJ=yes
16009       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16010
16011       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16012         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16013         # If the export-symbols file already is a .def file (1st line
16014         # is EXPORTS), use it as is; otherwise, prepend...
16015         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16016           cp $export_symbols $output_objdir/$soname.def;
16017         else
16018           echo EXPORTS > $output_objdir/$soname.def;
16019           cat $export_symbols >> $output_objdir/$soname.def;
16020         fi~
16021         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16022       else
16023         ld_shlibs_GCJ=no
16024       fi
16025       ;;
16026
16027     interix3*)
16028       hardcode_direct_GCJ=no
16029       hardcode_shlibpath_var_GCJ=no
16030       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16031       export_dynamic_flag_spec_GCJ='${wl}-E'
16032       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16033       # Instead, shared libraries are loaded at an image base (0x10000000 by
16034       # default) and relocated if they conflict, which is a slow very memory
16035       # consuming and fragmenting process.  To avoid this, we pick a random,
16036       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16037       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16038       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16039       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16040       ;;
16041
16042     linux*)
16043       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16044         tmp_addflag=
16045         case $cc_basename,$host_cpu in
16046         pgcc*)                          # Portland Group C compiler
16047           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16048           tmp_addflag=' $pic_flag'
16049           ;;
16050         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16051           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16052           tmp_addflag=' $pic_flag -Mnomain' ;;
16053         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16054           tmp_addflag=' -i_dynamic' ;;
16055         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16056           tmp_addflag=' -i_dynamic -nofor_main' ;;
16057         ifc* | ifort*)                  # Intel Fortran compiler
16058           tmp_addflag=' -nofor_main' ;;
16059         esac
16060         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16061
16062         if test $supports_anon_versioning = yes; then
16063           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16064   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16065   $echo "local: *; };" >> $output_objdir/$libname.ver~
16066           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16067         fi
16068       else
16069         ld_shlibs_GCJ=no
16070       fi
16071       ;;
16072
16073     netbsd*)
16074       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16075         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16076         wlarc=
16077       else
16078         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16079         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16080       fi
16081       ;;
16082
16083     solaris*)
16084       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16085         ld_shlibs_GCJ=no
16086         cat <<EOF 1>&2
16087
16088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16089 *** create shared libraries on Solaris systems.  Therefore, libtool
16090 *** is disabling shared libraries support.  We urge you to upgrade GNU
16091 *** binutils to release 2.9.1 or newer.  Another option is to modify
16092 *** your PATH or compiler configuration so that the native linker is
16093 *** used, and then restart.
16094
16095 EOF
16096       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16097         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16098         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16099       else
16100         ld_shlibs_GCJ=no
16101       fi
16102       ;;
16103
16104     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16105       case `$LD -v 2>&1` in
16106         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16107         ld_shlibs_GCJ=no
16108         cat <<_LT_EOF 1>&2
16109
16110 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16111 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16112 *** is disabling shared libraries support.  We urge you to upgrade GNU
16113 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16114 *** your PATH or compiler configuration so that the native linker is
16115 *** used, and then restart.
16116
16117 _LT_EOF
16118         ;;
16119         *)
16120           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16121             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16122             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16123             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16124           else
16125             ld_shlibs_GCJ=no
16126           fi
16127         ;;
16128       esac
16129       ;;
16130
16131     sunos4*)
16132       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16133       wlarc=
16134       hardcode_direct_GCJ=yes
16135       hardcode_shlibpath_var_GCJ=no
16136       ;;
16137
16138     *)
16139       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16140         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16141         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16142       else
16143         ld_shlibs_GCJ=no
16144       fi
16145       ;;
16146     esac
16147
16148     if test "$ld_shlibs_GCJ" = no; then
16149       runpath_var=
16150       hardcode_libdir_flag_spec_GCJ=
16151       export_dynamic_flag_spec_GCJ=
16152       whole_archive_flag_spec_GCJ=
16153     fi
16154   else
16155     # PORTME fill in a description of your system's linker (not GNU ld)
16156     case $host_os in
16157     aix3*)
16158       allow_undefined_flag_GCJ=unsupported
16159       always_export_symbols_GCJ=yes
16160       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'
16161       # Note: this linker hardcodes the directories in LIBPATH if there
16162       # are no directories specified by -L.
16163       hardcode_minus_L_GCJ=yes
16164       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16165         # Neither direct hardcoding nor static linking is supported with a
16166         # broken collect2.
16167         hardcode_direct_GCJ=unsupported
16168       fi
16169       ;;
16170
16171     aix4* | aix5*)
16172       if test "$host_cpu" = ia64; then
16173         # On IA64, the linker does run time linking by default, so we don't
16174         # have to do anything special.
16175         aix_use_runtimelinking=no
16176         exp_sym_flag='-Bexport'
16177         no_entry_flag=""
16178       else
16179         # If we're using GNU nm, then we don't want the "-C" option.
16180         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16181         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16182           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'
16183         else
16184           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'
16185         fi
16186         aix_use_runtimelinking=no
16187
16188         # Test if we are trying to use run time linking or normal
16189         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16190         # need to do runtime linking.
16191         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16192           for ld_flag in $LDFLAGS; do
16193           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16194             aix_use_runtimelinking=yes
16195             break
16196           fi
16197           done
16198           ;;
16199         esac
16200
16201         exp_sym_flag='-bexport'
16202         no_entry_flag='-bnoentry'
16203       fi
16204
16205       # When large executables or shared objects are built, AIX ld can
16206       # have problems creating the table of contents.  If linking a library
16207       # or program results in "error TOC overflow" add -mminimal-toc to
16208       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16209       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16210
16211       archive_cmds_GCJ=''
16212       hardcode_direct_GCJ=yes
16213       hardcode_libdir_separator_GCJ=':'
16214       link_all_deplibs_GCJ=yes
16215
16216       if test "$GCC" = yes; then
16217         case $host_os in aix4.[012]|aix4.[012].*)
16218         # We only want to do this on AIX 4.2 and lower, the check
16219         # below for broken collect2 doesn't work under 4.3+
16220           collect2name=`${CC} -print-prog-name=collect2`
16221           if test -f "$collect2name" && \
16222            strings "$collect2name" | grep resolve_lib_name >/dev/null
16223           then
16224           # We have reworked collect2
16225           hardcode_direct_GCJ=yes
16226           else
16227           # We have old collect2
16228           hardcode_direct_GCJ=unsupported
16229           # It fails to find uninstalled libraries when the uninstalled
16230           # path is not listed in the libpath.  Setting hardcode_minus_L
16231           # to unsupported forces relinking
16232           hardcode_minus_L_GCJ=yes
16233           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16234           hardcode_libdir_separator_GCJ=
16235           fi
16236           ;;
16237         esac
16238         shared_flag='-shared'
16239         if test "$aix_use_runtimelinking" = yes; then
16240           shared_flag="$shared_flag "'${wl}-G'
16241         fi
16242       else
16243         # not using gcc
16244         if test "$host_cpu" = ia64; then
16245         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16246         # chokes on -Wl,-G. The following line is correct:
16247           shared_flag='-G'
16248         else
16249           if test "$aix_use_runtimelinking" = yes; then
16250             shared_flag='${wl}-G'
16251           else
16252             shared_flag='${wl}-bM:SRE'
16253           fi
16254         fi
16255       fi
16256
16257       # It seems that -bexpall does not export symbols beginning with
16258       # underscore (_), so it is better to generate a list of symbols to export.
16259       always_export_symbols_GCJ=yes
16260       if test "$aix_use_runtimelinking" = yes; then
16261         # Warning - without using the other runtime loading flags (-brtl),
16262         # -berok will link without error, but may produce a broken library.
16263         allow_undefined_flag_GCJ='-berok'
16264        # Determine the default libpath from the value encoded in an empty executable.
16265        cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271
16272 int
16273 main ()
16274 {
16275
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282   (eval $ac_link) 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } &&
16289          { ac_try='test -z "$ac_c_werror_flag"
16290                          || test ! -s conftest.err'
16291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292   (eval $ac_try) 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; } &&
16296          { ac_try='test -s conftest$ac_exeext'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302
16303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16304 }'`
16305 # Check for a 64-bit object if we didn't find anything.
16306 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; }
16307 }'`; fi
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 fi
16313 rm -f conftest.err conftest.$ac_objext \
16314       conftest$ac_exeext conftest.$ac_ext
16315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16316
16317        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16318         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16319        else
16320         if test "$host_cpu" = ia64; then
16321           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16322           allow_undefined_flag_GCJ="-z nodefs"
16323           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16324         else
16325          # Determine the default libpath from the value encoded in an empty executable.
16326          cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332
16333 int
16334 main ()
16335 {
16336
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16343   (eval $ac_link) 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -z "$ac_c_werror_flag"
16351                          || test ! -s conftest.err'
16352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353   (eval $ac_try) 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; } &&
16357          { ac_try='test -s conftest$ac_exeext'
16358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359   (eval $ac_try) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; }; then
16363
16364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16365 }'`
16366 # Check for a 64-bit object if we didn't find anything.
16367 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; }
16368 }'`; fi
16369 else
16370   echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373 fi
16374 rm -f conftest.err conftest.$ac_objext \
16375       conftest$ac_exeext conftest.$ac_ext
16376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16377
16378          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16379           # Warning - without using the other run time loading flags,
16380           # -berok will link without error, but may produce a broken library.
16381           no_undefined_flag_GCJ=' ${wl}-bernotok'
16382           allow_undefined_flag_GCJ=' ${wl}-berok'
16383           # Exported symbols can be pulled into shared objects from archives
16384           whole_archive_flag_spec_GCJ='$convenience'
16385           archive_cmds_need_lc_GCJ=yes
16386           # This is similar to how AIX traditionally builds its shared libraries.
16387           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16388         fi
16389       fi
16390       ;;
16391
16392     amigaos*)
16393       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)'
16394       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395       hardcode_minus_L_GCJ=yes
16396       # see comment about different semantics on the GNU ld section
16397       ld_shlibs_GCJ=no
16398       ;;
16399
16400     bsdi[45]*)
16401       export_dynamic_flag_spec_GCJ=-rdynamic
16402       ;;
16403
16404     cygwin* | mingw* | pw32*)
16405       # When not using gcc, we currently assume that we are using
16406       # Microsoft Visual C++.
16407       # hardcode_libdir_flag_spec is actually meaningless, as there is
16408       # no search path for DLLs.
16409       hardcode_libdir_flag_spec_GCJ=' '
16410       allow_undefined_flag_GCJ=unsupported
16411       # Tell ltmain to make .lib files, not .a files.
16412       libext=lib
16413       # Tell ltmain to make .dll files, not .so files.
16414       shrext_cmds=".dll"
16415       # FIXME: Setting linknames here is a bad hack.
16416       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16417       # The linker will automatically build a .lib file if we build a DLL.
16418       old_archive_From_new_cmds_GCJ='true'
16419       # FIXME: Should let the user specify the lib program.
16420       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16421       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16422       enable_shared_with_static_runtimes_GCJ=yes
16423       ;;
16424
16425     darwin* | rhapsody*)
16426       case $host_os in
16427         rhapsody* | darwin1.[012])
16428          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16429          ;;
16430        *) # Darwin 1.3 on
16431          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16432            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16433          else
16434            case ${MACOSX_DEPLOYMENT_TARGET} in
16435              10.[012])
16436                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16437                ;;
16438              10.*)
16439                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16440                ;;
16441            esac
16442          fi
16443          ;;
16444       esac
16445       archive_cmds_need_lc_GCJ=no
16446       hardcode_direct_GCJ=no
16447       hardcode_automatic_GCJ=yes
16448       hardcode_shlibpath_var_GCJ=unsupported
16449       whole_archive_flag_spec_GCJ=''
16450       link_all_deplibs_GCJ=yes
16451     if test "$GCC" = yes ; then
16452         output_verbose_link_cmd='echo'
16453         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16454       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16455       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16456       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16457       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}'
16458     else
16459       case $cc_basename in
16460         xlc*)
16461          output_verbose_link_cmd='echo'
16462          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16463          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16464           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16465          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16466           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}'
16467           ;;
16468        *)
16469          ld_shlibs_GCJ=no
16470           ;;
16471       esac
16472     fi
16473       ;;
16474
16475     dgux*)
16476       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16478       hardcode_shlibpath_var_GCJ=no
16479       ;;
16480
16481     freebsd1*)
16482       ld_shlibs_GCJ=no
16483       ;;
16484
16485     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16486     # support.  Future versions do this automatically, but an explicit c++rt0.o
16487     # does not break anything, and helps significantly (at the cost of a little
16488     # extra space).
16489     freebsd2.2*)
16490       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16491       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16492       hardcode_direct_GCJ=yes
16493       hardcode_shlibpath_var_GCJ=no
16494       ;;
16495
16496     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16497     freebsd2*)
16498       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16499       hardcode_direct_GCJ=yes
16500       hardcode_minus_L_GCJ=yes
16501       hardcode_shlibpath_var_GCJ=no
16502       ;;
16503
16504     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16505     freebsd* | kfreebsd*-gnu | dragonfly*)
16506       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16507       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16508       hardcode_direct_GCJ=yes
16509       hardcode_shlibpath_var_GCJ=no
16510       ;;
16511
16512     hpux9*)
16513       if test "$GCC" = yes; then
16514         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'
16515       else
16516         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'
16517       fi
16518       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16519       hardcode_libdir_separator_GCJ=:
16520       hardcode_direct_GCJ=yes
16521
16522       # hardcode_minus_L: Not really in the search PATH,
16523       # but as the default location of the library.
16524       hardcode_minus_L_GCJ=yes
16525       export_dynamic_flag_spec_GCJ='${wl}-E'
16526       ;;
16527
16528     hpux10*)
16529       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16530         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16531       else
16532         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16533       fi
16534       if test "$with_gnu_ld" = no; then
16535         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16536         hardcode_libdir_separator_GCJ=:
16537
16538         hardcode_direct_GCJ=yes
16539         export_dynamic_flag_spec_GCJ='${wl}-E'
16540
16541         # hardcode_minus_L: Not really in the search PATH,
16542         # but as the default location of the library.
16543         hardcode_minus_L_GCJ=yes
16544       fi
16545       ;;
16546
16547     hpux11*)
16548       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16549         case $host_cpu in
16550         hppa*64*)
16551           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16552           ;;
16553         ia64*)
16554           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16555           ;;
16556         *)
16557           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16558           ;;
16559         esac
16560       else
16561         case $host_cpu in
16562         hppa*64*)
16563           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16564           ;;
16565         ia64*)
16566           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16567           ;;
16568         *)
16569           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16570           ;;
16571         esac
16572       fi
16573       if test "$with_gnu_ld" = no; then
16574         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16575         hardcode_libdir_separator_GCJ=:
16576
16577         case $host_cpu in
16578         hppa*64*|ia64*)
16579           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16580           hardcode_direct_GCJ=no
16581           hardcode_shlibpath_var_GCJ=no
16582           ;;
16583         *)
16584           hardcode_direct_GCJ=yes
16585           export_dynamic_flag_spec_GCJ='${wl}-E'
16586
16587           # hardcode_minus_L: Not really in the search PATH,
16588           # but as the default location of the library.
16589           hardcode_minus_L_GCJ=yes
16590           ;;
16591         esac
16592       fi
16593       ;;
16594
16595     irix5* | irix6* | nonstopux*)
16596       if test "$GCC" = yes; then
16597         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'
16598       else
16599         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'
16600         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16601       fi
16602       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16603       hardcode_libdir_separator_GCJ=:
16604       link_all_deplibs_GCJ=yes
16605       ;;
16606
16607     netbsd*)
16608       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16609         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16610       else
16611         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16612       fi
16613       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16614       hardcode_direct_GCJ=yes
16615       hardcode_shlibpath_var_GCJ=no
16616       ;;
16617
16618     newsos6)
16619       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620       hardcode_direct_GCJ=yes
16621       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16622       hardcode_libdir_separator_GCJ=:
16623       hardcode_shlibpath_var_GCJ=no
16624       ;;
16625
16626     openbsd*)
16627       hardcode_direct_GCJ=yes
16628       hardcode_shlibpath_var_GCJ=no
16629       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16630         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16631         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16632         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16633         export_dynamic_flag_spec_GCJ='${wl}-E'
16634       else
16635        case $host_os in
16636          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16637            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16638            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16639            ;;
16640          *)
16641            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16642            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16643            ;;
16644        esac
16645       fi
16646       ;;
16647
16648     os2*)
16649       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16650       hardcode_minus_L_GCJ=yes
16651       allow_undefined_flag_GCJ=unsupported
16652       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'
16653       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16654       ;;
16655
16656     osf3*)
16657       if test "$GCC" = yes; then
16658         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16659         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'
16660       else
16661         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16662         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'
16663       fi
16664       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16665       hardcode_libdir_separator_GCJ=:
16666       ;;
16667
16668     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16669       if test "$GCC" = yes; then
16670         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16671         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'
16672         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16673       else
16674         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16675         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'
16676         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~
16677         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16678
16679         # Both c and cxx compiler support -rpath directly
16680         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16681       fi
16682       hardcode_libdir_separator_GCJ=:
16683       ;;
16684
16685     solaris*)
16686       no_undefined_flag_GCJ=' -z text'
16687       if test "$GCC" = yes; then
16688         wlarc='${wl}'
16689         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16691           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16692       else
16693         wlarc=''
16694         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16695         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16696         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16697       fi
16698       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16699       hardcode_shlibpath_var_GCJ=no
16700       case $host_os in
16701       solaris2.[0-5] | solaris2.[0-5].*) ;;
16702       *)
16703         # The compiler driver will combine linker options so we
16704         # cannot just pass the convience library names through
16705         # without $wl, iff we do not link with $LD.
16706         # Luckily, gcc supports the same syntax we need for Sun Studio.
16707         # Supported since Solaris 2.6 (maybe 2.5.1?)
16708         case $wlarc in
16709         '')
16710           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16711         *)
16712           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16713         esac ;;
16714       esac
16715       link_all_deplibs_GCJ=yes
16716       ;;
16717
16718     sunos4*)
16719       if test "x$host_vendor" = xsequent; then
16720         # Use $CC to link under sequent, because it throws in some extra .o
16721         # files that make .init and .fini sections work.
16722         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16723       else
16724         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16725       fi
16726       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16727       hardcode_direct_GCJ=yes
16728       hardcode_minus_L_GCJ=yes
16729       hardcode_shlibpath_var_GCJ=no
16730       ;;
16731
16732     sysv4)
16733       case $host_vendor in
16734         sni)
16735           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736           hardcode_direct_GCJ=yes # is this really true???
16737         ;;
16738         siemens)
16739           ## LD is ld it makes a PLAMLIB
16740           ## CC just makes a GrossModule.
16741           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16742           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16743           hardcode_direct_GCJ=no
16744         ;;
16745         motorola)
16746           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16748         ;;
16749       esac
16750       runpath_var='LD_RUN_PATH'
16751       hardcode_shlibpath_var_GCJ=no
16752       ;;
16753
16754     sysv4.3*)
16755       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756       hardcode_shlibpath_var_GCJ=no
16757       export_dynamic_flag_spec_GCJ='-Bexport'
16758       ;;
16759
16760     sysv4*MP*)
16761       if test -d /usr/nec; then
16762         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16763         hardcode_shlibpath_var_GCJ=no
16764         runpath_var=LD_RUN_PATH
16765         hardcode_runpath_var=yes
16766         ld_shlibs_GCJ=yes
16767       fi
16768       ;;
16769
16770     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16771       no_undefined_flag_GCJ='${wl}-z,text'
16772       archive_cmds_need_lc_GCJ=no
16773       hardcode_shlibpath_var_GCJ=no
16774       runpath_var='LD_RUN_PATH'
16775
16776       if test "$GCC" = yes; then
16777         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16779       else
16780         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782       fi
16783       ;;
16784
16785     sysv5* | sco3.2v5* | sco5v6*)
16786       # Note: We can NOT use -z defs as we might desire, because we do not
16787       # link with -lc, and that would cause any symbols used from libc to
16788       # always be unresolved, which means just about no library would
16789       # ever link correctly.  If we're not using GNU ld we use -z text
16790       # though, which does catch some bad symbols but isn't as heavy-handed
16791       # as -z defs.
16792       no_undefined_flag_GCJ='${wl}-z,text'
16793       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16794       archive_cmds_need_lc_GCJ=no
16795       hardcode_shlibpath_var_GCJ=no
16796       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16797       hardcode_libdir_separator_GCJ=':'
16798       link_all_deplibs_GCJ=yes
16799       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16800       runpath_var='LD_RUN_PATH'
16801
16802       if test "$GCC" = yes; then
16803         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16804         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16805       else
16806         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16807         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16808       fi
16809       ;;
16810
16811     uts4*)
16812       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16813       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16814       hardcode_shlibpath_var_GCJ=no
16815       ;;
16816
16817     *)
16818       ld_shlibs_GCJ=no
16819       ;;
16820     esac
16821   fi
16822
16823 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16824 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16825 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16826
16827 #
16828 # Do we need to explicitly link libc?
16829 #
16830 case "x$archive_cmds_need_lc_GCJ" in
16831 x|xyes)
16832   # Assume -lc should be added
16833   archive_cmds_need_lc_GCJ=yes
16834
16835   if test "$enable_shared" = yes && test "$GCC" = yes; then
16836     case $archive_cmds_GCJ in
16837     *'~'*)
16838       # FIXME: we may have to deal with multi-command sequences.
16839       ;;
16840     '$CC '*)
16841       # Test whether the compiler implicitly links with -lc since on some
16842       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16843       # to ld, don't add -lc before -lgcc.
16844       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16846       $rm conftest*
16847       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16848
16849       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16850   (eval $ac_compile) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } 2>conftest.err; then
16854         soname=conftest
16855         lib=conftest
16856         libobjs=conftest.$ac_objext
16857         deplibs=
16858         wl=$lt_prog_compiler_wl_GCJ
16859         pic_flag=$lt_prog_compiler_pic_GCJ
16860         compiler_flags=-v
16861         linker_flags=-v
16862         verstring=
16863         output_objdir=.
16864         libname=conftest
16865         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16866         allow_undefined_flag_GCJ=
16867         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16868   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }
16872         then
16873           archive_cmds_need_lc_GCJ=no
16874         else
16875           archive_cmds_need_lc_GCJ=yes
16876         fi
16877         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16878       else
16879         cat conftest.err 1>&5
16880       fi
16881       $rm conftest*
16882       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16883 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16884       ;;
16885     esac
16886   fi
16887   ;;
16888 esac
16889
16890 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16892 library_names_spec=
16893 libname_spec='lib$name'
16894 soname_spec=
16895 shrext_cmds=".so"
16896 postinstall_cmds=
16897 postuninstall_cmds=
16898 finish_cmds=
16899 finish_eval=
16900 shlibpath_var=
16901 shlibpath_overrides_runpath=unknown
16902 version_type=none
16903 dynamic_linker="$host_os ld.so"
16904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16905 if test "$GCC" = yes; then
16906   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16907   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16908     # if the path contains ";" then we assume it to be the separator
16909     # otherwise default to the standard path separator (i.e. ":") - it is
16910     # assumed that no part of a normal pathname contains ";" but that should
16911     # okay in the real world where ";" in dirpaths is itself problematic.
16912     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16913   else
16914     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16915   fi
16916 else
16917   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16918 fi
16919 need_lib_prefix=unknown
16920 hardcode_into_libs=no
16921
16922 # when you set need_version to no, make sure it does not cause -set_version
16923 # flags to be left without arguments
16924 need_version=unknown
16925
16926 case $host_os in
16927 aix3*)
16928   version_type=linux
16929   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16930   shlibpath_var=LIBPATH
16931
16932   # AIX 3 has no versioning support, so we append a major version to the name.
16933   soname_spec='${libname}${release}${shared_ext}$major'
16934   ;;
16935
16936 aix4* | aix5*)
16937   version_type=linux
16938   need_lib_prefix=no
16939   need_version=no
16940   hardcode_into_libs=yes
16941   if test "$host_cpu" = ia64; then
16942     # AIX 5 supports IA64
16943     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16944     shlibpath_var=LD_LIBRARY_PATH
16945   else
16946     # With GCC up to 2.95.x, collect2 would create an import file
16947     # for dependence libraries.  The import file would start with
16948     # the line `#! .'.  This would cause the generated library to
16949     # depend on `.', always an invalid library.  This was fixed in
16950     # development snapshots of GCC prior to 3.0.
16951     case $host_os in
16952       aix4 | aix4.[01] | aix4.[01].*)
16953       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16954            echo ' yes '
16955            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16956         :
16957       else
16958         can_build_shared=no
16959       fi
16960       ;;
16961     esac
16962     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16963     # soname into executable. Probably we can add versioning support to
16964     # collect2, so additional links can be useful in future.
16965     if test "$aix_use_runtimelinking" = yes; then
16966       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16967       # instead of lib<name>.a to let people know that these are not
16968       # typical AIX shared libraries.
16969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970     else
16971       # We preserve .a as extension for shared libraries through AIX4.2
16972       # and later when we are not doing run time linking.
16973       library_names_spec='${libname}${release}.a $libname.a'
16974       soname_spec='${libname}${release}${shared_ext}$major'
16975     fi
16976     shlibpath_var=LIBPATH
16977   fi
16978   ;;
16979
16980 amigaos*)
16981   library_names_spec='$libname.ixlibrary $libname.a'
16982   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16983   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'
16984   ;;
16985
16986 beos*)
16987   library_names_spec='${libname}${shared_ext}'
16988   dynamic_linker="$host_os ld.so"
16989   shlibpath_var=LIBRARY_PATH
16990   ;;
16991
16992 bsdi[45]*)
16993   version_type=linux
16994   need_version=no
16995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996   soname_spec='${libname}${release}${shared_ext}$major'
16997   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16998   shlibpath_var=LD_LIBRARY_PATH
16999   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17000   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17001   # the default ld.so.conf also contains /usr/contrib/lib and
17002   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17003   # libtool to hard-code these into programs
17004   ;;
17005
17006 cygwin* | mingw* | pw32*)
17007   version_type=windows
17008   shrext_cmds=".dll"
17009   need_version=no
17010   need_lib_prefix=no
17011
17012   case $GCC,$host_os in
17013   yes,cygwin* | yes,mingw* | yes,pw32*)
17014     library_names_spec='$libname.dll.a'
17015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17016     postinstall_cmds='base_file=`basename \${file}`~
17017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17018       dldir=$destdir/`dirname \$dlpath`~
17019       test -d \$dldir || mkdir -p \$dldir~
17020       $install_prog $dir/$dlname \$dldir/$dlname~
17021       chmod a+x \$dldir/$dlname'
17022     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17023       dlpath=$dir/\$dldll~
17024        $rm \$dlpath'
17025     shlibpath_overrides_runpath=yes
17026
17027     case $host_os in
17028     cygwin*)
17029       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17030       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17031       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17032       ;;
17033     mingw*)
17034       # MinGW DLLs use traditional 'lib' prefix
17035       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17036       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17037       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17038         # It is most probably a Windows format PATH printed by
17039         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17040         # path with ; separators, and with drive letters. We can handle the
17041         # drive letters (cygwin fileutils understands them), so leave them,
17042         # especially as we might pass files found there to a mingw objdump,
17043         # which wouldn't understand a cygwinified path. Ahh.
17044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17045       else
17046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17047       fi
17048       ;;
17049     pw32*)
17050       # pw32 DLLs use 'pw' prefix rather than 'lib'
17051       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17052       ;;
17053     esac
17054     ;;
17055
17056   *)
17057     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17058     ;;
17059   esac
17060   dynamic_linker='Win32 ld.exe'
17061   # FIXME: first we should search . and the directory the executable is in
17062   shlibpath_var=PATH
17063   ;;
17064
17065 darwin* | rhapsody*)
17066   dynamic_linker="$host_os dyld"
17067   version_type=darwin
17068   need_lib_prefix=no
17069   need_version=no
17070   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17071   soname_spec='${libname}${release}${major}$shared_ext'
17072   shlibpath_overrides_runpath=yes
17073   shlibpath_var=DYLD_LIBRARY_PATH
17074   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17075   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17076   if test "$GCC" = yes; then
17077     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"`
17078   else
17079     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17080   fi
17081   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17082   ;;
17083
17084 dgux*)
17085   version_type=linux
17086   need_lib_prefix=no
17087   need_version=no
17088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17089   soname_spec='${libname}${release}${shared_ext}$major'
17090   shlibpath_var=LD_LIBRARY_PATH
17091   ;;
17092
17093 freebsd1*)
17094   dynamic_linker=no
17095   ;;
17096
17097 kfreebsd*-gnu)
17098   version_type=linux
17099   need_lib_prefix=no
17100   need_version=no
17101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17102   soname_spec='${libname}${release}${shared_ext}$major'
17103   shlibpath_var=LD_LIBRARY_PATH
17104   shlibpath_overrides_runpath=no
17105   hardcode_into_libs=yes
17106   dynamic_linker='GNU ld.so'
17107   ;;
17108
17109 freebsd* | dragonfly*)
17110   # DragonFly does not have aout.  When/if they implement a new
17111   # versioning mechanism, adjust this.
17112   if test -x /usr/bin/objformat; then
17113     objformat=`/usr/bin/objformat`
17114   else
17115     case $host_os in
17116     freebsd[123]*) objformat=aout ;;
17117     *) objformat=elf ;;
17118     esac
17119   fi
17120   version_type=freebsd-$objformat
17121   case $version_type in
17122     freebsd-elf*)
17123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17124       need_version=no
17125       need_lib_prefix=no
17126       ;;
17127     freebsd-*)
17128       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17129       need_version=yes
17130       ;;
17131   esac
17132   shlibpath_var=LD_LIBRARY_PATH
17133   case $host_os in
17134   freebsd2*)
17135     shlibpath_overrides_runpath=yes
17136     ;;
17137   freebsd3.[01]* | freebsdelf3.[01]*)
17138     shlibpath_overrides_runpath=yes
17139     hardcode_into_libs=yes
17140     ;;
17141   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17142   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17143     shlibpath_overrides_runpath=no
17144     hardcode_into_libs=yes
17145     ;;
17146   freebsd*) # from 4.6 on
17147     shlibpath_overrides_runpath=yes
17148     hardcode_into_libs=yes
17149     ;;
17150   esac
17151   ;;
17152
17153 gnu*)
17154   version_type=linux
17155   need_lib_prefix=no
17156   need_version=no
17157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17158   soname_spec='${libname}${release}${shared_ext}$major'
17159   shlibpath_var=LD_LIBRARY_PATH
17160   hardcode_into_libs=yes
17161   ;;
17162
17163 hpux9* | hpux10* | hpux11*)
17164   # Give a soname corresponding to the major version so that dld.sl refuses to
17165   # link against other versions.
17166   version_type=sunos
17167   need_lib_prefix=no
17168   need_version=no
17169   case $host_cpu in
17170   ia64*)
17171     shrext_cmds='.so'
17172     hardcode_into_libs=yes
17173     dynamic_linker="$host_os dld.so"
17174     shlibpath_var=LD_LIBRARY_PATH
17175     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177     soname_spec='${libname}${release}${shared_ext}$major'
17178     if test "X$HPUX_IA64_MODE" = X32; then
17179       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17180     else
17181       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17182     fi
17183     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17184     ;;
17185    hppa*64*)
17186      shrext_cmds='.sl'
17187      hardcode_into_libs=yes
17188      dynamic_linker="$host_os dld.sl"
17189      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17190      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17191      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192      soname_spec='${libname}${release}${shared_ext}$major'
17193      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17194      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17195      ;;
17196    *)
17197     shrext_cmds='.sl'
17198     dynamic_linker="$host_os dld.sl"
17199     shlibpath_var=SHLIB_PATH
17200     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202     soname_spec='${libname}${release}${shared_ext}$major'
17203     ;;
17204   esac
17205   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17206   postinstall_cmds='chmod 555 $lib'
17207   ;;
17208
17209 interix3*)
17210   version_type=linux
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   shlibpath_overrides_runpath=no
17218   hardcode_into_libs=yes
17219   ;;
17220
17221 irix5* | irix6* | nonstopux*)
17222   case $host_os in
17223     nonstopux*) version_type=nonstopux ;;
17224     *)
17225         if test "$lt_cv_prog_gnu_ld" = yes; then
17226                 version_type=linux
17227         else
17228                 version_type=irix
17229         fi ;;
17230   esac
17231   need_lib_prefix=no
17232   need_version=no
17233   soname_spec='${libname}${release}${shared_ext}$major'
17234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17235   case $host_os in
17236   irix5* | nonstopux*)
17237     libsuff= shlibsuff=
17238     ;;
17239   *)
17240     case $LD in # libtool.m4 will add one of these switches to LD
17241     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17242       libsuff= shlibsuff= libmagic=32-bit;;
17243     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17244       libsuff=32 shlibsuff=N32 libmagic=N32;;
17245     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17246       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17247     *) libsuff= shlibsuff= libmagic=never-match;;
17248     esac
17249     ;;
17250   esac
17251   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17252   shlibpath_overrides_runpath=no
17253   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17254   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17255   hardcode_into_libs=yes
17256   ;;
17257
17258 # No shared lib support for Linux oldld, aout, or coff.
17259 linux*oldld* | linux*aout* | linux*coff*)
17260   dynamic_linker=no
17261   ;;
17262
17263 # This must be Linux ELF.
17264 linux*)
17265   version_type=linux
17266   need_lib_prefix=no
17267   need_version=no
17268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17269   soname_spec='${libname}${release}${shared_ext}$major'
17270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17271   shlibpath_var=LD_LIBRARY_PATH
17272   shlibpath_overrides_runpath=no
17273   # This implies no fast_install, which is unacceptable.
17274   # Some rework will be needed to allow for fast_install
17275   # before this can be enabled.
17276   hardcode_into_libs=yes
17277
17278   # Append ld.so.conf contents to the search path
17279   if test -f /etc/ld.so.conf; then
17280     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17281     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17282   fi
17283
17284   # We used to test for /lib/ld.so.1 and disable shared libraries on
17285   # powerpc, because MkLinux only supported shared libraries with the
17286   # GNU dynamic linker.  Since this was broken with cross compilers,
17287   # most powerpc-linux boxes support dynamic linking these days and
17288   # people can always --disable-shared, the test was removed, and we
17289   # assume the GNU/Linux dynamic linker is in use.
17290   dynamic_linker='GNU/Linux ld.so'
17291   ;;
17292
17293 knetbsd*-gnu)
17294   version_type=linux
17295   need_lib_prefix=no
17296   need_version=no
17297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17298   soname_spec='${libname}${release}${shared_ext}$major'
17299   shlibpath_var=LD_LIBRARY_PATH
17300   shlibpath_overrides_runpath=no
17301   hardcode_into_libs=yes
17302   dynamic_linker='GNU ld.so'
17303   ;;
17304
17305 netbsd*)
17306   version_type=sunos
17307   need_lib_prefix=no
17308   need_version=no
17309   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17311     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17312     dynamic_linker='NetBSD (a.out) ld.so'
17313   else
17314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17315     soname_spec='${libname}${release}${shared_ext}$major'
17316     dynamic_linker='NetBSD ld.elf_so'
17317   fi
17318   shlibpath_var=LD_LIBRARY_PATH
17319   shlibpath_overrides_runpath=yes
17320   hardcode_into_libs=yes
17321   ;;
17322
17323 newsos6)
17324   version_type=linux
17325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326   shlibpath_var=LD_LIBRARY_PATH
17327   shlibpath_overrides_runpath=yes
17328   ;;
17329
17330 nto-qnx*)
17331   version_type=linux
17332   need_lib_prefix=no
17333   need_version=no
17334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335   soname_spec='${libname}${release}${shared_ext}$major'
17336   shlibpath_var=LD_LIBRARY_PATH
17337   shlibpath_overrides_runpath=yes
17338   ;;
17339
17340 openbsd*)
17341   version_type=sunos
17342   sys_lib_dlsearch_path_spec="/usr/lib"
17343   need_lib_prefix=no
17344   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17345   case $host_os in
17346     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17347     *)                         need_version=no  ;;
17348   esac
17349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17350   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17351   shlibpath_var=LD_LIBRARY_PATH
17352   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17353     case $host_os in
17354       openbsd2.[89] | openbsd2.[89].*)
17355         shlibpath_overrides_runpath=no
17356         ;;
17357       *)
17358         shlibpath_overrides_runpath=yes
17359         ;;
17360       esac
17361   else
17362     shlibpath_overrides_runpath=yes
17363   fi
17364   ;;
17365
17366 os2*)
17367   libname_spec='$name'
17368   shrext_cmds=".dll"
17369   need_lib_prefix=no
17370   library_names_spec='$libname${shared_ext} $libname.a'
17371   dynamic_linker='OS/2 ld.exe'
17372   shlibpath_var=LIBPATH
17373   ;;
17374
17375 osf3* | osf4* | osf5*)
17376   version_type=osf
17377   need_lib_prefix=no
17378   need_version=no
17379   soname_spec='${libname}${release}${shared_ext}$major'
17380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381   shlibpath_var=LD_LIBRARY_PATH
17382   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17383   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17384   ;;
17385
17386 solaris*)
17387   version_type=linux
17388   need_lib_prefix=no
17389   need_version=no
17390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391   soname_spec='${libname}${release}${shared_ext}$major'
17392   shlibpath_var=LD_LIBRARY_PATH
17393   shlibpath_overrides_runpath=yes
17394   hardcode_into_libs=yes
17395   # ldd complains unless libraries are executable
17396   postinstall_cmds='chmod +x $lib'
17397   ;;
17398
17399 sunos4*)
17400   version_type=sunos
17401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17403   shlibpath_var=LD_LIBRARY_PATH
17404   shlibpath_overrides_runpath=yes
17405   if test "$with_gnu_ld" = yes; then
17406     need_lib_prefix=no
17407   fi
17408   need_version=yes
17409   ;;
17410
17411 sysv4 | sysv4.3*)
17412   version_type=linux
17413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414   soname_spec='${libname}${release}${shared_ext}$major'
17415   shlibpath_var=LD_LIBRARY_PATH
17416   case $host_vendor in
17417     sni)
17418       shlibpath_overrides_runpath=no
17419       need_lib_prefix=no
17420       export_dynamic_flag_spec='${wl}-Blargedynsym'
17421       runpath_var=LD_RUN_PATH
17422       ;;
17423     siemens)
17424       need_lib_prefix=no
17425       ;;
17426     motorola)
17427       need_lib_prefix=no
17428       need_version=no
17429       shlibpath_overrides_runpath=no
17430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17431       ;;
17432   esac
17433   ;;
17434
17435 sysv4*MP*)
17436   if test -d /usr/nec ;then
17437     version_type=linux
17438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17439     soname_spec='$libname${shared_ext}.$major'
17440     shlibpath_var=LD_LIBRARY_PATH
17441   fi
17442   ;;
17443
17444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17445   version_type=freebsd-elf
17446   need_lib_prefix=no
17447   need_version=no
17448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17449   soname_spec='${libname}${release}${shared_ext}$major'
17450   shlibpath_var=LD_LIBRARY_PATH
17451   hardcode_into_libs=yes
17452   if test "$with_gnu_ld" = yes; then
17453     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17454     shlibpath_overrides_runpath=no
17455   else
17456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17457     shlibpath_overrides_runpath=yes
17458     case $host_os in
17459       sco3.2v5*)
17460         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17461         ;;
17462     esac
17463   fi
17464   sys_lib_dlsearch_path_spec='/usr/lib'
17465   ;;
17466
17467 uts4*)
17468   version_type=linux
17469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470   soname_spec='${libname}${release}${shared_ext}$major'
17471   shlibpath_var=LD_LIBRARY_PATH
17472   ;;
17473
17474 *)
17475   dynamic_linker=no
17476   ;;
17477 esac
17478 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17479 echo "${ECHO_T}$dynamic_linker" >&6
17480 test "$dynamic_linker" = no && can_build_shared=no
17481
17482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17483 if test "$GCC" = yes; then
17484   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17485 fi
17486
17487 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17489 hardcode_action_GCJ=
17490 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17491    test -n "$runpath_var_GCJ" || \
17492    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17493
17494   # We can hardcode non-existant directories.
17495   if test "$hardcode_direct_GCJ" != no &&
17496      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17497      # have to relink, otherwise we might link with an installed library
17498      # when we should be linking with a yet-to-be-installed one
17499      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17500      test "$hardcode_minus_L_GCJ" != no; then
17501     # Linking always hardcodes the temporary library directory.
17502     hardcode_action_GCJ=relink
17503   else
17504     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17505     hardcode_action_GCJ=immediate
17506   fi
17507 else
17508   # We cannot hardcode anything, or else we can only hardcode existing
17509   # directories.
17510   hardcode_action_GCJ=unsupported
17511 fi
17512 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17513 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17514
17515 if test "$hardcode_action_GCJ" = relink; then
17516   # Fast installation is not supported
17517   enable_fast_install=no
17518 elif test "$shlibpath_overrides_runpath" = yes ||
17519      test "$enable_shared" = no; then
17520   # Fast installation is not necessary
17521   enable_fast_install=needless
17522 fi
17523
17524
17525 # The else clause should only fire when bootstrapping the
17526 # libtool distribution, otherwise you forgot to ship ltmain.sh
17527 # with your package, and you will get complaints that there are
17528 # no rules to generate ltmain.sh.
17529 if test -f "$ltmain"; then
17530   # See if we are running on zsh, and set the options which allow our commands through
17531   # without removal of \ escapes.
17532   if test -n "${ZSH_VERSION+set}" ; then
17533     setopt NO_GLOB_SUBST
17534   fi
17535   # Now quote all the things that may contain metacharacters while being
17536   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17537   # variables and quote the copies for generation of the libtool script.
17538   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17539     SED SHELL STRIP \
17540     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17541     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17542     deplibs_check_method reload_flag reload_cmds need_locks \
17543     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17544     lt_cv_sys_global_symbol_to_c_name_address \
17545     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17546     old_postinstall_cmds old_postuninstall_cmds \
17547     compiler_GCJ \
17548     CC_GCJ \
17549     LD_GCJ \
17550     lt_prog_compiler_wl_GCJ \
17551     lt_prog_compiler_pic_GCJ \
17552     lt_prog_compiler_static_GCJ \
17553     lt_prog_compiler_no_builtin_flag_GCJ \
17554     export_dynamic_flag_spec_GCJ \
17555     thread_safe_flag_spec_GCJ \
17556     whole_archive_flag_spec_GCJ \
17557     enable_shared_with_static_runtimes_GCJ \
17558     old_archive_cmds_GCJ \
17559     old_archive_from_new_cmds_GCJ \
17560     predep_objects_GCJ \
17561     postdep_objects_GCJ \
17562     predeps_GCJ \
17563     postdeps_GCJ \
17564     compiler_lib_search_path_GCJ \
17565     archive_cmds_GCJ \
17566     archive_expsym_cmds_GCJ \
17567     postinstall_cmds_GCJ \
17568     postuninstall_cmds_GCJ \
17569     old_archive_from_expsyms_cmds_GCJ \
17570     allow_undefined_flag_GCJ \
17571     no_undefined_flag_GCJ \
17572     export_symbols_cmds_GCJ \
17573     hardcode_libdir_flag_spec_GCJ \
17574     hardcode_libdir_flag_spec_ld_GCJ \
17575     hardcode_libdir_separator_GCJ \
17576     hardcode_automatic_GCJ \
17577     module_cmds_GCJ \
17578     module_expsym_cmds_GCJ \
17579     lt_cv_prog_compiler_c_o_GCJ \
17580     exclude_expsyms_GCJ \
17581     include_expsyms_GCJ; do
17582
17583     case $var in
17584     old_archive_cmds_GCJ | \
17585     old_archive_from_new_cmds_GCJ | \
17586     archive_cmds_GCJ | \
17587     archive_expsym_cmds_GCJ | \
17588     module_cmds_GCJ | \
17589     module_expsym_cmds_GCJ | \
17590     old_archive_from_expsyms_cmds_GCJ | \
17591     export_symbols_cmds_GCJ | \
17592     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17593     postinstall_cmds | postuninstall_cmds | \
17594     old_postinstall_cmds | old_postuninstall_cmds | \
17595     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17596       # Double-quote double-evaled strings.
17597       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17598       ;;
17599     *)
17600       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17601       ;;
17602     esac
17603   done
17604
17605   case $lt_echo in
17606   *'\$0 --fallback-echo"')
17607     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17608     ;;
17609   esac
17610
17611 cfgfile="$ofile"
17612
17613   cat <<__EOF__ >> "$cfgfile"
17614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17615
17616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17617
17618 # Shell to use when invoking shell scripts.
17619 SHELL=$lt_SHELL
17620
17621 # Whether or not to build shared libraries.
17622 build_libtool_libs=$enable_shared
17623
17624 # Whether or not to build static libraries.
17625 build_old_libs=$enable_static
17626
17627 # Whether or not to add -lc for building shared libraries.
17628 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17629
17630 # Whether or not to disallow shared libs when runtime libs are static
17631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17632
17633 # Whether or not to optimize for fast installation.
17634 fast_install=$enable_fast_install
17635
17636 # The host system.
17637 host_alias=$host_alias
17638 host=$host
17639 host_os=$host_os
17640
17641 # The build system.
17642 build_alias=$build_alias
17643 build=$build
17644 build_os=$build_os
17645
17646 # An echo program that does not interpret backslashes.
17647 echo=$lt_echo
17648
17649 # The archiver.
17650 AR=$lt_AR
17651 AR_FLAGS=$lt_AR_FLAGS
17652
17653 # A C compiler.
17654 LTCC=$lt_LTCC
17655
17656 # LTCC compiler flags.
17657 LTCFLAGS=$lt_LTCFLAGS
17658
17659 # A language-specific compiler.
17660 CC=$lt_compiler_GCJ
17661
17662 # Is the compiler the GNU C compiler?
17663 with_gcc=$GCC_GCJ
17664
17665 # An ERE matcher.
17666 EGREP=$lt_EGREP
17667
17668 # The linker used to build libraries.
17669 LD=$lt_LD_GCJ
17670
17671 # Whether we need hard or soft links.
17672 LN_S=$lt_LN_S
17673
17674 # A BSD-compatible nm program.
17675 NM=$lt_NM
17676
17677 # A symbol stripping program
17678 STRIP=$lt_STRIP
17679
17680 # Used to examine libraries when file_magic_cmd begins "file"
17681 MAGIC_CMD=$MAGIC_CMD
17682
17683 # Used on cygwin: DLL creation program.
17684 DLLTOOL="$DLLTOOL"
17685
17686 # Used on cygwin: object dumper.
17687 OBJDUMP="$OBJDUMP"
17688
17689 # Used on cygwin: assembler.
17690 AS="$AS"
17691
17692 # The name of the directory that contains temporary libtool files.
17693 objdir=$objdir
17694
17695 # How to create reloadable object files.
17696 reload_flag=$lt_reload_flag
17697 reload_cmds=$lt_reload_cmds
17698
17699 # How to pass a linker flag through the compiler.
17700 wl=$lt_lt_prog_compiler_wl_GCJ
17701
17702 # Object file suffix (normally "o").
17703 objext="$ac_objext"
17704
17705 # Old archive suffix (normally "a").
17706 libext="$libext"
17707
17708 # Shared library suffix (normally ".so").
17709 shrext_cmds='$shrext_cmds'
17710
17711 # Executable file suffix (normally "").
17712 exeext="$exeext"
17713
17714 # Additional compiler flags for building library objects.
17715 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17716 pic_mode=$pic_mode
17717
17718 # What is the maximum length of a command?
17719 max_cmd_len=$lt_cv_sys_max_cmd_len
17720
17721 # Does compiler simultaneously support -c and -o options?
17722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17723
17724 # Must we lock files when doing compilation?
17725 need_locks=$lt_need_locks
17726
17727 # Do we need the lib prefix for modules?
17728 need_lib_prefix=$need_lib_prefix
17729
17730 # Do we need a version for libraries?
17731 need_version=$need_version
17732
17733 # Whether dlopen is supported.
17734 dlopen_support=$enable_dlopen
17735
17736 # Whether dlopen of programs is supported.
17737 dlopen_self=$enable_dlopen_self
17738
17739 # Whether dlopen of statically linked programs is supported.
17740 dlopen_self_static=$enable_dlopen_self_static
17741
17742 # Compiler flag to prevent dynamic linking.
17743 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17744
17745 # Compiler flag to turn off builtin functions.
17746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17747
17748 # Compiler flag to allow reflexive dlopens.
17749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17750
17751 # Compiler flag to generate shared objects directly from archives.
17752 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17753
17754 # Compiler flag to generate thread-safe objects.
17755 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17756
17757 # Library versioning type.
17758 version_type=$version_type
17759
17760 # Format of library name prefix.
17761 libname_spec=$lt_libname_spec
17762
17763 # List of archive names.  First name is the real one, the rest are links.
17764 # The last name is the one that the linker finds with -lNAME.
17765 library_names_spec=$lt_library_names_spec
17766
17767 # The coded name of the library, if different from the real name.
17768 soname_spec=$lt_soname_spec
17769
17770 # Commands used to build and install an old-style archive.
17771 RANLIB=$lt_RANLIB
17772 old_archive_cmds=$lt_old_archive_cmds_GCJ
17773 old_postinstall_cmds=$lt_old_postinstall_cmds
17774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17775
17776 # Create an old-style archive from a shared archive.
17777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17778
17779 # Create a temporary old-style archive to link instead of a shared archive.
17780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17781
17782 # Commands used to build and install a shared archive.
17783 archive_cmds=$lt_archive_cmds_GCJ
17784 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17785 postinstall_cmds=$lt_postinstall_cmds
17786 postuninstall_cmds=$lt_postuninstall_cmds
17787
17788 # Commands used to build a loadable module (assumed same as above if empty)
17789 module_cmds=$lt_module_cmds_GCJ
17790 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17791
17792 # Commands to strip libraries.
17793 old_striplib=$lt_old_striplib
17794 striplib=$lt_striplib
17795
17796 # Dependencies to place before the objects being linked to create a
17797 # shared library.
17798 predep_objects=$lt_predep_objects_GCJ
17799
17800 # Dependencies to place after the objects being linked to create a
17801 # shared library.
17802 postdep_objects=$lt_postdep_objects_GCJ
17803
17804 # Dependencies to place before the objects being linked to create a
17805 # shared library.
17806 predeps=$lt_predeps_GCJ
17807
17808 # Dependencies to place after the objects being linked to create a
17809 # shared library.
17810 postdeps=$lt_postdeps_GCJ
17811
17812 # The library search path used internally by the compiler when linking
17813 # a shared library.
17814 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17815
17816 # Method to check whether dependent libraries are shared objects.
17817 deplibs_check_method=$lt_deplibs_check_method
17818
17819 # Command to use when deplibs_check_method == file_magic.
17820 file_magic_cmd=$lt_file_magic_cmd
17821
17822 # Flag that allows shared libraries with undefined symbols to be built.
17823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17824
17825 # Flag that forces no undefined symbols.
17826 no_undefined_flag=$lt_no_undefined_flag_GCJ
17827
17828 # Commands used to finish a libtool library installation in a directory.
17829 finish_cmds=$lt_finish_cmds
17830
17831 # Same as above, but a single script fragment to be evaled but not shown.
17832 finish_eval=$lt_finish_eval
17833
17834 # Take the output of nm and produce a listing of raw symbols and C names.
17835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17836
17837 # Transform the output of nm in a proper C declaration
17838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17839
17840 # Transform the output of nm in a C name address pair
17841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17842
17843 # This is the shared library runtime path variable.
17844 runpath_var=$runpath_var
17845
17846 # This is the shared library path variable.
17847 shlibpath_var=$shlibpath_var
17848
17849 # Is shlibpath searched before the hard-coded library search path?
17850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17851
17852 # How to hardcode a shared library path into an executable.
17853 hardcode_action=$hardcode_action_GCJ
17854
17855 # Whether we should hardcode library paths into libraries.
17856 hardcode_into_libs=$hardcode_into_libs
17857
17858 # Flag to hardcode \$libdir into a binary during linking.
17859 # This must work even if \$libdir does not exist.
17860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17861
17862 # If ld is used when linking, flag to hardcode \$libdir into
17863 # a binary during linking. This must work even if \$libdir does
17864 # not exist.
17865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17866
17867 # Whether we need a single -rpath flag with a separated argument.
17868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17869
17870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17871 # resulting binary.
17872 hardcode_direct=$hardcode_direct_GCJ
17873
17874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17875 # resulting binary.
17876 hardcode_minus_L=$hardcode_minus_L_GCJ
17877
17878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17879 # the resulting binary.
17880 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17881
17882 # Set to yes if building a shared library automatically hardcodes DIR into the library
17883 # and all subsequent libraries and executables linked against it.
17884 hardcode_automatic=$hardcode_automatic_GCJ
17885
17886 # Variables whose values should be saved in libtool wrapper scripts and
17887 # restored at relink time.
17888 variables_saved_for_relink="$variables_saved_for_relink"
17889
17890 # Whether libtool must link a program against all its dependency libraries.
17891 link_all_deplibs=$link_all_deplibs_GCJ
17892
17893 # Compile-time system search path for libraries
17894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17895
17896 # Run-time system search path for libraries
17897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17898
17899 # Fix the shell variable \$srcfile for the compiler.
17900 fix_srcfile_path="$fix_srcfile_path_GCJ"
17901
17902 # Set to yes if exported symbols are required.
17903 always_export_symbols=$always_export_symbols_GCJ
17904
17905 # The commands to list exported symbols.
17906 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17907
17908 # The commands to extract the exported symbol list from a shared archive.
17909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17910
17911 # Symbols that should not be listed in the preloaded symbols.
17912 exclude_expsyms=$lt_exclude_expsyms_GCJ
17913
17914 # Symbols that must always be exported.
17915 include_expsyms=$lt_include_expsyms_GCJ
17916
17917 # ### END LIBTOOL TAG CONFIG: $tagname
17918
17919 __EOF__
17920
17921
17922 else
17923   # If there is no Makefile yet, we rely on a make rule to execute
17924   # `config.status --recheck' to rerun these tests and create the
17925   # libtool script then.
17926   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17927   if test -f "$ltmain_in"; then
17928     test -f Makefile && make "$ltmain"
17929   fi
17930 fi
17931
17932
17933 ac_ext=c
17934 ac_cpp='$CPP $CPPFLAGS'
17935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17938
17939 CC="$lt_save_CC"
17940
17941         else
17942           tagname=""
17943         fi
17944         ;;
17945
17946       RC)
17947
17948
17949
17950 # Source file extension for RC test sources.
17951 ac_ext=rc
17952
17953 # Object file extension for compiled RC test sources.
17954 objext=o
17955 objext_RC=$objext
17956
17957 # Code to be used in simple compile tests
17958 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17959
17960 # Code to be used in simple link tests
17961 lt_simple_link_test_code="$lt_simple_compile_test_code"
17962
17963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17964
17965 # If no C compiler was specified, use CC.
17966 LTCC=${LTCC-"$CC"}
17967
17968 # If no C compiler flags were specified, use CFLAGS.
17969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17970
17971 # Allow CC to be a program name with arguments.
17972 compiler=$CC
17973
17974
17975 # save warnings/boilerplate of simple test code
17976 ac_outfile=conftest.$ac_objext
17977 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17979 _lt_compiler_boilerplate=`cat conftest.err`
17980 $rm conftest*
17981
17982 ac_outfile=conftest.$ac_objext
17983 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17985 _lt_linker_boilerplate=`cat conftest.err`
17986 $rm conftest*
17987
17988
17989 # Allow CC to be a program name with arguments.
17990 lt_save_CC="$CC"
17991 CC=${RC-"windres"}
17992 compiler=$CC
17993 compiler_RC=$CC
17994 for cc_temp in $compiler""; do
17995   case $cc_temp in
17996     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17997     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17998     \-*) ;;
17999     *) break;;
18000   esac
18001 done
18002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18003
18004 lt_cv_prog_compiler_c_o_RC=yes
18005
18006 # The else clause should only fire when bootstrapping the
18007 # libtool distribution, otherwise you forgot to ship ltmain.sh
18008 # with your package, and you will get complaints that there are
18009 # no rules to generate ltmain.sh.
18010 if test -f "$ltmain"; then
18011   # See if we are running on zsh, and set the options which allow our commands through
18012   # without removal of \ escapes.
18013   if test -n "${ZSH_VERSION+set}" ; then
18014     setopt NO_GLOB_SUBST
18015   fi
18016   # Now quote all the things that may contain metacharacters while being
18017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18018   # variables and quote the copies for generation of the libtool script.
18019   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18020     SED SHELL STRIP \
18021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18023     deplibs_check_method reload_flag reload_cmds need_locks \
18024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18025     lt_cv_sys_global_symbol_to_c_name_address \
18026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18027     old_postinstall_cmds old_postuninstall_cmds \
18028     compiler_RC \
18029     CC_RC \
18030     LD_RC \
18031     lt_prog_compiler_wl_RC \
18032     lt_prog_compiler_pic_RC \
18033     lt_prog_compiler_static_RC \
18034     lt_prog_compiler_no_builtin_flag_RC \
18035     export_dynamic_flag_spec_RC \
18036     thread_safe_flag_spec_RC \
18037     whole_archive_flag_spec_RC \
18038     enable_shared_with_static_runtimes_RC \
18039     old_archive_cmds_RC \
18040     old_archive_from_new_cmds_RC \
18041     predep_objects_RC \
18042     postdep_objects_RC \
18043     predeps_RC \
18044     postdeps_RC \
18045     compiler_lib_search_path_RC \
18046     archive_cmds_RC \
18047     archive_expsym_cmds_RC \
18048     postinstall_cmds_RC \
18049     postuninstall_cmds_RC \
18050     old_archive_from_expsyms_cmds_RC \
18051     allow_undefined_flag_RC \
18052     no_undefined_flag_RC \
18053     export_symbols_cmds_RC \
18054     hardcode_libdir_flag_spec_RC \
18055     hardcode_libdir_flag_spec_ld_RC \
18056     hardcode_libdir_separator_RC \
18057     hardcode_automatic_RC \
18058     module_cmds_RC \
18059     module_expsym_cmds_RC \
18060     lt_cv_prog_compiler_c_o_RC \
18061     exclude_expsyms_RC \
18062     include_expsyms_RC; do
18063
18064     case $var in
18065     old_archive_cmds_RC | \
18066     old_archive_from_new_cmds_RC | \
18067     archive_cmds_RC | \
18068     archive_expsym_cmds_RC | \
18069     module_cmds_RC | \
18070     module_expsym_cmds_RC | \
18071     old_archive_from_expsyms_cmds_RC | \
18072     export_symbols_cmds_RC | \
18073     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18074     postinstall_cmds | postuninstall_cmds | \
18075     old_postinstall_cmds | old_postuninstall_cmds | \
18076     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18077       # Double-quote double-evaled strings.
18078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18079       ;;
18080     *)
18081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18082       ;;
18083     esac
18084   done
18085
18086   case $lt_echo in
18087   *'\$0 --fallback-echo"')
18088     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18089     ;;
18090   esac
18091
18092 cfgfile="$ofile"
18093
18094   cat <<__EOF__ >> "$cfgfile"
18095 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18096
18097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18098
18099 # Shell to use when invoking shell scripts.
18100 SHELL=$lt_SHELL
18101
18102 # Whether or not to build shared libraries.
18103 build_libtool_libs=$enable_shared
18104
18105 # Whether or not to build static libraries.
18106 build_old_libs=$enable_static
18107
18108 # Whether or not to add -lc for building shared libraries.
18109 build_libtool_need_lc=$archive_cmds_need_lc_RC
18110
18111 # Whether or not to disallow shared libs when runtime libs are static
18112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18113
18114 # Whether or not to optimize for fast installation.
18115 fast_install=$enable_fast_install
18116
18117 # The host system.
18118 host_alias=$host_alias
18119 host=$host
18120 host_os=$host_os
18121
18122 # The build system.
18123 build_alias=$build_alias
18124 build=$build
18125 build_os=$build_os
18126
18127 # An echo program that does not interpret backslashes.
18128 echo=$lt_echo
18129
18130 # The archiver.
18131 AR=$lt_AR
18132 AR_FLAGS=$lt_AR_FLAGS
18133
18134 # A C compiler.
18135 LTCC=$lt_LTCC
18136
18137 # LTCC compiler flags.
18138 LTCFLAGS=$lt_LTCFLAGS
18139
18140 # A language-specific compiler.
18141 CC=$lt_compiler_RC
18142
18143 # Is the compiler the GNU C compiler?
18144 with_gcc=$GCC_RC
18145
18146 # An ERE matcher.
18147 EGREP=$lt_EGREP
18148
18149 # The linker used to build libraries.
18150 LD=$lt_LD_RC
18151
18152 # Whether we need hard or soft links.
18153 LN_S=$lt_LN_S
18154
18155 # A BSD-compatible nm program.
18156 NM=$lt_NM
18157
18158 # A symbol stripping program
18159 STRIP=$lt_STRIP
18160
18161 # Used to examine libraries when file_magic_cmd begins "file"
18162 MAGIC_CMD=$MAGIC_CMD
18163
18164 # Used on cygwin: DLL creation program.
18165 DLLTOOL="$DLLTOOL"
18166
18167 # Used on cygwin: object dumper.
18168 OBJDUMP="$OBJDUMP"
18169
18170 # Used on cygwin: assembler.
18171 AS="$AS"
18172
18173 # The name of the directory that contains temporary libtool files.
18174 objdir=$objdir
18175
18176 # How to create reloadable object files.
18177 reload_flag=$lt_reload_flag
18178 reload_cmds=$lt_reload_cmds
18179
18180 # How to pass a linker flag through the compiler.
18181 wl=$lt_lt_prog_compiler_wl_RC
18182
18183 # Object file suffix (normally "o").
18184 objext="$ac_objext"
18185
18186 # Old archive suffix (normally "a").
18187 libext="$libext"
18188
18189 # Shared library suffix (normally ".so").
18190 shrext_cmds='$shrext_cmds'
18191
18192 # Executable file suffix (normally "").
18193 exeext="$exeext"
18194
18195 # Additional compiler flags for building library objects.
18196 pic_flag=$lt_lt_prog_compiler_pic_RC
18197 pic_mode=$pic_mode
18198
18199 # What is the maximum length of a command?
18200 max_cmd_len=$lt_cv_sys_max_cmd_len
18201
18202 # Does compiler simultaneously support -c and -o options?
18203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18204
18205 # Must we lock files when doing compilation?
18206 need_locks=$lt_need_locks
18207
18208 # Do we need the lib prefix for modules?
18209 need_lib_prefix=$need_lib_prefix
18210
18211 # Do we need a version for libraries?
18212 need_version=$need_version
18213
18214 # Whether dlopen is supported.
18215 dlopen_support=$enable_dlopen
18216
18217 # Whether dlopen of programs is supported.
18218 dlopen_self=$enable_dlopen_self
18219
18220 # Whether dlopen of statically linked programs is supported.
18221 dlopen_self_static=$enable_dlopen_self_static
18222
18223 # Compiler flag to prevent dynamic linking.
18224 link_static_flag=$lt_lt_prog_compiler_static_RC
18225
18226 # Compiler flag to turn off builtin functions.
18227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18228
18229 # Compiler flag to allow reflexive dlopens.
18230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18231
18232 # Compiler flag to generate shared objects directly from archives.
18233 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18234
18235 # Compiler flag to generate thread-safe objects.
18236 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18237
18238 # Library versioning type.
18239 version_type=$version_type
18240
18241 # Format of library name prefix.
18242 libname_spec=$lt_libname_spec
18243
18244 # List of archive names.  First name is the real one, the rest are links.
18245 # The last name is the one that the linker finds with -lNAME.
18246 library_names_spec=$lt_library_names_spec
18247
18248 # The coded name of the library, if different from the real name.
18249 soname_spec=$lt_soname_spec
18250
18251 # Commands used to build and install an old-style archive.
18252 RANLIB=$lt_RANLIB
18253 old_archive_cmds=$lt_old_archive_cmds_RC
18254 old_postinstall_cmds=$lt_old_postinstall_cmds
18255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18256
18257 # Create an old-style archive from a shared archive.
18258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18259
18260 # Create a temporary old-style archive to link instead of a shared archive.
18261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18262
18263 # Commands used to build and install a shared archive.
18264 archive_cmds=$lt_archive_cmds_RC
18265 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18266 postinstall_cmds=$lt_postinstall_cmds
18267 postuninstall_cmds=$lt_postuninstall_cmds
18268
18269 # Commands used to build a loadable module (assumed same as above if empty)
18270 module_cmds=$lt_module_cmds_RC
18271 module_expsym_cmds=$lt_module_expsym_cmds_RC
18272
18273 # Commands to strip libraries.
18274 old_striplib=$lt_old_striplib
18275 striplib=$lt_striplib
18276
18277 # Dependencies to place before the objects being linked to create a
18278 # shared library.
18279 predep_objects=$lt_predep_objects_RC
18280
18281 # Dependencies to place after the objects being linked to create a
18282 # shared library.
18283 postdep_objects=$lt_postdep_objects_RC
18284
18285 # Dependencies to place before the objects being linked to create a
18286 # shared library.
18287 predeps=$lt_predeps_RC
18288
18289 # Dependencies to place after the objects being linked to create a
18290 # shared library.
18291 postdeps=$lt_postdeps_RC
18292
18293 # The library search path used internally by the compiler when linking
18294 # a shared library.
18295 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18296
18297 # Method to check whether dependent libraries are shared objects.
18298 deplibs_check_method=$lt_deplibs_check_method
18299
18300 # Command to use when deplibs_check_method == file_magic.
18301 file_magic_cmd=$lt_file_magic_cmd
18302
18303 # Flag that allows shared libraries with undefined symbols to be built.
18304 allow_undefined_flag=$lt_allow_undefined_flag_RC
18305
18306 # Flag that forces no undefined symbols.
18307 no_undefined_flag=$lt_no_undefined_flag_RC
18308
18309 # Commands used to finish a libtool library installation in a directory.
18310 finish_cmds=$lt_finish_cmds
18311
18312 # Same as above, but a single script fragment to be evaled but not shown.
18313 finish_eval=$lt_finish_eval
18314
18315 # Take the output of nm and produce a listing of raw symbols and C names.
18316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18317
18318 # Transform the output of nm in a proper C declaration
18319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18320
18321 # Transform the output of nm in a C name address pair
18322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18323
18324 # This is the shared library runtime path variable.
18325 runpath_var=$runpath_var
18326
18327 # This is the shared library path variable.
18328 shlibpath_var=$shlibpath_var
18329
18330 # Is shlibpath searched before the hard-coded library search path?
18331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18332
18333 # How to hardcode a shared library path into an executable.
18334 hardcode_action=$hardcode_action_RC
18335
18336 # Whether we should hardcode library paths into libraries.
18337 hardcode_into_libs=$hardcode_into_libs
18338
18339 # Flag to hardcode \$libdir into a binary during linking.
18340 # This must work even if \$libdir does not exist.
18341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18342
18343 # If ld is used when linking, flag to hardcode \$libdir into
18344 # a binary during linking. This must work even if \$libdir does
18345 # not exist.
18346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18347
18348 # Whether we need a single -rpath flag with a separated argument.
18349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18350
18351 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18352 # resulting binary.
18353 hardcode_direct=$hardcode_direct_RC
18354
18355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18356 # resulting binary.
18357 hardcode_minus_L=$hardcode_minus_L_RC
18358
18359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18360 # the resulting binary.
18361 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18362
18363 # Set to yes if building a shared library automatically hardcodes DIR into the library
18364 # and all subsequent libraries and executables linked against it.
18365 hardcode_automatic=$hardcode_automatic_RC
18366
18367 # Variables whose values should be saved in libtool wrapper scripts and
18368 # restored at relink time.
18369 variables_saved_for_relink="$variables_saved_for_relink"
18370
18371 # Whether libtool must link a program against all its dependency libraries.
18372 link_all_deplibs=$link_all_deplibs_RC
18373
18374 # Compile-time system search path for libraries
18375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18376
18377 # Run-time system search path for libraries
18378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18379
18380 # Fix the shell variable \$srcfile for the compiler.
18381 fix_srcfile_path="$fix_srcfile_path_RC"
18382
18383 # Set to yes if exported symbols are required.
18384 always_export_symbols=$always_export_symbols_RC
18385
18386 # The commands to list exported symbols.
18387 export_symbols_cmds=$lt_export_symbols_cmds_RC
18388
18389 # The commands to extract the exported symbol list from a shared archive.
18390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18391
18392 # Symbols that should not be listed in the preloaded symbols.
18393 exclude_expsyms=$lt_exclude_expsyms_RC
18394
18395 # Symbols that must always be exported.
18396 include_expsyms=$lt_include_expsyms_RC
18397
18398 # ### END LIBTOOL TAG CONFIG: $tagname
18399
18400 __EOF__
18401
18402
18403 else
18404   # If there is no Makefile yet, we rely on a make rule to execute
18405   # `config.status --recheck' to rerun these tests and create the
18406   # libtool script then.
18407   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18408   if test -f "$ltmain_in"; then
18409     test -f Makefile && make "$ltmain"
18410   fi
18411 fi
18412
18413
18414 ac_ext=c
18415 ac_cpp='$CPP $CPPFLAGS'
18416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18419
18420 CC="$lt_save_CC"
18421
18422         ;;
18423
18424       *)
18425         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18426 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18427    { (exit 1); exit 1; }; }
18428         ;;
18429       esac
18430
18431       # Append the new tag name to the list of available tags.
18432       if test -n "$tagname" ; then
18433       available_tags="$available_tags $tagname"
18434     fi
18435     fi
18436   done
18437   IFS="$lt_save_ifs"
18438
18439   # Now substitute the updated list of available tags.
18440   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18441     mv "${ofile}T" "$ofile"
18442     chmod +x "$ofile"
18443   else
18444     rm -f "${ofile}T"
18445     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18446 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18447    { (exit 1); exit 1; }; }
18448   fi
18449 fi
18450
18451
18452
18453 # This can be used to rebuild libtool when needed
18454 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18455
18456 # Always use our own libtool.
18457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18458
18459 # Prevent multiple expansion
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472 # Check whether --with-system-libtool or --without-system-libtool was given.
18473 if test "${with_system_libtool+set}" = set; then
18474   withval="$with_system_libtool"
18475    # Extract the first word of "libtool", so it can be a program name with args.
18476 set dummy libtool; ac_word=$2
18477 echo "$as_me:$LINENO: checking for $ac_word" >&5
18478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18479 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18480   echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482   case $LIBTOOL in
18483   [\\/]* | ?:[\\/]*)
18484   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18485   ;;
18486   *)
18487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488 as_dummy="$PATH:/usr/local/bin"
18489 for as_dir in $as_dummy
18490 do
18491   IFS=$as_save_IFS
18492   test -z "$as_dir" && as_dir=.
18493   for ac_exec_ext in '' $ac_executable_extensions; do
18494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18497     break 2
18498   fi
18499 done
18500 done
18501
18502   ;;
18503 esac
18504 fi
18505 LIBTOOL=$ac_cv_path_LIBTOOL
18506
18507 if test -n "$LIBTOOL"; then
18508   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18509 echo "${ECHO_T}$LIBTOOL" >&6
18510 else
18511   echo "$as_me:$LINENO: result: no" >&5
18512 echo "${ECHO_T}no" >&6
18513 fi
18514
18515 else
18516
18517   LIBTOOL="`pwd`/libtool"
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532 fi;
18533
18534
18535
18536 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18537 if test "${enable_strict_dependencies+set}" = set; then
18538   enableval="$enable_strict_dependencies"
18539
18540 fi;
18541
18542 logdir='${localstatedir}/log/radius'
18543 echo "$as_me:$LINENO: checking logdir" >&5
18544 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18545
18546 # Check whether --with-logdir or --without-logdir was given.
18547 if test "${with_logdir+set}" = set; then
18548   withval="$with_logdir"
18549    case "$withval" in
18550     no)
18551         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18552 echo "$as_me: error: Need logdir" >&2;}
18553    { (exit 1); exit 1; }; }
18554         ;;
18555     yes)
18556         ;;
18557     *)
18558         logdir="$withval"
18559         ;;
18560   esac
18561
18562 fi;
18563
18564 echo "$as_me:$LINENO: result: $logdir" >&5
18565 echo "${ECHO_T}$logdir" >&6
18566
18567 radacctdir='${logdir}/radacct'
18568 echo "$as_me:$LINENO: checking radacctdir" >&5
18569 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18570
18571 # Check whether --with-radacctdir or --without-radacctdir was given.
18572 if test "${with_radacctdir+set}" = set; then
18573   withval="$with_radacctdir"
18574    case "$withval" in
18575     no)
18576         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18577 echo "$as_me: error: Need radacctdir" >&2;}
18578    { (exit 1); exit 1; }; }
18579         ;;
18580     yes)
18581         ;;
18582     *)
18583         radacctdir="$withval"
18584         ;;
18585   esac
18586
18587 fi;
18588
18589 echo "$as_me:$LINENO: result: $radacctdir" >&5
18590 echo "${ECHO_T}$radacctdir" >&6
18591
18592 raddbdir='${sysconfdir}/raddb'
18593 echo "$as_me:$LINENO: checking raddbdir" >&5
18594 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18595
18596 # Check whether --with-raddbdir or --without-raddbdir was given.
18597 if test "${with_raddbdir+set}" = set; then
18598   withval="$with_raddbdir"
18599    case "$withval" in
18600     no)
18601         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18602 echo "$as_me: error: Need raddbdir" >&2;}
18603    { (exit 1); exit 1; }; }
18604         ;;
18605     yes)
18606         ;;
18607     *)
18608         raddbdir="$withval"
18609         ;;
18610   esac
18611
18612 fi;
18613
18614 echo "$as_me:$LINENO: result: $raddbdir" >&5
18615 echo "${ECHO_T}$raddbdir" >&6
18616
18617 ASCEND_BINARY=yes
18618
18619 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18620 if test "${with_ascend_binary+set}" = set; then
18621   withval="$with_ascend_binary"
18622    case "$withval" in
18623     yes)
18624         ;;
18625     *)
18626         ASCEND_BINARY=""
18627   esac
18628
18629 fi;
18630 if test "X$ASCEND_BINARY" = "Xyes"; then
18631   cat >>confdefs.h <<\_ACEOF
18632 #define ASCEND_BINARY 1
18633 _ACEOF
18634
18635 fi
18636
18637 WITH_THREADS=yes
18638
18639 # Check whether --with-threads or --without-threads was given.
18640 if test "${with_threads+set}" = set; then
18641   withval="$with_threads"
18642    case "$withval" in
18643     yes)
18644         ;;
18645     *)
18646         WITH_THREADS=""
18647   esac
18648
18649 fi;
18650
18651 WITH_SNMP=yes
18652
18653 # Check whether --with-snmp or --without-snmp was given.
18654 if test "${with_snmp+set}" = set; then
18655   withval="$with_snmp"
18656    case "$withval" in
18657     yes)
18658         ;;
18659     *)
18660         WITH_SNMP=no
18661   esac
18662
18663 fi;
18664
18665 rad_enable_largefiles=no
18666
18667 # Check whether --with-large-files or --without-large-files was given.
18668 if test "${with_large_files+set}" = set; then
18669   withval="$with_large_files"
18670    case "$withval" in
18671     yes)
18672         rad_enable_largefiles=yes
18673         ;;
18674     *)
18675         ;;
18676   esac
18677
18678 fi;
18679
18680
18681 STATIC_MODULES=
18682
18683 # Check whether --with-static_modules or --without-static_modules was given.
18684 if test "${with_static_modules+set}" = set; then
18685   withval="$with_static_modules"
18686
18687   for i in $withval; do
18688     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18689   done
18690
18691 fi;
18692
18693 MODULES=
18694
18695 # Check whether --with-modules or --without-modules was given.
18696 if test "${with_modules+set}" = set; then
18697   withval="$with_modules"
18698
18699  for i in $withval; do
18700    MODULES="$MODULES $i"
18701  done
18702
18703 fi;
18704
18705 # Check whether --enable-developer or --disable-developer was given.
18706 if test "${enable_developer+set}" = set; then
18707   enableval="$enable_developer"
18708    case "$enableval" in
18709     no)
18710         developer=no
18711         ;;
18712     *)
18713         developer=yes
18714   esac
18715
18716 fi;
18717
18718 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18719     developer="yes"
18720 fi
18721
18722 EXPERIMENTAL=
18723
18724 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18725 if test "${with_experimental_modules+set}" = set; then
18726   withval="$with_experimental_modules"
18727    case "$withval" in
18728     yes)
18729         EXPERIMENTAL=yes
18730         ;;
18731     *)
18732   esac
18733
18734 fi;
18735
18736 OPENSSL_INCLUDE_DIR=
18737
18738 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18739 if test "${with_openssl_includes+set}" = set; then
18740   withval="$with_openssl_includes"
18741    case "$withval" in
18742     *) OPENSSL_INCLUDE_DIR="$withval"
18743         ;;
18744   esac
18745
18746 fi;
18747
18748 OPENSSL_LIB_DIR=
18749
18750 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18751 if test "${with_openssl_libraries+set}" = set; then
18752   withval="$with_openssl_libraries"
18753    case "$withval" in
18754     *) OPENSSL_LIB_DIR="$withval"
18755         ;;
18756   esac
18757
18758 fi;
18759
18760
18761
18762 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18763 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18764   withval="$with_rlm_FOO_lib_dir"
18765    case "$withval" in
18766     *)
18767         ;;
18768   esac
18769
18770 fi;
18771
18772
18773 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18774 if test "${with_rlm_FOO_include_dir+set}" = set; then
18775   withval="$with_rlm_FOO_include_dir"
18776    case "$withval" in
18777     *)
18778         ;;
18779   esac
18780
18781 fi;
18782
18783
18784 WITH_UDPFROMTO=no
18785
18786 # Check whether --with-udpfromto or --without-udpfromto was given.
18787 if test "${with_udpfromto+set}" = set; then
18788   withval="$with_udpfromto"
18789    case "$withval" in
18790     yes)
18791         WITH_UDPFROMTO=yes
18792         ;;
18793     *)
18794         WITH_UDPFROMTO=no
18795   esac
18796
18797 fi;
18798
18799 if test "x$WITH_UDPFROMTO" = "xyes"; then
18800         cat >>confdefs.h <<\_ACEOF
18801 #define WITH_UDPFROMTO 1
18802 _ACEOF
18803
18804 fi
18805
18806
18807 # Check whether --with-edir or --without-edir was given.
18808 if test "${with_edir+set}" = set; then
18809   withval="$with_edir"
18810
18811 fi;
18812
18813
18814 CHECKRAD=checkrad.pl
18815 # Extract the first word of "perl", so it can be a program name with args.
18816 set dummy perl; ac_word=$2
18817 echo "$as_me:$LINENO: checking for $ac_word" >&5
18818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18819 if test "${ac_cv_path_PERL+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   case $PERL in
18823   [\\/]* | ?:[\\/]*)
18824   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18825   ;;
18826   *)
18827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828 for as_dir in $PATH
18829 do
18830   IFS=$as_save_IFS
18831   test -z "$as_dir" && as_dir=.
18832   for ac_exec_ext in '' $ac_executable_extensions; do
18833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18834     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18836     break 2
18837   fi
18838 done
18839 done
18840
18841   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18842   ;;
18843 esac
18844 fi
18845 PERL=$ac_cv_path_PERL
18846
18847 if test -n "$PERL"; then
18848   echo "$as_me:$LINENO: result: $PERL" >&5
18849 echo "${ECHO_T}$PERL" >&6
18850 else
18851   echo "$as_me:$LINENO: result: no" >&5
18852 echo "${ECHO_T}no" >&6
18853 fi
18854
18855 if test "x$ac_cv_path_PERL" = "x"; then
18856   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18857 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18858 fi
18859 # Extract the first word of "snmpget", so it can be a program name with args.
18860 set dummy snmpget; ac_word=$2
18861 echo "$as_me:$LINENO: checking for $ac_word" >&5
18862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18863 if test "${ac_cv_path_SNMPGET+set}" = set; then
18864   echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866   case $SNMPGET in
18867   [\\/]* | ?:[\\/]*)
18868   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18869   ;;
18870   *)
18871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872 for as_dir in $PATH
18873 do
18874   IFS=$as_save_IFS
18875   test -z "$as_dir" && as_dir=.
18876   for ac_exec_ext in '' $ac_executable_extensions; do
18877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18878     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18880     break 2
18881   fi
18882 done
18883 done
18884
18885   ;;
18886 esac
18887 fi
18888 SNMPGET=$ac_cv_path_SNMPGET
18889
18890 if test -n "$SNMPGET"; then
18891   echo "$as_me:$LINENO: result: $SNMPGET" >&5
18892 echo "${ECHO_T}$SNMPGET" >&6
18893 else
18894   echo "$as_me:$LINENO: result: no" >&5
18895 echo "${ECHO_T}no" >&6
18896 fi
18897
18898 if test "x$ac_cv_path_SNMPGET" = "x"; then
18899   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18900 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18901 fi
18902
18903 # Extract the first word of "snmpwalk", so it can be a program name with args.
18904 set dummy snmpwalk; ac_word=$2
18905 echo "$as_me:$LINENO: checking for $ac_word" >&5
18906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18907 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910   case $SNMPWALK in
18911   [\\/]* | ?:[\\/]*)
18912   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18913   ;;
18914   *)
18915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18916 for as_dir in $PATH
18917 do
18918   IFS=$as_save_IFS
18919   test -z "$as_dir" && as_dir=.
18920   for ac_exec_ext in '' $ac_executable_extensions; do
18921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18922     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18924     break 2
18925   fi
18926 done
18927 done
18928
18929   ;;
18930 esac
18931 fi
18932 SNMPWALK=$ac_cv_path_SNMPWALK
18933
18934 if test -n "$SNMPWALK"; then
18935   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18936 echo "${ECHO_T}$SNMPWALK" >&6
18937 else
18938   echo "$as_me:$LINENO: result: no" >&5
18939 echo "${ECHO_T}no" >&6
18940 fi
18941
18942 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18943   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18944 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18945 fi
18946
18947 # Extract the first word of "rusers", so it can be a program name with args.
18948 set dummy rusers; ac_word=$2
18949 echo "$as_me:$LINENO: checking for $ac_word" >&5
18950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18951 if test "${ac_cv_path_RUSERS+set}" = set; then
18952   echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954   case $RUSERS in
18955   [\\/]* | ?:[\\/]*)
18956   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18957   ;;
18958   *)
18959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960 for as_dir in $PATH
18961 do
18962   IFS=$as_save_IFS
18963   test -z "$as_dir" && as_dir=.
18964   for ac_exec_ext in '' $ac_executable_extensions; do
18965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18966     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18968     break 2
18969   fi
18970 done
18971 done
18972
18973   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18974   ;;
18975 esac
18976 fi
18977 RUSERS=$ac_cv_path_RUSERS
18978
18979 if test -n "$RUSERS"; then
18980   echo "$as_me:$LINENO: result: $RUSERS" >&5
18981 echo "${ECHO_T}$RUSERS" >&6
18982 else
18983   echo "$as_me:$LINENO: result: no" >&5
18984 echo "${ECHO_T}no" >&6
18985 fi
18986
18987
18988 missing_dir=`cd $ac_aux_dir && pwd`
18989 echo "$as_me:$LINENO: checking for working aclocal" >&5
18990 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
18991 # Run test in a subshell; some versions of sh will print an error if
18992 # an executable is not found, even if stderr is redirected.
18993 # Redirect stdin to placate older versions of autoconf.  Sigh.
18994 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
18995    ACLOCAL=aclocal
18996    echo "$as_me:$LINENO: result: found" >&5
18997 echo "${ECHO_T}found" >&6
18998 else
18999    ACLOCAL="$missing_dir/missing aclocal"
19000    echo "$as_me:$LINENO: result: missing" >&5
19001 echo "${ECHO_T}missing" >&6
19002 fi
19003
19004 echo "$as_me:$LINENO: checking for working autoconf" >&5
19005 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19006 # Run test in a subshell; some versions of sh will print an error if
19007 # an executable is not found, even if stderr is redirected.
19008 # Redirect stdin to placate older versions of autoconf.  Sigh.
19009 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19010    AUTOCONF=autoconf
19011    echo "$as_me:$LINENO: result: found" >&5
19012 echo "${ECHO_T}found" >&6
19013 else
19014    AUTOCONF="$missing_dir/missing autoconf"
19015    echo "$as_me:$LINENO: result: missing" >&5
19016 echo "${ECHO_T}missing" >&6
19017 fi
19018
19019 echo "$as_me:$LINENO: checking for working autoheader" >&5
19020 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19021 # Run test in a subshell; some versions of sh will print an error if
19022 # an executable is not found, even if stderr is redirected.
19023 # Redirect stdin to placate older versions of autoconf.  Sigh.
19024 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19025    AUTOHEADER=autoheader
19026    echo "$as_me:$LINENO: result: found" >&5
19027 echo "${ECHO_T}found" >&6
19028 else
19029    AUTOHEADER="$missing_dir/missing autoheader"
19030    echo "$as_me:$LINENO: result: missing" >&5
19031 echo "${ECHO_T}missing" >&6
19032 fi
19033
19034
19035 # Extract the first word of "locate", so it can be a program name with args.
19036 set dummy locate; ac_word=$2
19037 echo "$as_me:$LINENO: checking for $ac_word" >&5
19038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19039 if test "${ac_cv_path_LOCATE+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   case $LOCATE in
19043   [\\/]* | ?:[\\/]*)
19044   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19045   ;;
19046   *)
19047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19049 do
19050   IFS=$as_save_IFS
19051   test -z "$as_dir" && as_dir=.
19052   for ac_exec_ext in '' $ac_executable_extensions; do
19053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19054     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19056     break 2
19057   fi
19058 done
19059 done
19060
19061   ;;
19062 esac
19063 fi
19064 LOCATE=$ac_cv_path_LOCATE
19065
19066 if test -n "$LOCATE"; then
19067   echo "$as_me:$LINENO: result: $LOCATE" >&5
19068 echo "${ECHO_T}$LOCATE" >&6
19069 else
19070   echo "$as_me:$LINENO: result: no" >&5
19071 echo "${ECHO_T}no" >&6
19072 fi
19073
19074 # Extract the first word of "dirname", so it can be a program name with args.
19075 set dummy dirname; ac_word=$2
19076 echo "$as_me:$LINENO: checking for $ac_word" >&5
19077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19078 if test "${ac_cv_path_DIRNAME+set}" = set; then
19079   echo $ECHO_N "(cached) $ECHO_C" >&6
19080 else
19081   case $DIRNAME in
19082   [\\/]* | ?:[\\/]*)
19083   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19084   ;;
19085   *)
19086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19088 do
19089   IFS=$as_save_IFS
19090   test -z "$as_dir" && as_dir=.
19091   for ac_exec_ext in '' $ac_executable_extensions; do
19092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19093     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19095     break 2
19096   fi
19097 done
19098 done
19099
19100   ;;
19101 esac
19102 fi
19103 DIRNAME=$ac_cv_path_DIRNAME
19104
19105 if test -n "$DIRNAME"; then
19106   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19107 echo "${ECHO_T}$DIRNAME" >&6
19108 else
19109   echo "$as_me:$LINENO: result: no" >&5
19110 echo "${ECHO_T}no" >&6
19111 fi
19112
19113 # Extract the first word of "grep", so it can be a program name with args.
19114 set dummy grep; ac_word=$2
19115 echo "$as_me:$LINENO: checking for $ac_word" >&5
19116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19117 if test "${ac_cv_path_GREP+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   case $GREP in
19121   [\\/]* | ?:[\\/]*)
19122   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19123   ;;
19124   *)
19125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19127 do
19128   IFS=$as_save_IFS
19129   test -z "$as_dir" && as_dir=.
19130   for ac_exec_ext in '' $ac_executable_extensions; do
19131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19132     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19134     break 2
19135   fi
19136 done
19137 done
19138
19139   ;;
19140 esac
19141 fi
19142 GREP=$ac_cv_path_GREP
19143
19144 if test -n "$GREP"; then
19145   echo "$as_me:$LINENO: result: $GREP" >&5
19146 echo "${ECHO_T}$GREP" >&6
19147 else
19148   echo "$as_me:$LINENO: result: no" >&5
19149 echo "${ECHO_T}no" >&6
19150 fi
19151
19152
19153
19154 old_CFLAGS=$CFLAGS
19155 if test "x$WITH_THREADS" = "xyes"; then
19156   if test $ac_cv_prog_suncc = "yes"; then
19157     CFLAGS="$CFLAGS -mt"
19158   fi
19159
19160
19161 for ac_header in pthread.h
19162 do
19163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19165   echo "$as_me:$LINENO: checking for $ac_header" >&5
19166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19168   echo $ECHO_N "(cached) $ECHO_C" >&6
19169 fi
19170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19172 else
19173   # Is the header compilable?
19174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h.  */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h.  */
19182 $ac_includes_default
19183 #include <$ac_header>
19184 _ACEOF
19185 rm -f conftest.$ac_objext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187   (eval $ac_compile) 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_c_werror_flag"
19195                          || test ! -s conftest.err'
19196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197   (eval $ac_try) 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); }; } &&
19201          { ac_try='test -s conftest.$ac_objext'
19202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203   (eval $ac_try) 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; }; then
19207   ac_header_compiler=yes
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212 ac_header_compiler=no
19213 fi
19214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19216 echo "${ECHO_T}$ac_header_compiler" >&6
19217
19218 # Is the header present?
19219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227 #include <$ac_header>
19228 _ACEOF
19229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19231   ac_status=$?
19232   grep -v '^ *+' conftest.er1 >conftest.err
19233   rm -f conftest.er1
19234   cat conftest.err >&5
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } >/dev/null; then
19237   if test -s conftest.err; then
19238     ac_cpp_err=$ac_c_preproc_warn_flag
19239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19240   else
19241     ac_cpp_err=
19242   fi
19243 else
19244   ac_cpp_err=yes
19245 fi
19246 if test -z "$ac_cpp_err"; then
19247   ac_header_preproc=yes
19248 else
19249   echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19251
19252   ac_header_preproc=no
19253 fi
19254 rm -f conftest.err conftest.$ac_ext
19255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19256 echo "${ECHO_T}$ac_header_preproc" >&6
19257
19258 # So?  What about this header?
19259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19260   yes:no: )
19261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19265     ac_header_preproc=yes
19266     ;;
19267   no:yes:* )
19268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19280     (
19281       cat <<\_ASBOX
19282 ## ------------------------------------------ ##
19283 ## Report this to the AC_PACKAGE_NAME lists.  ##
19284 ## ------------------------------------------ ##
19285 _ASBOX
19286     ) |
19287       sed "s/^/$as_me: WARNING:     /" >&2
19288     ;;
19289 esac
19290 echo "$as_me:$LINENO: checking for $ac_header" >&5
19291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295   eval "$as_ac_Header=\$ac_header_preproc"
19296 fi
19297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19299
19300 fi
19301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19302   cat >>confdefs.h <<_ACEOF
19303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19304 _ACEOF
19305
19306 else
19307    WITH_THREADS="no"
19308 fi
19309
19310 done
19311
19312
19313   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19314 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19315 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19316   echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318   ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lpthread  $LIBS"
19320 cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326
19327 /* Override any gcc2 internal prototype to avoid an error.  */
19328 #ifdef __cplusplus
19329 extern "C"
19330 #endif
19331 /* We use char because int might match the return type of a gcc2
19332    builtin and then its argument prototype would still apply.  */
19333 char pthread_create ();
19334 int
19335 main ()
19336 {
19337 pthread_create ();
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19344   (eval $ac_link) 2>conftest.er1
19345   ac_status=$?
19346   grep -v '^ *+' conftest.er1 >conftest.err
19347   rm -f conftest.er1
19348   cat conftest.err >&5
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); } &&
19351          { ac_try='test -z "$ac_c_werror_flag"
19352                          || test ! -s conftest.err'
19353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354   (eval $ac_try) 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; } &&
19358          { ac_try='test -s conftest$ac_exeext'
19359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360   (eval $ac_try) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); }; }; then
19364   ac_cv_lib_pthread_pthread_create=yes
19365 else
19366   echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19368
19369 ac_cv_lib_pthread_pthread_create=no
19370 fi
19371 rm -f conftest.err conftest.$ac_objext \
19372       conftest$ac_exeext conftest.$ac_ext
19373 LIBS=$ac_check_lib_save_LIBS
19374 fi
19375 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19376 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19377 if test $ac_cv_lib_pthread_pthread_create = yes; then
19378    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19379                   LIBS="$LIBS -lpthread"
19380 else
19381   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19382 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19383 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19384   echo $ECHO_N "(cached) $ECHO_C" >&6
19385 else
19386   ac_check_lib_save_LIBS=$LIBS
19387 LIBS="-lc_r  $LIBS"
19388 cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394
19395 /* Override any gcc2 internal prototype to avoid an error.  */
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 /* We use char because int might match the return type of a gcc2
19400    builtin and then its argument prototype would still apply.  */
19401 char pthread_create ();
19402 int
19403 main ()
19404 {
19405 pthread_create ();
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412   (eval $ac_link) 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -z "$ac_c_werror_flag"
19420                          || test ! -s conftest.err'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_lib_c_r_pthread_create=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_cv_lib_c_r_pthread_create=no
19438 fi
19439 rm -f conftest.err conftest.$ac_objext \
19440       conftest$ac_exeext conftest.$ac_ext
19441 LIBS=$ac_check_lib_save_LIBS
19442 fi
19443 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19444 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19445 if test $ac_cv_lib_c_r_pthread_create = yes; then
19446    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19447 else
19448    WITH_THREADS="no"
19449
19450 fi
19451
19452
19453 fi
19454
19455 fi
19456
19457 if test "x$WITH_THREADS" != "xyes"; then
19458   CFLAGS=$old_CFLAGS
19459   ac_cv_header_pthread_h="no"
19460   WITH_THREADS=no
19461 else
19462
19463   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19464 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19465 if test "${ac_cv_search_sem_init+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468   ac_func_search_save_LIBS=$LIBS
19469 ac_cv_search_sem_init=no
19470 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476
19477 /* Override any gcc2 internal prototype to avoid an error.  */
19478 #ifdef __cplusplus
19479 extern "C"
19480 #endif
19481 /* We use char because int might match the return type of a gcc2
19482    builtin and then its argument prototype would still apply.  */
19483 char sem_init ();
19484 int
19485 main ()
19486 {
19487 sem_init ();
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19494   (eval $ac_link) 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } &&
19501          { ac_try='test -z "$ac_c_werror_flag"
19502                          || test ! -s conftest.err'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; } &&
19508          { ac_try='test -s conftest$ac_exeext'
19509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510   (eval $ac_try) 2>&5
19511   ac_status=$?
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); }; }; then
19514   ac_cv_search_sem_init="none required"
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 fi
19520 rm -f conftest.err conftest.$ac_objext \
19521       conftest$ac_exeext conftest.$ac_ext
19522 if test "$ac_cv_search_sem_init" = no; then
19523   for ac_lib in pthread sem posix4 rt; do
19524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19525     cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531
19532 /* Override any gcc2 internal prototype to avoid an error.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 #endif
19536 /* We use char because int might match the return type of a gcc2
19537    builtin and then its argument prototype would still apply.  */
19538 char sem_init ();
19539 int
19540 main ()
19541 {
19542 sem_init ();
19543   ;
19544   return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549   (eval $ac_link) 2>conftest.er1
19550   ac_status=$?
19551   grep -v '^ *+' conftest.er1 >conftest.err
19552   rm -f conftest.er1
19553   cat conftest.err >&5
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); } &&
19556          { ac_try='test -z "$ac_c_werror_flag"
19557                          || test ! -s conftest.err'
19558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559   (eval $ac_try) 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; } &&
19563          { ac_try='test -s conftest$ac_exeext'
19564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; }; then
19569   ac_cv_search_sem_init="-l$ac_lib"
19570 break
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 fi
19576 rm -f conftest.err conftest.$ac_objext \
19577       conftest$ac_exeext conftest.$ac_ext
19578   done
19579 fi
19580 LIBS=$ac_func_search_save_LIBS
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19583 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19584 if test "$ac_cv_search_sem_init" != no; then
19585   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19586
19587 else
19588   { { 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
19589 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;}
19590    { (exit 1); exit 1; }; }
19591
19592 fi
19593
19594 fi
19595
19596
19597 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19598 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19599 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-lsocket  $LIBS"
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610
19611 /* Override any gcc2 internal prototype to avoid an error.  */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 /* We use char because int might match the return type of a gcc2
19616    builtin and then its argument prototype would still apply.  */
19617 char getsockname ();
19618 int
19619 main ()
19620 {
19621 getsockname ();
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19628   (eval $ac_link) 2>conftest.er1
19629   ac_status=$?
19630   grep -v '^ *+' conftest.er1 >conftest.err
19631   rm -f conftest.er1
19632   cat conftest.err >&5
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); } &&
19635          { ac_try='test -z "$ac_c_werror_flag"
19636                          || test ! -s conftest.err'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; } &&
19642          { ac_try='test -s conftest$ac_exeext'
19643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644   (eval $ac_try) 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; }; then
19648   ac_cv_lib_socket_getsockname=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 ac_cv_lib_socket_getsockname=no
19654 fi
19655 rm -f conftest.err conftest.$ac_objext \
19656       conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_check_lib_save_LIBS
19658 fi
19659 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19660 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19661 if test $ac_cv_lib_socket_getsockname = yes; then
19662   cat >>confdefs.h <<_ACEOF
19663 #define HAVE_LIBSOCKET 1
19664 _ACEOF
19665
19666   LIBS="-lsocket $LIBS"
19667
19668 fi
19669
19670
19671
19672 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19673 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19674 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677   ac_check_lib_save_LIBS=$LIBS
19678 LIBS="-lresolv  $LIBS"
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685
19686 /* Override any gcc2 internal prototype to avoid an error.  */
19687 #ifdef __cplusplus
19688 extern "C"
19689 #endif
19690 /* We use char because int might match the return type of a gcc2
19691    builtin and then its argument prototype would still apply.  */
19692 char inet_aton ();
19693 int
19694 main ()
19695 {
19696 inet_aton ();
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19703   (eval $ac_link) 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } &&
19710          { ac_try='test -z "$ac_c_werror_flag"
19711                          || test ! -s conftest.err'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; } &&
19717          { ac_try='test -s conftest$ac_exeext'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; }; then
19723   ac_cv_lib_resolv_inet_aton=yes
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_cv_lib_resolv_inet_aton=no
19729 fi
19730 rm -f conftest.err conftest.$ac_objext \
19731       conftest$ac_exeext conftest.$ac_ext
19732 LIBS=$ac_check_lib_save_LIBS
19733 fi
19734 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19735 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19736 if test $ac_cv_lib_resolv_inet_aton = yes; then
19737   cat >>confdefs.h <<_ACEOF
19738 #define HAVE_LIBRESOLV 1
19739 _ACEOF
19740
19741   LIBS="-lresolv $LIBS"
19742
19743 fi
19744
19745
19746
19747 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19748 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19749 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19750   echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752   ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-lnsl  $LIBS"
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h.  */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h.  */
19760
19761 /* Override any gcc2 internal prototype to avoid an error.  */
19762 #ifdef __cplusplus
19763 extern "C"
19764 #endif
19765 /* We use char because int might match the return type of a gcc2
19766    builtin and then its argument prototype would still apply.  */
19767 char inet_ntoa ();
19768 int
19769 main ()
19770 {
19771 inet_ntoa ();
19772   ;
19773   return 0;
19774 }
19775 _ACEOF
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19778   (eval $ac_link) 2>conftest.er1
19779   ac_status=$?
19780   grep -v '^ *+' conftest.er1 >conftest.err
19781   rm -f conftest.er1
19782   cat conftest.err >&5
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); } &&
19785          { ac_try='test -z "$ac_c_werror_flag"
19786                          || test ! -s conftest.err'
19787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788   (eval $ac_try) 2>&5
19789   ac_status=$?
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); }; } &&
19792          { ac_try='test -s conftest$ac_exeext'
19793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794   (eval $ac_try) 2>&5
19795   ac_status=$?
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); }; }; then
19798   ac_cv_lib_nsl_inet_ntoa=yes
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803 ac_cv_lib_nsl_inet_ntoa=no
19804 fi
19805 rm -f conftest.err conftest.$ac_objext \
19806       conftest$ac_exeext conftest.$ac_ext
19807 LIBS=$ac_check_lib_save_LIBS
19808 fi
19809 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19810 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19811 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19812   cat >>confdefs.h <<_ACEOF
19813 #define HAVE_LIBNSL 1
19814 _ACEOF
19815
19816   LIBS="-lnsl $LIBS"
19817
19818 fi
19819
19820
19821 OPENSSL_LIBS=
19822 old_LIBS=$LIBS
19823 if test "x$OPENSSL_LIB_DIR" != "x"; then
19824     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
19825 fi
19826 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
19827 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
19828 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831   ac_check_lib_save_LIBS=$LIBS
19832 LIBS="-lcrypto  $LIBS"
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839
19840 /* Override any gcc2 internal prototype to avoid an error.  */
19841 #ifdef __cplusplus
19842 extern "C"
19843 #endif
19844 /* We use char because int might match the return type of a gcc2
19845    builtin and then its argument prototype would still apply.  */
19846 char DH_new ();
19847 int
19848 main ()
19849 {
19850 DH_new ();
19851   ;
19852   return 0;
19853 }
19854 _ACEOF
19855 rm -f conftest.$ac_objext conftest$ac_exeext
19856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19857   (eval $ac_link) 2>conftest.er1
19858   ac_status=$?
19859   grep -v '^ *+' conftest.er1 >conftest.err
19860   rm -f conftest.er1
19861   cat conftest.err >&5
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); } &&
19864          { ac_try='test -z "$ac_c_werror_flag"
19865                          || test ! -s conftest.err'
19866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867   (eval $ac_try) 2>&5
19868   ac_status=$?
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); }; } &&
19871          { ac_try='test -s conftest$ac_exeext'
19872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873   (eval $ac_try) 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; }; then
19877   ac_cv_lib_crypto_DH_new=yes
19878 else
19879   echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 ac_cv_lib_crypto_DH_new=no
19883 fi
19884 rm -f conftest.err conftest.$ac_objext \
19885       conftest$ac_exeext conftest.$ac_ext
19886 LIBS=$ac_check_lib_save_LIBS
19887 fi
19888 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
19889 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
19890 if test $ac_cv_lib_crypto_DH_new = yes; then
19891
19892
19893 cat >>confdefs.h <<\_ACEOF
19894 #define HAVE_LIBCRYPTO 1
19895 _ACEOF
19896
19897         echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
19898 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
19899 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
19900   echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902   ac_check_lib_save_LIBS=$LIBS
19903 LIBS="-lssl  $LIBS"
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910
19911 /* Override any gcc2 internal prototype to avoid an error.  */
19912 #ifdef __cplusplus
19913 extern "C"
19914 #endif
19915 /* We use char because int might match the return type of a gcc2
19916    builtin and then its argument prototype would still apply.  */
19917 char SSL_new ();
19918 int
19919 main ()
19920 {
19921 SSL_new ();
19922   ;
19923   return 0;
19924 }
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928   (eval $ac_link) 2>conftest.er1
19929   ac_status=$?
19930   grep -v '^ *+' conftest.er1 >conftest.err
19931   rm -f conftest.er1
19932   cat conftest.err >&5
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); } &&
19935          { ac_try='test -z "$ac_c_werror_flag"
19936                          || test ! -s conftest.err'
19937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938   (eval $ac_try) 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; } &&
19942          { ac_try='test -s conftest$ac_exeext'
19943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944   (eval $ac_try) 2>&5
19945   ac_status=$?
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); }; }; then
19948   ac_cv_lib_ssl_SSL_new=yes
19949 else
19950   echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 ac_cv_lib_ssl_SSL_new=no
19954 fi
19955 rm -f conftest.err conftest.$ac_objext \
19956       conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19958 fi
19959 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
19960 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
19961 if test $ac_cv_lib_ssl_SSL_new = yes; then
19962
19963
19964 cat >>confdefs.h <<\_ACEOF
19965 #define HAVE_LIBSSL 1
19966 _ACEOF
19967
19968                 if test "x$OPENSSL_LIB_DIR" != "x"; then
19969                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
19970                 fi
19971                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
19972
19973 fi
19974
19975
19976 fi
19977
19978 LIBS=$old_LIBS
19979
19980
19981 case "$host" in
19982 *-interix*)
19983         CFLAGS="$CFLAGS -D_ALL_SOURCE"
19984         ;;
19985 *-darwin*)
19986         CFLAGS="$CFLAGS -DDARWIN"
19987         ;;
19988 esac
19989
19990
19991
19992
19993
19994
19995 ac_header_dirent=no
19996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19997   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19998 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003   cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009 #include <sys/types.h>
20010 #include <$ac_hdr>
20011
20012 int
20013 main ()
20014 {
20015 if ((DIR *) 0)
20016 return 0;
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023   (eval $ac_compile) 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } &&
20030          { ac_try='test -z "$ac_c_werror_flag"
20031                          || test ! -s conftest.err'
20032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033   (eval $ac_try) 2>&5
20034   ac_status=$?
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); }; } &&
20037          { ac_try='test -s conftest.$ac_objext'
20038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039   (eval $ac_try) 2>&5
20040   ac_status=$?
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); }; }; then
20043   eval "$as_ac_Header=yes"
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048 eval "$as_ac_Header=no"
20049 fi
20050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20051 fi
20052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20055   cat >>confdefs.h <<_ACEOF
20056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20057 _ACEOF
20058
20059 ac_header_dirent=$ac_hdr; break
20060 fi
20061
20062 done
20063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20064 if test $ac_header_dirent = dirent.h; then
20065   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20067 if test "${ac_cv_search_opendir+set}" = set; then
20068   echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070   ac_func_search_save_LIBS=$LIBS
20071 ac_cv_search_opendir=no
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078
20079 /* Override any gcc2 internal prototype to avoid an error.  */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 /* We use char because int might match the return type of a gcc2
20084    builtin and then its argument prototype would still apply.  */
20085 char opendir ();
20086 int
20087 main ()
20088 {
20089 opendir ();
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20096   (eval $ac_link) 2>conftest.er1
20097   ac_status=$?
20098   grep -v '^ *+' conftest.er1 >conftest.err
20099   rm -f conftest.er1
20100   cat conftest.err >&5
20101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); } &&
20103          { ac_try='test -z "$ac_c_werror_flag"
20104                          || test ! -s conftest.err'
20105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106   (eval $ac_try) 2>&5
20107   ac_status=$?
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); }; } &&
20110          { ac_try='test -s conftest$ac_exeext'
20111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112   (eval $ac_try) 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   ac_cv_search_opendir="none required"
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 fi
20122 rm -f conftest.err conftest.$ac_objext \
20123       conftest$ac_exeext conftest.$ac_ext
20124 if test "$ac_cv_search_opendir" = no; then
20125   for ac_lib in dir; do
20126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20127     cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133
20134 /* Override any gcc2 internal prototype to avoid an error.  */
20135 #ifdef __cplusplus
20136 extern "C"
20137 #endif
20138 /* We use char because int might match the return type of a gcc2
20139    builtin and then its argument prototype would still apply.  */
20140 char opendir ();
20141 int
20142 main ()
20143 {
20144 opendir ();
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext conftest$ac_exeext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20151   (eval $ac_link) 2>conftest.er1
20152   ac_status=$?
20153   grep -v '^ *+' conftest.er1 >conftest.err
20154   rm -f conftest.er1
20155   cat conftest.err >&5
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } &&
20158          { ac_try='test -z "$ac_c_werror_flag"
20159                          || test ! -s conftest.err'
20160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161   (eval $ac_try) 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; } &&
20165          { ac_try='test -s conftest$ac_exeext'
20166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167   (eval $ac_try) 2>&5
20168   ac_status=$?
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); }; }; then
20171   ac_cv_search_opendir="-l$ac_lib"
20172 break
20173 else
20174   echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 fi
20178 rm -f conftest.err conftest.$ac_objext \
20179       conftest$ac_exeext conftest.$ac_ext
20180   done
20181 fi
20182 LIBS=$ac_func_search_save_LIBS
20183 fi
20184 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20185 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20186 if test "$ac_cv_search_opendir" != no; then
20187   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20188
20189 fi
20190
20191 else
20192   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20194 if test "${ac_cv_search_opendir+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   ac_func_search_save_LIBS=$LIBS
20198 ac_cv_search_opendir=no
20199 cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205
20206 /* Override any gcc2 internal prototype to avoid an error.  */
20207 #ifdef __cplusplus
20208 extern "C"
20209 #endif
20210 /* We use char because int might match the return type of a gcc2
20211    builtin and then its argument prototype would still apply.  */
20212 char opendir ();
20213 int
20214 main ()
20215 {
20216 opendir ();
20217   ;
20218   return 0;
20219 }
20220 _ACEOF
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20223   (eval $ac_link) 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } &&
20230          { ac_try='test -z "$ac_c_werror_flag"
20231                          || test ! -s conftest.err'
20232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233   (eval $ac_try) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); }; } &&
20237          { ac_try='test -s conftest$ac_exeext'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   ac_cv_search_opendir="none required"
20244 else
20245   echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 fi
20249 rm -f conftest.err conftest.$ac_objext \
20250       conftest$ac_exeext conftest.$ac_ext
20251 if test "$ac_cv_search_opendir" = no; then
20252   for ac_lib in x; do
20253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20254     cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260
20261 /* Override any gcc2 internal prototype to avoid an error.  */
20262 #ifdef __cplusplus
20263 extern "C"
20264 #endif
20265 /* We use char because int might match the return type of a gcc2
20266    builtin and then its argument prototype would still apply.  */
20267 char opendir ();
20268 int
20269 main ()
20270 {
20271 opendir ();
20272   ;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278   (eval $ac_link) 2>conftest.er1
20279   ac_status=$?
20280   grep -v '^ *+' conftest.er1 >conftest.err
20281   rm -f conftest.er1
20282   cat conftest.err >&5
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } &&
20285          { ac_try='test -z "$ac_c_werror_flag"
20286                          || test ! -s conftest.err'
20287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288   (eval $ac_try) 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); }; } &&
20292          { ac_try='test -s conftest$ac_exeext'
20293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294   (eval $ac_try) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; }; then
20298   ac_cv_search_opendir="-l$ac_lib"
20299 break
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   done
20308 fi
20309 LIBS=$ac_func_search_save_LIBS
20310 fi
20311 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20312 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20313 if test "$ac_cv_search_opendir" != no; then
20314   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20315
20316 fi
20317
20318 fi
20319
20320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20322 if test "${ac_cv_header_stdc+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331 #include <stdlib.h>
20332 #include <stdarg.h>
20333 #include <string.h>
20334 #include <float.h>
20335
20336 int
20337 main ()
20338 {
20339
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346   (eval $ac_compile) 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -z "$ac_c_werror_flag"
20354                          || test ! -s conftest.err'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; } &&
20360          { ac_try='test -s conftest.$ac_objext'
20361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362   (eval $ac_try) 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; }; then
20366   ac_cv_header_stdc=yes
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 ac_cv_header_stdc=no
20372 fi
20373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20374
20375 if test $ac_cv_header_stdc = yes; then
20376   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20377   cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 #include <string.h>
20384
20385 _ACEOF
20386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20387   $EGREP "memchr" >/dev/null 2>&1; then
20388   :
20389 else
20390   ac_cv_header_stdc=no
20391 fi
20392 rm -f conftest*
20393
20394 fi
20395
20396 if test $ac_cv_header_stdc = yes; then
20397   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20398   cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 #include <stdlib.h>
20405
20406 _ACEOF
20407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20408   $EGREP "free" >/dev/null 2>&1; then
20409   :
20410 else
20411   ac_cv_header_stdc=no
20412 fi
20413 rm -f conftest*
20414
20415 fi
20416
20417 if test $ac_cv_header_stdc = yes; then
20418   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20419   if test "$cross_compiling" = yes; then
20420   :
20421 else
20422   cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h.  */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h.  */
20428 #include <ctype.h>
20429 #if ((' ' & 0x0FF) == 0x020)
20430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20432 #else
20433 # define ISLOWER(c) \
20434                    (('a' <= (c) && (c) <= 'i') \
20435                      || ('j' <= (c) && (c) <= 'r') \
20436                      || ('s' <= (c) && (c) <= 'z'))
20437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20438 #endif
20439
20440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20441 int
20442 main ()
20443 {
20444   int i;
20445   for (i = 0; i < 256; i++)
20446     if (XOR (islower (i), ISLOWER (i))
20447         || toupper (i) != TOUPPER (i))
20448       exit(2);
20449   exit (0);
20450 }
20451 _ACEOF
20452 rm -f conftest$ac_exeext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20454   (eval $ac_link) 2>&5
20455   ac_status=$?
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459   (eval $ac_try) 2>&5
20460   ac_status=$?
20461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462   (exit $ac_status); }; }; then
20463   :
20464 else
20465   echo "$as_me: program exited with status $ac_status" >&5
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 ( exit $ac_status )
20470 ac_cv_header_stdc=no
20471 fi
20472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20473 fi
20474 fi
20475 fi
20476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20478 if test $ac_cv_header_stdc = yes; then
20479
20480 cat >>confdefs.h <<\_ACEOF
20481 #define STDC_HEADERS 1
20482 _ACEOF
20483
20484 fi
20485
20486 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20487 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20488 if test "${ac_cv_header_time+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491   cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 #include <sys/types.h>
20498 #include <sys/time.h>
20499 #include <time.h>
20500
20501 int
20502 main ()
20503 {
20504 if ((struct tm *) 0)
20505 return 0;
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512   (eval $ac_compile) 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } &&
20519          { ac_try='test -z "$ac_c_werror_flag"
20520                          || test ! -s conftest.err'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest.$ac_objext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_cv_header_time=yes
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_cv_header_time=no
20538 fi
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540 fi
20541 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20542 echo "${ECHO_T}$ac_cv_header_time" >&6
20543 if test $ac_cv_header_time = yes; then
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define TIME_WITH_SYS_TIME 1
20547 _ACEOF
20548
20549 fi
20550
20551 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20552 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20553 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20554   echo $ECHO_N "(cached) $ECHO_C" >&6
20555 else
20556   cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562 #include <sys/types.h>
20563 #include <sys/wait.h>
20564 #ifndef WEXITSTATUS
20565 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20566 #endif
20567 #ifndef WIFEXITED
20568 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20569 #endif
20570
20571 int
20572 main ()
20573 {
20574   int s;
20575   wait (&s);
20576   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583   (eval $ac_compile) 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } &&
20590          { ac_try='test -z "$ac_c_werror_flag"
20591                          || test ! -s conftest.err'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; } &&
20597          { ac_try='test -s conftest.$ac_objext'
20598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599   (eval $ac_try) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); }; }; then
20603   ac_cv_header_sys_wait_h=yes
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_cv_header_sys_wait_h=no
20609 fi
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20611 fi
20612 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20613 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20614 if test $ac_cv_header_sys_wait_h = yes; then
20615
20616 cat >>confdefs.h <<\_ACEOF
20617 #define HAVE_SYS_WAIT_H 1
20618 _ACEOF
20619
20620 fi
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653 for ac_header in \
20654         unistd.h \
20655         crypt.h \
20656         errno.h \
20657         resource.h \
20658         getopt.h \
20659         malloc.h \
20660         utmp.h \
20661         utmpx.h \
20662         signal.h \
20663         sys/select.h \
20664         syslog.h \
20665         inttypes.h \
20666         stdint.h \
20667         stdio.h \
20668         netdb.h \
20669         semaphore.h \
20670         arpa/inet.h \
20671         netinet/in.h \
20672         sys/types.h \
20673         sys/socket.h \
20674         sys/time.h \
20675         sys/wait.h \
20676         sys/security.h \
20677         fcntl.h \
20678         sys/fcntl.h \
20679         sys/stat.h \
20680         sys/prctl.h \
20681         prot.h \
20682         sia.h \
20683         siad.h
20684
20685 do
20686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20688   echo "$as_me:$LINENO: checking for $ac_header" >&5
20689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20691   echo $ECHO_N "(cached) $ECHO_C" >&6
20692 fi
20693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20695 else
20696   # Is the header compilable?
20697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705 $ac_includes_default
20706 #include <$ac_header>
20707 _ACEOF
20708 rm -f conftest.$ac_objext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20710   (eval $ac_compile) 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } &&
20717          { ac_try='test -z "$ac_c_werror_flag"
20718                          || test ! -s conftest.err'
20719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720   (eval $ac_try) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; } &&
20724          { ac_try='test -s conftest.$ac_objext'
20725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726   (eval $ac_try) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   ac_header_compiler=yes
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 ac_header_compiler=no
20736 fi
20737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20739 echo "${ECHO_T}$ac_header_compiler" >&6
20740
20741 # Is the header present?
20742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750 #include <$ac_header>
20751 _ACEOF
20752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20754   ac_status=$?
20755   grep -v '^ *+' conftest.er1 >conftest.err
20756   rm -f conftest.er1
20757   cat conftest.err >&5
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); } >/dev/null; then
20760   if test -s conftest.err; then
20761     ac_cpp_err=$ac_c_preproc_warn_flag
20762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20763   else
20764     ac_cpp_err=
20765   fi
20766 else
20767   ac_cpp_err=yes
20768 fi
20769 if test -z "$ac_cpp_err"; then
20770   ac_header_preproc=yes
20771 else
20772   echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775   ac_header_preproc=no
20776 fi
20777 rm -f conftest.err conftest.$ac_ext
20778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20779 echo "${ECHO_T}$ac_header_preproc" >&6
20780
20781 # So?  What about this header?
20782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20783   yes:no: )
20784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20788     ac_header_preproc=yes
20789     ;;
20790   no:yes:* )
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20803     (
20804       cat <<\_ASBOX
20805 ## ------------------------------------------ ##
20806 ## Report this to the AC_PACKAGE_NAME lists.  ##
20807 ## ------------------------------------------ ##
20808 _ASBOX
20809     ) |
20810       sed "s/^/$as_me: WARNING:     /" >&2
20811     ;;
20812 esac
20813 echo "$as_me:$LINENO: checking for $ac_header" >&5
20814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   eval "$as_ac_Header=\$ac_header_preproc"
20819 fi
20820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20822
20823 fi
20824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20825   cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20827 _ACEOF
20828
20829 fi
20830
20831 done
20832
20833
20834 REGEX=no
20835 if test "${ac_cv_header_regex_h+set}" = set; then
20836   echo "$as_me:$LINENO: checking for regex.h" >&5
20837 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20838 if test "${ac_cv_header_regex_h+set}" = set; then
20839   echo $ECHO_N "(cached) $ECHO_C" >&6
20840 fi
20841 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20842 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20843 else
20844   # Is the header compilable?
20845 echo "$as_me:$LINENO: checking regex.h usability" >&5
20846 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853 $ac_includes_default
20854 #include <regex.h>
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858   (eval $ac_compile) 2>conftest.er1
20859   ac_status=$?
20860   grep -v '^ *+' conftest.er1 >conftest.err
20861   rm -f conftest.er1
20862   cat conftest.err >&5
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -z "$ac_c_werror_flag"
20866                          || test ! -s conftest.err'
20867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868   (eval $ac_try) 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; } &&
20872          { ac_try='test -s conftest.$ac_objext'
20873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874   (eval $ac_try) 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); }; }; then
20878   ac_header_compiler=yes
20879 else
20880   echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 ac_header_compiler=no
20884 fi
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6
20888
20889 # Is the header present?
20890 echo "$as_me:$LINENO: checking regex.h presence" >&5
20891 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h.  */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h.  */
20898 #include <regex.h>
20899 _ACEOF
20900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20902   ac_status=$?
20903   grep -v '^ *+' conftest.er1 >conftest.err
20904   rm -f conftest.er1
20905   cat conftest.err >&5
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } >/dev/null; then
20908   if test -s conftest.err; then
20909     ac_cpp_err=$ac_c_preproc_warn_flag
20910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20911   else
20912     ac_cpp_err=
20913   fi
20914 else
20915   ac_cpp_err=yes
20916 fi
20917 if test -z "$ac_cpp_err"; then
20918   ac_header_preproc=yes
20919 else
20920   echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923   ac_header_preproc=no
20924 fi
20925 rm -f conftest.err conftest.$ac_ext
20926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20927 echo "${ECHO_T}$ac_header_preproc" >&6
20928
20929 # So?  What about this header?
20930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20931   yes:no: )
20932     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20933 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20934     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20935 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20936     ac_header_preproc=yes
20937     ;;
20938   no:yes:* )
20939     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20940 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20941     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
20942 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
20943     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20944 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20945     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
20946 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20947     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20948 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20949     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20950 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20951     (
20952       cat <<\_ASBOX
20953 ## ------------------------------------------ ##
20954 ## Report this to the AC_PACKAGE_NAME lists.  ##
20955 ## ------------------------------------------ ##
20956 _ASBOX
20957     ) |
20958       sed "s/^/$as_me: WARNING:     /" >&2
20959     ;;
20960 esac
20961 echo "$as_me:$LINENO: checking for regex.h" >&5
20962 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20963 if test "${ac_cv_header_regex_h+set}" = set; then
20964   echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966   ac_cv_header_regex_h=$ac_header_preproc
20967 fi
20968 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20969 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20970
20971 fi
20972 if test $ac_cv_header_regex_h = yes; then
20973   cat >>confdefs.h <<\_ACEOF
20974 #define HAVE_REGEX_H 1
20975 _ACEOF
20976
20977 fi
20978
20979
20980 if test "x$ac_cv_header_regex_h" = "xyes"; then
20981   REGEX_EXTENDED=no
20982   REGEX=yes
20983   cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989 #include <regex.h>
20990      #ifdef REG_EXTENDED
20991        yes
20992      #endif
20993
20994 _ACEOF
20995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20996   $EGREP "yes" >/dev/null 2>&1; then
20997   cat >>confdefs.h <<\_ACEOF
20998 #define HAVE_REG_EXTENDED 1
20999 _ACEOF
21000  REGEX_EXTENDED=yes
21001 fi
21002 rm -f conftest*
21003
21004 fi
21005
21006
21007
21008 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21009 then
21010   cat >>confdefs.h <<\_ACEOF
21011 #define OSFC2 1
21012 _ACEOF
21013
21014 fi
21015
21016 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21017 then
21018   cat >>confdefs.h <<\_ACEOF
21019 #define OSFSIA 1
21020 _ACEOF
21021
21022 fi
21023
21024 OPENSSL_INCLUDE="-DNO_OPENSSL"
21025 if test "x$OPENSSL_LIBS" = "x"; then
21026     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21027 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21028 else
21029     old_CPPFLAGS=$CPPFLAGS
21030     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21031         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21032     fi
21033         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21034
21035
21036
21037
21038 for ac_header in \
21039         openssl/ssl.h \
21040         openssl/crypto.h \
21041         openssl/err.h \
21042         openssl/engine.h
21043 do
21044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21046   echo "$as_me:$LINENO: checking for $ac_header" >&5
21047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 fi
21051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21053 else
21054   # Is the header compilable?
21055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21057 cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063 $ac_includes_default
21064 #include <$ac_header>
21065 _ACEOF
21066 rm -f conftest.$ac_objext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068   (eval $ac_compile) 2>conftest.er1
21069   ac_status=$?
21070   grep -v '^ *+' conftest.er1 >conftest.err
21071   rm -f conftest.er1
21072   cat conftest.err >&5
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); } &&
21075          { ac_try='test -z "$ac_c_werror_flag"
21076                          || test ! -s conftest.err'
21077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078   (eval $ac_try) 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); }; } &&
21082          { ac_try='test -s conftest.$ac_objext'
21083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084   (eval $ac_try) 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); }; }; then
21088   ac_header_compiler=yes
21089 else
21090   echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093 ac_header_compiler=no
21094 fi
21095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21097 echo "${ECHO_T}$ac_header_compiler" >&6
21098
21099 # Is the header present?
21100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21102 cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h.  */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h.  */
21108 #include <$ac_header>
21109 _ACEOF
21110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21112   ac_status=$?
21113   grep -v '^ *+' conftest.er1 >conftest.err
21114   rm -f conftest.er1
21115   cat conftest.err >&5
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } >/dev/null; then
21118   if test -s conftest.err; then
21119     ac_cpp_err=$ac_c_preproc_warn_flag
21120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21121   else
21122     ac_cpp_err=
21123   fi
21124 else
21125   ac_cpp_err=yes
21126 fi
21127 if test -z "$ac_cpp_err"; then
21128   ac_header_preproc=yes
21129 else
21130   echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133   ac_header_preproc=no
21134 fi
21135 rm -f conftest.err conftest.$ac_ext
21136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21137 echo "${ECHO_T}$ac_header_preproc" >&6
21138
21139 # So?  What about this header?
21140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21141   yes:no: )
21142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21146     ac_header_preproc=yes
21147     ;;
21148   no:yes:* )
21149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21161     (
21162       cat <<\_ASBOX
21163 ## ------------------------------------------ ##
21164 ## Report this to the AC_PACKAGE_NAME lists.  ##
21165 ## ------------------------------------------ ##
21166 _ASBOX
21167     ) |
21168       sed "s/^/$as_me: WARNING:     /" >&2
21169     ;;
21170 esac
21171 echo "$as_me:$LINENO: checking for $ac_header" >&5
21172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176   eval "$as_ac_Header=\$ac_header_preproc"
21177 fi
21178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21180
21181 fi
21182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21183   cat >>confdefs.h <<_ACEOF
21184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21185 _ACEOF
21186
21187 else
21188   OPENSSL_LIBS=
21189
21190 fi
21191
21192 done
21193
21194     if test "x$OPENSSL_LIBS" != "x"; then
21195         echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21196 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21197         cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 #include <openssl/crypto.h>
21204              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21205              yes
21206              #endif
21207
21208 _ACEOF
21209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21210   $EGREP "yes" >/dev/null 2>&1; then
21211   goodssl="yes"
21212 fi
21213 rm -f conftest*
21214
21215         if test "x$goodssl" != "xyes"; then
21216             echo "$as_me:$LINENO: result: no" >&5
21217 echo "${ECHO_T}no" >&6
21218             OPENSSL_LIBS=
21219         else
21220             echo "$as_me:$LINENO: result: yes" >&5
21221 echo "${ECHO_T}yes" >&6
21222             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21223                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21224             else
21225                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21226             fi
21227         fi
21228     fi
21229     CPPFLAGS=$old_CPPFLAGS
21230 fi
21231
21232
21233 export OPENSSL_LIBS
21234
21235
21236 echo "$as_me:$LINENO: checking for off_t" >&5
21237 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21238 if test "${ac_cv_type_off_t+set}" = set; then
21239   echo $ECHO_N "(cached) $ECHO_C" >&6
21240 else
21241   cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247 $ac_includes_default
21248 int
21249 main ()
21250 {
21251 if ((off_t *) 0)
21252   return 0;
21253 if (sizeof (off_t))
21254   return 0;
21255   ;
21256   return 0;
21257 }
21258 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261   (eval $ac_compile) 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } &&
21268          { ac_try='test -z "$ac_c_werror_flag"
21269                          || test ! -s conftest.err'
21270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271   (eval $ac_try) 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; } &&
21275          { ac_try='test -s conftest.$ac_objext'
21276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277   (eval $ac_try) 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   ac_cv_type_off_t=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ac_cv_type_off_t=no
21287 fi
21288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21289 fi
21290 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21291 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21292 if test $ac_cv_type_off_t = yes; then
21293   :
21294 else
21295
21296 cat >>confdefs.h <<_ACEOF
21297 #define off_t long
21298 _ACEOF
21299
21300 fi
21301
21302 echo "$as_me:$LINENO: checking for pid_t" >&5
21303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21304 if test "${ac_cv_type_pid_t+set}" = set; then
21305   echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307   cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h.  */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h.  */
21313 $ac_includes_default
21314 int
21315 main ()
21316 {
21317 if ((pid_t *) 0)
21318   return 0;
21319 if (sizeof (pid_t))
21320   return 0;
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 rm -f conftest.$ac_objext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21327   (eval $ac_compile) 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } &&
21334          { ac_try='test -z "$ac_c_werror_flag"
21335                          || test ! -s conftest.err'
21336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; } &&
21341          { ac_try='test -s conftest.$ac_objext'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347   ac_cv_type_pid_t=yes
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ac_cv_type_pid_t=no
21353 fi
21354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21355 fi
21356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21358 if test $ac_cv_type_pid_t = yes; then
21359   :
21360 else
21361
21362 cat >>confdefs.h <<_ACEOF
21363 #define pid_t int
21364 _ACEOF
21365
21366 fi
21367
21368 echo "$as_me:$LINENO: checking for size_t" >&5
21369 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21370 if test "${ac_cv_type_size_t+set}" = set; then
21371   echo $ECHO_N "(cached) $ECHO_C" >&6
21372 else
21373   cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21379 $ac_includes_default
21380 int
21381 main ()
21382 {
21383 if ((size_t *) 0)
21384   return 0;
21385 if (sizeof (size_t))
21386   return 0;
21387   ;
21388   return 0;
21389 }
21390 _ACEOF
21391 rm -f conftest.$ac_objext
21392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21393   (eval $ac_compile) 2>conftest.er1
21394   ac_status=$?
21395   grep -v '^ *+' conftest.er1 >conftest.err
21396   rm -f conftest.er1
21397   cat conftest.err >&5
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } &&
21400          { ac_try='test -z "$ac_c_werror_flag"
21401                          || test ! -s conftest.err'
21402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403   (eval $ac_try) 2>&5
21404   ac_status=$?
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); }; } &&
21407          { ac_try='test -s conftest.$ac_objext'
21408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409   (eval $ac_try) 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); }; }; then
21413   ac_cv_type_size_t=yes
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418 ac_cv_type_size_t=no
21419 fi
21420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21421 fi
21422 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21423 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21424 if test $ac_cv_type_size_t = yes; then
21425   :
21426 else
21427
21428 cat >>confdefs.h <<_ACEOF
21429 #define size_t unsigned
21430 _ACEOF
21431
21432 fi
21433
21434 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21435 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21436 if test "${ac_cv_type_uid_t+set}" = set; then
21437   echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439   cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 #include <sys/types.h>
21446
21447 _ACEOF
21448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21449   $EGREP "uid_t" >/dev/null 2>&1; then
21450   ac_cv_type_uid_t=yes
21451 else
21452   ac_cv_type_uid_t=no
21453 fi
21454 rm -f conftest*
21455
21456 fi
21457 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21458 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21459 if test $ac_cv_type_uid_t = no; then
21460
21461 cat >>confdefs.h <<\_ACEOF
21462 #define uid_t int
21463 _ACEOF
21464
21465
21466 cat >>confdefs.h <<\_ACEOF
21467 #define gid_t int
21468 _ACEOF
21469
21470 fi
21471
21472
21473
21474   echo "$as_me:$LINENO: checking for socklen_t" >&5
21475 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21476 if test "${ac_cv_type_socklen_t+set}" = set; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479    ac_cv_type_socklen_t=no
21480       cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h.  */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h.  */
21486 #ifdef HAVE_SYS_TYPES_H
21487 #include <sys/types.h>
21488 #endif
21489 #ifdef HAVE_SYS_SOCKET_H
21490 #include <sys/socket.h>
21491 #endif
21492
21493 int
21494 main ()
21495 {
21496 socklen_t foo
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503   (eval $ac_compile) 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } &&
21510          { ac_try='test -z "$ac_c_werror_flag"
21511                          || test ! -s conftest.err'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; } &&
21517          { ac_try='test -s conftest.$ac_objext'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; }; then
21523   ac_cv_type_socklen_t=yes
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528 fi
21529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21530
21531
21532 fi
21533 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21534 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21535
21536   if test "$ac_cv_type_socklen_t" != "yes"; then
21537          cat >>confdefs.h <<\_ACEOF
21538 #define socklen_t int
21539 _ACEOF
21540
21541   fi
21542
21543
21544
21545   echo "$as_me:$LINENO: checking for uint8_t" >&5
21546 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21547 if test "${ac_cv_type_uint8_t+set}" = set; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550    ac_cv_type_uint8_t=no
21551       cat >conftest.$ac_ext <<_ACEOF
21552 /* confdefs.h.  */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h.  */
21557 #ifdef HAVE_INTTYPES_H
21558 #include <inttypes.h>
21559 #endif
21560 #ifdef HAVE_STDINT_H
21561 #include <stdint.h>
21562 #endif
21563
21564 int
21565 main ()
21566 {
21567 uint8_t foo
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574   (eval $ac_compile) 2>conftest.er1
21575   ac_status=$?
21576   grep -v '^ *+' conftest.er1 >conftest.err
21577   rm -f conftest.er1
21578   cat conftest.err >&5
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } &&
21581          { ac_try='test -z "$ac_c_werror_flag"
21582                          || test ! -s conftest.err'
21583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; } &&
21588          { ac_try='test -s conftest.$ac_objext'
21589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590   (eval $ac_try) 2>&5
21591   ac_status=$?
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); }; }; then
21594   ac_cv_type_uint8_t=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 fi
21600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21601
21602
21603 fi
21604 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21605 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21606
21607   if test "$ac_cv_type_uint8_t" != "yes"; then
21608          cat >>confdefs.h <<\_ACEOF
21609 #define uint8_t unsigned char
21610 _ACEOF
21611
21612   fi
21613
21614
21615
21616   echo "$as_me:$LINENO: checking for uint16_t" >&5
21617 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21618 if test "${ac_cv_type_uint16_t+set}" = set; then
21619   echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621    ac_cv_type_uint16_t=no
21622       cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h.  */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h.  */
21628 #ifdef HAVE_INTTYPES_H
21629 #include <inttypes.h>
21630 #endif
21631 #ifdef HAVE_STDINT_H
21632 #include <stdint.h>
21633 #endif
21634
21635 int
21636 main ()
21637 {
21638 uint16_t foo
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645   (eval $ac_compile) 2>conftest.er1
21646   ac_status=$?
21647   grep -v '^ *+' conftest.er1 >conftest.err
21648   rm -f conftest.er1
21649   cat conftest.err >&5
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } &&
21652          { ac_try='test -z "$ac_c_werror_flag"
21653                          || test ! -s conftest.err'
21654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655   (eval $ac_try) 2>&5
21656   ac_status=$?
21657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658   (exit $ac_status); }; } &&
21659          { ac_try='test -s conftest.$ac_objext'
21660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661   (eval $ac_try) 2>&5
21662   ac_status=$?
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); }; }; then
21665   ac_cv_type_uint16_t=yes
21666 else
21667   echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 fi
21671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21672
21673
21674 fi
21675 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21676 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21677
21678   if test "$ac_cv_type_uint16_t" != "yes"; then
21679          cat >>confdefs.h <<\_ACEOF
21680 #define uint16_t unsigned short
21681 _ACEOF
21682
21683   fi
21684
21685
21686
21687   echo "$as_me:$LINENO: checking for uint32_t" >&5
21688 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21689 if test "${ac_cv_type_uint32_t+set}" = set; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692    ac_cv_type_uint32_t=no
21693       cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 #ifdef HAVE_INTTYPES_H
21700 #include <inttypes.h>
21701 #endif
21702 #ifdef HAVE_STDINT_H
21703 #include <stdint.h>
21704 #endif
21705
21706 int
21707 main ()
21708 {
21709 uint32_t foo
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21716   (eval $ac_compile) 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } &&
21723          { ac_try='test -z "$ac_c_werror_flag"
21724                          || test ! -s conftest.err'
21725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726   (eval $ac_try) 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); }; } &&
21730          { ac_try='test -s conftest.$ac_objext'
21731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732   (eval $ac_try) 2>&5
21733   ac_status=$?
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); }; }; then
21736   ac_cv_type_uint32_t=yes
21737 else
21738   echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21740
21741 fi
21742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21743
21744
21745 fi
21746 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21747 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21748
21749   if test "$ac_cv_type_uint32_t" != "yes"; then
21750          cat >>confdefs.h <<\_ACEOF
21751 #define uint32_t unsigned int
21752 _ACEOF
21753
21754   fi
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781 for ac_func in \
21782         getopt_long \
21783         lockf \
21784         strsignal \
21785         sigaction \
21786         sigprocmask \
21787         pthread_sigmask \
21788         snprintf \
21789         vsnprintf \
21790         setsid \
21791         strncasecmp \
21792         strcasecmp \
21793         localtime_r \
21794         ctime_r \
21795         gmtime_r \
21796         strsep \
21797         inet_aton \
21798         inet_pton \
21799         inet_ntop \
21800         gethostname \
21801         setlinebuf \
21802         setvbuf \
21803         getusershell \
21804         initgroups \
21805         closefrom
21806
21807 do
21808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21809 echo "$as_me:$LINENO: checking for $ac_func" >&5
21810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21811 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21822 #define $ac_func innocuous_$ac_func
21823
21824 /* System header to define __stub macros and hopefully few prototypes,
21825     which can conflict with char $ac_func (); below.
21826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21827     <limits.h> exists even on freestanding compilers.  */
21828
21829 #ifdef __STDC__
21830 # include <limits.h>
21831 #else
21832 # include <assert.h>
21833 #endif
21834
21835 #undef $ac_func
21836
21837 /* Override any gcc2 internal prototype to avoid an error.  */
21838 #ifdef __cplusplus
21839 extern "C"
21840 {
21841 #endif
21842 /* We use char because int might match the return type of a gcc2
21843    builtin and then its argument prototype would still apply.  */
21844 char $ac_func ();
21845 /* The GNU C library defines this for functions which it implements
21846     to always fail with ENOSYS.  Some functions are actually named
21847     something starting with __ and the normal name is an alias.  */
21848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21849 choke me
21850 #else
21851 char (*f) () = $ac_func;
21852 #endif
21853 #ifdef __cplusplus
21854 }
21855 #endif
21856
21857 int
21858 main ()
21859 {
21860 return f != $ac_func;
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867   (eval $ac_link) 2>conftest.er1
21868   ac_status=$?
21869   grep -v '^ *+' conftest.er1 >conftest.err
21870   rm -f conftest.er1
21871   cat conftest.err >&5
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); } &&
21874          { ac_try='test -z "$ac_c_werror_flag"
21875                          || test ! -s conftest.err'
21876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877   (eval $ac_try) 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; } &&
21881          { ac_try='test -s conftest$ac_exeext'
21882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883   (eval $ac_try) 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); }; }; then
21887   eval "$as_ac_var=yes"
21888 else
21889   echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892 eval "$as_ac_var=no"
21893 fi
21894 rm -f conftest.err conftest.$ac_objext \
21895       conftest$ac_exeext conftest.$ac_ext
21896 fi
21897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21899 if test `eval echo '${'$as_ac_var'}'` = yes; then
21900   cat >>confdefs.h <<_ACEOF
21901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21902 _ACEOF
21903
21904 fi
21905 done
21906
21907 for ac_func in \
21908         crypt \
21909         strncasecmp \
21910         strcasecmp \
21911         inet_aton \
21912         gethostname \
21913         setlinebuf \
21914         getusershell \
21915         endusershell
21916
21917 do
21918 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21919 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21920 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21921   echo $ECHO_N "(cached) $ECHO_C" >&6
21922 else
21923   cat >conftest.$ac_ext <<_ACEOF
21924 /* confdefs.h.  */
21925 _ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h.  */
21929
21930 #include <stdio.h>
21931 #include <string.h>
21932 #ifdef HAVE_UNISTD_H
21933 #include <unistd.h>
21934 #endif
21935 #ifdef HAVE_CRYPT_H
21936 #include <crypt.h>
21937 #endif
21938 #ifdef HAVE_ERRNO_H
21939 #include <errno.h>
21940 #endif
21941 #ifdef HAVE_RESOURCE_H
21942 #include <resource.h>
21943 #endif
21944 #ifdef HAVE_GETOPT_H
21945 #include <getopt.h>
21946 #endif
21947 #ifdef HAVE_MALLOC_H
21948 #include <malloc.h>
21949 #endif
21950 #ifdef HAVE_UTMP_H
21951 #include <utmp.h>
21952 #endif
21953 #ifdef HAVE_UTMPX_H
21954 #include <utmpx.h>
21955 #endif
21956 #ifdef HAVE_SYS_SELECT_H
21957 #include <sys/select.h>
21958 #endif
21959 #ifdef HAVE_DLFCN_H
21960 #include <dlfcn.h>
21961 #endif
21962 #ifdef HAVE_REGEX_H
21963 #include <regex.h>
21964 #endif
21965 #ifdef HAVE_SYSLOG_H
21966 #include <syslog.h>
21967 #endif
21968 #ifdef HAVE_INTTYPES_H
21969 #include <inttypes.h>
21970 #endif
21971 #ifdef HAVE_STDINT_H
21972 #include <stdint.h>
21973 #endif
21974 #ifdef HAVE_ARPA_INET_H
21975 #include <arpa/inet.h>
21976 #endif
21977
21978 int
21979 main ()
21980 {
21981 char *(*pfn) = (char *(*)) $ac_func
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21988   (eval $ac_compile) 2>conftest.er1
21989   ac_status=$?
21990   grep -v '^ *+' conftest.er1 >conftest.err
21991   rm -f conftest.er1
21992   cat conftest.err >&5
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } &&
21995          { ac_try='test -z "$ac_c_werror_flag"
21996                          || test ! -s conftest.err'
21997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998   (eval $ac_try) 2>&5
21999   ac_status=$?
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); }; } &&
22002          { ac_try='test -s conftest.$ac_objext'
22003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004   (eval $ac_try) 2>&5
22005   ac_status=$?
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); }; }; then
22008   eval "radius_cv_decl_needed_$ac_func=no"
22009 else
22010   echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22012
22013 eval "radius_cv_decl_needed_$ac_func=yes"
22014 fi
22015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22016 fi
22017
22018 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22019   echo "$as_me:$LINENO: result: yes" >&5
22020 echo "${ECHO_T}yes" >&6
22021   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22022   cat >>confdefs.h <<_ACEOF
22023 #define $radius_tr_decl 1
22024 _ACEOF
22025
22026 else
22027   echo "$as_me:$LINENO: result: no" >&5
22028 echo "${ECHO_T}no" >&6
22029 fi
22030
22031 done
22032
22033
22034 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22035 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22036 if test "${ac_cv_type_signal+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039   cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 #include <sys/types.h>
22046 #include <signal.h>
22047 #ifdef signal
22048 # undef signal
22049 #endif
22050 #ifdef __cplusplus
22051 extern "C" void (*signal (int, void (*)(int)))(int);
22052 #else
22053 void (*signal ()) ();
22054 #endif
22055
22056 int
22057 main ()
22058 {
22059 int i;
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 rm -f conftest.$ac_objext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22066   (eval $ac_compile) 2>conftest.er1
22067   ac_status=$?
22068   grep -v '^ *+' conftest.er1 >conftest.err
22069   rm -f conftest.er1
22070   cat conftest.err >&5
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } &&
22073          { ac_try='test -z "$ac_c_werror_flag"
22074                          || test ! -s conftest.err'
22075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076   (eval $ac_try) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; } &&
22080          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22086   ac_cv_type_signal=void
22087 else
22088   echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091 ac_cv_type_signal=int
22092 fi
22093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22094 fi
22095 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22096 echo "${ECHO_T}$ac_cv_type_signal" >&6
22097
22098 cat >>confdefs.h <<_ACEOF
22099 #define RETSIGTYPE $ac_cv_type_signal
22100 _ACEOF
22101
22102
22103
22104 if test "x$ac_cv_header_utmpx_h" = "xyes"
22105 then
22106
22107   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22108 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22109
22110
22111   cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h.  */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h.  */
22117
22118 #include <utmpx.h>
22119 #ifndef offsetof
22120 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22121 #endif
22122
22123 int
22124 main ()
22125 {
22126  int foo = offsetof(struct utmpx, ut_xtime)
22127   ;
22128   return 0;
22129 }
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22133   (eval $ac_compile) 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } &&
22140          { ac_try='test -z "$ac_c_werror_flag"
22141                          || test ! -s conftest.err'
22142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143   (eval $ac_try) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); }; } &&
22147          { ac_try='test -s conftest.$ac_objext'
22148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149   (eval $ac_try) 2>&5
22150   ac_status=$?
22151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152   (exit $ac_status); }; }; then
22153   has_element=" "
22154 else
22155   echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158 has_element=
22159 fi
22160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22161
22162   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22163   if test "x$has_element" != "x"; then
22164     echo "$as_me:$LINENO: result: yes" >&5
22165 echo "${ECHO_T}yes" >&6
22166     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22167   else
22168     echo "$as_me:$LINENO: result: no" >&5
22169 echo "${ECHO_T}no" >&6
22170     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22171  fi
22172
22173  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22174  then
22175    cat >>confdefs.h <<\_ACEOF
22176 #define ut_xtime ut_tv.tv_sec
22177 _ACEOF
22178
22179  fi
22180 fi
22181
22182
22183   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22184 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22185
22186
22187   cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h.  */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h.  */
22193
22194 #include <netinet/in.h>
22195 #ifndef offsetof
22196 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22197 #endif
22198
22199 int
22200 main ()
22201 {
22202  int foo = offsetof(struct in_pktinfo, ipi_addr)
22203   ;
22204   return 0;
22205 }
22206 _ACEOF
22207 rm -f conftest.$ac_objext
22208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22209   (eval $ac_compile) 2>conftest.er1
22210   ac_status=$?
22211   grep -v '^ *+' conftest.er1 >conftest.err
22212   rm -f conftest.er1
22213   cat conftest.err >&5
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); } &&
22216          { ac_try='test -z "$ac_c_werror_flag"
22217                          || test ! -s conftest.err'
22218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219   (eval $ac_try) 2>&5
22220   ac_status=$?
22221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222   (exit $ac_status); }; } &&
22223          { ac_try='test -s conftest.$ac_objext'
22224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225   (eval $ac_try) 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); }; }; then
22229   has_element=" "
22230 else
22231   echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234 has_element=
22235 fi
22236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22237
22238   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22239   if test "x$has_element" != "x"; then
22240     echo "$as_me:$LINENO: result: yes" >&5
22241 echo "${ECHO_T}yes" >&6
22242     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22243   else
22244     echo "$as_me:$LINENO: result: no" >&5
22245 echo "${ECHO_T}no" >&6
22246     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22247  fi
22248
22249 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22250 then
22251         cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_IP_PKTINFO 1
22253 _ACEOF
22254
22255 fi
22256
22257
22258 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22259 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22260 if test "${ac_cv_c_const+set}" = set; then
22261   echo $ECHO_N "(cached) $ECHO_C" >&6
22262 else
22263   cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h.  */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h.  */
22269
22270 int
22271 main ()
22272 {
22273 /* FIXME: Include the comments suggested by Paul. */
22274 #ifndef __cplusplus
22275   /* Ultrix mips cc rejects this.  */
22276   typedef int charset[2];
22277   const charset x;
22278   /* SunOS 4.1.1 cc rejects this.  */
22279   char const *const *ccp;
22280   char **p;
22281   /* NEC SVR4.0.2 mips cc rejects this.  */
22282   struct point {int x, y;};
22283   static struct point const zero = {0,0};
22284   /* AIX XL C 1.02.0.0 rejects this.
22285      It does not let you subtract one const X* pointer from another in
22286      an arm of an if-expression whose if-part is not a constant
22287      expression */
22288   const char *g = "string";
22289   ccp = &g + (g ? g-g : 0);
22290   /* HPUX 7.0 cc rejects these. */
22291   ++ccp;
22292   p = (char**) ccp;
22293   ccp = (char const *const *) p;
22294   { /* SCO 3.2v4 cc rejects this.  */
22295     char *t;
22296     char const *s = 0 ? (char *) 0 : (char const *) 0;
22297
22298     *t++ = 0;
22299   }
22300   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22301     int x[] = {25, 17};
22302     const int *foo = &x[0];
22303     ++foo;
22304   }
22305   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22306     typedef const int *iptr;
22307     iptr p = 0;
22308     ++p;
22309   }
22310   { /* AIX XL C 1.02.0.0 rejects this saying
22311        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22312     struct s { int j; const int *ap[3]; };
22313     struct s *b; b->j = 5;
22314   }
22315   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22316     const int foo = 10;
22317   }
22318 #endif
22319
22320   ;
22321   return 0;
22322 }
22323 _ACEOF
22324 rm -f conftest.$ac_objext
22325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22326   (eval $ac_compile) 2>conftest.er1
22327   ac_status=$?
22328   grep -v '^ *+' conftest.er1 >conftest.err
22329   rm -f conftest.er1
22330   cat conftest.err >&5
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); } &&
22333          { ac_try='test -z "$ac_c_werror_flag"
22334                          || test ! -s conftest.err'
22335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336   (eval $ac_try) 2>&5
22337   ac_status=$?
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); }; } &&
22340          { ac_try='test -s conftest.$ac_objext'
22341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342   (eval $ac_try) 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); }; }; then
22346   ac_cv_c_const=yes
22347 else
22348   echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22350
22351 ac_cv_c_const=no
22352 fi
22353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22354 fi
22355 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22356 echo "${ECHO_T}$ac_cv_c_const" >&6
22357 if test $ac_cv_c_const = no; then
22358
22359 cat >>confdefs.h <<\_ACEOF
22360 #define const
22361 _ACEOF
22362
22363 fi
22364
22365
22366 echo "$as_me:$LINENO: checking type of OS" >&5
22367 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22368 OS=`uname -s`
22369 echo "$as_me:$LINENO: result: $OS" >&5
22370 echo "${ECHO_T}$OS" >&6
22371 if test "$OS" = "OS/2"; then
22372         LIBPREFIX=
22373 else
22374         LIBPREFIX=lib
22375 fi
22376
22377
22378 if test "x$GCC" = "xyes"; then
22379     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22380 fi
22381
22382 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22383 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22384 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22385   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22386   CFLAGS="$CFLAGS $devflags"
22387   INSTALLSTRIP=""
22388   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22389 echo "${ECHO_T}yes.  Using $devflags" >&6
22390 else
22391   devflags=""
22392   CFLAGS="$CFLAGS -DNDEBUG"
22393   INSTALLSTRIP="-s"
22394   echo "$as_me:$LINENO: result: no." >&5
22395 echo "${ECHO_T}no." >&6
22396 fi
22397
22398
22399 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22400 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22401 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   ac_check_lib_save_LIBS=$LIBS
22405 LIBS="-lcrypt  $LIBS"
22406 cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h.  */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h.  */
22412
22413 /* Override any gcc2 internal prototype to avoid an error.  */
22414 #ifdef __cplusplus
22415 extern "C"
22416 #endif
22417 /* We use char because int might match the return type of a gcc2
22418    builtin and then its argument prototype would still apply.  */
22419 char crypt ();
22420 int
22421 main ()
22422 {
22423 crypt ();
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22430   (eval $ac_link) 2>conftest.er1
22431   ac_status=$?
22432   grep -v '^ *+' conftest.er1 >conftest.err
22433   rm -f conftest.er1
22434   cat conftest.err >&5
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); } &&
22437          { ac_try='test -z "$ac_c_werror_flag"
22438                          || 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   ac_cv_lib_crypt_crypt=yes
22451 else
22452   echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 ac_cv_lib_crypt_crypt=no
22456 fi
22457 rm -f conftest.err conftest.$ac_objext \
22458       conftest$ac_exeext conftest.$ac_ext
22459 LIBS=$ac_check_lib_save_LIBS
22460 fi
22461 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22462 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22463 if test $ac_cv_lib_crypt_crypt = yes; then
22464   CRYPTLIB="-lcrypt"
22465
22466 fi
22467
22468 if test "$CRYPTLIB" != ""; then
22469   cat >>confdefs.h <<\_ACEOF
22470 #define HAVE_CRYPT 1
22471 _ACEOF
22472
22473 else
22474   echo "$as_me:$LINENO: checking for crypt" >&5
22475 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22476 if test "${ac_cv_func_crypt+set}" = set; then
22477   echo $ECHO_N "(cached) $ECHO_C" >&6
22478 else
22479   cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22487 #define crypt innocuous_crypt
22488
22489 /* System header to define __stub macros and hopefully few prototypes,
22490     which can conflict with char crypt (); below.
22491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22492     <limits.h> exists even on freestanding compilers.  */
22493
22494 #ifdef __STDC__
22495 # include <limits.h>
22496 #else
22497 # include <assert.h>
22498 #endif
22499
22500 #undef crypt
22501
22502 /* Override any gcc2 internal prototype to avoid an error.  */
22503 #ifdef __cplusplus
22504 extern "C"
22505 {
22506 #endif
22507 /* We use char because int might match the return type of a gcc2
22508    builtin and then its argument prototype would still apply.  */
22509 char crypt ();
22510 /* The GNU C library defines this for functions which it implements
22511     to always fail with ENOSYS.  Some functions are actually named
22512     something starting with __ and the normal name is an alias.  */
22513 #if defined (__stub_crypt) || defined (__stub___crypt)
22514 choke me
22515 #else
22516 char (*f) () = crypt;
22517 #endif
22518 #ifdef __cplusplus
22519 }
22520 #endif
22521
22522 int
22523 main ()
22524 {
22525 return f != crypt;
22526   ;
22527   return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22532   (eval $ac_link) 2>conftest.er1
22533   ac_status=$?
22534   grep -v '^ *+' conftest.er1 >conftest.err
22535   rm -f conftest.er1
22536   cat conftest.err >&5
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); } &&
22539          { ac_try='test -z "$ac_c_werror_flag"
22540                          || test ! -s conftest.err'
22541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542   (eval $ac_try) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; } &&
22546          { ac_try='test -s conftest$ac_exeext'
22547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548   (eval $ac_try) 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; }; then
22552   ac_cv_func_crypt=yes
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 ac_cv_func_crypt=no
22558 fi
22559 rm -f conftest.err conftest.$ac_objext \
22560       conftest$ac_exeext conftest.$ac_ext
22561 fi
22562 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22563 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22564 if test $ac_cv_func_crypt = yes; then
22565   cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_CRYPT 1
22567 _ACEOF
22568
22569 fi
22570
22571 fi
22572
22573 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22574 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22575 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22576   echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578   ac_check_lib_save_LIBS=$LIBS
22579 LIBS="-lcipher  $LIBS"
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h.  */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h.  */
22586
22587 /* Override any gcc2 internal prototype to avoid an error.  */
22588 #ifdef __cplusplus
22589 extern "C"
22590 #endif
22591 /* We use char because int might match the return type of a gcc2
22592    builtin and then its argument prototype would still apply.  */
22593 char setkey ();
22594 int
22595 main ()
22596 {
22597 setkey ();
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext conftest$ac_exeext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22604   (eval $ac_link) 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } &&
22611          { ac_try='test -z "$ac_c_werror_flag"
22612                          || test ! -s conftest.err'
22613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614   (eval $ac_try) 2>&5
22615   ac_status=$?
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); }; } &&
22618          { ac_try='test -s conftest$ac_exeext'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; }; then
22624   ac_cv_lib_cipher_setkey=yes
22625 else
22626   echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ac_cv_lib_cipher_setkey=no
22630 fi
22631 rm -f conftest.err conftest.$ac_objext \
22632       conftest$ac_exeext conftest.$ac_ext
22633 LIBS=$ac_check_lib_save_LIBS
22634 fi
22635 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22636 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22637 if test $ac_cv_lib_cipher_setkey = yes; then
22638   CRYPTLIB="${CRYPTLIB} -lcipher"
22639
22640 fi
22641
22642
22643
22644 if test "x$WITH_SNMP" = "xyes"; then
22645
22646
22647
22648
22649 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22650 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22651
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h.  */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h.  */
22658
22659 #ifdef HAVE_SYS_TYPES_H
22660 #include <sys/types.h>
22661 #endif
22662 #ifdef HAVE_STDINT_H
22663 #include <stdint.h>
22664 #endif
22665 #ifdef HAVE_STDIO_H
22666 #include <stdio.h>
22667 #endif
22668 #ifdef HAVE_NETDB_H
22669 #include <netdb.h>
22670 #endif
22671 #ifdef HAVE_UNISTD_H
22672 #include <unistd.h>
22673 #endif
22674 #include <ucd-snmp/ucd-snmp-config.h>
22675 #include <ucd-snmp/asn1.h>
22676 #include <ucd-snmp/snmp.h>
22677 #include <ucd-snmp/snmp_impl.h>
22678 int
22679 main ()
22680 {
22681  int a = 1;
22682   ;
22683   return 0;
22684 }
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22688   (eval $ac_compile) 2>conftest.er1
22689   ac_status=$?
22690   grep -v '^ *+' conftest.er1 >conftest.err
22691   rm -f conftest.er1
22692   cat conftest.err >&5
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); } &&
22695          { ac_try='test -z "$ac_c_werror_flag"
22696                          || test ! -s conftest.err'
22697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698   (eval $ac_try) 2>&5
22699   ac_status=$?
22700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701   (exit $ac_status); }; } &&
22702          { ac_try='test -s conftest.$ac_objext'
22703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704   (eval $ac_try) 2>&5
22705   ac_status=$?
22706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707   (exit $ac_status); }; }; then
22708   SNMP_INCLUDE="";ucdsnmp=yes
22709 else
22710   echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22712
22713 ucdsnmp=
22714 fi
22715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22716
22717 if test "x$ucdsnmp" = "x"; then
22718   old_CFLAGS="$CFLAGS"
22719   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
22720     CFLAGS="$old_CFLAGS -I$try"
22721     cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727
22728 #ifdef HAVE_SYS_TYPES_H
22729 #include <sys/types.h>
22730 #endif
22731 #ifdef HAVE_STDINT_H
22732 #include <stdint.h>
22733 #endif
22734 #ifdef HAVE_STDIO_H
22735 #include <stdio.h>
22736 #endif
22737 #ifdef HAVE_NETDB_H
22738 #include <netdb.h>
22739 #endif
22740 #ifdef HAVE_UNISTD_H
22741 #include <unistd.h>
22742 #endif
22743 #include <ucd-snmp/ucd-snmp-config.h>
22744 #include <ucd-snmp/asn1.h>
22745 #include <ucd-snmp/snmp.h>
22746 #include <ucd-snmp/snmp_impl.h>
22747 int
22748 main ()
22749 {
22750  int a = 1;
22751   ;
22752   return 0;
22753 }
22754 _ACEOF
22755 rm -f conftest.$ac_objext
22756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757   (eval $ac_compile) 2>conftest.er1
22758   ac_status=$?
22759   grep -v '^ *+' conftest.er1 >conftest.err
22760   rm -f conftest.er1
22761   cat conftest.err >&5
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); } &&
22764          { ac_try='test -z "$ac_c_werror_flag"
22765                          || test ! -s conftest.err'
22766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767   (eval $ac_try) 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); }; } &&
22771          { ac_try='test -s conftest.$ac_objext'
22772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773   (eval $ac_try) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); }; }; then
22777   SNMP_INCLUDE="-I$try";ucdsnmp=yes
22778 else
22779   echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22781
22782 ucdsnmp=
22783 fi
22784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22785     if test "x$ucdsnmp" != "x"; then
22786       break;
22787     fi
22788   done
22789   CFLAGS="$old_CFLAGS"
22790 fi
22791
22792 if test "x$ucdsnmp" = "x"; then
22793   old_CFLAGS="$CFLAGS"
22794   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22795     CFLAGS="$old_CFLAGS -I$try"
22796 cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h.  */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h.  */
22802
22803 #ifdef HAVE_SYS_TYPES_H
22804 #include <sys/types.h>
22805 #endif
22806 #ifdef HAVE_STDINT_H
22807 #include <stdint.h>
22808 #endif
22809 #ifdef HAVE_STDIO_H
22810 #include <stdio.h>
22811 #endif
22812 #ifdef HAVE_NETDB_H
22813 #include <netdb.h>
22814 #endif
22815 #ifdef HAVE_UNISTD_H
22816 #include <unistd.h>
22817 #endif
22818 #include <asn1.h>
22819 #include <snmp.h>
22820 #include <snmp_impl.h>
22821 int
22822 main ()
22823 {
22824  int a = 1;
22825   ;
22826   return 0;
22827 }
22828 _ACEOF
22829 rm -f conftest.$ac_objext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22831   (eval $ac_compile) 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } &&
22838          { ac_try='test -z "$ac_c_werror_flag"
22839                          || test ! -s conftest.err'
22840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841   (eval $ac_try) 2>&5
22842   ac_status=$?
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); }; } &&
22845          { ac_try='test -s conftest.$ac_objext'
22846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847   (eval $ac_try) 2>&5
22848   ac_status=$?
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); }; }; then
22851   SNMP_INCLUDE="";ucdsnmp=no
22852 else
22853   echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22855
22856 ucdsnmp=
22857 fi
22858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22859     if test "x$ucdsnmp" != "x"; then
22860       break;
22861     fi
22862   done
22863   CFLAGS="$old_CFLAGS"
22864 fi
22865
22866 if test "x$ucdsnmp" = "x"; then
22867   old_CFLAGS="$CFLAGS"
22868   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22869     CFLAGS="$old_CFLAGS -I$try"
22870     cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h.  */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h.  */
22876
22877 #ifdef HAVE_SYS_TYPES_H
22878 #include <sys/types.h>
22879 #endif
22880 #ifdef HAVE_STDINT_H
22881 #include <stdint.h>
22882 #endif
22883 #ifdef HAVE_STDIO_H
22884 #include <stdio.h>
22885 #endif
22886 #ifdef HAVE_NETDB_H
22887 #include <netdb.h>
22888 #endif
22889 #ifdef HAVE_UNISTD_H
22890 #include <unistd.h>
22891 #endif
22892 #include <asn1.h>
22893 #include <snmp.h>
22894 #include <snmp_impl.h>
22895 int
22896 main ()
22897 {
22898  int a = 1;
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22905   (eval $ac_compile) 2>conftest.er1
22906   ac_status=$?
22907   grep -v '^ *+' conftest.er1 >conftest.err
22908   rm -f conftest.er1
22909   cat conftest.err >&5
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); } &&
22912          { ac_try='test -z "$ac_c_werror_flag"
22913                          || test ! -s conftest.err'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; } &&
22919          { ac_try='test -s conftest.$ac_objext'
22920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921   (eval $ac_try) 2>&5
22922   ac_status=$?
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); }; }; then
22925   SNMP_INCLUDE="-I$try";ucdsnmp=no
22926 else
22927   echo "$as_me: failed program was:" >&5
22928 sed 's/^/| /' conftest.$ac_ext >&5
22929
22930 ucdsnmp=
22931 fi
22932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22933     if test "x$ucdsnmp" != "x"; then
22934       break;
22935     fi
22936   done
22937   CFLAGS="$old_CFLAGS"
22938 fi
22939
22940 if test "x$ucdsnmp" = "x"; then
22941   echo "$as_me:$LINENO: result: no" >&5
22942 echo "${ECHO_T}no" >&6
22943 else
22944   if test "x$ucdsnmp" = "xyes"; then
22945     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22946 echo "${ECHO_T}(ucd-snmp)yes" >&6
22947     cat >>confdefs.h <<\_ACEOF
22948 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22949 _ACEOF
22950
22951   else
22952     echo "$as_me:$LINENO: result: yes" >&5
22953 echo "${ECHO_T}yes" >&6
22954     cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22956 _ACEOF
22957
22958   fi
22959   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22960 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22961
22962   old_LIBS="$LIBS"
22963   LIBS="$old_LIBS -lsnmp"
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 extern char snmp_build_var_op();
22971 int
22972 main ()
22973 {
22974  snmp_build_var_op()
22975   ;
22976   return 0;
22977 }
22978 _ACEOF
22979 rm -f conftest.$ac_objext conftest$ac_exeext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22981   (eval $ac_link) 2>conftest.er1
22982   ac_status=$?
22983   grep -v '^ *+' conftest.er1 >conftest.err
22984   rm -f conftest.er1
22985   cat conftest.err >&5
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); } &&
22988          { ac_try='test -z "$ac_c_werror_flag"
22989                          || test ! -s conftest.err'
22990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991   (eval $ac_try) 2>&5
22992   ac_status=$?
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); }; } &&
22995          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23001   SNMP_LIBS="-lsnmp"
23002 else
23003   echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23005
23006 SNMP_LIBS=
23007 fi
23008 rm -f conftest.err conftest.$ac_objext \
23009       conftest$ac_exeext conftest.$ac_ext
23010
23011   if test "x$SNMP_LIBS" = "x"; then
23012     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23013       LIBS="$old_LIBS -L$try -lsnmp"
23014       cat >conftest.$ac_ext <<_ACEOF
23015 /* confdefs.h.  */
23016 _ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h.  */
23020 extern char snmp_build_var_op();
23021 int
23022 main ()
23023 {
23024  snmp_build_var_op()
23025   ;
23026   return 0;
23027 }
23028 _ACEOF
23029 rm -f conftest.$ac_objext conftest$ac_exeext
23030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23031   (eval $ac_link) 2>conftest.er1
23032   ac_status=$?
23033   grep -v '^ *+' conftest.er1 >conftest.err
23034   rm -f conftest.er1
23035   cat conftest.err >&5
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); } &&
23038          { ac_try='test -z "$ac_c_werror_flag"
23039                          || test ! -s conftest.err'
23040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041   (eval $ac_try) 2>&5
23042   ac_status=$?
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); }; } &&
23045          { ac_try='test -s conftest$ac_exeext'
23046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047   (eval $ac_try) 2>&5
23048   ac_status=$?
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); }; }; then
23051   SNMP_LIBS="-L$try -lsnmp"
23052 else
23053   echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056 SNMP_LIBS=
23057 fi
23058 rm -f conftest.err conftest.$ac_objext \
23059       conftest$ac_exeext conftest.$ac_ext
23060       if test "x$SNMP_LIBS" != "x"; then
23061         break;
23062       fi
23063       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23064       cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070 extern char snmp_build_var_op();
23071 int
23072 main ()
23073 {
23074  snmp_build_var_op()
23075   ;
23076   return 0;
23077 }
23078 _ACEOF
23079 rm -f conftest.$ac_objext conftest$ac_exeext
23080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23081   (eval $ac_link) 2>conftest.er1
23082   ac_status=$?
23083   grep -v '^ *+' conftest.er1 >conftest.err
23084   rm -f conftest.er1
23085   cat conftest.err >&5
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); } &&
23088          { ac_try='test -z "$ac_c_werror_flag"
23089                          || test ! -s conftest.err'
23090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091   (eval $ac_try) 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); }; } &&
23095          { ac_try='test -s conftest$ac_exeext'
23096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097   (eval $ac_try) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; }; then
23101   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23102 else
23103   echo "$as_me: failed program was:" >&5
23104 sed 's/^/| /' conftest.$ac_ext >&5
23105
23106 SNMP_LIBS=
23107 fi
23108 rm -f conftest.err conftest.$ac_objext \
23109       conftest$ac_exeext conftest.$ac_ext
23110       if test "x$SNMP_LIBS" != "x"; then
23111         break;
23112       fi
23113       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23114       cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 extern char snmp_build_var_op();
23121 int
23122 main ()
23123 {
23124  snmp_build_var_op()
23125   ;
23126   return 0;
23127 }
23128 _ACEOF
23129 rm -f conftest.$ac_objext conftest$ac_exeext
23130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23131   (eval $ac_link) 2>conftest.er1
23132   ac_status=$?
23133   grep -v '^ *+' conftest.er1 >conftest.err
23134   rm -f conftest.er1
23135   cat conftest.err >&5
23136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137   (exit $ac_status); } &&
23138          { ac_try='test -z "$ac_c_werror_flag"
23139                          || test ! -s conftest.err'
23140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141   (eval $ac_try) 2>&5
23142   ac_status=$?
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); }; } &&
23145          { ac_try='test -s conftest$ac_exeext'
23146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147   (eval $ac_try) 2>&5
23148   ac_status=$?
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); }; }; then
23151   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23152 else
23153   echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 SNMP_LIBS=
23157 fi
23158 rm -f conftest.err conftest.$ac_objext \
23159       conftest$ac_exeext conftest.$ac_ext
23160       if test "x$SNMP_LIBS" != "x"; then
23161         break;
23162       fi
23163     done
23164   fi
23165   LIBS="$old_LIBS"
23166
23167           CFLAGS="$old_CFLAGS"
23168   if test "x$SNMP_LIBS" = "x"; then
23169     echo "$as_me:$LINENO: result: no" >&5
23170 echo "${ECHO_T}no" >&6
23171     SNMP_INCLUDE=
23172   else
23173     echo "$as_me:$LINENO: result: yes" >&5
23174 echo "${ECHO_T}yes" >&6
23175     cat >>confdefs.h <<\_ACEOF
23176 #define WITH_SNMP 1
23177 _ACEOF
23178
23179     cat >>confdefs.h <<\_ACEOF
23180 #define HAVE_LIBSNMP 1
23181 _ACEOF
23182
23183   fi
23184 fi
23185
23186 fi
23187
23188 gethostbyaddrrstyle=""
23189 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23190 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23191 case "$host" in
23192 *-freebsd*)
23193         cat >>confdefs.h <<\_ACEOF
23194 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23195 _ACEOF
23196
23197         gethostbyaddrrstyle=BSD
23198         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23199 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23200         ;;
23201 esac
23202 if test "x$gethostbyaddrrstyle" = "x"; then
23203         cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209
23210 #include <stdio.h>
23211 #include <netdb.h>
23212
23213 int
23214 main ()
23215 {
23216  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23217   ;
23218   return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext conftest$ac_exeext
23222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23223   (eval $ac_link) 2>conftest.er1
23224   ac_status=$?
23225   grep -v '^ *+' conftest.er1 >conftest.err
23226   rm -f conftest.er1
23227   cat conftest.err >&5
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); } &&
23230          { ac_try='test -z "$ac_c_werror_flag"
23231                          || test ! -s conftest.err'
23232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233   (eval $ac_try) 2>&5
23234   ac_status=$?
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); }; } &&
23237          { ac_try='test -s conftest$ac_exeext'
23238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239   (eval $ac_try) 2>&5
23240   ac_status=$?
23241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242   (exit $ac_status); }; }; then
23243
23244         cat >>confdefs.h <<\_ACEOF
23245 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23246 _ACEOF
23247
23248         gethostbyaddrrstyle=GNU
23249
23250 else
23251   echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23253
23254 fi
23255 rm -f conftest.err conftest.$ac_objext \
23256       conftest$ac_exeext conftest.$ac_ext
23257 fi
23258 if test "x$gethostbyaddrrstyle" = "x"; then
23259         cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h.  */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h.  */
23265
23266 #include <stdio.h>
23267 #include <netdb.h>
23268
23269 int
23270 main ()
23271 {
23272  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext conftest$ac_exeext
23278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23279   (eval $ac_link) 2>conftest.er1
23280   ac_status=$?
23281   grep -v '^ *+' conftest.er1 >conftest.err
23282   rm -f conftest.er1
23283   cat conftest.err >&5
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); } &&
23286          { ac_try='test -z "$ac_c_werror_flag"
23287                          || test ! -s conftest.err'
23288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289   (eval $ac_try) 2>&5
23290   ac_status=$?
23291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292   (exit $ac_status); }; } &&
23293          { ac_try='test -s conftest$ac_exeext'
23294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295   (eval $ac_try) 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; }; then
23299
23300                 cat >>confdefs.h <<\_ACEOF
23301 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23302 _ACEOF
23303
23304                 gethostbyaddrrstyle=SYSV
23305
23306 else
23307   echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 fi
23311 rm -f conftest.err conftest.$ac_objext \
23312       conftest$ac_exeext conftest.$ac_ext
23313 fi
23314 if test "x$gethostbyaddrrstyle" = "x"; then
23315         cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h.  */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h.  */
23321
23322 #include <stdio.h>
23323 #include <netdb.h>
23324
23325 int
23326 main ()
23327 {
23328  gethostbyaddr(NULL, 0, 0)
23329   ;
23330   return 0;
23331 }
23332 _ACEOF
23333 rm -f conftest.$ac_objext conftest$ac_exeext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23335   (eval $ac_link) 2>conftest.er1
23336   ac_status=$?
23337   grep -v '^ *+' conftest.er1 >conftest.err
23338   rm -f conftest.er1
23339   cat conftest.err >&5
23340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341   (exit $ac_status); } &&
23342          { ac_try='test -z "$ac_c_werror_flag"
23343                          || test ! -s conftest.err'
23344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345   (eval $ac_try) 2>&5
23346   ac_status=$?
23347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); }; } &&
23349          { ac_try='test -s conftest$ac_exeext'
23350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351   (eval $ac_try) 2>&5
23352   ac_status=$?
23353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354   (exit $ac_status); }; }; then
23355
23356                 cat >>confdefs.h <<\_ACEOF
23357 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23358 _ACEOF
23359
23360                 gethostbyaddrrstyle=BSD
23361
23362 else
23363   echo "$as_me: failed program was:" >&5
23364 sed 's/^/| /' conftest.$ac_ext >&5
23365
23366 fi
23367 rm -f conftest.err conftest.$ac_objext \
23368       conftest$ac_exeext conftest.$ac_ext
23369 fi
23370
23371 if test "x$gethostbyaddrrstyle" = "x"; then
23372         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23373 echo "${ECHO_T}none!  It must not exist, here." >&6
23374 else
23375         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23376 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23377 fi
23378
23379 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23380         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23381 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23382 fi
23383
23384 gethostbynamerstyle=""
23385 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23386 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23387 cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393
23394 #include <stdio.h>
23395 #include <netdb.h>
23396
23397 int
23398 main ()
23399 {
23400  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext conftest$ac_exeext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23407   (eval $ac_link) 2>conftest.er1
23408   ac_status=$?
23409   grep -v '^ *+' conftest.er1 >conftest.err
23410   rm -f conftest.er1
23411   cat conftest.err >&5
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } &&
23414          { ac_try='test -z "$ac_c_werror_flag"
23415                          || test ! -s conftest.err'
23416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417   (eval $ac_try) 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); }; } &&
23421          { ac_try='test -s conftest$ac_exeext'
23422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423   (eval $ac_try) 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; }; then
23427
23428         cat >>confdefs.h <<\_ACEOF
23429 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23430 _ACEOF
23431
23432         gethostbynamerstyle=GNU
23433
23434 else
23435   echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23437
23438 fi
23439 rm -f conftest.err conftest.$ac_objext \
23440       conftest$ac_exeext conftest.$ac_ext
23441 if test "x$gethostbynamerstyle" = "x"; then
23442         cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h.  */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h.  */
23448
23449 #include <stdio.h>
23450 #include <netdb.h>
23451
23452 int
23453 main ()
23454 {
23455  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23456   ;
23457   return 0;
23458 }
23459 _ACEOF
23460 rm -f conftest.$ac_objext conftest$ac_exeext
23461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23462   (eval $ac_link) 2>conftest.er1
23463   ac_status=$?
23464   grep -v '^ *+' conftest.er1 >conftest.err
23465   rm -f conftest.er1
23466   cat conftest.err >&5
23467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468   (exit $ac_status); } &&
23469          { ac_try='test -z "$ac_c_werror_flag"
23470                          || test ! -s conftest.err'
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); }; } &&
23476          { ac_try='test -s conftest$ac_exeext'
23477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478   (eval $ac_try) 2>&5
23479   ac_status=$?
23480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481   (exit $ac_status); }; }; then
23482
23483                 cat >>confdefs.h <<\_ACEOF
23484 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23485 _ACEOF
23486
23487                 gethostbynamerstyle=SYSV
23488
23489 else
23490   echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 fi
23494 rm -f conftest.err conftest.$ac_objext \
23495       conftest$ac_exeext conftest.$ac_ext
23496 fi
23497 if test "x$gethostbynamerstyle" = "x"; then
23498         cat >conftest.$ac_ext <<_ACEOF
23499 /* confdefs.h.  */
23500 _ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h.  */
23504
23505 #include <stdio.h>
23506 #include <netdb.h>
23507
23508 int
23509 main ()
23510 {
23511  gethostbyname(NULL)
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 rm -f conftest.$ac_objext conftest$ac_exeext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518   (eval $ac_link) 2>conftest.er1
23519   ac_status=$?
23520   grep -v '^ *+' conftest.er1 >conftest.err
23521   rm -f conftest.er1
23522   cat conftest.err >&5
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } &&
23525          { ac_try='test -z "$ac_c_werror_flag"
23526                          || test ! -s conftest.err'
23527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528   (eval $ac_try) 2>&5
23529   ac_status=$?
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); }; } &&
23532          { ac_try='test -s conftest$ac_exeext'
23533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534   (eval $ac_try) 2>&5
23535   ac_status=$?
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); }; }; then
23538
23539                 cat >>confdefs.h <<\_ACEOF
23540 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23541 _ACEOF
23542
23543                 gethostbynamerstyle=BSD
23544
23545 else
23546   echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23548
23549 fi
23550 rm -f conftest.err conftest.$ac_objext \
23551       conftest$ac_exeext conftest.$ac_ext
23552 fi
23553
23554 if test "x$gethostbynamerstyle" = "x"; then
23555         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23556 echo "${ECHO_T}none!  It must not exist, here." >&6
23557 else
23558         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23559 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23560 fi
23561
23562 if test "x$gethostbynamerstyle" = "xBSD"; then
23563         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23564 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23565 fi
23566
23567 ctimerstyle=""
23568 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23569 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23570 cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h.  */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h.  */
23576
23577 #include <time.h>
23578
23579 int
23580 main ()
23581 {
23582  ctime_r(NULL, NULL, 0)
23583   ;
23584   return 0;
23585 }
23586 _ACEOF
23587 rm -f conftest.$ac_objext conftest$ac_exeext
23588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23589   (eval $ac_link) 2>conftest.er1
23590   ac_status=$?
23591   grep -v '^ *+' conftest.er1 >conftest.err
23592   rm -f conftest.er1
23593   cat conftest.err >&5
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); } &&
23596          { ac_try='test -z "$ac_c_werror_flag"
23597                          || test ! -s conftest.err'
23598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599   (eval $ac_try) 2>&5
23600   ac_status=$?
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); }; } &&
23603          { ac_try='test -s conftest$ac_exeext'
23604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605   (eval $ac_try) 2>&5
23606   ac_status=$?
23607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608   (exit $ac_status); }; }; then
23609
23610         cat >>confdefs.h <<\_ACEOF
23611 #define CTIMERSTYLE SOLARISSTYLE
23612 _ACEOF
23613
23614         ctimerstyle="SOLARIS"
23615
23616 else
23617   echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619
23620 fi
23621 rm -f conftest.err conftest.$ac_objext \
23622       conftest$ac_exeext conftest.$ac_ext
23623 if test "x$ctimerstyle" = "x"; then
23624         cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630
23631 #include <time.h>
23632
23633 int
23634 main ()
23635 {
23636  ctime_r(NULL, NULL)
23637   ;
23638   return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643   (eval $ac_link) 2>conftest.er1
23644   ac_status=$?
23645   grep -v '^ *+' conftest.er1 >conftest.err
23646   rm -f conftest.er1
23647   cat conftest.err >&5
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); } &&
23650          { ac_try='test -z "$ac_c_werror_flag"
23651                          || test ! -s conftest.err'
23652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653   (eval $ac_try) 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); }; } &&
23657          { ac_try='test -s conftest$ac_exeext'
23658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659   (eval $ac_try) 2>&5
23660   ac_status=$?
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); }; }; then
23663
23664                 cat >>confdefs.h <<\_ACEOF
23665 #define CTIMERSTYLE POSIXSTYLE
23666 _ACEOF
23667
23668                 ctimerstyle="POSIX"
23669
23670 else
23671   echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23673
23674 fi
23675 rm -f conftest.err conftest.$ac_objext \
23676       conftest$ac_exeext conftest.$ac_ext
23677 fi
23678
23679 if test "x$ctimerstyle" = "x"; then
23680         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23681 echo "${ECHO_T}none!  It must not exist, here." >&6
23682 else
23683         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23684 echo "${ECHO_T}${ctimerstyle}-style" >&6
23685 fi
23686
23687
23688 if test x"$rad_enable_largefiles" = xyes ; then
23689     echo "$as_me:$LINENO: checking for largefile linkage" >&5
23690 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23691     case "$host" in
23692     *-aix4.01*)
23693         echo "$as_me:$LINENO: result: no" >&5
23694 echo "${ECHO_T}no" >&6
23695         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23696 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23697    { (exit 1); exit 1; }; }
23698         ;;
23699     *-aix4*)
23700         echo "$as_me:$LINENO: result: ok" >&5
23701 echo "${ECHO_T}ok" >&6
23702         LFS_CFLAGS="-D_LARGE_FILES"
23703         LFS_LDFLAGS=""
23704         LFS_LIBS=""
23705         ;;
23706     *-hpux*)
23707         echo "$as_me:$LINENO: result: ok" >&5
23708 echo "${ECHO_T}ok" >&6
23709         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23710         LFS_LDFLAGS=""
23711         LFS_LIBS=""
23712         ;;
23713     *-irix*)
23714         echo "$as_me:$LINENO: result: no" >&5
23715 echo "${ECHO_T}no" >&6
23716         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23717 echo "$as_me: error: Large files not supported on this platform" >&2;}
23718    { (exit 1); exit 1; }; }
23719         ;;
23720     *-linux*)
23721         echo "$as_me:$LINENO: result: maybe" >&5
23722 echo "${ECHO_T}maybe" >&6
23723         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23724         LFS_LDFLAGS=""
23725         LFS_LIBS=""
23726
23727 cat >>confdefs.h <<\_ACEOF
23728 #define _GNU_SOURCE 1
23729 _ACEOF
23730
23731         ;;
23732     *-solaris*)
23733         echo "$as_me:$LINENO: result: ok" >&5
23734 echo "${ECHO_T}ok" >&6
23735         # Extract the first word of "getconf", so it can be a program name with args.
23736 set dummy getconf; ac_word=$2
23737 echo "$as_me:$LINENO: checking for $ac_word" >&5
23738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23739 if test "${ac_cv_path_GETCONF+set}" = set; then
23740   echo $ECHO_N "(cached) $ECHO_C" >&6
23741 else
23742   case $GETCONF in
23743   [\\/]* | ?:[\\/]*)
23744   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23745   ;;
23746   *)
23747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23748 for as_dir in $PATH
23749 do
23750   IFS=$as_save_IFS
23751   test -z "$as_dir" && as_dir=.
23752   for ac_exec_ext in '' $ac_executable_extensions; do
23753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23754     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23756     break 2
23757   fi
23758 done
23759 done
23760
23761   ;;
23762 esac
23763 fi
23764 GETCONF=$ac_cv_path_GETCONF
23765
23766 if test -n "$GETCONF"; then
23767   echo "$as_me:$LINENO: result: $GETCONF" >&5
23768 echo "${ECHO_T}$GETCONF" >&6
23769 else
23770   echo "$as_me:$LINENO: result: no" >&5
23771 echo "${ECHO_T}no" >&6
23772 fi
23773
23774         if test -z "$GETCONF" ; then
23775             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23776 echo "$as_me: error: getconf required to configure large file support" >&2;}
23777    { (exit 1); exit 1; }; }
23778         fi
23779         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23780         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23781         LFS_LIBS=`$GETCONF LFS_LIBS`
23782         ;;
23783     *)
23784         echo "$as_me:$LINENO: result: maybe" >&5
23785 echo "${ECHO_T}maybe" >&6
23786         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23787         LFS_LDFLAGS=""
23788         LFS_LIBS=""
23789         ;;
23790     esac
23791
23792
23793
23794 fi
23795
23796 HOSTINFO=$host
23797
23798
23799
23800 top_builddir=`pwd`
23801 export top_builddir
23802 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23803 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23804
23805
23806
23807
23808
23809 mysubdirs=
23810 if test "x$EXPERIMENTAL" = "xyes"; then
23811   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23812     mysubdirs=`echo $bar`
23813 else
23814         for bar in `cat src/modules/stable`; do
23815     if test -f src/modules/$bar/configure; then
23816       mysubdirs="$mysubdirs src/modules/$bar"
23817     fi
23818   done
23819 fi
23820
23821 if test "x$EXPERIMENTAL" = "xyes"; then
23822   for foo in `ls -1 src/modules | grep rlm_`; do
23823     MODULES="$MODULES $foo"
23824   done
23825 else
23826             for foo in `cat src/modules/stable`; do
23827     MODULES="$MODULES $foo"
23828    done
23829 fi
23830
23831
23832
23833 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
23834
23835
23836
23837
23838
23839
23840
23841 USE_SHARED_LIBS=$enable_shared
23842
23843 USE_STATIC_LIBS=$enable_static
23844
23845
23846
23847
23848
23849 export CFLAGS LIBS
23850
23851                                                                                                                                             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"
23852 cat >confcache <<\_ACEOF
23853 # This file is a shell script that caches the results of configure
23854 # tests run on this system so they can be shared between configure
23855 # scripts and configure runs, see configure's option --config-cache.
23856 # It is not useful on other systems.  If it contains results you don't
23857 # want to keep, you may remove or edit it.
23858 #
23859 # config.status only pays attention to the cache file if you give it
23860 # the --recheck option to rerun configure.
23861 #
23862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23864 # following values.
23865
23866 _ACEOF
23867
23868 # The following way of writing the cache mishandles newlines in values,
23869 # but we know of no workaround that is simple, portable, and efficient.
23870 # So, don't put newlines in cache variables' values.
23871 # Ultrix sh set writes to stderr and can't be redirected directly,
23872 # and sets the high bit in the cache file unless we assign to the vars.
23873 {
23874   (set) 2>&1 |
23875     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23876     *ac_space=\ *)
23877       # `set' does not quote correctly, so add quotes (double-quote
23878       # substitution turns \\\\ into \\, and sed turns \\ into \).
23879       sed -n \
23880         "s/'/'\\\\''/g;
23881           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23882       ;;
23883     *)
23884       # `set' quotes correctly as required by POSIX, so do not add quotes.
23885       sed -n \
23886         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23887       ;;
23888     esac;
23889 } |
23890   sed '
23891      t clear
23892      : clear
23893      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23894      t end
23895      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23896      : end' >>confcache
23897 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23898   if test -w $cache_file; then
23899     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23900     cat confcache >$cache_file
23901   else
23902     echo "not updating unwritable cache $cache_file"
23903   fi
23904 fi
23905 rm -f confcache
23906
23907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23908 # Let make expand exec_prefix.
23909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23910
23911 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23912 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23913 # trailing colons and then remove the whole line if VPATH becomes empty
23914 # (actually we leave an empty line to preserve line numbers).
23915 if test "x$srcdir" = x.; then
23916   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23917 s/:*\$(srcdir):*/:/;
23918 s/:*\${srcdir}:*/:/;
23919 s/:*@srcdir@:*/:/;
23920 s/^\([^=]*=[     ]*\):*/\1/;
23921 s/:*$//;
23922 s/^[^=]*=[       ]*$//;
23923 }'
23924 fi
23925
23926 DEFS=-DHAVE_CONFIG_H
23927
23928 ac_libobjs=
23929 ac_ltlibobjs=
23930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23931   # 1. Remove the extension, and $U if already installed.
23932   ac_i=`echo "$ac_i" |
23933          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23934   # 2. Add them.
23935   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23936   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23937 done
23938 LIBOBJS=$ac_libobjs
23939
23940 LTLIBOBJS=$ac_ltlibobjs
23941
23942
23943
23944 : ${CONFIG_STATUS=./config.status}
23945 ac_clean_files_save=$ac_clean_files
23946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23947 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23948 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23949 cat >$CONFIG_STATUS <<_ACEOF
23950 #! $SHELL
23951 # Generated by $as_me.
23952 # Run this file to recreate the current configuration.
23953 # Compiler output produced by configure, useful for debugging
23954 # configure, is in config.log if it exists.
23955
23956 debug=false
23957 ac_cs_recheck=false
23958 ac_cs_silent=false
23959 SHELL=\${CONFIG_SHELL-$SHELL}
23960 _ACEOF
23961
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23963 ## --------------------- ##
23964 ## M4sh Initialization.  ##
23965 ## --------------------- ##
23966
23967 # Be Bourne compatible
23968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23969   emulate sh
23970   NULLCMD=:
23971   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23972   # is contrary to our usage.  Disable this feature.
23973   alias -g '${1+"$@"}'='"$@"'
23974 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23975   set -o posix
23976 fi
23977 DUALCASE=1; export DUALCASE # for MKS sh
23978
23979 # Support unset when possible.
23980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23981   as_unset=unset
23982 else
23983   as_unset=false
23984 fi
23985
23986
23987 # Work around bugs in pre-3.0 UWIN ksh.
23988 $as_unset ENV MAIL MAILPATH
23989 PS1='$ '
23990 PS2='> '
23991 PS4='+ '
23992
23993 # NLS nuisances.
23994 for as_var in \
23995   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23996   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23997   LC_TELEPHONE LC_TIME
23998 do
23999   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24000     eval $as_var=C; export $as_var
24001   else
24002     $as_unset $as_var
24003   fi
24004 done
24005
24006 # Required to use basename.
24007 if expr a : '\(a\)' >/dev/null 2>&1; then
24008   as_expr=expr
24009 else
24010   as_expr=false
24011 fi
24012
24013 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24014   as_basename=basename
24015 else
24016   as_basename=false
24017 fi
24018
24019
24020 # Name of the executable.
24021 as_me=`$as_basename "$0" ||
24022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24023          X"$0" : 'X\(//\)$' \| \
24024          X"$0" : 'X\(/\)$' \| \
24025          .     : '\(.\)' 2>/dev/null ||
24026 echo X/"$0" |
24027     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24028           /^X\/\(\/\/\)$/{ s//\1/; q; }
24029           /^X\/\(\/\).*/{ s//\1/; q; }
24030           s/.*/./; q'`
24031
24032
24033 # PATH needs CR, and LINENO needs CR and PATH.
24034 # Avoid depending upon Character Ranges.
24035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24038 as_cr_digits='0123456789'
24039 as_cr_alnum=$as_cr_Letters$as_cr_digits
24040
24041 # The user is always right.
24042 if test "${PATH_SEPARATOR+set}" != set; then
24043   echo "#! /bin/sh" >conf$$.sh
24044   echo  "exit 0"   >>conf$$.sh
24045   chmod +x conf$$.sh
24046   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24047     PATH_SEPARATOR=';'
24048   else
24049     PATH_SEPARATOR=:
24050   fi
24051   rm -f conf$$.sh
24052 fi
24053
24054
24055   as_lineno_1=$LINENO
24056   as_lineno_2=$LINENO
24057   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24058   test "x$as_lineno_1" != "x$as_lineno_2" &&
24059   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24060   # Find who we are.  Look in the path if we contain no path at all
24061   # relative or not.
24062   case $0 in
24063     *[\\/]* ) as_myself=$0 ;;
24064     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24065 for as_dir in $PATH
24066 do
24067   IFS=$as_save_IFS
24068   test -z "$as_dir" && as_dir=.
24069   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24070 done
24071
24072        ;;
24073   esac
24074   # We did not find ourselves, most probably we were run as `sh COMMAND'
24075   # in which case we are not to be found in the path.
24076   if test "x$as_myself" = x; then
24077     as_myself=$0
24078   fi
24079   if test ! -f "$as_myself"; then
24080     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24081 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24082    { (exit 1); exit 1; }; }
24083   fi
24084   case $CONFIG_SHELL in
24085   '')
24086     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24087 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24088 do
24089   IFS=$as_save_IFS
24090   test -z "$as_dir" && as_dir=.
24091   for as_base in sh bash ksh sh5; do
24092          case $as_dir in
24093          /*)
24094            if ("$as_dir/$as_base" -c '
24095   as_lineno_1=$LINENO
24096   as_lineno_2=$LINENO
24097   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24098   test "x$as_lineno_1" != "x$as_lineno_2" &&
24099   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24100              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24101              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24102              CONFIG_SHELL=$as_dir/$as_base
24103              export CONFIG_SHELL
24104              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24105            fi;;
24106          esac
24107        done
24108 done
24109 ;;
24110   esac
24111
24112   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24113   # uniformly replaced by the line number.  The first 'sed' inserts a
24114   # line-number line before each line; the second 'sed' does the real
24115   # work.  The second script uses 'N' to pair each line-number line
24116   # with the numbered line, and appends trailing '-' during
24117   # substitution so that $LINENO is not a special case at line end.
24118   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24119   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24120   sed '=' <$as_myself |
24121     sed '
24122       N
24123       s,$,-,
24124       : loop
24125       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24126       t loop
24127       s,-$,,
24128       s,^['$as_cr_digits']*\n,,
24129     ' >$as_me.lineno &&
24130   chmod +x $as_me.lineno ||
24131     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24132 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24133    { (exit 1); exit 1; }; }
24134
24135   # Don't try to exec as it changes $[0], causing all sort of problems
24136   # (the dirname of $[0] is not the place where we might find the
24137   # original and so on.  Autoconf is especially sensible to this).
24138   . ./$as_me.lineno
24139   # Exit status is that of the last command.
24140   exit
24141 }
24142
24143
24144 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24145   *c*,-n*) ECHO_N= ECHO_C='
24146 ' ECHO_T='      ' ;;
24147   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24148   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24149 esac
24150
24151 if expr a : '\(a\)' >/dev/null 2>&1; then
24152   as_expr=expr
24153 else
24154   as_expr=false
24155 fi
24156
24157 rm -f conf$$ conf$$.exe conf$$.file
24158 echo >conf$$.file
24159 if ln -s conf$$.file conf$$ 2>/dev/null; then
24160   # We could just check for DJGPP; but this test a) works b) is more generic
24161   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24162   if test -f conf$$.exe; then
24163     # Don't use ln at all; we don't have any links
24164     as_ln_s='cp -p'
24165   else
24166     as_ln_s='ln -s'
24167   fi
24168 elif ln conf$$.file conf$$ 2>/dev/null; then
24169   as_ln_s=ln
24170 else
24171   as_ln_s='cp -p'
24172 fi
24173 rm -f conf$$ conf$$.exe conf$$.file
24174
24175 if mkdir -p . 2>/dev/null; then
24176   as_mkdir_p=:
24177 else
24178   test -d ./-p && rmdir ./-p
24179   as_mkdir_p=false
24180 fi
24181
24182 as_executable_p="test -f"
24183
24184 # Sed expression to map a string onto a valid CPP name.
24185 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24186
24187 # Sed expression to map a string onto a valid variable name.
24188 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24189
24190
24191 # IFS
24192 # We need space, tab and new line, in precisely that order.
24193 as_nl='
24194 '
24195 IFS="   $as_nl"
24196
24197 # CDPATH.
24198 $as_unset CDPATH
24199
24200 exec 6>&1
24201
24202 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24203 # report actual input values of CONFIG_FILES etc. instead of their
24204 # values after options handling.  Logging --version etc. is OK.
24205 exec 5>>config.log
24206 {
24207   echo
24208   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24209 ## Running $as_me. ##
24210 _ASBOX
24211 } >&5
24212 cat >&5 <<_CSEOF
24213
24214 This file was extended by $as_me, which was
24215 generated by GNU Autoconf 2.59.  Invocation command line was
24216
24217   CONFIG_FILES    = $CONFIG_FILES
24218   CONFIG_HEADERS  = $CONFIG_HEADERS
24219   CONFIG_LINKS    = $CONFIG_LINKS
24220   CONFIG_COMMANDS = $CONFIG_COMMANDS
24221   $ $0 $@
24222
24223 _CSEOF
24224 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24225 echo >&5
24226 _ACEOF
24227
24228 # Files that config.status was made for.
24229 if test -n "$ac_config_files"; then
24230   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24231 fi
24232
24233 if test -n "$ac_config_headers"; then
24234   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24235 fi
24236
24237 if test -n "$ac_config_links"; then
24238   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24239 fi
24240
24241 if test -n "$ac_config_commands"; then
24242   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24243 fi
24244
24245 cat >>$CONFIG_STATUS <<\_ACEOF
24246
24247 ac_cs_usage="\
24248 \`$as_me' instantiates files from templates according to the
24249 current configuration.
24250
24251 Usage: $0 [OPTIONS] [FILE]...
24252
24253   -h, --help       print this help, then exit
24254   -V, --version    print version number, then exit
24255   -q, --quiet      do not print progress messages
24256   -d, --debug      don't remove temporary files
24257       --recheck    update $as_me by reconfiguring in the same conditions
24258   --file=FILE[:TEMPLATE]
24259                    instantiate the configuration file FILE
24260   --header=FILE[:TEMPLATE]
24261                    instantiate the configuration header FILE
24262
24263 Configuration files:
24264 $config_files
24265
24266 Configuration headers:
24267 $config_headers
24268
24269 Report bugs to <bug-autoconf@gnu.org>."
24270 _ACEOF
24271
24272 cat >>$CONFIG_STATUS <<_ACEOF
24273 ac_cs_version="\\
24274 config.status
24275 configured by $0, generated by GNU Autoconf 2.59,
24276   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24277
24278 Copyright (C) 2003 Free Software Foundation, Inc.
24279 This config.status script is free software; the Free Software Foundation
24280 gives unlimited permission to copy, distribute and modify it."
24281 srcdir=$srcdir
24282 _ACEOF
24283
24284 cat >>$CONFIG_STATUS <<\_ACEOF
24285 # If no file are specified by the user, then we need to provide default
24286 # value.  By we need to know if files were specified by the user.
24287 ac_need_defaults=:
24288 while test $# != 0
24289 do
24290   case $1 in
24291   --*=*)
24292     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24293     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24294     ac_shift=:
24295     ;;
24296   -*)
24297     ac_option=$1
24298     ac_optarg=$2
24299     ac_shift=shift
24300     ;;
24301   *) # This is not an option, so the user has probably given explicit
24302      # arguments.
24303      ac_option=$1
24304      ac_need_defaults=false;;
24305   esac
24306
24307   case $ac_option in
24308   # Handling of the options.
24309 _ACEOF
24310 cat >>$CONFIG_STATUS <<\_ACEOF
24311   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24312     ac_cs_recheck=: ;;
24313   --version | --vers* | -V )
24314     echo "$ac_cs_version"; exit 0 ;;
24315   --he | --h)
24316     # Conflict between --help and --header
24317     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24318 Try \`$0 --help' for more information." >&5
24319 echo "$as_me: error: ambiguous option: $1
24320 Try \`$0 --help' for more information." >&2;}
24321    { (exit 1); exit 1; }; };;
24322   --help | --hel | -h )
24323     echo "$ac_cs_usage"; exit 0 ;;
24324   --debug | --d* | -d )
24325     debug=: ;;
24326   --file | --fil | --fi | --f )
24327     $ac_shift
24328     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24329     ac_need_defaults=false;;
24330   --header | --heade | --head | --hea )
24331     $ac_shift
24332     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24333     ac_need_defaults=false;;
24334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24335   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24336     ac_cs_silent=: ;;
24337
24338   # This is an error.
24339   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24340 Try \`$0 --help' for more information." >&5
24341 echo "$as_me: error: unrecognized option: $1
24342 Try \`$0 --help' for more information." >&2;}
24343    { (exit 1); exit 1; }; } ;;
24344
24345   *) ac_config_targets="$ac_config_targets $1" ;;
24346
24347   esac
24348   shift
24349 done
24350
24351 ac_configure_extra_args=
24352
24353 if $ac_cs_silent; then
24354   exec 6>/dev/null
24355   ac_configure_extra_args="$ac_configure_extra_args --silent"
24356 fi
24357
24358 _ACEOF
24359 cat >>$CONFIG_STATUS <<_ACEOF
24360 if \$ac_cs_recheck; then
24361   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24362   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24363 fi
24364
24365 _ACEOF
24366
24367
24368
24369
24370
24371 cat >>$CONFIG_STATUS <<\_ACEOF
24372 for ac_config_target in $ac_config_targets
24373 do
24374   case "$ac_config_target" in
24375   # Handling of arguments.
24376   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24377   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24378   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24379   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24380   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24381   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24382   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24383   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24384   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24385   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24386   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24387   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24388   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24389   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24390   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24391   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24392 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24393    { (exit 1); exit 1; }; };;
24394   esac
24395 done
24396
24397 # If the user did not use the arguments to specify the items to instantiate,
24398 # then the envvar interface is used.  Set only those that are not.
24399 # We use the long form for the default assignment because of an extremely
24400 # bizarre bug on SunOS 4.1.3.
24401 if $ac_need_defaults; then
24402   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24403   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24404 fi
24405
24406 # Have a temporary directory for convenience.  Make it in the build tree
24407 # simply because there is no reason to put it here, and in addition,
24408 # creating and moving files from /tmp can sometimes cause problems.
24409 # Create a temporary directory, and hook for its removal unless debugging.
24410 $debug ||
24411 {
24412   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24413   trap '{ (exit 1); exit 1; }' 1 2 13 15
24414 }
24415
24416 # Create a (secure) tmp directory for tmp files.
24417
24418 {
24419   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24420   test -n "$tmp" && test -d "$tmp"
24421 }  ||
24422 {
24423   tmp=./confstat$$-$RANDOM
24424   (umask 077 && mkdir $tmp)
24425 } ||
24426 {
24427    echo "$me: cannot create a temporary directory in ." >&2
24428    { (exit 1); exit 1; }
24429 }
24430
24431 _ACEOF
24432
24433 cat >>$CONFIG_STATUS <<_ACEOF
24434
24435 #
24436 # CONFIG_FILES section.
24437 #
24438
24439 # No need to generate the scripts if there are no CONFIG_FILES.
24440 # This happens for instance when ./config.status config.h
24441 if test -n "\$CONFIG_FILES"; then
24442   # Protect against being on the right side of a sed subst in config.status.
24443   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24444    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24445 s,@SHELL@,$SHELL,;t t
24446 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24447 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24448 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24449 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24450 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24451 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24452 s,@exec_prefix@,$exec_prefix,;t t
24453 s,@prefix@,$prefix,;t t
24454 s,@program_transform_name@,$program_transform_name,;t t
24455 s,@bindir@,$bindir,;t t
24456 s,@sbindir@,$sbindir,;t t
24457 s,@libexecdir@,$libexecdir,;t t
24458 s,@datadir@,$datadir,;t t
24459 s,@sysconfdir@,$sysconfdir,;t t
24460 s,@sharedstatedir@,$sharedstatedir,;t t
24461 s,@localstatedir@,$localstatedir,;t t
24462 s,@libdir@,$libdir,;t t
24463 s,@includedir@,$includedir,;t t
24464 s,@oldincludedir@,$oldincludedir,;t t
24465 s,@infodir@,$infodir,;t t
24466 s,@mandir@,$mandir,;t t
24467 s,@build_alias@,$build_alias,;t t
24468 s,@host_alias@,$host_alias,;t t
24469 s,@target_alias@,$target_alias,;t t
24470 s,@DEFS@,$DEFS,;t t
24471 s,@ECHO_C@,$ECHO_C,;t t
24472 s,@ECHO_N@,$ECHO_N,;t t
24473 s,@ECHO_T@,$ECHO_T,;t t
24474 s,@LIBS@,$LIBS,;t t
24475 s,@CC@,$CC,;t t
24476 s,@CFLAGS@,$CFLAGS,;t t
24477 s,@LDFLAGS@,$LDFLAGS,;t t
24478 s,@CPPFLAGS@,$CPPFLAGS,;t t
24479 s,@ac_ct_CC@,$ac_ct_CC,;t t
24480 s,@EXEEXT@,$EXEEXT,;t t
24481 s,@OBJEXT@,$OBJEXT,;t t
24482 s,@CPP@,$CPP,;t t
24483 s,@EGREP@,$EGREP,;t t
24484 s,@RANLIB@,$RANLIB,;t t
24485 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24486 s,@abs_top_builddir@,$abs_top_builddir,;t t
24487 s,@GMAKE@,$GMAKE,;t t
24488 s,@MAKE@,$MAKE,;t t
24489 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
24490 s,@LIBTOOL@,$LIBTOOL,;t t
24491 s,@build@,$build,;t t
24492 s,@build_cpu@,$build_cpu,;t t
24493 s,@build_vendor@,$build_vendor,;t t
24494 s,@build_os@,$build_os,;t t
24495 s,@host@,$host,;t t
24496 s,@host_cpu@,$host_cpu,;t t
24497 s,@host_vendor@,$host_vendor,;t t
24498 s,@host_os@,$host_os,;t t
24499 s,@LN_S@,$LN_S,;t t
24500 s,@ECHO@,$ECHO,;t t
24501 s,@AR@,$AR,;t t
24502 s,@ac_ct_AR@,$ac_ct_AR,;t t
24503 s,@STRIP@,$STRIP,;t t
24504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24505 s,@CXX@,$CXX,;t t
24506 s,@CXXFLAGS@,$CXXFLAGS,;t t
24507 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24508 s,@CXXCPP@,$CXXCPP,;t t
24509 s,@F77@,$F77,;t t
24510 s,@FFLAGS@,$FFLAGS,;t t
24511 s,@ac_ct_F77@,$ac_ct_F77,;t t
24512 s,@logdir@,$logdir,;t t
24513 s,@radacctdir@,$radacctdir,;t t
24514 s,@raddbdir@,$raddbdir,;t t
24515 s,@PERL@,$PERL,;t t
24516 s,@SNMPGET@,$SNMPGET,;t t
24517 s,@SNMPWALK@,$SNMPWALK,;t t
24518 s,@RUSERS@,$RUSERS,;t t
24519 s,@ACLOCAL@,$ACLOCAL,;t t
24520 s,@AUTOCONF@,$AUTOCONF,;t t
24521 s,@AUTOHEADER@,$AUTOHEADER,;t t
24522 s,@LOCATE@,$LOCATE,;t t
24523 s,@DIRNAME@,$DIRNAME,;t t
24524 s,@GREP@,$GREP,;t t
24525 s,@REGEX@,$REGEX,;t t
24526 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24527 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24528 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24529 s,@LIBPREFIX@,$LIBPREFIX,;t t
24530 s,@CRYPTLIB@,$CRYPTLIB,;t t
24531 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24532 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24533 s,@GETCONF@,$GETCONF,;t t
24534 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24535 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24536 s,@LFS_LIBS@,$LFS_LIBS,;t t
24537 s,@HOSTINFO@,$HOSTINFO,;t t
24538 s,@LIBLTDL@,$LIBLTDL,;t t
24539 s,@INCLTDL@,$INCLTDL,;t t
24540 s,@subdirs@,$subdirs,;t t
24541 s,@MODULES@,$MODULES,;t t
24542 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24543 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24544 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24545 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24546 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24547 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24548 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24549 s,@LIBOBJS@,$LIBOBJS,;t t
24550 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24551 CEOF
24552
24553 _ACEOF
24554
24555   cat >>$CONFIG_STATUS <<\_ACEOF
24556   # Split the substitutions into bite-sized pieces for seds with
24557   # small command number limits, like on Digital OSF/1 and HP-UX.
24558   ac_max_sed_lines=48
24559   ac_sed_frag=1 # Number of current file.
24560   ac_beg=1 # First line for current file.
24561   ac_end=$ac_max_sed_lines # Line after last line for current file.
24562   ac_more_lines=:
24563   ac_sed_cmds=
24564   while $ac_more_lines; do
24565     if test $ac_beg -gt 1; then
24566       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24567     else
24568       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24569     fi
24570     if test ! -s $tmp/subs.frag; then
24571       ac_more_lines=false
24572     else
24573       # The purpose of the label and of the branching condition is to
24574       # speed up the sed processing (if there are no `@' at all, there
24575       # is no need to browse any of the substitutions).
24576       # These are the two extra sed commands mentioned above.
24577       (echo ':t
24578   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24579       if test -z "$ac_sed_cmds"; then
24580         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24581       else
24582         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24583       fi
24584       ac_sed_frag=`expr $ac_sed_frag + 1`
24585       ac_beg=$ac_end
24586       ac_end=`expr $ac_end + $ac_max_sed_lines`
24587     fi
24588   done
24589   if test -z "$ac_sed_cmds"; then
24590     ac_sed_cmds=cat
24591   fi
24592 fi # test -n "$CONFIG_FILES"
24593
24594 _ACEOF
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24597   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24598   case $ac_file in
24599   - | *:- | *:-:* ) # input from stdin
24600         cat >$tmp/stdin
24601         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24602         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24603   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24604         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24605   * )   ac_file_in=$ac_file.in ;;
24606   esac
24607
24608   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24609   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24611          X"$ac_file" : 'X\(//\)[^/]' \| \
24612          X"$ac_file" : 'X\(//\)$' \| \
24613          X"$ac_file" : 'X\(/\)' \| \
24614          .     : '\(.\)' 2>/dev/null ||
24615 echo X"$ac_file" |
24616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24617           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24618           /^X\(\/\/\)$/{ s//\1/; q; }
24619           /^X\(\/\).*/{ s//\1/; q; }
24620           s/.*/./; q'`
24621   { if $as_mkdir_p; then
24622     mkdir -p "$ac_dir"
24623   else
24624     as_dir="$ac_dir"
24625     as_dirs=
24626     while test ! -d "$as_dir"; do
24627       as_dirs="$as_dir $as_dirs"
24628       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24630          X"$as_dir" : 'X\(//\)[^/]' \| \
24631          X"$as_dir" : 'X\(//\)$' \| \
24632          X"$as_dir" : 'X\(/\)' \| \
24633          .     : '\(.\)' 2>/dev/null ||
24634 echo X"$as_dir" |
24635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24636           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24637           /^X\(\/\/\)$/{ s//\1/; q; }
24638           /^X\(\/\).*/{ s//\1/; q; }
24639           s/.*/./; q'`
24640     done
24641     test ! -n "$as_dirs" || mkdir $as_dirs
24642   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24644    { (exit 1); exit 1; }; }; }
24645
24646   ac_builddir=.
24647
24648 if test "$ac_dir" != .; then
24649   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24650   # A "../" for each directory in $ac_dir_suffix.
24651   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24652 else
24653   ac_dir_suffix= ac_top_builddir=
24654 fi
24655
24656 case $srcdir in
24657   .)  # No --srcdir option.  We are building in place.
24658     ac_srcdir=.
24659     if test -z "$ac_top_builddir"; then
24660        ac_top_srcdir=.
24661     else
24662        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24663     fi ;;
24664   [\\/]* | ?:[\\/]* )  # Absolute path.
24665     ac_srcdir=$srcdir$ac_dir_suffix;
24666     ac_top_srcdir=$srcdir ;;
24667   *) # Relative path.
24668     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24669     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24670 esac
24671
24672 # Do not use `cd foo && pwd` to compute absolute paths, because
24673 # the directories may not exist.
24674 case `pwd` in
24675 .) ac_abs_builddir="$ac_dir";;
24676 *)
24677   case "$ac_dir" in
24678   .) ac_abs_builddir=`pwd`;;
24679   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24680   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24681   esac;;
24682 esac
24683 case $ac_abs_builddir in
24684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24685 *)
24686   case ${ac_top_builddir}. in
24687   .) ac_abs_top_builddir=$ac_abs_builddir;;
24688   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24689   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24690   esac;;
24691 esac
24692 case $ac_abs_builddir in
24693 .) ac_abs_srcdir=$ac_srcdir;;
24694 *)
24695   case $ac_srcdir in
24696   .) ac_abs_srcdir=$ac_abs_builddir;;
24697   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24698   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24699   esac;;
24700 esac
24701 case $ac_abs_builddir in
24702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24703 *)
24704   case $ac_top_srcdir in
24705   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24706   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24707   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24708   esac;;
24709 esac
24710
24711
24712
24713   if test x"$ac_file" != x-; then
24714     { echo "$as_me:$LINENO: creating $ac_file" >&5
24715 echo "$as_me: creating $ac_file" >&6;}
24716     rm -f "$ac_file"
24717   fi
24718   # Let's still pretend it is `configure' which instantiates (i.e., don't
24719   # use $as_me), people would be surprised to read:
24720   #    /* config.h.  Generated by config.status.  */
24721   if test x"$ac_file" = x-; then
24722     configure_input=
24723   else
24724     configure_input="$ac_file.  "
24725   fi
24726   configure_input=$configure_input"Generated from `echo $ac_file_in |
24727                                      sed 's,.*/,,'` by configure."
24728
24729   # First look for the input files in the build tree, otherwise in the
24730   # src tree.
24731   ac_file_inputs=`IFS=:
24732     for f in $ac_file_in; do
24733       case $f in
24734       -) echo $tmp/stdin ;;
24735       [\\/$]*)
24736          # Absolute (can't be DOS-style, as IFS=:)
24737          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24738 echo "$as_me: error: cannot find input file: $f" >&2;}
24739    { (exit 1); exit 1; }; }
24740          echo "$f";;
24741       *) # Relative
24742          if test -f "$f"; then
24743            # Build tree
24744            echo "$f"
24745          elif test -f "$srcdir/$f"; then
24746            # Source tree
24747            echo "$srcdir/$f"
24748          else
24749            # /dev/null tree
24750            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24751 echo "$as_me: error: cannot find input file: $f" >&2;}
24752    { (exit 1); exit 1; }; }
24753          fi;;
24754       esac
24755     done` || { (exit 1); exit 1; }
24756 _ACEOF
24757 cat >>$CONFIG_STATUS <<_ACEOF
24758   sed "$ac_vpsub
24759 $extrasub
24760 _ACEOF
24761 cat >>$CONFIG_STATUS <<\_ACEOF
24762 :t
24763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24764 s,@configure_input@,$configure_input,;t t
24765 s,@srcdir@,$ac_srcdir,;t t
24766 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24767 s,@top_srcdir@,$ac_top_srcdir,;t t
24768 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24769 s,@builddir@,$ac_builddir,;t t
24770 s,@abs_builddir@,$ac_abs_builddir,;t t
24771 s,@top_builddir@,$ac_top_builddir,;t t
24772 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24773 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24774   rm -f $tmp/stdin
24775   if test x"$ac_file" != x-; then
24776     mv $tmp/out $ac_file
24777   else
24778     cat $tmp/out
24779     rm -f $tmp/out
24780   fi
24781
24782 done
24783 _ACEOF
24784 cat >>$CONFIG_STATUS <<\_ACEOF
24785
24786 #
24787 # CONFIG_HEADER section.
24788 #
24789
24790 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24791 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24792 #
24793 # ac_d sets the value in "#define NAME VALUE" lines.
24794 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24795 ac_dB='[         ].*$,\1#\2'
24796 ac_dC=' '
24797 ac_dD=',;t'
24798 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24799 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24800 ac_uB='$,\1#\2define\3'
24801 ac_uC=' '
24802 ac_uD=',;t'
24803
24804 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24805   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24806   case $ac_file in
24807   - | *:- | *:-:* ) # input from stdin
24808         cat >$tmp/stdin
24809         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24810         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24811   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24812         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24813   * )   ac_file_in=$ac_file.in ;;
24814   esac
24815
24816   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24817 echo "$as_me: creating $ac_file" >&6;}
24818
24819   # First look for the input files in the build tree, otherwise in the
24820   # src tree.
24821   ac_file_inputs=`IFS=:
24822     for f in $ac_file_in; do
24823       case $f in
24824       -) echo $tmp/stdin ;;
24825       [\\/$]*)
24826          # Absolute (can't be DOS-style, as IFS=:)
24827          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24828 echo "$as_me: error: cannot find input file: $f" >&2;}
24829    { (exit 1); exit 1; }; }
24830          # Do quote $f, to prevent DOS paths from being IFS'd.
24831          echo "$f";;
24832       *) # Relative
24833          if test -f "$f"; then
24834            # Build tree
24835            echo "$f"
24836          elif test -f "$srcdir/$f"; then
24837            # Source tree
24838            echo "$srcdir/$f"
24839          else
24840            # /dev/null tree
24841            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24842 echo "$as_me: error: cannot find input file: $f" >&2;}
24843    { (exit 1); exit 1; }; }
24844          fi;;
24845       esac
24846     done` || { (exit 1); exit 1; }
24847   # Remove the trailing spaces.
24848   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24849
24850 _ACEOF
24851
24852 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24853 # `conftest.undefs', that substitutes the proper values into
24854 # config.h.in to produce config.h.  The first handles `#define'
24855 # templates, and the second `#undef' templates.
24856 # And first: Protect against being on the right side of a sed subst in
24857 # config.status.  Protect against being in an unquoted here document
24858 # in config.status.
24859 rm -f conftest.defines conftest.undefs
24860 # Using a here document instead of a string reduces the quoting nightmare.
24861 # Putting comments in sed scripts is not portable.
24862 #
24863 # `end' is used to avoid that the second main sed command (meant for
24864 # 0-ary CPP macros) applies to n-ary macro definitions.
24865 # See the Autoconf documentation for `clear'.
24866 cat >confdef2sed.sed <<\_ACEOF
24867 s/[\\&,]/\\&/g
24868 s,[\\$`],\\&,g
24869 t clear
24870 : clear
24871 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24872 t end
24873 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24874 : end
24875 _ACEOF
24876 # If some macros were called several times there might be several times
24877 # the same #defines, which is useless.  Nevertheless, we may not want to
24878 # sort them, since we want the *last* AC-DEFINE to be honored.
24879 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24880 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24881 rm -f confdef2sed.sed
24882
24883 # This sed command replaces #undef with comments.  This is necessary, for
24884 # example, in the case of _POSIX_SOURCE, which is predefined and required
24885 # on some systems where configure will not decide to define it.
24886 cat >>conftest.undefs <<\_ACEOF
24887 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24888 _ACEOF
24889
24890 # Break up conftest.defines because some shells have a limit on the size
24891 # of here documents, and old seds have small limits too (100 cmds).
24892 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24893 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24894 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24895 echo '  :' >>$CONFIG_STATUS
24896 rm -f conftest.tail
24897 while grep . conftest.defines >/dev/null
24898 do
24899   # Write a limited-size here document to $tmp/defines.sed.
24900   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24901   # Speed up: don't consider the non `#define' lines.
24902   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24903   # Work around the forget-to-reset-the-flag bug.
24904   echo 't clr' >>$CONFIG_STATUS
24905   echo ': clr' >>$CONFIG_STATUS
24906   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24907   echo 'CEOF
24908   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24909   rm -f $tmp/in
24910   mv $tmp/out $tmp/in
24911 ' >>$CONFIG_STATUS
24912   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24913   rm -f conftest.defines
24914   mv conftest.tail conftest.defines
24915 done
24916 rm -f conftest.defines
24917 echo '  fi # grep' >>$CONFIG_STATUS
24918 echo >>$CONFIG_STATUS
24919
24920 # Break up conftest.undefs because some shells have a limit on the size
24921 # of here documents, and old seds have small limits too (100 cmds).
24922 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24923 rm -f conftest.tail
24924 while grep . conftest.undefs >/dev/null
24925 do
24926   # Write a limited-size here document to $tmp/undefs.sed.
24927   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24928   # Speed up: don't consider the non `#undef'
24929   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24930   # Work around the forget-to-reset-the-flag bug.
24931   echo 't clr' >>$CONFIG_STATUS
24932   echo ': clr' >>$CONFIG_STATUS
24933   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24934   echo 'CEOF
24935   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24936   rm -f $tmp/in
24937   mv $tmp/out $tmp/in
24938 ' >>$CONFIG_STATUS
24939   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24940   rm -f conftest.undefs
24941   mv conftest.tail conftest.undefs
24942 done
24943 rm -f conftest.undefs
24944
24945 cat >>$CONFIG_STATUS <<\_ACEOF
24946   # Let's still pretend it is `configure' which instantiates (i.e., don't
24947   # use $as_me), people would be surprised to read:
24948   #    /* config.h.  Generated by config.status.  */
24949   if test x"$ac_file" = x-; then
24950     echo "/* Generated by configure.  */" >$tmp/config.h
24951   else
24952     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24953   fi
24954   cat $tmp/in >>$tmp/config.h
24955   rm -f $tmp/in
24956   if test x"$ac_file" != x-; then
24957     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24958       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24959 echo "$as_me: $ac_file is unchanged" >&6;}
24960     else
24961       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24963          X"$ac_file" : 'X\(//\)[^/]' \| \
24964          X"$ac_file" : 'X\(//\)$' \| \
24965          X"$ac_file" : 'X\(/\)' \| \
24966          .     : '\(.\)' 2>/dev/null ||
24967 echo X"$ac_file" |
24968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24970           /^X\(\/\/\)$/{ s//\1/; q; }
24971           /^X\(\/\).*/{ s//\1/; q; }
24972           s/.*/./; q'`
24973       { if $as_mkdir_p; then
24974     mkdir -p "$ac_dir"
24975   else
24976     as_dir="$ac_dir"
24977     as_dirs=
24978     while test ! -d "$as_dir"; do
24979       as_dirs="$as_dir $as_dirs"
24980       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24982          X"$as_dir" : 'X\(//\)[^/]' \| \
24983          X"$as_dir" : 'X\(//\)$' \| \
24984          X"$as_dir" : 'X\(/\)' \| \
24985          .     : '\(.\)' 2>/dev/null ||
24986 echo X"$as_dir" |
24987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24989           /^X\(\/\/\)$/{ s//\1/; q; }
24990           /^X\(\/\).*/{ s//\1/; q; }
24991           s/.*/./; q'`
24992     done
24993     test ! -n "$as_dirs" || mkdir $as_dirs
24994   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24996    { (exit 1); exit 1; }; }; }
24997
24998       rm -f $ac_file
24999       mv $tmp/config.h $ac_file
25000     fi
25001   else
25002     cat $tmp/config.h
25003     rm -f $tmp/config.h
25004   fi
25005 done
25006 _ACEOF
25007
25008 cat >>$CONFIG_STATUS <<\_ACEOF
25009
25010 { (exit 0); exit 0; }
25011 _ACEOF
25012 chmod +x $CONFIG_STATUS
25013 ac_clean_files=$ac_clean_files_save
25014
25015
25016 # configure is writing to config.log, and then calls config.status.
25017 # config.status does its own redirection, appending to config.log.
25018 # Unfortunately, on DOS this fails, as config.log is still kept open
25019 # by configure, so config.status won't be able to write to it; its
25020 # output is simply discarded.  So we exec the FD to /dev/null,
25021 # effectively closing config.log, so it can be properly (re)opened and
25022 # appended to by config.status.  When coming back to configure, we
25023 # need to make the FD available again.
25024 if test "$no_create" != yes; then
25025   ac_cs_success=:
25026   ac_config_status_args=
25027   test "$silent" = yes &&
25028     ac_config_status_args="$ac_config_status_args --quiet"
25029   exec 5>/dev/null
25030   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25031   exec 5>>config.log
25032   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25033   # would make configure fail if this is the last instruction.
25034   $ac_cs_success || { (exit 1); exit 1; }
25035 fi
25036
25037 #
25038 # CONFIG_SUBDIRS section.
25039 #
25040 if test "$no_recursion" != yes; then
25041
25042   # Remove --cache-file and --srcdir arguments so they do not pile up.
25043   ac_sub_configure_args=
25044   ac_prev=
25045   for ac_arg in $ac_configure_args; do
25046     if test -n "$ac_prev"; then
25047       ac_prev=
25048       continue
25049     fi
25050     case $ac_arg in
25051     -cache-file | --cache-file | --cache-fil | --cache-fi \
25052     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25053       ac_prev=cache_file ;;
25054     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25055     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25056     | --c=*)
25057       ;;
25058     --config-cache | -C)
25059       ;;
25060     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25061       ac_prev=srcdir ;;
25062     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25063       ;;
25064     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25065       ac_prev=prefix ;;
25066     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25067       ;;
25068     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25069     esac
25070   done
25071
25072   # Always prepend --prefix to ensure using the same prefix
25073   # in subdir configurations.
25074   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25075
25076   ac_popdir=`pwd`
25077   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25078
25079     # Do not complain, so a configure script can configure whichever
25080     # parts of a large source tree are present.
25081     test -d $srcdir/$ac_dir || continue
25082
25083     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25084 echo "$as_me: configuring in $ac_dir" >&6;}
25085     { if $as_mkdir_p; then
25086     mkdir -p "$ac_dir"
25087   else
25088     as_dir="$ac_dir"
25089     as_dirs=
25090     while test ! -d "$as_dir"; do
25091       as_dirs="$as_dir $as_dirs"
25092       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25094          X"$as_dir" : 'X\(//\)[^/]' \| \
25095          X"$as_dir" : 'X\(//\)$' \| \
25096          X"$as_dir" : 'X\(/\)' \| \
25097          .     : '\(.\)' 2>/dev/null ||
25098 echo X"$as_dir" |
25099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25100           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25101           /^X\(\/\/\)$/{ s//\1/; q; }
25102           /^X\(\/\).*/{ s//\1/; q; }
25103           s/.*/./; q'`
25104     done
25105     test ! -n "$as_dirs" || mkdir $as_dirs
25106   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25107 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25108    { (exit 1); exit 1; }; }; }
25109
25110     ac_builddir=.
25111
25112 if test "$ac_dir" != .; then
25113   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25114   # A "../" for each directory in $ac_dir_suffix.
25115   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25116 else
25117   ac_dir_suffix= ac_top_builddir=
25118 fi
25119
25120 case $srcdir in
25121   .)  # No --srcdir option.  We are building in place.
25122     ac_srcdir=.
25123     if test -z "$ac_top_builddir"; then
25124        ac_top_srcdir=.
25125     else
25126        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25127     fi ;;
25128   [\\/]* | ?:[\\/]* )  # Absolute path.
25129     ac_srcdir=$srcdir$ac_dir_suffix;
25130     ac_top_srcdir=$srcdir ;;
25131   *) # Relative path.
25132     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25133     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25134 esac
25135
25136 # Do not use `cd foo && pwd` to compute absolute paths, because
25137 # the directories may not exist.
25138 case `pwd` in
25139 .) ac_abs_builddir="$ac_dir";;
25140 *)
25141   case "$ac_dir" in
25142   .) ac_abs_builddir=`pwd`;;
25143   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25144   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25145   esac;;
25146 esac
25147 case $ac_abs_builddir in
25148 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25149 *)
25150   case ${ac_top_builddir}. in
25151   .) ac_abs_top_builddir=$ac_abs_builddir;;
25152   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25153   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25154   esac;;
25155 esac
25156 case $ac_abs_builddir in
25157 .) ac_abs_srcdir=$ac_srcdir;;
25158 *)
25159   case $ac_srcdir in
25160   .) ac_abs_srcdir=$ac_abs_builddir;;
25161   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25162   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25163   esac;;
25164 esac
25165 case $ac_abs_builddir in
25166 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25167 *)
25168   case $ac_top_srcdir in
25169   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25170   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25171   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25172   esac;;
25173 esac
25174
25175
25176     cd $ac_dir
25177
25178     # Check for guested configure; otherwise get Cygnus style configure.
25179     if test -f $ac_srcdir/configure.gnu; then
25180       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25181     elif test -f $ac_srcdir/configure; then
25182       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25183     elif test -f $ac_srcdir/configure.in; then
25184       ac_sub_configure=$ac_configure
25185     else
25186       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25188       ac_sub_configure=
25189     fi
25190
25191     # The recursion is here.
25192     if test -n "$ac_sub_configure"; then
25193       # Make the cache file name correct relative to the subdirectory.
25194       case $cache_file in
25195       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25196       *) # Relative path.
25197         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25198       esac
25199
25200       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25201 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25202       # The eval makes quoting arguments work.
25203       eval $ac_sub_configure $ac_sub_configure_args \
25204            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25205         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25206 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25207    { (exit 1); exit 1; }; }
25208     fi
25209
25210     cd $ac_popdir
25211   done
25212 fi
25213
25214
25215           ac_config_commands="$ac_config_commands default-1"
25216
25217           ac_config_commands="$ac_config_commands default-2"
25218
25219           ac_config_commands="$ac_config_commands default-3"
25220
25221           ac_config_commands="$ac_config_commands default-4"
25222