import from HEAD:
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.10 .
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 docdir 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-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1043   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1044   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1045   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1046   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1047   --with-threads          Use threads, if available.  (default=yes)
1048   --with-snmp             Compile in SNMP support. (default=yes)
1049   --with-large-files      Compile in large (2G+) file support. (default=no)
1050   --with-static-modules=QUOTED-MODULE-LIST
1051  --with-modules=QUOTED-MODULE-LIST
1052   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1053   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1054   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1055   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1056   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1057   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1058   --with-edir             Enable Novell eDirectory integration.  (default=no)
1059
1060 Some influential environment variables:
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064               nonstandard directory <lib dir>
1065   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066               headers in a nonstandard directory <include dir>
1067   CPP         C preprocessor
1068   CXX         C++ compiler command
1069   CXXFLAGS    C++ compiler flags
1070   CXXCPP      C++ preprocessor
1071   F77         Fortran 77 compiler command
1072   FFLAGS      Fortran 77 compiler flags
1073
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1076
1077 _ACEOF
1078 fi
1079
1080 if test "$ac_init_help" = "recursive"; then
1081   # If there are subdirs, report their specific --help.
1082   ac_popdir=`pwd`
1083   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084     test -d $ac_dir || continue
1085     ac_builddir=.
1086
1087 if test "$ac_dir" != .; then
1088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089   # A "../" for each directory in $ac_dir_suffix.
1090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 else
1092   ac_dir_suffix= ac_top_builddir=
1093 fi
1094
1095 case $srcdir in
1096   .)  # No --srcdir option.  We are building in place.
1097     ac_srcdir=.
1098     if test -z "$ac_top_builddir"; then
1099        ac_top_srcdir=.
1100     else
1101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102     fi ;;
1103   [\\/]* | ?:[\\/]* )  # Absolute path.
1104     ac_srcdir=$srcdir$ac_dir_suffix;
1105     ac_top_srcdir=$srcdir ;;
1106   *) # Relative path.
1107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 esac
1110
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1113 case `pwd` in
1114 .) ac_abs_builddir="$ac_dir";;
1115 *)
1116   case "$ac_dir" in
1117   .) ac_abs_builddir=`pwd`;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *)
1125   case ${ac_top_builddir}. in
1126   .) ac_abs_top_builddir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1133 *)
1134   case $ac_srcdir in
1135   .) ac_abs_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *)
1143   case $ac_top_srcdir in
1144   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147   esac;;
1148 esac
1149
1150     cd $ac_dir
1151     # Check for guested configure; otherwise get Cygnus style configure.
1152     if test -f $ac_srcdir/configure.gnu; then
1153       echo
1154       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1155     elif test -f $ac_srcdir/configure; then
1156       echo
1157       $SHELL $ac_srcdir/configure  --help=recursive
1158     elif test -f $ac_srcdir/configure.ac ||
1159            test -f $ac_srcdir/configure.in; then
1160       echo
1161       $ac_configure --help
1162     else
1163       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164     fi
1165     cd "$ac_popdir"
1166   done
1167 fi
1168
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1171   cat <<\_ACEOF
1172
1173 Copyright (C) 2003 Free Software Foundation, Inc.
1174 This configure script is free software; the Free Software Foundation
1175 gives unlimited permission to copy, distribute and modify it.
1176 _ACEOF
1177   exit 0
1178 fi
1179 exec 5>config.log
1180 cat >&5 <<_ACEOF
1181 This file contains any messages produced by compilers while
1182 running configure, to aid debugging if configure makes a mistake.
1183
1184 It was created by $as_me, which was
1185 generated by GNU Autoconf 2.59.  Invocation command line was
1186
1187   $ $0 $@
1188
1189 _ACEOF
1190 {
1191 cat <<_ASUNAME
1192 ## --------- ##
1193 ## Platform. ##
1194 ## --------- ##
1195
1196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201
1202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1203 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1204
1205 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1206 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1208 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1209 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1210 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1211 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1212
1213 _ASUNAME
1214
1215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 for as_dir in $PATH
1217 do
1218   IFS=$as_save_IFS
1219   test -z "$as_dir" && as_dir=.
1220   echo "PATH: $as_dir"
1221 done
1222
1223 } >&5
1224
1225 cat >&5 <<_ACEOF
1226
1227
1228 ## ----------- ##
1229 ## Core tests. ##
1230 ## ----------- ##
1231
1232 _ACEOF
1233
1234
1235 # Keep a trace of the command line.
1236 # Strip out --no-create and --no-recursion so they do not pile up.
1237 # Strip out --silent because we don't want to record it for future runs.
1238 # Also quote any args containing shell meta-characters.
1239 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_configure_args=
1241 ac_configure_args0=
1242 ac_configure_args1=
1243 ac_sep=
1244 ac_must_keep_next=false
1245 for ac_pass in 1 2
1246 do
1247   for ac_arg
1248   do
1249     case $ac_arg in
1250     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1251     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252     | -silent | --silent | --silen | --sile | --sil)
1253       continue ;;
1254     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256     esac
1257     case $ac_pass in
1258     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259     2)
1260       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1261       if test $ac_must_keep_next = true; then
1262         ac_must_keep_next=false # Got value, back to normal.
1263       else
1264         case $ac_arg in
1265           *=* | --config-cache | -C | -disable-* | --disable-* \
1266           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1267           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1268           | -with-* | --with-* | -without-* | --without-* | --x)
1269             case "$ac_configure_args0 " in
1270               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271             esac
1272             ;;
1273           -* ) ac_must_keep_next=true ;;
1274         esac
1275       fi
1276       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1277       # Get rid of the leading space.
1278       ac_sep=" "
1279       ;;
1280     esac
1281   done
1282 done
1283 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1284 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285
1286 # When interrupted or exit'd, cleanup temporary files, and complete
1287 # config.log.  We remove comments because anyway the quotes in there
1288 # would cause problems or look ugly.
1289 # WARNING: Be sure not to use single quotes in there, as some shells,
1290 # such as our DU 5.0 friend, will then `close' the trap.
1291 trap 'exit_status=$?
1292   # Save into config.log some information that might help in debugging.
1293   {
1294     echo
1295
1296     cat <<\_ASBOX
1297 ## ---------------- ##
1298 ## Cache variables. ##
1299 ## ---------------- ##
1300 _ASBOX
1301     echo
1302     # The following way of writing the cache mishandles newlines in values,
1303 {
1304   (set) 2>&1 |
1305     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306     *ac_space=\ *)
1307       sed -n \
1308         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1309           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310       ;;
1311     *)
1312       sed -n \
1313         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314       ;;
1315     esac;
1316 }
1317     echo
1318
1319     cat <<\_ASBOX
1320 ## ----------------- ##
1321 ## Output variables. ##
1322 ## ----------------- ##
1323 _ASBOX
1324     echo
1325     for ac_var in $ac_subst_vars
1326     do
1327       eval ac_val=$`echo $ac_var`
1328       echo "$ac_var='"'"'$ac_val'"'"'"
1329     done | sort
1330     echo
1331
1332     if test -n "$ac_subst_files"; then
1333       cat <<\_ASBOX
1334 ## ------------- ##
1335 ## Output files. ##
1336 ## ------------- ##
1337 _ASBOX
1338       echo
1339       for ac_var in $ac_subst_files
1340       do
1341         eval ac_val=$`echo $ac_var`
1342         echo "$ac_var='"'"'$ac_val'"'"'"
1343       done | sort
1344       echo
1345     fi
1346
1347     if test -s confdefs.h; then
1348       cat <<\_ASBOX
1349 ## ----------- ##
1350 ## confdefs.h. ##
1351 ## ----------- ##
1352 _ASBOX
1353       echo
1354       sed "/^$/d" confdefs.h | sort
1355       echo
1356     fi
1357     test "$ac_signal" != 0 &&
1358       echo "$as_me: caught signal $ac_signal"
1359     echo "$as_me: exit $exit_status"
1360   } >&5
1361   rm -f core *.core &&
1362   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363     exit $exit_status
1364      ' 0
1365 for ac_signal in 1 2 13 15; do
1366   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367 done
1368 ac_signal=0
1369
1370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1371 rm -rf conftest* confdefs.h
1372 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 echo >confdefs.h
1374
1375 # Predefined preprocessor variables.
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_NAME "$PACKAGE_NAME"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_STRING "$PACKAGE_STRING"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399 _ACEOF
1400
1401
1402 # Let the site file select an alternate cache file if it wants to.
1403 # Prefer explicitly selected file to automatically selected ones.
1404 if test -z "$CONFIG_SITE"; then
1405   if test "x$prefix" != xNONE; then
1406     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407   else
1408     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409   fi
1410 fi
1411 for ac_site_file in $CONFIG_SITE; do
1412   if test -r "$ac_site_file"; then
1413     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1414 echo "$as_me: loading site script $ac_site_file" >&6;}
1415     sed 's/^/| /' "$ac_site_file" >&5
1416     . "$ac_site_file"
1417   fi
1418 done
1419
1420 if test -r "$cache_file"; then
1421   # Some versions of bash will fail to source /dev/null (special
1422   # files actually), so we avoid doing that.
1423   if test -f "$cache_file"; then
1424     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1425 echo "$as_me: loading cache $cache_file" >&6;}
1426     case $cache_file in
1427       [\\/]* | ?:[\\/]* ) . $cache_file;;
1428       *)                      . ./$cache_file;;
1429     esac
1430   fi
1431 else
1432   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1433 echo "$as_me: creating cache $cache_file" >&6;}
1434   >$cache_file
1435 fi
1436
1437 # Check that the precious variables saved in the cache have kept the same
1438 # value.
1439 ac_cache_corrupted=false
1440 for ac_var in `(set) 2>&1 |
1441                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1442   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1443   eval ac_new_set=\$ac_env_${ac_var}_set
1444   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1445   eval ac_new_val="\$ac_env_${ac_var}_value"
1446   case $ac_old_set,$ac_new_set in
1447     set,)
1448       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1450       ac_cache_corrupted=: ;;
1451     ,set)
1452       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1454       ac_cache_corrupted=: ;;
1455     ,);;
1456     *)
1457       if test "x$ac_old_val" != "x$ac_new_val"; then
1458         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1461 echo "$as_me:   former value:  $ac_old_val" >&2;}
1462         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1463 echo "$as_me:   current value: $ac_new_val" >&2;}
1464         ac_cache_corrupted=:
1465       fi;;
1466   esac
1467   # Pass precious variables to config.status.
1468   if test "$ac_new_set" = set; then
1469     case $ac_new_val in
1470     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1472     *) ac_arg=$ac_var=$ac_new_val ;;
1473     esac
1474     case " $ac_configure_args " in
1475       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1476       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477     esac
1478   fi
1479 done
1480 if $ac_cache_corrupted; then
1481   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1482 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1483   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1484 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1485    { (exit 1); exit 1; }; }
1486 fi
1487
1488 ac_ext=c
1489 ac_cpp='$CPP $CPPFLAGS'
1490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1513
1514
1515
1516 RADIUSD_MAJOR_VERSION=1
1517 RADIUSD_MINOR_VERSION=1.3
1518 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1519
1520
1521 ac_ext=c
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 if test -n "$ac_tool_prefix"; then
1527   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532   echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534   if test -n "$CC"; then
1535   ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540   IFS=$as_save_IFS
1541   test -z "$as_dir" && as_dir=.
1542   for ac_exec_ext in '' $ac_executable_extensions; do
1543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547   fi
1548 done
1549 done
1550
1551 fi
1552 fi
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555   echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558   echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1561
1562 fi
1563 if test -z "$ac_cv_prog_CC"; then
1564   ac_ct_CC=$CC
1565   # Extract the first word of "gcc", so it can be a program name with args.
1566 set dummy gcc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   if test -n "$ac_ct_CC"; then
1573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   for ac_exec_ext in '' $ac_executable_extensions; do
1581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582     ac_cv_prog_ac_ct_CC="gcc"
1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584     break 2
1585   fi
1586 done
1587 done
1588
1589 fi
1590 fi
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1595 else
1596   echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 fi
1599
1600   CC=$ac_ct_CC
1601 else
1602   CC="$ac_cv_prog_CC"
1603 fi
1604
1605 if test -z "$CC"; then
1606   if test -n "$ac_tool_prefix"; then
1607   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   if test -n "$CC"; then
1615   ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620   IFS=$as_save_IFS
1621   test -z "$as_dir" && as_dir=.
1622   for ac_exec_ext in '' $ac_executable_extensions; do
1623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624     ac_cv_prog_CC="${ac_tool_prefix}cc"
1625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626     break 2
1627   fi
1628 done
1629 done
1630
1631 fi
1632 fi
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635   echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638   echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1640 fi
1641
1642 fi
1643 if test -z "$ac_cv_prog_CC"; then
1644   ac_ct_CC=$CC
1645   # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$ac_ct_CC"; then
1653   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_ac_ct_CC="cc"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1675 else
1676   echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680   CC=$ac_ct_CC
1681 else
1682   CC="$ac_cv_prog_CC"
1683 fi
1684
1685 fi
1686 if test -z "$CC"; then
1687   # Extract the first word of "cc", so it can be a program name with args.
1688 set dummy cc; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692   echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694   if test -n "$CC"; then
1695   ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697   ac_prog_rejected=no
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706        ac_prog_rejected=yes
1707        continue
1708      fi
1709     ac_cv_prog_CC="cc"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712   fi
1713 done
1714 done
1715
1716 if test $ac_prog_rejected = yes; then
1717   # We found a bogon in the path, so make sure we never use it.
1718   set dummy $ac_cv_prog_CC
1719   shift
1720   if test $# != 0; then
1721     # We chose a different compiler from the bogus one.
1722     # However, it has the same basename, so the bogon will be chosen
1723     # first if we set CC to just the basename; use the full file name.
1724     shift
1725     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1726   fi
1727 fi
1728 fi
1729 fi
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732   echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735   echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739 fi
1740 if test -z "$CC"; then
1741   if test -n "$ac_tool_prefix"; then
1742   for ac_prog in cl
1743   do
1744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749   echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751   if test -n "$CC"; then
1752   ac_cv_prog_CC="$CC" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757   IFS=$as_save_IFS
1758   test -z "$as_dir" && as_dir=.
1759   for ac_exec_ext in '' $ac_executable_extensions; do
1760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764   fi
1765 done
1766 done
1767
1768 fi
1769 fi
1770 CC=$ac_cv_prog_CC
1771 if test -n "$CC"; then
1772   echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 fi
1778
1779     test -n "$CC" && break
1780   done
1781 fi
1782 if test -z "$CC"; then
1783   ac_ct_CC=$CC
1784   for ac_prog in cl
1785 do
1786   # Extract the first word of "$ac_prog", so it can be a program name with args.
1787 set dummy $ac_prog; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   if test -n "$ac_ct_CC"; then
1794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799   IFS=$as_save_IFS
1800   test -z "$as_dir" && as_dir=.
1801   for ac_exec_ext in '' $ac_executable_extensions; do
1802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803     ac_cv_prog_ac_ct_CC="$ac_prog"
1804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805     break 2
1806   fi
1807 done
1808 done
1809
1810 fi
1811 fi
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1816 else
1817   echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1819 fi
1820
1821   test -n "$ac_ct_CC" && break
1822 done
1823
1824   CC=$ac_ct_CC
1825 fi
1826
1827 fi
1828
1829
1830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&2;}
1834    { (exit 1); exit 1; }; }
1835
1836 # Provide some information about the compiler.
1837 echo "$as_me:$LINENO:" \
1838      "checking for C compiler version" >&5
1839 ac_compiler=`set X $ac_compile; echo $2`
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841   (eval $ac_compiler --version </dev/null >&5) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846   (eval $ac_compiler -v </dev/null >&5) 2>&5
1847   ac_status=$?
1848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849   (exit $ac_status); }
1850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851   (eval $ac_compiler -V </dev/null >&5) 2>&5
1852   ac_status=$?
1853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854   (exit $ac_status); }
1855
1856 cat >conftest.$ac_ext <<_ACEOF
1857 /* confdefs.h.  */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h.  */
1862
1863 int
1864 main ()
1865 {
1866
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1875 # of exeext.
1876 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880   (eval $ac_link_default) 2>&5
1881   ac_status=$?
1882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883   (exit $ac_status); }; then
1884   # Find the output, starting from the most likely.  This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # resort.
1887
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 ac_cv_exeext=
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 do
1894   test -f "$ac_file" || continue
1895   case $ac_file in
1896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897         ;;
1898     conftest.$ac_ext )
1899         # This is the source file.
1900         ;;
1901     [ab].out )
1902         # We found the default executable, but exeext='' is most
1903         # certainly right.
1904         break;;
1905     *.* )
1906         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907         # FIXME: I believe we export ac_cv_exeext for Libtool,
1908         # but it would be cool to find out if it's true.  Does anybody
1909         # maintain Libtool? --akim.
1910         export ac_cv_exeext
1911         break;;
1912     * )
1913         break;;
1914   esac
1915 done
1916 else
1917   echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924    { (exit 77); exit 77; }; }
1925 fi
1926
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1930
1931 # Check the compiler produces executables we can run.  If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938   if { ac_try='./$ac_file'
1939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; }; then
1944     cross_compiling=no
1945   else
1946     if test "$cross_compiling" = maybe; then
1947         cross_compiling=yes
1948     else
1949         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956     fi
1957   fi
1958 fi
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run.  If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1970
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974   (eval $ac_link) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }; then
1978   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 # `rm'.
1982 for ac_file in conftest.exe conftest conftest.*; do
1983   test -f "$ac_file" || continue
1984   case $ac_file in
1985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987           export ac_cv_exeext
1988           break;;
1989     * ) break;;
1990   esac
1991 done
1992 else
1993   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2003
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2006 ac_exeext=$EXEEXT
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.$ac_ext <<_ACEOF
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; then
2033   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034   case $ac_file in
2035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037        break;;
2038   esac
2039 done
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2056 ac_objext=$OBJEXT
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   cat >conftest.$ac_ext <<_ACEOF
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072 #ifndef __GNUC__
2073        choke me
2074 #endif
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>conftest.er1
2083   ac_status=$?
2084   grep -v '^ *+' conftest.er1 >conftest.err
2085   rm -f conftest.er1
2086   cat conftest.err >&5
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); } &&
2089          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091   (eval $ac_try) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }; } &&
2095          { ac_try='test -s conftest.$ac_objext'
2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097   (eval $ac_try) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; }; then
2101   ac_compiler_gnu=yes
2102 else
2103   echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 ac_compiler_gnu=no
2107 fi
2108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2110
2111 fi
2112 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2114 GCC=`test $ac_compiler_gnu = yes && echo yes`
2115 ac_test_CFLAGS=${CFLAGS+set}
2116 ac_save_CFLAGS=$CFLAGS
2117 CFLAGS="-g"
2118 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_g+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>conftest.er1
2141   ac_status=$?
2142   grep -v '^ *+' conftest.er1 >conftest.err
2143   rm -f conftest.er1
2144   cat conftest.err >&5
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); } &&
2147          { ac_try='test -z "$ac_c_werror_flag"                   || 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"                   || test ! -s conftest.err'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; } &&
2269          { ac_try='test -s conftest.$ac_objext'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275   ac_cv_prog_cc_stdc=$ac_arg
2276 break
2277 else
2278   echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 fi
2282 rm -f conftest.err conftest.$ac_objext
2283 done
2284 rm -f conftest.$ac_ext conftest.$ac_objext
2285 CC=$ac_save_CC
2286
2287 fi
2288
2289 case "x$ac_cv_prog_cc_stdc" in
2290   x|xno)
2291     echo "$as_me:$LINENO: result: none needed" >&5
2292 echo "${ECHO_T}none needed" >&6 ;;
2293   *)
2294     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2296     CC="$CC $ac_cv_prog_cc_stdc" ;;
2297 esac
2298
2299 # Some people use a C++ compiler to compile C.  Since we use `exit',
2300 # in C++ we need to declare it.  In case someone uses the same compiler
2301 # for both compiling C and C++ we need to have the C++ compiler decide
2302 # the declaration of exit, since it's the most demanding environment.
2303 cat >conftest.$ac_ext <<_ACEOF
2304 #ifndef __cplusplus
2305   choke me
2306 #endif
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310   (eval $ac_compile) 2>conftest.er1
2311   ac_status=$?
2312   grep -v '^ *+' conftest.er1 >conftest.err
2313   rm -f conftest.er1
2314   cat conftest.err >&5
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); } &&
2317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; } &&
2323          { ac_try='test -s conftest.$ac_objext'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329   for ac_declaration in \
2330    '' \
2331    'extern "C" void std::exit (int) throw (); using std::exit;' \
2332    'extern "C" void std::exit (int); using std::exit;' \
2333    'extern "C" void exit (int) throw ();' \
2334    'extern "C" void exit (int);' \
2335    'void exit (int);'
2336 do
2337   cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343 $ac_declaration
2344 #include <stdlib.h>
2345 int
2346 main ()
2347 {
2348 exit (42);
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355   (eval $ac_compile) 2>conftest.er1
2356   ac_status=$?
2357   grep -v '^ *+' conftest.er1 >conftest.err
2358   rm -f conftest.er1
2359   cat conftest.err >&5
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); } &&
2362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364   (eval $ac_try) 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }; } &&
2368          { ac_try='test -s conftest.$ac_objext'
2369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370   (eval $ac_try) 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }; }; then
2374   :
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 continue
2380 fi
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382   cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388 $ac_declaration
2389 int
2390 main ()
2391 {
2392 exit (42);
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>conftest.er1
2400   ac_status=$?
2401   grep -v '^ *+' conftest.er1 >conftest.err
2402   rm -f conftest.er1
2403   cat conftest.err >&5
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); } &&
2406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408   (eval $ac_try) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; }; then
2418   break
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 done
2426 rm -f conftest*
2427 if test -n "$ac_declaration"; then
2428   echo '#ifdef __cplusplus' >>confdefs.h
2429   echo $ac_declaration      >>confdefs.h
2430   echo '#endif'             >>confdefs.h
2431 fi
2432
2433 else
2434   echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 fi
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2453 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2454 # On Suns, sometimes $CPP names a directory.
2455 if test -n "$CPP" && test -d "$CPP"; then
2456   CPP=
2457 fi
2458 if test -z "$CPP"; then
2459   if test "${ac_cv_prog_CPP+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462       # Double quotes because CPP needs to be expanded
2463     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2464     do
2465       ac_preproc_ok=false
2466 for ac_c_preproc_warn_flag in '' yes
2467 do
2468   # Use a header file that comes with gcc, so configuring glibc
2469   # with a fresh cross-compiler works.
2470   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471   # <limits.h> exists even on freestanding compilers.
2472   # On the NeXT, cc -E runs the code through the compiler's parser,
2473   # not just through cpp. "Syntax error" is here to catch this case.
2474   cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480 #ifdef __STDC__
2481 # include <limits.h>
2482 #else
2483 # include <assert.h>
2484 #endif
2485                      Syntax error
2486 _ACEOF
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489   ac_status=$?
2490   grep -v '^ *+' conftest.er1 >conftest.err
2491   rm -f conftest.er1
2492   cat conftest.err >&5
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } >/dev/null; then
2495   if test -s conftest.err; then
2496     ac_cpp_err=$ac_c_preproc_warn_flag
2497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2498   else
2499     ac_cpp_err=
2500   fi
2501 else
2502   ac_cpp_err=yes
2503 fi
2504 if test -z "$ac_cpp_err"; then
2505   :
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510   # Broken: fails on valid input.
2511 continue
2512 fi
2513 rm -f conftest.err conftest.$ac_ext
2514
2515   # OK, works on sane cases.  Now check whether non-existent headers
2516   # can be detected and how.
2517   cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523 #include <ac_nonexistent.h>
2524 _ACEOF
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527   ac_status=$?
2528   grep -v '^ *+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
2530   cat conftest.err >&5
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } >/dev/null; then
2533   if test -s conftest.err; then
2534     ac_cpp_err=$ac_c_preproc_warn_flag
2535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2536   else
2537     ac_cpp_err=
2538   fi
2539 else
2540   ac_cpp_err=yes
2541 fi
2542 if test -z "$ac_cpp_err"; then
2543   # Broken: success on invalid input.
2544 continue
2545 else
2546   echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549   # Passes both tests.
2550 ac_preproc_ok=:
2551 break
2552 fi
2553 rm -f conftest.err conftest.$ac_ext
2554
2555 done
2556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2557 rm -f conftest.err conftest.$ac_ext
2558 if $ac_preproc_ok; then
2559   break
2560 fi
2561
2562     done
2563     ac_cv_prog_CPP=$CPP
2564
2565 fi
2566   CPP=$ac_cv_prog_CPP
2567 else
2568   ac_cv_prog_CPP=$CPP
2569 fi
2570 echo "$as_me:$LINENO: result: $CPP" >&5
2571 echo "${ECHO_T}$CPP" >&6
2572 ac_preproc_ok=false
2573 for ac_c_preproc_warn_flag in '' yes
2574 do
2575   # Use a header file that comes with gcc, so configuring glibc
2576   # with a fresh cross-compiler works.
2577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2578   # <limits.h> exists even on freestanding compilers.
2579   # On the NeXT, cc -E runs the code through the compiler's parser,
2580   # not just through cpp. "Syntax error" is here to catch this case.
2581   cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587 #ifdef __STDC__
2588 # include <limits.h>
2589 #else
2590 # include <assert.h>
2591 #endif
2592                      Syntax error
2593 _ACEOF
2594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } >/dev/null; then
2602   if test -s conftest.err; then
2603     ac_cpp_err=$ac_c_preproc_warn_flag
2604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2605   else
2606     ac_cpp_err=
2607   fi
2608 else
2609   ac_cpp_err=yes
2610 fi
2611 if test -z "$ac_cpp_err"; then
2612   :
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617   # Broken: fails on valid input.
2618 continue
2619 fi
2620 rm -f conftest.err conftest.$ac_ext
2621
2622   # OK, works on sane cases.  Now check whether non-existent headers
2623   # can be detected and how.
2624   cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630 #include <ac_nonexistent.h>
2631 _ACEOF
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634   ac_status=$?
2635   grep -v '^ *+' conftest.er1 >conftest.err
2636   rm -f conftest.er1
2637   cat conftest.err >&5
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); } >/dev/null; then
2640   if test -s conftest.err; then
2641     ac_cpp_err=$ac_c_preproc_warn_flag
2642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2643   else
2644     ac_cpp_err=
2645   fi
2646 else
2647   ac_cpp_err=yes
2648 fi
2649 if test -z "$ac_cpp_err"; then
2650   # Broken: success on invalid input.
2651 continue
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656   # Passes both tests.
2657 ac_preproc_ok=:
2658 break
2659 fi
2660 rm -f conftest.err conftest.$ac_ext
2661
2662 done
2663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2664 rm -f conftest.err conftest.$ac_ext
2665 if $ac_preproc_ok; then
2666   :
2667 else
2668   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2671 See \`config.log' for more details." >&2;}
2672    { (exit 1); exit 1; }; }
2673 fi
2674
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681
2682 echo "$as_me:$LINENO: checking for egrep" >&5
2683 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2684 if test "${ac_cv_prog_egrep+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2688     then ac_cv_prog_egrep='grep -E'
2689     else ac_cv_prog_egrep='egrep'
2690     fi
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2693 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2694  EGREP=$ac_cv_prog_egrep
2695
2696
2697
2698 echo "$as_me:$LINENO: checking for AIX" >&5
2699 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 #ifdef _AIX
2707   yes
2708 #endif
2709
2710 _ACEOF
2711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2712   $EGREP "yes" >/dev/null 2>&1; then
2713   echo "$as_me:$LINENO: result: yes" >&5
2714 echo "${ECHO_T}yes" >&6
2715 cat >>confdefs.h <<\_ACEOF
2716 #define _ALL_SOURCE 1
2717 _ACEOF
2718
2719 else
2720   echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6
2722 fi
2723 rm -f conftest*
2724
2725
2726
2727 if test $ac_cv_c_compiler_gnu = yes; then
2728     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2729 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2730 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733     ac_pattern="Autoconf.*'x'"
2734   cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h.  */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h.  */
2740 #include <sgtty.h>
2741 Autoconf TIOCGETP
2742 _ACEOF
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2745   ac_cv_prog_gcc_traditional=yes
2746 else
2747   ac_cv_prog_gcc_traditional=no
2748 fi
2749 rm -f conftest*
2750
2751
2752   if test $ac_cv_prog_gcc_traditional = no; then
2753     cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 #include <termio.h>
2760 Autoconf TCGETA
2761 _ACEOF
2762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2763   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2764   ac_cv_prog_gcc_traditional=yes
2765 fi
2766 rm -f conftest*
2767
2768   fi
2769 fi
2770 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2771 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2772   if test $ac_cv_prog_gcc_traditional = yes; then
2773     CC="$CC -traditional"
2774   fi
2775 fi
2776
2777 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2778 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2779 if test "${ac_cv_prog_suncc+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   cat > conftest.c <<EOF
2783 #ifdef __SUNPRO_C
2784   yes;
2785 #endif
2786 EOF
2787 if { ac_try='${CC-cc} -E conftest.c'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2793   ac_cv_prog_suncc=yes
2794 else
2795   ac_cv_prog_suncc=no
2796 fi
2797 fi
2798 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2799 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2800 if test -n "$ac_tool_prefix"; then
2801   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2803 echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2805 if test "${ac_cv_prog_RANLIB+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   if test -n "$RANLIB"; then
2809   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816   for ac_exec_ext in '' $ac_executable_extensions; do
2817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823 done
2824
2825 fi
2826 fi
2827 RANLIB=$ac_cv_prog_RANLIB
2828 if test -n "$RANLIB"; then
2829   echo "$as_me:$LINENO: result: $RANLIB" >&5
2830 echo "${ECHO_T}$RANLIB" >&6
2831 else
2832   echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2834 fi
2835
2836 fi
2837 if test -z "$ac_cv_prog_RANLIB"; then
2838   ac_ct_RANLIB=$RANLIB
2839   # Extract the first word of "ranlib", so it can be a program name with args.
2840 set dummy ranlib; ac_word=$2
2841 echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   if test -n "$ac_ct_RANLIB"; then
2847   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856     ac_cv_prog_ac_ct_RANLIB="ranlib"
2857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862
2863   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2864 fi
2865 fi
2866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2867 if test -n "$ac_ct_RANLIB"; then
2868   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2869 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2870 else
2871   echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2873 fi
2874
2875   RANLIB=$ac_ct_RANLIB
2876 else
2877   RANLIB="$ac_cv_prog_RANLIB"
2878 fi
2879
2880
2881 abs_top_builddir=`pwd`
2882
2883
2884
2885 PACKAGE=freeradius
2886
2887 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2888 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2889 if test "${ac_cv_c_bigendian+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   # See if sys/param.h defines the BYTE_ORDER macro.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899 #include <sys/types.h>
2900 #include <sys/param.h>
2901
2902 int
2903 main ()
2904 {
2905 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2906  bogus endian macros
2907 #endif
2908
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915   (eval $ac_compile) 2>conftest.er1
2916   ac_status=$?
2917   grep -v '^ *+' conftest.er1 >conftest.err
2918   rm -f conftest.er1
2919   cat conftest.err >&5
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } &&
2922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; } &&
2928          { ac_try='test -s conftest.$ac_objext'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934   # It does; now see whether it defined to BIG_ENDIAN or not.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h.  */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h.  */
2941 #include <sys/types.h>
2942 #include <sys/param.h>
2943
2944 int
2945 main ()
2946 {
2947 #if BYTE_ORDER != BIG_ENDIAN
2948  not big endian
2949 #endif
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957   (eval $ac_compile) 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972   (eval $ac_try) 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; }; then
2976   ac_cv_c_bigendian=yes
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 ac_cv_c_bigendian=no
2982 fi
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 # It does not; compile a test program.
2989 if test "$cross_compiling" = yes; then
2990   # try to guess the endianness by grepping values into an object file
2991   ac_cv_c_bigendian=unknown
2992   cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2999 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3000 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3001 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3002 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3003 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3004 int
3005 main ()
3006 {
3007  _ascii (); _ebcdic ();
3008   ;
3009   return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014   (eval $ac_compile) 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023   (eval $ac_try) 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; } &&
3027          { ac_try='test -s conftest.$ac_objext'
3028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; }; then
3033   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3034   ac_cv_c_bigendian=yes
3035 fi
3036 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3037   if test "$ac_cv_c_bigendian" = unknown; then
3038     ac_cv_c_bigendian=no
3039   else
3040     # finding both strings is unlikely to happen, but who knows?
3041     ac_cv_c_bigendian=unknown
3042   fi
3043 fi
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 fi
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050 else
3051   cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057 int
3058 main ()
3059 {
3060   /* Are we little or big endian?  From Harbison&Steele.  */
3061   union
3062   {
3063     long l;
3064     char c[sizeof (long)];
3065   } u;
3066   u.l = 1;
3067   exit (u.c[sizeof (long) - 1] == 1);
3068 }
3069 _ACEOF
3070 rm -f conftest$ac_exeext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072   (eval $ac_link) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077   (eval $ac_try) 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }; }; then
3081   ac_cv_c_bigendian=no
3082 else
3083   echo "$as_me: program exited with status $ac_status" >&5
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 ( exit $ac_status )
3088 ac_cv_c_bigendian=yes
3089 fi
3090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3091 fi
3092 fi
3093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094 fi
3095 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3096 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3097 case $ac_cv_c_bigendian in
3098   yes)
3099
3100 cat >>confdefs.h <<\_ACEOF
3101 #define WORDS_BIGENDIAN 1
3102 _ACEOF
3103  ;;
3104   no)
3105      ;;
3106   *)
3107     { { echo "$as_me:$LINENO: error: unknown endianness
3108 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3109 echo "$as_me: error: unknown endianness
3110 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3111    { (exit 1); exit 1; }; } ;;
3112 esac
3113
3114
3115 # Extract the first word of "gmake", so it can be a program name with args.
3116 set dummy gmake; ac_word=$2
3117 echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119 if test "${ac_cv_prog_GMAKE+set}" = set; then
3120   echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122   if test -n "$GMAKE"; then
3123   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130   for ac_exec_ext in '' $ac_executable_extensions; do
3131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132     ac_cv_prog_GMAKE="yes"
3133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134     break 2
3135   fi
3136 done
3137 done
3138
3139   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3140 fi
3141 fi
3142 GMAKE=$ac_cv_prog_GMAKE
3143 if test -n "$GMAKE"; then
3144   echo "$as_me:$LINENO: result: $GMAKE" >&5
3145 echo "${ECHO_T}$GMAKE" >&6
3146 else
3147   echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149 fi
3150
3151 if test $GMAKE = no; then
3152   # Extract the first word of "make", so it can be a program name with args.
3153 set dummy make; ac_word=$2
3154 echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3156 if test "${ac_cv_path_MAKE+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   case $MAKE in
3160   [\\/]* | ?:[\\/]*)
3161   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3162   ;;
3163   *)
3164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169   for ac_exec_ext in '' $ac_executable_extensions; do
3170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176 done
3177
3178   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3179   ;;
3180 esac
3181 fi
3182 MAKE=$ac_cv_path_MAKE
3183
3184 if test -n "$MAKE"; then
3185   echo "$as_me:$LINENO: result: $MAKE" >&5
3186 echo "${ECHO_T}$MAKE" >&6
3187 else
3188   echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3190 fi
3191
3192 else
3193   # Extract the first word of "gmake", so it can be a program name with args.
3194 set dummy gmake; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_path_MAKE+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   case $MAKE in
3201   [\\/]* | ?:[\\/]*)
3202   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3203   ;;
3204   *)
3205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210   for ac_exec_ext in '' $ac_executable_extensions; do
3211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217 done
3218
3219   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3220   ;;
3221 esac
3222 fi
3223 MAKE=$ac_cv_path_MAKE
3224
3225 if test -n "$MAKE"; then
3226   echo "$as_me:$LINENO: result: $MAKE" >&5
3227 echo "${ECHO_T}$MAKE" >&6
3228 else
3229   echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3231 fi
3232
3233 fi
3234 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3235 if test -z "$makever"; then
3236   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3237                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3238 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3239                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3240    { (exit 1); exit 1; }; }
3241 fi
3242
3243   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3244 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3245 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   ac_check_lib_save_LIBS=$LIBS
3249 LIBS="-lltdl  $LIBS"
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256
3257 /* Override any gcc2 internal prototype to avoid an error.  */
3258 #ifdef __cplusplus
3259 extern "C"
3260 #endif
3261 /* We use char because int might match the return type of a gcc2
3262    builtin and then its argument prototype would still apply.  */
3263 char lt_dlinit ();
3264 int
3265 main ()
3266 {
3267 lt_dlinit ();
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext conftest$ac_exeext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3274   (eval $ac_link) 2>conftest.er1
3275   ac_status=$?
3276   grep -v '^ *+' conftest.er1 >conftest.err
3277   rm -f conftest.er1
3278   cat conftest.err >&5
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } &&
3281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283   (eval $ac_try) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; } &&
3287          { ac_try='test -s conftest$ac_exeext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_cv_lib_ltdl_lt_dlinit=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_lib_ltdl_lt_dlinit=no
3299 fi
3300 rm -f conftest.err conftest.$ac_objext \
3301       conftest$ac_exeext conftest.$ac_ext
3302 LIBS=$ac_check_lib_save_LIBS
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3305 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3306 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3307   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3308 else
3309   if test x"$enable_ltdl_install" = xno; then
3310      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3311 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3312    else
3313      enable_ltdl_install=yes
3314    fi
3315
3316 fi
3317
3318   if test x"$enable_ltdl_install" = x"yes"; then
3319     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3320     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3321     LTDLINCL='-I${top_srcdir}/''libltdl'
3322   else
3323     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3324     LIBLTDL="-lltdl"
3325     LTDLINCL=
3326   fi
3327   # For backwards non-gettext consistent compatibility...
3328   INCLTDL="$LTDLINCL"
3329
3330
3331 if test x"$enable_ltdl_install" = x"yes"; then
3332   LTDL_SUBDIRS=libltdl
3333 fi
3334
3335
3336 # Check whether --enable-shared or --disable-shared was given.
3337 if test "${enable_shared+set}" = set; then
3338   enableval="$enable_shared"
3339   p=${PACKAGE-default}
3340     case $enableval in
3341     yes) enable_shared=yes ;;
3342     no) enable_shared=no ;;
3343     *)
3344       enable_shared=no
3345       # Look at the argument we got.  We use all the common list separators.
3346       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3347       for pkg in $enableval; do
3348         IFS="$lt_save_ifs"
3349         if test "X$pkg" = "X$p"; then
3350           enable_shared=yes
3351         fi
3352       done
3353       IFS="$lt_save_ifs"
3354       ;;
3355     esac
3356 else
3357   enable_shared=yes
3358 fi;
3359
3360 # Check whether --enable-static or --disable-static was given.
3361 if test "${enable_static+set}" = set; then
3362   enableval="$enable_static"
3363   p=${PACKAGE-default}
3364     case $enableval in
3365     yes) enable_static=yes ;;
3366     no) enable_static=no ;;
3367     *)
3368      enable_static=no
3369       # Look at the argument we got.  We use all the common list separators.
3370       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3371       for pkg in $enableval; do
3372         IFS="$lt_save_ifs"
3373         if test "X$pkg" = "X$p"; then
3374           enable_static=yes
3375         fi
3376       done
3377       IFS="$lt_save_ifs"
3378       ;;
3379     esac
3380 else
3381   enable_static=yes
3382 fi;
3383
3384 # Check whether --enable-fast-install or --disable-fast-install was given.
3385 if test "${enable_fast_install+set}" = set; then
3386   enableval="$enable_fast_install"
3387   p=${PACKAGE-default}
3388     case $enableval in
3389     yes) enable_fast_install=yes ;;
3390     no) enable_fast_install=no ;;
3391     *)
3392       enable_fast_install=no
3393       # Look at the argument we got.  We use all the common list separators.
3394       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3395       for pkg in $enableval; do
3396         IFS="$lt_save_ifs"
3397         if test "X$pkg" = "X$p"; then
3398           enable_fast_install=yes
3399         fi
3400       done
3401       IFS="$lt_save_ifs"
3402       ;;
3403     esac
3404 else
3405   enable_fast_install=yes
3406 fi;
3407
3408 ac_aux_dir=
3409 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3410   if test -f $ac_dir/install-sh; then
3411     ac_aux_dir=$ac_dir
3412     ac_install_sh="$ac_aux_dir/install-sh -c"
3413     break
3414   elif test -f $ac_dir/install.sh; then
3415     ac_aux_dir=$ac_dir
3416     ac_install_sh="$ac_aux_dir/install.sh -c"
3417     break
3418   elif test -f $ac_dir/shtool; then
3419     ac_aux_dir=$ac_dir
3420     ac_install_sh="$ac_aux_dir/shtool install -c"
3421     break
3422   fi
3423 done
3424 if test -z "$ac_aux_dir"; then
3425   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3426 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3427    { (exit 1); exit 1; }; }
3428 fi
3429 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3430 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3431 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3432
3433 # Make sure we can run config.sub.
3434 $ac_config_sub sun4 >/dev/null 2>&1 ||
3435   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3436 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3437    { (exit 1); exit 1; }; }
3438
3439 echo "$as_me:$LINENO: checking build system type" >&5
3440 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3441 if test "${ac_cv_build+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   ac_cv_build_alias=$build_alias
3445 test -z "$ac_cv_build_alias" &&
3446   ac_cv_build_alias=`$ac_config_guess`
3447 test -z "$ac_cv_build_alias" &&
3448   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3449 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3450    { (exit 1); exit 1; }; }
3451 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3452   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3453 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3454    { (exit 1); exit 1; }; }
3455
3456 fi
3457 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3458 echo "${ECHO_T}$ac_cv_build" >&6
3459 build=$ac_cv_build
3460 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3461 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3462 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3463
3464
3465 echo "$as_me:$LINENO: checking host system type" >&5
3466 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3467 if test "${ac_cv_host+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   ac_cv_host_alias=$host_alias
3471 test -z "$ac_cv_host_alias" &&
3472   ac_cv_host_alias=$ac_cv_build_alias
3473 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3474   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3475 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3476    { (exit 1); exit 1; }; }
3477
3478 fi
3479 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3480 echo "${ECHO_T}$ac_cv_host" >&6
3481 host=$ac_cv_host
3482 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485
3486
3487 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3488 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3489 if test "${lt_cv_path_SED+set}" = set; then
3490   echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492   # Loop through the user's path and test for sed and gsed.
3493 # Then use that list of sed's as ones to test for truncation.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   test -z "$as_dir" && as_dir=.
3499   for lt_ac_prog in sed gsed; do
3500     for ac_exec_ext in '' $ac_executable_extensions; do
3501       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3502         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3503       fi
3504     done
3505   done
3506 done
3507 lt_ac_max=0
3508 lt_ac_count=0
3509 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3510 # along with /bin/sed that truncates output.
3511 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3512   test ! -f $lt_ac_sed && continue
3513   cat /dev/null > conftest.in
3514   lt_ac_count=0
3515   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3516   # Check for GNU sed and select it if it is found.
3517   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3518     lt_cv_path_SED=$lt_ac_sed
3519     break
3520   fi
3521   while true; do
3522     cat conftest.in conftest.in >conftest.tmp
3523     mv conftest.tmp conftest.in
3524     cp conftest.in conftest.nl
3525     echo >>conftest.nl
3526     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3527     cmp -s conftest.out conftest.nl || break
3528     # 10000 chars as input seems more than enough
3529     test $lt_ac_count -gt 10 && break
3530     lt_ac_count=`expr $lt_ac_count + 1`
3531     if test $lt_ac_count -gt $lt_ac_max; then
3532       lt_ac_max=$lt_ac_count
3533       lt_cv_path_SED=$lt_ac_sed
3534     fi
3535   done
3536 done
3537
3538 fi
3539
3540 SED=$lt_cv_path_SED
3541 echo "$as_me:$LINENO: result: $SED" >&5
3542 echo "${ECHO_T}$SED" >&6
3543
3544
3545 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3546 if test "${with_gnu_ld+set}" = set; then
3547   withval="$with_gnu_ld"
3548   test "$withval" = no || with_gnu_ld=yes
3549 else
3550   with_gnu_ld=no
3551 fi;
3552 ac_prog=ld
3553 if test "$GCC" = yes; then
3554   # Check if gcc -print-prog-name=ld gives a path.
3555   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3556 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3557   case $host in
3558   *-*-mingw*)
3559     # gcc leaves a trailing carriage return which upsets mingw
3560     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3561   *)
3562     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3563   esac
3564   case $ac_prog in
3565     # Accept absolute paths.
3566     [\\/]* | ?:[\\/]*)
3567       re_direlt='/[^/][^/]*/\.\./'
3568       # Canonicalize the pathname of ld
3569       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3570       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3571         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3572       done
3573       test -z "$LD" && LD="$ac_prog"
3574       ;;
3575   "")
3576     # If it fails, then pretend we aren't using GCC.
3577     ac_prog=ld
3578     ;;
3579   *)
3580     # If it is relative, then search for the first ld in PATH.
3581     with_gnu_ld=unknown
3582     ;;
3583   esac
3584 elif test "$with_gnu_ld" = yes; then
3585   echo "$as_me:$LINENO: checking for GNU ld" >&5
3586 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3587 else
3588   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3589 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3590 fi
3591 if test "${lt_cv_path_LD+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   if test -z "$LD"; then
3595   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3596   for ac_dir in $PATH; do
3597     IFS="$lt_save_ifs"
3598     test -z "$ac_dir" && ac_dir=.
3599     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3600       lt_cv_path_LD="$ac_dir/$ac_prog"
3601       # Check to see if the program is GNU ld.  I'd rather use --version,
3602       # but apparently some variants of GNU ld only accept -v.
3603       # Break only if it was the GNU/non-GNU ld that we prefer.
3604       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3605       *GNU* | *'with BFD'*)
3606         test "$with_gnu_ld" != no && break
3607         ;;
3608       *)
3609         test "$with_gnu_ld" != yes && break
3610         ;;
3611       esac
3612     fi
3613   done
3614   IFS="$lt_save_ifs"
3615 else
3616   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3617 fi
3618 fi
3619
3620 LD="$lt_cv_path_LD"
3621 if test -n "$LD"; then
3622   echo "$as_me:$LINENO: result: $LD" >&5
3623 echo "${ECHO_T}$LD" >&6
3624 else
3625   echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 fi
3628 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3629 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3630    { (exit 1); exit 1; }; }
3631 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3632 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3633 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3637 case `$LD -v 2>&1 </dev/null` in
3638 *GNU* | *'with BFD'*)
3639   lt_cv_prog_gnu_ld=yes
3640   ;;
3641 *)
3642   lt_cv_prog_gnu_ld=no
3643   ;;
3644 esac
3645 fi
3646 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3647 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3648 with_gnu_ld=$lt_cv_prog_gnu_ld
3649
3650
3651 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3652 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3653 if test "${lt_cv_ld_reload_flag+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   lt_cv_ld_reload_flag='-r'
3657 fi
3658 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3659 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3660 reload_flag=$lt_cv_ld_reload_flag
3661 case $reload_flag in
3662 "" | " "*) ;;
3663 *) reload_flag=" $reload_flag" ;;
3664 esac
3665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3666 case $host_os in
3667   darwin*)
3668     if test "$GCC" = yes; then
3669       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3670     else
3671       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3672     fi
3673     ;;
3674 esac
3675
3676 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3677 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3678 if test "${lt_cv_path_NM+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   if test -n "$NM"; then
3682   # Let the user override the test.
3683   lt_cv_path_NM="$NM"
3684 else
3685   lt_nm_to_check="${ac_tool_prefix}nm"
3686   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3687     lt_nm_to_check="$lt_nm_to_check nm"
3688   fi
3689   for lt_tmp_nm in $lt_nm_to_check; do
3690     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3691     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3692       IFS="$lt_save_ifs"
3693       test -z "$ac_dir" && ac_dir=.
3694       tmp_nm="$ac_dir/$lt_tmp_nm"
3695       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3696         # Check to see if the nm accepts a BSD-compat flag.
3697         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3698         #   nm: unknown option "B" ignored
3699         # Tru64's nm complains that /dev/null is an invalid object file
3700         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3701         */dev/null* | *'Invalid file or object type'*)
3702           lt_cv_path_NM="$tmp_nm -B"
3703           break
3704           ;;
3705         *)
3706           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3707           */dev/null*)
3708             lt_cv_path_NM="$tmp_nm -p"
3709             break
3710             ;;
3711           *)
3712             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3713             continue # so that we can try to find one that supports BSD flags
3714             ;;
3715           esac
3716           ;;
3717         esac
3718       fi
3719     done
3720     IFS="$lt_save_ifs"
3721   done
3722   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3723 fi
3724 fi
3725 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3726 echo "${ECHO_T}$lt_cv_path_NM" >&6
3727 NM="$lt_cv_path_NM"
3728
3729 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3731 LN_S=$as_ln_s
3732 if test "$LN_S" = "ln -s"; then
3733   echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3735 else
3736   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3737 echo "${ECHO_T}no, using $LN_S" >&6
3738 fi
3739
3740 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3741 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3742 if test "${lt_cv_deplibs_check_method+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   lt_cv_file_magic_cmd='$MAGIC_CMD'
3746 lt_cv_file_magic_test_file=
3747 lt_cv_deplibs_check_method='unknown'
3748 # Need to set the preceding variable on all platforms that support
3749 # interlibrary dependencies.
3750 # 'none' -- dependencies not supported.
3751 # `unknown' -- same as none, but documents that we really don't know.
3752 # 'pass_all' -- all dependencies passed with no checks.
3753 # 'test_compile' -- check by making test program.
3754 # 'file_magic [[regex]]' -- check by looking for files in library path
3755 # which responds to the $file_magic_cmd with a given extended regex.
3756 # If you have `file' or equivalent on your system and you're not sure
3757 # whether `pass_all' will *always* work, you probably want this one.
3758
3759 case $host_os in
3760 aix4* | aix5*)
3761   lt_cv_deplibs_check_method=pass_all
3762   ;;
3763
3764 beos*)
3765   lt_cv_deplibs_check_method=pass_all
3766   ;;
3767
3768 bsdi[45]*)
3769   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3770   lt_cv_file_magic_cmd='/usr/bin/file -L'
3771   lt_cv_file_magic_test_file=/shlib/libc.so
3772   ;;
3773
3774 cygwin*)
3775   # func_win32_libid is a shell function defined in ltmain.sh
3776   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3777   lt_cv_file_magic_cmd='func_win32_libid'
3778   ;;
3779
3780 mingw* | pw32*)
3781   # Base MSYS/MinGW do not provide the 'file' command needed by
3782   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3783   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3784   lt_cv_file_magic_cmd='$OBJDUMP -f'
3785   ;;
3786
3787 darwin* | rhapsody*)
3788   lt_cv_deplibs_check_method=pass_all
3789   ;;
3790
3791 freebsd* | kfreebsd*-gnu | dragonfly*)
3792   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3793     case $host_cpu in
3794     i*86 )
3795       # Not sure whether the presence of OpenBSD here was a mistake.
3796       # Let's accept both of them until this is cleared up.
3797       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3798       lt_cv_file_magic_cmd=/usr/bin/file
3799       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3800       ;;
3801     esac
3802   else
3803     lt_cv_deplibs_check_method=pass_all
3804   fi
3805   ;;
3806
3807 gnu*)
3808   lt_cv_deplibs_check_method=pass_all
3809   ;;
3810
3811 hpux10.20* | hpux11*)
3812   lt_cv_file_magic_cmd=/usr/bin/file
3813   case $host_cpu in
3814   ia64*)
3815     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3816     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3817     ;;
3818   hppa*64*)
3819     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]'
3820     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3821     ;;
3822   *)
3823     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3824     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3825     ;;
3826   esac
3827   ;;
3828
3829 interix3*)
3830   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3831   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3832   ;;
3833
3834 irix5* | irix6* | nonstopux*)
3835   case $LD in
3836   *-32|*"-32 ") libmagic=32-bit;;
3837   *-n32|*"-n32 ") libmagic=N32;;
3838   *-64|*"-64 ") libmagic=64-bit;;
3839   *) libmagic=never-match;;
3840   esac
3841   lt_cv_deplibs_check_method=pass_all
3842   ;;
3843
3844 # This must be Linux ELF.
3845 linux*)
3846   lt_cv_deplibs_check_method=pass_all
3847   ;;
3848
3849 netbsd*)
3850   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3851     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3852   else
3853     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3854   fi
3855   ;;
3856
3857 newos6*)
3858   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3859   lt_cv_file_magic_cmd=/usr/bin/file
3860   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3861   ;;
3862
3863 nto-qnx*)
3864   lt_cv_deplibs_check_method=unknown
3865   ;;
3866
3867 openbsd*)
3868   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3869     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3870   else
3871     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3872   fi
3873   ;;
3874
3875 osf3* | osf4* | osf5*)
3876   lt_cv_deplibs_check_method=pass_all
3877   ;;
3878
3879 solaris*)
3880   lt_cv_deplibs_check_method=pass_all
3881   ;;
3882
3883 sysv4 | sysv4.3*)
3884   case $host_vendor in
3885   motorola)
3886     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]'
3887     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3888     ;;
3889   ncr)
3890     lt_cv_deplibs_check_method=pass_all
3891     ;;
3892   sequent)
3893     lt_cv_file_magic_cmd='/bin/file'
3894     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3895     ;;
3896   sni)
3897     lt_cv_file_magic_cmd='/bin/file'
3898     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3899     lt_cv_file_magic_test_file=/lib/libc.so
3900     ;;
3901   siemens)
3902     lt_cv_deplibs_check_method=pass_all
3903     ;;
3904   pc)
3905     lt_cv_deplibs_check_method=pass_all
3906     ;;
3907   esac
3908   ;;
3909
3910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3911   lt_cv_deplibs_check_method=pass_all
3912   ;;
3913 esac
3914
3915 fi
3916 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3917 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3918 file_magic_cmd=$lt_cv_file_magic_cmd
3919 deplibs_check_method=$lt_cv_deplibs_check_method
3920 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3921
3922
3923
3924
3925 # If no C compiler was specified, use CC.
3926 LTCC=${LTCC-"$CC"}
3927
3928 # If no C compiler flags were specified, use CFLAGS.
3929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3930
3931 # Allow CC to be a program name with arguments.
3932 compiler=$CC
3933
3934 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3935 if test "${enable_libtool_lock+set}" = set; then
3936   enableval="$enable_libtool_lock"
3937
3938 fi;
3939 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3940
3941 # Some flags need to be propagated to the compiler or linker for good
3942 # libtool support.
3943 case $host in
3944 ia64-*-hpux*)
3945   # Find out which ABI we are using.
3946   echo 'int i;' > conftest.$ac_ext
3947   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948   (eval $ac_compile) 2>&5
3949   ac_status=$?
3950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951   (exit $ac_status); }; then
3952     case `/usr/bin/file conftest.$ac_objext` in
3953     *ELF-32*)
3954       HPUX_IA64_MODE="32"
3955       ;;
3956     *ELF-64*)
3957       HPUX_IA64_MODE="64"
3958       ;;
3959     esac
3960   fi
3961   rm -rf conftest*
3962   ;;
3963 *-*-irix6*)
3964   # Find out which ABI we are using.
3965   echo '#line 3965 "configure"' > conftest.$ac_ext
3966   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967   (eval $ac_compile) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; then
3971    if test "$lt_cv_prog_gnu_ld" = yes; then
3972     case `/usr/bin/file conftest.$ac_objext` in
3973     *32-bit*)
3974       LD="${LD-ld} -melf32bsmip"
3975       ;;
3976     *N32*)
3977       LD="${LD-ld} -melf32bmipn32"
3978       ;;
3979     *64-bit*)
3980       LD="${LD-ld} -melf64bmip"
3981       ;;
3982     esac
3983    else
3984     case `/usr/bin/file conftest.$ac_objext` in
3985     *32-bit*)
3986       LD="${LD-ld} -32"
3987       ;;
3988     *N32*)
3989       LD="${LD-ld} -n32"
3990       ;;
3991     *64-bit*)
3992       LD="${LD-ld} -64"
3993       ;;
3994     esac
3995    fi
3996   fi
3997   rm -rf conftest*
3998   ;;
3999
4000 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4001   # Find out which ABI we are using.
4002   echo 'int i;' > conftest.$ac_ext
4003   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004   (eval $ac_compile) 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); }; then
4008     case `/usr/bin/file conftest.o` in
4009     *32-bit*)
4010       case $host in
4011         x86_64-*linux*)
4012           LD="${LD-ld} -m elf_i386"
4013           ;;
4014         ppc64-*linux*|powerpc64-*linux*)
4015           LD="${LD-ld} -m elf32ppclinux"
4016           ;;
4017         s390x-*linux*)
4018           LD="${LD-ld} -m elf_s390"
4019           ;;
4020         sparc64-*linux*)
4021           LD="${LD-ld} -m elf32_sparc"
4022           ;;
4023       esac
4024       ;;
4025     *64-bit*)
4026       case $host in
4027         x86_64-*linux*)
4028           LD="${LD-ld} -m elf_x86_64"
4029           ;;
4030         ppc*-*linux*|powerpc*-*linux*)
4031           LD="${LD-ld} -m elf64ppc"
4032           ;;
4033         s390*-*linux*)
4034           LD="${LD-ld} -m elf64_s390"
4035           ;;
4036         sparc*-*linux*)
4037           LD="${LD-ld} -m elf64_sparc"
4038           ;;
4039       esac
4040       ;;
4041     esac
4042   fi
4043   rm -rf conftest*
4044   ;;
4045
4046 *-*-sco3.2v5*)
4047   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4048   SAVE_CFLAGS="$CFLAGS"
4049   CFLAGS="$CFLAGS -belf"
4050   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4051 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4052 if test "${lt_cv_cc_needs_belf+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061      cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 rm -f conftest.$ac_objext conftest$ac_exeext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4078   (eval $ac_link) 2>conftest.er1
4079   ac_status=$?
4080   grep -v '^ *+' conftest.er1 >conftest.err
4081   rm -f conftest.er1
4082   cat conftest.err >&5
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); } &&
4085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087   (eval $ac_try) 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; } &&
4091          { ac_try='test -s conftest$ac_exeext'
4092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093   (eval $ac_try) 2>&5
4094   ac_status=$?
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); }; }; then
4097   lt_cv_cc_needs_belf=yes
4098 else
4099   echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 lt_cv_cc_needs_belf=no
4103 fi
4104 rm -f conftest.err conftest.$ac_objext \
4105       conftest$ac_exeext conftest.$ac_ext
4106      ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112 fi
4113 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4114 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4115   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4116     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4117     CFLAGS="$SAVE_CFLAGS"
4118   fi
4119   ;;
4120 sparc*-*solaris*)
4121   # Find out which ABI we are using.
4122   echo 'int i;' > conftest.$ac_ext
4123   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124   (eval $ac_compile) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; then
4128     case `/usr/bin/file conftest.o` in
4129     *64-bit*)
4130       case $lt_cv_prog_gnu_ld in
4131       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4132       *)    LD="${LD-ld} -64" ;;
4133       esac
4134       ;;
4135     esac
4136   fi
4137   rm -rf conftest*
4138   ;;
4139
4140
4141 esac
4142
4143 need_locks="$enable_libtool_lock"
4144
4145
4146 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4147 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4148 if test "${ac_cv_header_stdc+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <stdlib.h>
4158 #include <stdarg.h>
4159 #include <string.h>
4160 #include <float.h>
4161
4162 int
4163 main ()
4164 {
4165
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172   (eval $ac_compile) 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } &&
4179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181   (eval $ac_try) 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; } &&
4185          { ac_try='test -s conftest.$ac_objext'
4186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187   (eval $ac_try) 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; }; then
4191   ac_cv_header_stdc=yes
4192 else
4193   echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199
4200 if test $ac_cv_header_stdc = yes; then
4201   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202   cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 #include <string.h>
4209
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212   $EGREP "memchr" >/dev/null 2>&1; then
4213   :
4214 else
4215   ac_cv_header_stdc=no
4216 fi
4217 rm -f conftest*
4218
4219 fi
4220
4221 if test $ac_cv_header_stdc = yes; then
4222   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223   cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229 #include <stdlib.h>
4230
4231 _ACEOF
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233   $EGREP "free" >/dev/null 2>&1; then
4234   :
4235 else
4236   ac_cv_header_stdc=no
4237 fi
4238 rm -f conftest*
4239
4240 fi
4241
4242 if test $ac_cv_header_stdc = yes; then
4243   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244   if test "$cross_compiling" = yes; then
4245   :
4246 else
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 #include <ctype.h>
4254 #if ((' ' & 0x0FF) == 0x020)
4255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4257 #else
4258 # define ISLOWER(c) \
4259                    (('a' <= (c) && (c) <= 'i') \
4260                      || ('j' <= (c) && (c) <= 'r') \
4261                      || ('s' <= (c) && (c) <= 'z'))
4262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263 #endif
4264
4265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4266 int
4267 main ()
4268 {
4269   int i;
4270   for (i = 0; i < 256; i++)
4271     if (XOR (islower (i), ISLOWER (i))
4272         || toupper (i) != TOUPPER (i))
4273       exit(2);
4274   exit (0);
4275 }
4276 _ACEOF
4277 rm -f conftest$ac_exeext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279   (eval $ac_link) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284   (eval $ac_try) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   :
4289 else
4290   echo "$as_me: program exited with status $ac_status" >&5
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ( exit $ac_status )
4295 ac_cv_header_stdc=no
4296 fi
4297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 fi
4300 fi
4301 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4303 if test $ac_cv_header_stdc = yes; then
4304
4305 cat >>confdefs.h <<\_ACEOF
4306 #define STDC_HEADERS 1
4307 _ACEOF
4308
4309 fi
4310
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322                   inttypes.h stdint.h unistd.h
4323 do
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 echo "$as_me:$LINENO: checking for $ac_header" >&5
4326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 $ac_includes_default
4337
4338 #include <$ac_header>
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342   (eval $ac_compile) 2>conftest.er1
4343   ac_status=$?
4344   grep -v '^ *+' conftest.er1 >conftest.err
4345   rm -f conftest.er1
4346   cat conftest.err >&5
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } &&
4349          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest.$ac_objext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   eval "$as_ac_Header=yes"
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 eval "$as_ac_Header=no"
4367 fi
4368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369 fi
4370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373   cat >>confdefs.h <<_ACEOF
4374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375 _ACEOF
4376
4377 fi
4378
4379 done
4380
4381
4382
4383 for ac_header in dlfcn.h
4384 do
4385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4387   echo "$as_me:$LINENO: checking for $ac_header" >&5
4388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 fi
4392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4394 else
4395   # Is the header compilable?
4396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404 $ac_includes_default
4405 #include <$ac_header>
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>conftest.er1
4410   ac_status=$?
4411   grep -v '^ *+' conftest.er1 >conftest.err
4412   rm -f conftest.er1
4413   cat conftest.err >&5
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); } &&
4416          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; } &&
4422          { ac_try='test -s conftest.$ac_objext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_header_compiler=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_header_compiler=no
4434 fi
4435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437 echo "${ECHO_T}$ac_header_compiler" >&6
4438
4439 # Is the header present?
4440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448 #include <$ac_header>
4449 _ACEOF
4450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452   ac_status=$?
4453   grep -v '^ *+' conftest.er1 >conftest.err
4454   rm -f conftest.er1
4455   cat conftest.err >&5
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } >/dev/null; then
4458   if test -s conftest.err; then
4459     ac_cpp_err=$ac_c_preproc_warn_flag
4460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4461   else
4462     ac_cpp_err=
4463   fi
4464 else
4465   ac_cpp_err=yes
4466 fi
4467 if test -z "$ac_cpp_err"; then
4468   ac_header_preproc=yes
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473   ac_header_preproc=no
4474 fi
4475 rm -f conftest.err conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477 echo "${ECHO_T}$ac_header_preproc" >&6
4478
4479 # So?  What about this header?
4480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4481   yes:no: )
4482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4486     ac_header_preproc=yes
4487     ;;
4488   no:yes:* )
4489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4501     (
4502       cat <<\_ASBOX
4503 ## ------------------------------------------ ##
4504 ## Report this to the AC_PACKAGE_NAME lists.  ##
4505 ## ------------------------------------------ ##
4506 _ASBOX
4507     ) |
4508       sed "s/^/$as_me: WARNING:     /" >&2
4509     ;;
4510 esac
4511 echo "$as_me:$LINENO: checking for $ac_header" >&5
4512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   eval "$as_ac_Header=\$ac_header_preproc"
4517 fi
4518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4520
4521 fi
4522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4523   cat >>confdefs.h <<_ACEOF
4524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4525 _ACEOF
4526
4527 fi
4528
4529 done
4530
4531 ac_ext=cc
4532 ac_cpp='$CXXCPP $CPPFLAGS'
4533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536 if test -n "$ac_tool_prefix"; then
4537   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4538   do
4539     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541 echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543 if test "${ac_cv_prog_CXX+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   if test -n "$CXX"; then
4547   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562
4563 fi
4564 fi
4565 CXX=$ac_cv_prog_CXX
4566 if test -n "$CXX"; then
4567   echo "$as_me:$LINENO: result: $CXX" >&5
4568 echo "${ECHO_T}$CXX" >&6
4569 else
4570   echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4572 fi
4573
4574     test -n "$CXX" && break
4575   done
4576 fi
4577 if test -z "$CXX"; then
4578   ac_ct_CXX=$CXX
4579   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4580 do
4581   # Extract the first word of "$ac_prog", so it can be a program name with args.
4582 set dummy $ac_prog; ac_word=$2
4583 echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   if test -n "$ac_ct_CXX"; then
4589   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596   for ac_exec_ext in '' $ac_executable_extensions; do
4597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598     ac_cv_prog_ac_ct_CXX="$ac_prog"
4599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603 done
4604
4605 fi
4606 fi
4607 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4608 if test -n "$ac_ct_CXX"; then
4609   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4610 echo "${ECHO_T}$ac_ct_CXX" >&6
4611 else
4612   echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4614 fi
4615
4616   test -n "$ac_ct_CXX" && break
4617 done
4618 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4619
4620   CXX=$ac_ct_CXX
4621 fi
4622
4623
4624 # Provide some information about the compiler.
4625 echo "$as_me:$LINENO:" \
4626      "checking for C++ compiler version" >&5
4627 ac_compiler=`set X $ac_compile; echo $2`
4628 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4629   (eval $ac_compiler --version </dev/null >&5) 2>&5
4630   ac_status=$?
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); }
4633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4634   (eval $ac_compiler -v </dev/null >&5) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }
4638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4639   (eval $ac_compiler -V </dev/null >&5) 2>&5
4640   ac_status=$?
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); }
4643
4644 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4645 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4646 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655
4656 int
4657 main ()
4658 {
4659 #ifndef __GNUC__
4660        choke me
4661 #endif
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669   (eval $ac_compile) 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; } &&
4682          { ac_try='test -s conftest.$ac_objext'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   ac_compiler_gnu=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ac_compiler_gnu=no
4694 fi
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4697
4698 fi
4699 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4700 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4701 GXX=`test $ac_compiler_gnu = yes && echo yes`
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4704 CXXFLAGS="-g"
4705 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4706 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4707 if test "${ac_cv_prog_cxx_g+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716
4717 int
4718 main ()
4719 {
4720
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727   (eval $ac_compile) 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } &&
4734          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736   (eval $ac_try) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; } &&
4740          { ac_try='test -s conftest.$ac_objext'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   ac_cv_prog_cxx_g=yes
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 ac_cv_prog_cxx_g=no
4752 fi
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4756 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4757 if test "$ac_test_CXXFLAGS" = set; then
4758   CXXFLAGS=$ac_save_CXXFLAGS
4759 elif test $ac_cv_prog_cxx_g = yes; then
4760   if test "$GXX" = yes; then
4761     CXXFLAGS="-g -O2"
4762   else
4763     CXXFLAGS="-g"
4764   fi
4765 else
4766   if test "$GXX" = yes; then
4767     CXXFLAGS="-O2"
4768   else
4769     CXXFLAGS=
4770   fi
4771 fi
4772 for ac_declaration in \
4773    '' \
4774    'extern "C" void std::exit (int) throw (); using std::exit;' \
4775    'extern "C" void std::exit (int); using std::exit;' \
4776    'extern "C" void exit (int) throw ();' \
4777    'extern "C" void exit (int);' \
4778    'void exit (int);'
4779 do
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 $ac_declaration
4787 #include <stdlib.h>
4788 int
4789 main ()
4790 {
4791 exit (42);
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>conftest.er1
4799   ac_status=$?
4800   grep -v '^ *+' conftest.er1 >conftest.err
4801   rm -f conftest.er1
4802   cat conftest.err >&5
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807   (eval $ac_try) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; } &&
4811          { ac_try='test -s conftest.$ac_objext'
4812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813   (eval $ac_try) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; }; then
4817   :
4818 else
4819   echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 continue
4823 fi
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825   cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h.  */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h.  */
4831 $ac_declaration
4832 int
4833 main ()
4834 {
4835 exit (42);
4836   ;
4837   return 0;
4838 }
4839 _ACEOF
4840 rm -f conftest.$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842   (eval $ac_compile) 2>conftest.er1
4843   ac_status=$?
4844   grep -v '^ *+' conftest.er1 >conftest.err
4845   rm -f conftest.er1
4846   cat conftest.err >&5
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } &&
4849          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; } &&
4855          { ac_try='test -s conftest.$ac_objext'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; }; then
4861   break
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 fi
4867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4868 done
4869 rm -f conftest*
4870 if test -n "$ac_declaration"; then
4871   echo '#ifdef __cplusplus' >>confdefs.h
4872   echo $ac_declaration      >>confdefs.h
4873   echo '#endif'             >>confdefs.h
4874 fi
4875
4876 ac_ext=cc
4877 ac_cpp='$CXXCPP $CPPFLAGS'
4878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4881
4882
4883
4884 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4885     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4886     (test "X$CXX" != "Xg++"))) ; then
4887   ac_ext=cc
4888 ac_cpp='$CXXCPP $CPPFLAGS'
4889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4892 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4893 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4894 if test -z "$CXXCPP"; then
4895   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898       # Double quotes because CXXCPP needs to be expanded
4899     for CXXCPP in "$CXX -E" "/lib/cpp"
4900     do
4901       ac_preproc_ok=false
4902 for ac_cxx_preproc_warn_flag in '' yes
4903 do
4904   # Use a header file that comes with gcc, so configuring glibc
4905   # with a fresh cross-compiler works.
4906   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4907   # <limits.h> exists even on freestanding compilers.
4908   # On the NeXT, cc -E runs the code through the compiler's parser,
4909   # not just through cpp. "Syntax error" is here to catch this case.
4910   cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916 #ifdef __STDC__
4917 # include <limits.h>
4918 #else
4919 # include <assert.h>
4920 #endif
4921                      Syntax error
4922 _ACEOF
4923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4925   ac_status=$?
4926   grep -v '^ *+' conftest.er1 >conftest.err
4927   rm -f conftest.er1
4928   cat conftest.err >&5
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); } >/dev/null; then
4931   if test -s conftest.err; then
4932     ac_cpp_err=$ac_cxx_preproc_warn_flag
4933     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4934   else
4935     ac_cpp_err=
4936   fi
4937 else
4938   ac_cpp_err=yes
4939 fi
4940 if test -z "$ac_cpp_err"; then
4941   :
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946   # Broken: fails on valid input.
4947 continue
4948 fi
4949 rm -f conftest.err conftest.$ac_ext
4950
4951   # OK, works on sane cases.  Now check whether non-existent headers
4952   # can be detected and how.
4953   cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 #include <ac_nonexistent.h>
4960 _ACEOF
4961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } >/dev/null; then
4969   if test -s conftest.err; then
4970     ac_cpp_err=$ac_cxx_preproc_warn_flag
4971     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4972   else
4973     ac_cpp_err=
4974   fi
4975 else
4976   ac_cpp_err=yes
4977 fi
4978 if test -z "$ac_cpp_err"; then
4979   # Broken: success on invalid input.
4980 continue
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985   # Passes both tests.
4986 ac_preproc_ok=:
4987 break
4988 fi
4989 rm -f conftest.err conftest.$ac_ext
4990
4991 done
4992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993 rm -f conftest.err conftest.$ac_ext
4994 if $ac_preproc_ok; then
4995   break
4996 fi
4997
4998     done
4999     ac_cv_prog_CXXCPP=$CXXCPP
5000
5001 fi
5002   CXXCPP=$ac_cv_prog_CXXCPP
5003 else
5004   ac_cv_prog_CXXCPP=$CXXCPP
5005 fi
5006 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5007 echo "${ECHO_T}$CXXCPP" >&6
5008 ac_preproc_ok=false
5009 for ac_cxx_preproc_warn_flag in '' yes
5010 do
5011   # Use a header file that comes with gcc, so configuring glibc
5012   # with a fresh cross-compiler works.
5013   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014   # <limits.h> exists even on freestanding compilers.
5015   # On the NeXT, cc -E runs the code through the compiler's parser,
5016   # not just through cpp. "Syntax error" is here to catch this case.
5017   cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 #ifdef __STDC__
5024 # include <limits.h>
5025 #else
5026 # include <assert.h>
5027 #endif
5028                      Syntax error
5029 _ACEOF
5030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5032   ac_status=$?
5033   grep -v '^ *+' conftest.er1 >conftest.err
5034   rm -f conftest.er1
5035   cat conftest.err >&5
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } >/dev/null; then
5038   if test -s conftest.err; then
5039     ac_cpp_err=$ac_cxx_preproc_warn_flag
5040     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5041   else
5042     ac_cpp_err=
5043   fi
5044 else
5045   ac_cpp_err=yes
5046 fi
5047 if test -z "$ac_cpp_err"; then
5048   :
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053   # Broken: fails on valid input.
5054 continue
5055 fi
5056 rm -f conftest.err conftest.$ac_ext
5057
5058   # OK, works on sane cases.  Now check whether non-existent headers
5059   # can be detected and how.
5060   cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066 #include <ac_nonexistent.h>
5067 _ACEOF
5068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5070   ac_status=$?
5071   grep -v '^ *+' conftest.er1 >conftest.err
5072   rm -f conftest.er1
5073   cat conftest.err >&5
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } >/dev/null; then
5076   if test -s conftest.err; then
5077     ac_cpp_err=$ac_cxx_preproc_warn_flag
5078     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5079   else
5080     ac_cpp_err=
5081   fi
5082 else
5083   ac_cpp_err=yes
5084 fi
5085 if test -z "$ac_cpp_err"; then
5086   # Broken: success on invalid input.
5087 continue
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092   # Passes both tests.
5093 ac_preproc_ok=:
5094 break
5095 fi
5096 rm -f conftest.err conftest.$ac_ext
5097
5098 done
5099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5100 rm -f conftest.err conftest.$ac_ext
5101 if $ac_preproc_ok; then
5102   :
5103 else
5104   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5105 See \`config.log' for more details." >&5
5106 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5107 See \`config.log' for more details." >&2;}
5108    { (exit 1); exit 1; }; }
5109 fi
5110
5111 ac_ext=cc
5112 ac_cpp='$CXXCPP $CPPFLAGS'
5113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5116
5117 fi
5118
5119
5120 ac_ext=f
5121 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5122 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5124 if test -n "$ac_tool_prefix"; then
5125   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5126   do
5127     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_F77+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   if test -n "$F77"; then
5135   ac_cv_prog_F77="$F77" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142   for ac_exec_ext in '' $ac_executable_extensions; do
5143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149 done
5150
5151 fi
5152 fi
5153 F77=$ac_cv_prog_F77
5154 if test -n "$F77"; then
5155   echo "$as_me:$LINENO: result: $F77" >&5
5156 echo "${ECHO_T}$F77" >&6
5157 else
5158   echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5160 fi
5161
5162     test -n "$F77" && break
5163   done
5164 fi
5165 if test -z "$F77"; then
5166   ac_ct_F77=$F77
5167   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5168 do
5169   # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test -n "$ac_ct_F77"; then
5177   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184   for ac_exec_ext in '' $ac_executable_extensions; do
5185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186     ac_cv_prog_ac_ct_F77="$ac_prog"
5187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191 done
5192
5193 fi
5194 fi
5195 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5196 if test -n "$ac_ct_F77"; then
5197   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5198 echo "${ECHO_T}$ac_ct_F77" >&6
5199 else
5200   echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203
5204   test -n "$ac_ct_F77" && break
5205 done
5206
5207   F77=$ac_ct_F77
5208 fi
5209
5210
5211 # Provide some information about the compiler.
5212 echo "$as_me:5212:" \
5213      "checking for Fortran 77 compiler version" >&5
5214 ac_compiler=`set X $ac_compile; echo $2`
5215 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5216   (eval $ac_compiler --version </dev/null >&5) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }
5220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5221   (eval $ac_compiler -v </dev/null >&5) 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }
5225 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5226   (eval $ac_compiler -V </dev/null >&5) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }
5230 rm -f a.out
5231
5232 # If we don't use `.F' as extension, the preprocessor is not run on the
5233 # input file.  (Note that this only needs to work for GNU compilers.)
5234 ac_save_ext=$ac_ext
5235 ac_ext=F
5236 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5237 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5238 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   cat >conftest.$ac_ext <<_ACEOF
5242       program main
5243 #ifndef __GNUC__
5244        choke me
5245 #endif
5246
5247       end
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251   (eval $ac_compile) 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } &&
5258          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260   (eval $ac_try) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }; } &&
5264          { ac_try='test -s conftest.$ac_objext'
5265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266   (eval $ac_try) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }; }; then
5270   ac_compiler_gnu=yes
5271 else
5272   echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275 ac_compiler_gnu=no
5276 fi
5277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5278 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5279
5280 fi
5281 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5282 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5283 ac_ext=$ac_save_ext
5284 ac_test_FFLAGS=${FFLAGS+set}
5285 ac_save_FFLAGS=$FFLAGS
5286 FFLAGS=
5287 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5288 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5289 if test "${ac_cv_prog_f77_g+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   FFLAGS=-g
5293 cat >conftest.$ac_ext <<_ACEOF
5294       program main
5295
5296       end
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; } &&
5313          { ac_try='test -s conftest.$ac_objext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_prog_f77_g=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_cv_prog_f77_g=no
5325 fi
5326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5327
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5330 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5331 if test "$ac_test_FFLAGS" = set; then
5332   FFLAGS=$ac_save_FFLAGS
5333 elif test $ac_cv_prog_f77_g = yes; then
5334   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5335     FFLAGS="-g -O2"
5336   else
5337     FFLAGS="-g"
5338   fi
5339 else
5340   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5341     FFLAGS="-O2"
5342   else
5343     FFLAGS=
5344   fi
5345 fi
5346
5347 G77=`test $ac_compiler_gnu = yes && echo yes`
5348 ac_ext=c
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354
5355
5356 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5357
5358 # find the maximum length of command line arguments
5359 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5360 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5362   echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364     i=0
5365   teststring="ABCD"
5366
5367   case $build_os in
5368   msdosdjgpp*)
5369     # On DJGPP, this test can blow up pretty badly due to problems in libc
5370     # (any single argument exceeding 2000 bytes causes a buffer overrun
5371     # during glob expansion).  Even if it were fixed, the result of this
5372     # check would be larger than it should be.
5373     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5374     ;;
5375
5376   gnu*)
5377     # Under GNU Hurd, this test is not required because there is
5378     # no limit to the length of command line arguments.
5379     # Libtool will interpret -1 as no limit whatsoever
5380     lt_cv_sys_max_cmd_len=-1;
5381     ;;
5382
5383   cygwin* | mingw*)
5384     # On Win9x/ME, this test blows up -- it succeeds, but takes
5385     # about 5 minutes as the teststring grows exponentially.
5386     # Worse, since 9x/ME are not pre-emptively multitasking,
5387     # you end up with a "frozen" computer, even though with patience
5388     # the test eventually succeeds (with a max line length of 256k).
5389     # Instead, let's just punt: use the minimum linelength reported by
5390     # all of the supported platforms: 8192 (on NT/2K/XP).
5391     lt_cv_sys_max_cmd_len=8192;
5392     ;;
5393
5394   amigaos*)
5395     # On AmigaOS with pdksh, this test takes hours, literally.
5396     # So we just punt and use a minimum line length of 8192.
5397     lt_cv_sys_max_cmd_len=8192;
5398     ;;
5399
5400   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5401     # This has been around since 386BSD, at least.  Likely further.
5402     if test -x /sbin/sysctl; then
5403       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5404     elif test -x /usr/sbin/sysctl; then
5405       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5406     else
5407       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5408     fi
5409     # And add a safety zone
5410     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5411     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5412     ;;
5413
5414   interix*)
5415     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5416     lt_cv_sys_max_cmd_len=196608
5417     ;;
5418
5419   osf*)
5420     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5421     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5422     # nice to cause kernel panics so lets avoid the loop below.
5423     # First set a reasonable default.
5424     lt_cv_sys_max_cmd_len=16384
5425     #
5426     if test -x /sbin/sysconfig; then
5427       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5428         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5429       esac
5430     fi
5431     ;;
5432   sco3.2v5*)
5433     lt_cv_sys_max_cmd_len=102400
5434     ;;
5435   sysv5* | sco5v6* | sysv4.2uw2*)
5436     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5437     if test -n "$kargmax"; then
5438       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5439     else
5440       lt_cv_sys_max_cmd_len=32768
5441     fi
5442     ;;
5443   *)
5444     # If test is not a shell built-in, we'll probably end up computing a
5445     # maximum length that is only half of the actual maximum length, but
5446     # we can't tell.
5447     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5448     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5449                = "XX$teststring") >/dev/null 2>&1 &&
5450             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5451             lt_cv_sys_max_cmd_len=$new_result &&
5452             test $i != 17 # 1/2 MB should be enough
5453     do
5454       i=`expr $i + 1`
5455       teststring=$teststring$teststring
5456     done
5457     teststring=
5458     # Add a significant safety factor because C++ compilers can tack on massive
5459     # amounts of additional arguments before passing them to the linker.
5460     # It appears as though 1/2 is a usable value.
5461     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5462     ;;
5463   esac
5464
5465 fi
5466
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5469 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5470 else
5471   echo "$as_me:$LINENO: result: none" >&5
5472 echo "${ECHO_T}none" >&6
5473 fi
5474
5475
5476
5477
5478 # Check for command to grab the raw symbol name followed by C symbol from nm.
5479 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5480 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5481 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484
5485 # These are sane defaults that work on at least a few old systems.
5486 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5487
5488 # Character class describing NM global symbol codes.
5489 symcode='[BCDEGRST]'
5490
5491 # Regexp to match symbols that can be accessed directly from C.
5492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5493
5494 # Transform an extracted symbol line into a proper C declaration
5495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5496
5497 # Transform an extracted symbol line into symbol name and symbol address
5498 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'"
5499
5500 # Define system-specific variables.
5501 case $host_os in
5502 aix*)
5503   symcode='[BCDT]'
5504   ;;
5505 cygwin* | mingw* | pw32*)
5506   symcode='[ABCDGISTW]'
5507   ;;
5508 hpux*) # Its linker distinguishes data from code symbols
5509   if test "$host_cpu" = ia64; then
5510     symcode='[ABCDEGRST]'
5511   fi
5512   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5513   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'"
5514   ;;
5515 linux*)
5516   if test "$host_cpu" = ia64; then
5517     symcode='[ABCDGIRSTW]'
5518     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5519     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'"
5520   fi
5521   ;;
5522 irix* | nonstopux*)
5523   symcode='[BCDEGRST]'
5524   ;;
5525 osf*)
5526   symcode='[BCDEGQRST]'
5527   ;;
5528 solaris*)
5529   symcode='[BDRT]'
5530   ;;
5531 sco3.2v5*)
5532   symcode='[DT]'
5533   ;;
5534 sysv4.2uw2*)
5535   symcode='[DT]'
5536   ;;
5537 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5538   symcode='[ABDT]'
5539   ;;
5540 sysv4)
5541   symcode='[DFNSTU]'
5542   ;;
5543 esac
5544
5545 # Handle CRLF in mingw tool chain
5546 opt_cr=
5547 case $build_os in
5548 mingw*)
5549   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5550   ;;
5551 esac
5552
5553 # If we're using GNU nm, then use its standard symbol codes.
5554 case `$NM -V 2>&1` in
5555 *GNU* | *'with BFD'*)
5556   symcode='[ABCDGIRSTW]' ;;
5557 esac
5558
5559 # Try without a prefix undercore, then with it.
5560 for ac_symprfx in "" "_"; do
5561
5562   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5563   symxfrm="\\1 $ac_symprfx\\2 \\2"
5564
5565   # Write the raw and C identifiers.
5566   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5567
5568   # Check to see that the pipe works correctly.
5569   pipe_works=no
5570
5571   rm -f conftest*
5572   cat > conftest.$ac_ext <<EOF
5573 #ifdef __cplusplus
5574 extern "C" {
5575 #endif
5576 char nm_test_var;
5577 void nm_test_func(){}
5578 #ifdef __cplusplus
5579 }
5580 #endif
5581 int main(){nm_test_var='a';nm_test_func();return(0);}
5582 EOF
5583
5584   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585   (eval $ac_compile) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; then
5589     # Now try to grab the symbols.
5590     nlist=conftest.nm
5591     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5592   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } && test -s "$nlist"; then
5596       # Try sorting and uniquifying the output.
5597       if sort "$nlist" | uniq > "$nlist"T; then
5598         mv -f "$nlist"T "$nlist"
5599       else
5600         rm -f "$nlist"T
5601       fi
5602
5603       # Make sure that we snagged all the symbols we need.
5604       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5605         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5606           cat <<EOF > conftest.$ac_ext
5607 #ifdef __cplusplus
5608 extern "C" {
5609 #endif
5610
5611 EOF
5612           # Now generate the symbol file.
5613           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5614
5615           cat <<EOF >> conftest.$ac_ext
5616 #if defined (__STDC__) && __STDC__
5617 # define lt_ptr_t void *
5618 #else
5619 # define lt_ptr_t char *
5620 # define const
5621 #endif
5622
5623 /* The mapping between symbol names and symbols. */
5624 const struct {
5625   const char *name;
5626   lt_ptr_t address;
5627 }
5628 lt_preloaded_symbols[] =
5629 {
5630 EOF
5631           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5632           cat <<\EOF >> conftest.$ac_ext
5633   {0, (lt_ptr_t) 0}
5634 };
5635
5636 #ifdef __cplusplus
5637 }
5638 #endif
5639 EOF
5640           # Now try linking the two files.
5641           mv conftest.$ac_objext conftstm.$ac_objext
5642           lt_save_LIBS="$LIBS"
5643           lt_save_CFLAGS="$CFLAGS"
5644           LIBS="conftstm.$ac_objext"
5645           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5646           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647   (eval $ac_link) 2>&5
5648   ac_status=$?
5649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5651             pipe_works=yes
5652           fi
5653           LIBS="$lt_save_LIBS"
5654           CFLAGS="$lt_save_CFLAGS"
5655         else
5656           echo "cannot find nm_test_func in $nlist" >&5
5657         fi
5658       else
5659         echo "cannot find nm_test_var in $nlist" >&5
5660       fi
5661     else
5662       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5663     fi
5664   else
5665     echo "$progname: failed program was:" >&5
5666     cat conftest.$ac_ext >&5
5667   fi
5668   rm -f conftest* conftst*
5669
5670   # Do not use the global_symbol_pipe unless it works.
5671   if test "$pipe_works" = yes; then
5672     break
5673   else
5674     lt_cv_sys_global_symbol_pipe=
5675   fi
5676 done
5677
5678 fi
5679
5680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5681   lt_cv_sys_global_symbol_to_cdecl=
5682 fi
5683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5684   echo "$as_me:$LINENO: result: failed" >&5
5685 echo "${ECHO_T}failed" >&6
5686 else
5687   echo "$as_me:$LINENO: result: ok" >&5
5688 echo "${ECHO_T}ok" >&6
5689 fi
5690
5691 echo "$as_me:$LINENO: checking for objdir" >&5
5692 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5693 if test "${lt_cv_objdir+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   rm -f .libs 2>/dev/null
5697 mkdir .libs 2>/dev/null
5698 if test -d .libs; then
5699   lt_cv_objdir=.libs
5700 else
5701   # MS-DOS does not allow filenames that begin with a dot.
5702   lt_cv_objdir=_libs
5703 fi
5704 rmdir .libs 2>/dev/null
5705 fi
5706 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5707 echo "${ECHO_T}$lt_cv_objdir" >&6
5708 objdir=$lt_cv_objdir
5709
5710
5711
5712
5713
5714 case $host_os in
5715 aix3*)
5716   # AIX sometimes has problems with the GCC collect2 program.  For some
5717   # reason, if we set the COLLECT_NAMES environment variable, the problems
5718   # vanish in a puff of smoke.
5719   if test "X${COLLECT_NAMES+set}" != Xset; then
5720     COLLECT_NAMES=
5721     export COLLECT_NAMES
5722   fi
5723   ;;
5724 esac
5725
5726 # Sed substitution that helps us do robust quoting.  It backslashifies
5727 # metacharacters that are still active within double-quoted strings.
5728 Xsed='sed -e 1s/^X//'
5729 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5730
5731 # Same as above, but do not quote variable references.
5732 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5733
5734 # Sed substitution to delay expansion of an escaped shell variable in a
5735 # double_quote_subst'ed string.
5736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5737
5738 # Sed substitution to avoid accidental globbing in evaled expressions
5739 no_glob_subst='s/\*/\\\*/g'
5740
5741 # Constants:
5742 rm="rm -f"
5743
5744 # Global variables:
5745 default_ofile=libtool
5746 can_build_shared=yes
5747
5748 # All known linkers require a `.a' archive for static linking (except MSVC,
5749 # which needs '.lib').
5750 libext=a
5751 ltmain="$ac_aux_dir/ltmain.sh"
5752 ofile="$default_ofile"
5753 with_gnu_ld="$lt_cv_prog_gnu_ld"
5754
5755 if test -n "$ac_tool_prefix"; then
5756   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5757 set dummy ${ac_tool_prefix}ar; ac_word=$2
5758 echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5760 if test "${ac_cv_prog_AR+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   if test -n "$AR"; then
5764   ac_cv_prog_AR="$AR" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771   for ac_exec_ext in '' $ac_executable_extensions; do
5772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773     ac_cv_prog_AR="${ac_tool_prefix}ar"
5774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778 done
5779
5780 fi
5781 fi
5782 AR=$ac_cv_prog_AR
5783 if test -n "$AR"; then
5784   echo "$as_me:$LINENO: result: $AR" >&5
5785 echo "${ECHO_T}$AR" >&6
5786 else
5787   echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6
5789 fi
5790
5791 fi
5792 if test -z "$ac_cv_prog_AR"; then
5793   ac_ct_AR=$AR
5794   # Extract the first word of "ar", so it can be a program name with args.
5795 set dummy ar; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   if test -n "$ac_ct_AR"; then
5802   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_ac_ct_AR="ar"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817
5818   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5819 fi
5820 fi
5821 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5822 if test -n "$ac_ct_AR"; then
5823   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5824 echo "${ECHO_T}$ac_ct_AR" >&6
5825 else
5826   echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5828 fi
5829
5830   AR=$ac_ct_AR
5831 else
5832   AR="$ac_cv_prog_AR"
5833 fi
5834
5835 if test -n "$ac_tool_prefix"; then
5836   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5838 echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840 if test "${ac_cv_prog_RANLIB+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   if test -n "$RANLIB"; then
5844   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851   for ac_exec_ext in '' $ac_executable_extensions; do
5852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858 done
5859
5860 fi
5861 fi
5862 RANLIB=$ac_cv_prog_RANLIB
5863 if test -n "$RANLIB"; then
5864   echo "$as_me:$LINENO: result: $RANLIB" >&5
5865 echo "${ECHO_T}$RANLIB" >&6
5866 else
5867   echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5869 fi
5870
5871 fi
5872 if test -z "$ac_cv_prog_RANLIB"; then
5873   ac_ct_RANLIB=$RANLIB
5874   # Extract the first word of "ranlib", so it can be a program name with args.
5875 set dummy ranlib; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$ac_ct_RANLIB"; then
5882   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_ac_ct_RANLIB="ranlib"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897
5898   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5899 fi
5900 fi
5901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5902 if test -n "$ac_ct_RANLIB"; then
5903   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5904 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5905 else
5906   echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910   RANLIB=$ac_ct_RANLIB
5911 else
5912   RANLIB="$ac_cv_prog_RANLIB"
5913 fi
5914
5915 if test -n "$ac_tool_prefix"; then
5916   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}strip; ac_word=$2
5918 echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5920 if test "${ac_cv_prog_STRIP+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   if test -n "$STRIP"; then
5924   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931   for ac_exec_ext in '' $ac_executable_extensions; do
5932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938 done
5939
5940 fi
5941 fi
5942 STRIP=$ac_cv_prog_STRIP
5943 if test -n "$STRIP"; then
5944   echo "$as_me:$LINENO: result: $STRIP" >&5
5945 echo "${ECHO_T}$STRIP" >&6
5946 else
5947   echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6
5949 fi
5950
5951 fi
5952 if test -z "$ac_cv_prog_STRIP"; then
5953   ac_ct_STRIP=$STRIP
5954   # Extract the first word of "strip", so it can be a program name with args.
5955 set dummy strip; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   if test -n "$ac_ct_STRIP"; then
5962   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_exec_ext in '' $ac_executable_extensions; do
5970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971     ac_cv_prog_ac_ct_STRIP="strip"
5972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976 done
5977
5978   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5979 fi
5980 fi
5981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5982 if test -n "$ac_ct_STRIP"; then
5983   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5984 echo "${ECHO_T}$ac_ct_STRIP" >&6
5985 else
5986   echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5988 fi
5989
5990   STRIP=$ac_ct_STRIP
5991 else
5992   STRIP="$ac_cv_prog_STRIP"
5993 fi
5994
5995
5996 old_CC="$CC"
5997 old_CFLAGS="$CFLAGS"
5998
5999 # Set sane defaults for various variables
6000 test -z "$AR" && AR=ar
6001 test -z "$AR_FLAGS" && AR_FLAGS=cru
6002 test -z "$AS" && AS=as
6003 test -z "$CC" && CC=cc
6004 test -z "$LTCC" && LTCC=$CC
6005 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6006 test -z "$DLLTOOL" && DLLTOOL=dlltool
6007 test -z "$LD" && LD=ld
6008 test -z "$LN_S" && LN_S="ln -s"
6009 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6010 test -z "$NM" && NM=nm
6011 test -z "$SED" && SED=sed
6012 test -z "$OBJDUMP" && OBJDUMP=objdump
6013 test -z "$RANLIB" && RANLIB=:
6014 test -z "$STRIP" && STRIP=:
6015 test -z "$ac_objext" && ac_objext=o
6016
6017 # Determine commands to create old-style static archives.
6018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6019 old_postinstall_cmds='chmod 644 $oldlib'
6020 old_postuninstall_cmds=
6021
6022 if test -n "$RANLIB"; then
6023   case $host_os in
6024   openbsd*)
6025     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6026     ;;
6027   *)
6028     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6029     ;;
6030   esac
6031   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6032 fi
6033
6034 for cc_temp in $compiler""; do
6035   case $cc_temp in
6036     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6037     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6038     \-*) ;;
6039     *) break;;
6040   esac
6041 done
6042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6043
6044
6045 # Only perform the check for file, if the check method requires it
6046 case $deplibs_check_method in
6047 file_magic*)
6048   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6049     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6050 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   case $MAGIC_CMD in
6055 [\\/*] |  ?:[\\/]*)
6056   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6057   ;;
6058 *)
6059   lt_save_MAGIC_CMD="$MAGIC_CMD"
6060   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062   for ac_dir in $ac_dummy; do
6063     IFS="$lt_save_ifs"
6064     test -z "$ac_dir" && ac_dir=.
6065     if test -f $ac_dir/${ac_tool_prefix}file; then
6066       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6067       if test -n "$file_magic_test_file"; then
6068         case $deplibs_check_method in
6069         "file_magic "*)
6070           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6071           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073             $EGREP "$file_magic_regex" > /dev/null; then
6074             :
6075           else
6076             cat <<EOF 1>&2
6077
6078 *** Warning: the command libtool uses to detect shared libraries,
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
6080 *** The result is that libtool may fail to recognize shared libraries
6081 *** as such.  This will affect the creation of libtool libraries that
6082 *** depend on shared libraries, but programs linked with such libtool
6083 *** libraries will work regardless of this problem.  Nevertheless, you
6084 *** may want to report the problem to your system manager and/or to
6085 *** bug-libtool@gnu.org
6086
6087 EOF
6088           fi ;;
6089         esac
6090       fi
6091       break
6092     fi
6093   done
6094   IFS="$lt_save_ifs"
6095   MAGIC_CMD="$lt_save_MAGIC_CMD"
6096   ;;
6097 esac
6098 fi
6099
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if test -n "$MAGIC_CMD"; then
6102   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
6104 else
6105   echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107 fi
6108
6109 if test -z "$lt_cv_path_MAGIC_CMD"; then
6110   if test -n "$ac_tool_prefix"; then
6111     echo "$as_me:$LINENO: checking for file" >&5
6112 echo $ECHO_N "checking for file... $ECHO_C" >&6
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   case $MAGIC_CMD in
6117 [\\/*] |  ?:[\\/]*)
6118   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6119   ;;
6120 *)
6121   lt_save_MAGIC_CMD="$MAGIC_CMD"
6122   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6123   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6124   for ac_dir in $ac_dummy; do
6125     IFS="$lt_save_ifs"
6126     test -z "$ac_dir" && ac_dir=.
6127     if test -f $ac_dir/file; then
6128       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6129       if test -n "$file_magic_test_file"; then
6130         case $deplibs_check_method in
6131         "file_magic "*)
6132           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6133           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6135             $EGREP "$file_magic_regex" > /dev/null; then
6136             :
6137           else
6138             cat <<EOF 1>&2
6139
6140 *** Warning: the command libtool uses to detect shared libraries,
6141 *** $file_magic_cmd, produces output that libtool cannot recognize.
6142 *** The result is that libtool may fail to recognize shared libraries
6143 *** as such.  This will affect the creation of libtool libraries that
6144 *** depend on shared libraries, but programs linked with such libtool
6145 *** libraries will work regardless of this problem.  Nevertheless, you
6146 *** may want to report the problem to your system manager and/or to
6147 *** bug-libtool@gnu.org
6148
6149 EOF
6150           fi ;;
6151         esac
6152       fi
6153       break
6154     fi
6155   done
6156   IFS="$lt_save_ifs"
6157   MAGIC_CMD="$lt_save_MAGIC_CMD"
6158   ;;
6159 esac
6160 fi
6161
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163 if test -n "$MAGIC_CMD"; then
6164   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6165 echo "${ECHO_T}$MAGIC_CMD" >&6
6166 else
6167   echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6169 fi
6170
6171   else
6172     MAGIC_CMD=:
6173   fi
6174 fi
6175
6176   fi
6177   ;;
6178 esac
6179
6180 enable_dlopen=yes
6181 enable_win32_dll=no
6182
6183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6184 if test "${enable_libtool_lock+set}" = set; then
6185   enableval="$enable_libtool_lock"
6186
6187 fi;
6188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6189
6190
6191 # Check whether --with-pic or --without-pic was given.
6192 if test "${with_pic+set}" = set; then
6193   withval="$with_pic"
6194   pic_mode="$withval"
6195 else
6196   pic_mode=default
6197 fi;
6198 test -z "$pic_mode" && pic_mode=default
6199
6200 # Use C for the default configuration in the libtool script
6201 tagname=
6202 lt_save_CC="$CC"
6203 ac_ext=c
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
6209
6210 # Source file extension for C test sources.
6211 ac_ext=c
6212
6213 # Object file extension for compiled C test sources.
6214 objext=o
6215 objext=$objext
6216
6217 # Code to be used in simple compile tests
6218 lt_simple_compile_test_code="int some_variable = 0;\n"
6219
6220 # Code to be used in simple link tests
6221 lt_simple_link_test_code='int main(){return(0);}\n'
6222
6223
6224 # If no C compiler was specified, use CC.
6225 LTCC=${LTCC-"$CC"}
6226
6227 # If no C compiler flags were specified, use CFLAGS.
6228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6229
6230 # Allow CC to be a program name with arguments.
6231 compiler=$CC
6232
6233
6234 # save warnings/boilerplate of simple test code
6235 ac_outfile=conftest.$ac_objext
6236 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6238 _lt_compiler_boilerplate=`cat conftest.err`
6239 $rm conftest*
6240
6241 ac_outfile=conftest.$ac_objext
6242 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6244 _lt_linker_boilerplate=`cat conftest.err`
6245 $rm conftest*
6246
6247
6248 ## CAVEAT EMPTOR:
6249 ## There is no encapsulation within the following macros, do not change
6250 ## the running order or otherwise move them around unless you know exactly
6251 ## what you are doing...
6252
6253 lt_prog_compiler_no_builtin_flag=
6254
6255 if test "$GCC" = yes; then
6256   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6257
6258
6259 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6260 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6261 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   lt_cv_prog_compiler_rtti_exceptions=no
6265   ac_outfile=conftest.$ac_objext
6266    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6267    lt_compiler_flag="-fno-rtti -fno-exceptions"
6268    # Insert the option either (1) after the last *FLAGS variable, or
6269    # (2) before a word containing "conftest.", or (3) at the end.
6270    # Note that $ac_compile itself does not contain backslashes and begins
6271    # with a dollar sign (not a hyphen), so the echo should work correctly.
6272    # The option is referenced via a variable to avoid confusing sed.
6273    lt_compile=`echo "$ac_compile" | $SED \
6274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6276    -e 's:$: $lt_compiler_flag:'`
6277    (eval echo "\"\$as_me:6277: $lt_compile\"" >&5)
6278    (eval "$lt_compile" 2>conftest.err)
6279    ac_status=$?
6280    cat conftest.err >&5
6281    echo "$as_me:6281: \$? = $ac_status" >&5
6282    if (exit $ac_status) && test -s "$ac_outfile"; then
6283      # The compiler can only warn and ignore the option if not recognized
6284      # So say no if there are warnings other than the usual output.
6285      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6286      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6287      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6288        lt_cv_prog_compiler_rtti_exceptions=yes
6289      fi
6290    fi
6291    $rm conftest*
6292
6293 fi
6294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6296
6297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6298     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6299 else
6300     :
6301 fi
6302
6303 fi
6304
6305 lt_prog_compiler_wl=
6306 lt_prog_compiler_pic=
6307 lt_prog_compiler_static=
6308
6309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6311
6312   if test "$GCC" = yes; then
6313     lt_prog_compiler_wl='-Wl,'
6314     lt_prog_compiler_static='-static'
6315
6316     case $host_os in
6317       aix*)
6318       # All AIX code is PIC.
6319       if test "$host_cpu" = ia64; then
6320         # AIX 5 now supports IA64 processor
6321         lt_prog_compiler_static='-Bstatic'
6322       fi
6323       ;;
6324
6325     amigaos*)
6326       # FIXME: we need at least 68020 code to build shared libraries, but
6327       # adding the `-m68020' flag to GCC prevents building anything better,
6328       # like `-m68040'.
6329       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6330       ;;
6331
6332     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6333       # PIC is the default for these OSes.
6334       ;;
6335
6336     mingw* | pw32* | os2*)
6337       # This hack is so that the source file can tell whether it is being
6338       # built for inclusion in a dll (and should export symbols for example).
6339       lt_prog_compiler_pic='-DDLL_EXPORT'
6340       ;;
6341
6342     darwin* | rhapsody*)
6343       # PIC is the default on this platform
6344       # Common symbols not allowed in MH_DYLIB files
6345       lt_prog_compiler_pic='-fno-common'
6346       ;;
6347
6348     interix3*)
6349       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6350       # Instead, we relocate shared libraries at runtime.
6351       ;;
6352
6353     msdosdjgpp*)
6354       # Just because we use GCC doesn't mean we suddenly get shared libraries
6355       # on systems that don't support them.
6356       lt_prog_compiler_can_build_shared=no
6357       enable_shared=no
6358       ;;
6359
6360     sysv4*MP*)
6361       if test -d /usr/nec; then
6362         lt_prog_compiler_pic=-Kconform_pic
6363       fi
6364       ;;
6365
6366     hpux*)
6367       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6368       # not for PA HP-UX.
6369       case $host_cpu in
6370       hppa*64*|ia64*)
6371         # +Z the default
6372         ;;
6373       *)
6374         lt_prog_compiler_pic='-fPIC'
6375         ;;
6376       esac
6377       ;;
6378
6379     *)
6380       lt_prog_compiler_pic='-fPIC'
6381       ;;
6382     esac
6383   else
6384     # PORTME Check for flag to pass linker flags through the system compiler.
6385     case $host_os in
6386     aix*)
6387       lt_prog_compiler_wl='-Wl,'
6388       if test "$host_cpu" = ia64; then
6389         # AIX 5 now supports IA64 processor
6390         lt_prog_compiler_static='-Bstatic'
6391       else
6392         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6393       fi
6394       ;;
6395       darwin*)
6396         # PIC is the default on this platform
6397         # Common symbols not allowed in MH_DYLIB files
6398        case $cc_basename in
6399          xlc*)
6400          lt_prog_compiler_pic='-qnocommon'
6401          lt_prog_compiler_wl='-Wl,'
6402          ;;
6403        esac
6404        ;;
6405
6406     mingw* | pw32* | os2*)
6407       # This hack is so that the source file can tell whether it is being
6408       # built for inclusion in a dll (and should export symbols for example).
6409       lt_prog_compiler_pic='-DDLL_EXPORT'
6410       ;;
6411
6412     hpux9* | hpux10* | hpux11*)
6413       lt_prog_compiler_wl='-Wl,'
6414       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6415       # not for PA HP-UX.
6416       case $host_cpu in
6417       hppa*64*|ia64*)
6418         # +Z the default
6419         ;;
6420       *)
6421         lt_prog_compiler_pic='+Z'
6422         ;;
6423       esac
6424       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6425       lt_prog_compiler_static='${wl}-a ${wl}archive'
6426       ;;
6427
6428     irix5* | irix6* | nonstopux*)
6429       lt_prog_compiler_wl='-Wl,'
6430       # PIC (with -KPIC) is the default.
6431       lt_prog_compiler_static='-non_shared'
6432       ;;
6433
6434     newsos6)
6435       lt_prog_compiler_pic='-KPIC'
6436       lt_prog_compiler_static='-Bstatic'
6437       ;;
6438
6439     linux*)
6440       case $cc_basename in
6441       icc* | ecc*)
6442         lt_prog_compiler_wl='-Wl,'
6443         lt_prog_compiler_pic='-KPIC'
6444         lt_prog_compiler_static='-static'
6445         ;;
6446       pgcc* | pgf77* | pgf90* | pgf95*)
6447         # Portland Group compilers (*not* the Pentium gcc compiler,
6448         # which looks to be a dead project)
6449         lt_prog_compiler_wl='-Wl,'
6450         lt_prog_compiler_pic='-fpic'
6451         lt_prog_compiler_static='-Bstatic'
6452         ;;
6453       ccc*)
6454         lt_prog_compiler_wl='-Wl,'
6455         # All Alpha code is PIC.
6456         lt_prog_compiler_static='-non_shared'
6457         ;;
6458       esac
6459       ;;
6460
6461     osf3* | osf4* | osf5*)
6462       lt_prog_compiler_wl='-Wl,'
6463       # All OSF/1 code is PIC.
6464       lt_prog_compiler_static='-non_shared'
6465       ;;
6466
6467     solaris*)
6468       lt_prog_compiler_pic='-KPIC'
6469       lt_prog_compiler_static='-Bstatic'
6470       case $cc_basename in
6471       f77* | f90* | f95*)
6472         lt_prog_compiler_wl='-Qoption ld ';;
6473       *)
6474         lt_prog_compiler_wl='-Wl,';;
6475       esac
6476       ;;
6477
6478     sunos4*)
6479       lt_prog_compiler_wl='-Qoption ld '
6480       lt_prog_compiler_pic='-PIC'
6481       lt_prog_compiler_static='-Bstatic'
6482       ;;
6483
6484     sysv4 | sysv4.2uw2* | sysv4.3*)
6485       lt_prog_compiler_wl='-Wl,'
6486       lt_prog_compiler_pic='-KPIC'
6487       lt_prog_compiler_static='-Bstatic'
6488       ;;
6489
6490     sysv4*MP*)
6491       if test -d /usr/nec ;then
6492         lt_prog_compiler_pic='-Kconform_pic'
6493         lt_prog_compiler_static='-Bstatic'
6494       fi
6495       ;;
6496
6497     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6498       lt_prog_compiler_wl='-Wl,'
6499       lt_prog_compiler_pic='-KPIC'
6500       lt_prog_compiler_static='-Bstatic'
6501       ;;
6502
6503     unicos*)
6504       lt_prog_compiler_wl='-Wl,'
6505       lt_prog_compiler_can_build_shared=no
6506       ;;
6507
6508     uts4*)
6509       lt_prog_compiler_pic='-pic'
6510       lt_prog_compiler_static='-Bstatic'
6511       ;;
6512
6513     *)
6514       lt_prog_compiler_can_build_shared=no
6515       ;;
6516     esac
6517   fi
6518
6519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6520 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6521
6522 #
6523 # Check to make sure the PIC flag actually works.
6524 #
6525 if test -n "$lt_prog_compiler_pic"; then
6526
6527 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6528 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6529 if test "${lt_prog_compiler_pic_works+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   lt_prog_compiler_pic_works=no
6533   ac_outfile=conftest.$ac_objext
6534    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6535    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6536    # Insert the option either (1) after the last *FLAGS variable, or
6537    # (2) before a word containing "conftest.", or (3) at the end.
6538    # Note that $ac_compile itself does not contain backslashes and begins
6539    # with a dollar sign (not a hyphen), so the echo should work correctly.
6540    # The option is referenced via a variable to avoid confusing sed.
6541    lt_compile=`echo "$ac_compile" | $SED \
6542    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544    -e 's:$: $lt_compiler_flag:'`
6545    (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
6546    (eval "$lt_compile" 2>conftest.err)
6547    ac_status=$?
6548    cat conftest.err >&5
6549    echo "$as_me:6549: \$? = $ac_status" >&5
6550    if (exit $ac_status) && test -s "$ac_outfile"; then
6551      # The compiler can only warn and ignore the option if not recognized
6552      # So say no if there are warnings other than the usual output.
6553      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6554      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6555      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6556        lt_prog_compiler_pic_works=yes
6557      fi
6558    fi
6559    $rm conftest*
6560
6561 fi
6562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6563 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6564
6565 if test x"$lt_prog_compiler_pic_works" = xyes; then
6566     case $lt_prog_compiler_pic in
6567      "" | " "*) ;;
6568      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6569      esac
6570 else
6571     lt_prog_compiler_pic=
6572      lt_prog_compiler_can_build_shared=no
6573 fi
6574
6575 fi
6576 case $host_os in
6577   # For platforms which do not support PIC, -DPIC is meaningless:
6578   *djgpp*)
6579     lt_prog_compiler_pic=
6580     ;;
6581   *)
6582     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6583     ;;
6584 esac
6585
6586 #
6587 # Check to make sure the static flag actually works.
6588 #
6589 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6590 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6591 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6592 if test "${lt_prog_compiler_static_works+set}" = set; then
6593   echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595   lt_prog_compiler_static_works=no
6596    save_LDFLAGS="$LDFLAGS"
6597    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6598    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6599    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6600      # The linker can only warn and ignore the option if not recognized
6601      # So say no if there are warnings
6602      if test -s conftest.err; then
6603        # Append any errors to the config.log.
6604        cat conftest.err 1>&5
6605        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6606        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6607        if diff conftest.exp conftest.er2 >/dev/null; then
6608          lt_prog_compiler_static_works=yes
6609        fi
6610      else
6611        lt_prog_compiler_static_works=yes
6612      fi
6613    fi
6614    $rm conftest*
6615    LDFLAGS="$save_LDFLAGS"
6616
6617 fi
6618 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6619 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6620
6621 if test x"$lt_prog_compiler_static_works" = xyes; then
6622     :
6623 else
6624     lt_prog_compiler_static=
6625 fi
6626
6627
6628 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6629 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6630 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   lt_cv_prog_compiler_c_o=no
6634    $rm -r conftest 2>/dev/null
6635    mkdir conftest
6636    cd conftest
6637    mkdir out
6638    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6639
6640    lt_compiler_flag="-o out/conftest2.$ac_objext"
6641    # Insert the option either (1) after the last *FLAGS variable, or
6642    # (2) before a word containing "conftest.", or (3) at the end.
6643    # Note that $ac_compile itself does not contain backslashes and begins
6644    # with a dollar sign (not a hyphen), so the echo should work correctly.
6645    lt_compile=`echo "$ac_compile" | $SED \
6646    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6647    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6648    -e 's:$: $lt_compiler_flag:'`
6649    (eval echo "\"\$as_me:6649: $lt_compile\"" >&5)
6650    (eval "$lt_compile" 2>out/conftest.err)
6651    ac_status=$?
6652    cat out/conftest.err >&5
6653    echo "$as_me:6653: \$? = $ac_status" >&5
6654    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6655    then
6656      # The compiler can only warn and ignore the option if not recognized
6657      # So say no if there are warnings
6658      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6659      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6660      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6661        lt_cv_prog_compiler_c_o=yes
6662      fi
6663    fi
6664    chmod u+w . 2>&5
6665    $rm conftest*
6666    # SGI C++ compiler will create directory out/ii_files/ for
6667    # template instantiation
6668    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6669    $rm out/* && rmdir out
6670    cd ..
6671    rmdir conftest
6672    $rm conftest*
6673
6674 fi
6675 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6676 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6677
6678
6679 hard_links="nottested"
6680 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6681   # do not overwrite the value of need_locks provided by the user
6682   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6683 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6684   hard_links=yes
6685   $rm conftest*
6686   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6687   touch conftest.a
6688   ln conftest.a conftest.b 2>&5 || hard_links=no
6689   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6690   echo "$as_me:$LINENO: result: $hard_links" >&5
6691 echo "${ECHO_T}$hard_links" >&6
6692   if test "$hard_links" = no; then
6693     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6694 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6695     need_locks=warn
6696   fi
6697 else
6698   need_locks=no
6699 fi
6700
6701 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6702 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6703
6704   runpath_var=
6705   allow_undefined_flag=
6706   enable_shared_with_static_runtimes=no
6707   archive_cmds=
6708   archive_expsym_cmds=
6709   old_archive_From_new_cmds=
6710   old_archive_from_expsyms_cmds=
6711   export_dynamic_flag_spec=
6712   whole_archive_flag_spec=
6713   thread_safe_flag_spec=
6714   hardcode_libdir_flag_spec=
6715   hardcode_libdir_flag_spec_ld=
6716   hardcode_libdir_separator=
6717   hardcode_direct=no
6718   hardcode_minus_L=no
6719   hardcode_shlibpath_var=unsupported
6720   link_all_deplibs=unknown
6721   hardcode_automatic=no
6722   module_cmds=
6723   module_expsym_cmds=
6724   always_export_symbols=no
6725   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6726   # include_expsyms should be a list of space-separated symbols to be *always*
6727   # included in the symbol list
6728   include_expsyms=
6729   # exclude_expsyms can be an extended regexp of symbols to exclude
6730   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6731   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6732   # as well as any symbol that contains `d'.
6733   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6734   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6735   # platforms (ab)use it in PIC code, but their linkers get confused if
6736   # the symbol is explicitly referenced.  Since portable code cannot
6737   # rely on this symbol name, it's probably fine to never include it in
6738   # preloaded symbol tables.
6739   extract_expsyms_cmds=
6740   # Just being paranoid about ensuring that cc_basename is set.
6741   for cc_temp in $compiler""; do
6742   case $cc_temp in
6743     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6744     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6745     \-*) ;;
6746     *) break;;
6747   esac
6748 done
6749 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6750
6751   case $host_os in
6752   cygwin* | mingw* | pw32*)
6753     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6754     # When not using gcc, we currently assume that we are using
6755     # Microsoft Visual C++.
6756     if test "$GCC" != yes; then
6757       with_gnu_ld=no
6758     fi
6759     ;;
6760   interix*)
6761     # we just hope/assume this is gcc and not c89 (= MSVC++)
6762     with_gnu_ld=yes
6763     ;;
6764   openbsd*)
6765     with_gnu_ld=no
6766     ;;
6767   esac
6768
6769   ld_shlibs=yes
6770   if test "$with_gnu_ld" = yes; then
6771     # If archive_cmds runs LD, not CC, wlarc should be empty
6772     wlarc='${wl}'
6773
6774     # Set some defaults for GNU ld with shared library support. These
6775     # are reset later if shared libraries are not supported. Putting them
6776     # here allows them to be overridden if necessary.
6777     runpath_var=LD_RUN_PATH
6778     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6779     export_dynamic_flag_spec='${wl}--export-dynamic'
6780     # ancient GNU ld didn't support --whole-archive et. al.
6781     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6782         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6783       else
6784         whole_archive_flag_spec=
6785     fi
6786     supports_anon_versioning=no
6787     case `$LD -v 2>/dev/null` in
6788       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6789       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6790       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6791       *\ 2.11.*) ;; # other 2.11 versions
6792       *) supports_anon_versioning=yes ;;
6793     esac
6794
6795     # See if GNU ld supports shared libraries.
6796     case $host_os in
6797     aix3* | aix4* | aix5*)
6798       # On AIX/PPC, the GNU linker is very broken
6799       if test "$host_cpu" != ia64; then
6800         ld_shlibs=no
6801         cat <<EOF 1>&2
6802
6803 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6804 *** to be unable to reliably create shared libraries on AIX.
6805 *** Therefore, libtool is disabling shared libraries support.  If you
6806 *** really care for shared libraries, you may want to modify your PATH
6807 *** so that a non-GNU linker is found, and then restart.
6808
6809 EOF
6810       fi
6811       ;;
6812
6813     amigaos*)
6814       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)'
6815       hardcode_libdir_flag_spec='-L$libdir'
6816       hardcode_minus_L=yes
6817
6818       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6819       # that the semantics of dynamic libraries on AmigaOS, at least up
6820       # to version 4, is to share data among multiple programs linked
6821       # with the same dynamic library.  Since this doesn't match the
6822       # behavior of shared libraries on other platforms, we can't use
6823       # them.
6824       ld_shlibs=no
6825       ;;
6826
6827     beos*)
6828       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6829         allow_undefined_flag=unsupported
6830         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6831         # support --undefined.  This deserves some investigation.  FIXME
6832         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6833       else
6834         ld_shlibs=no
6835       fi
6836       ;;
6837
6838     cygwin* | mingw* | pw32*)
6839       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6840       # as there is no search path for DLLs.
6841       hardcode_libdir_flag_spec='-L$libdir'
6842       allow_undefined_flag=unsupported
6843       always_export_symbols=no
6844       enable_shared_with_static_runtimes=yes
6845       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6846
6847       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6848         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6849         # If the export-symbols file already is a .def file (1st line
6850         # is EXPORTS), use it as is; otherwise, prepend...
6851         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6852           cp $export_symbols $output_objdir/$soname.def;
6853         else
6854           echo EXPORTS > $output_objdir/$soname.def;
6855           cat $export_symbols >> $output_objdir/$soname.def;
6856         fi~
6857         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6858       else
6859         ld_shlibs=no
6860       fi
6861       ;;
6862
6863     interix3*)
6864       hardcode_direct=no
6865       hardcode_shlibpath_var=no
6866       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6867       export_dynamic_flag_spec='${wl}-E'
6868       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6869       # Instead, shared libraries are loaded at an image base (0x10000000 by
6870       # default) and relocated if they conflict, which is a slow very memory
6871       # consuming and fragmenting process.  To avoid this, we pick a random,
6872       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6873       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6874       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6875       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'
6876       ;;
6877
6878     linux*)
6879       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6880         tmp_addflag=
6881         case $cc_basename,$host_cpu in
6882         pgcc*)                          # Portland Group C compiler
6883           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'
6884           tmp_addflag=' $pic_flag'
6885           ;;
6886         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6887           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'
6888           tmp_addflag=' $pic_flag -Mnomain' ;;
6889         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6890           tmp_addflag=' -i_dynamic' ;;
6891         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6892           tmp_addflag=' -i_dynamic -nofor_main' ;;
6893         ifc* | ifort*)                  # Intel Fortran compiler
6894           tmp_addflag=' -nofor_main' ;;
6895         esac
6896         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6897
6898         if test $supports_anon_versioning = yes; then
6899           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6900   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6901   $echo "local: *; };" >> $output_objdir/$libname.ver~
6902           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6903         fi
6904       else
6905         ld_shlibs=no
6906       fi
6907       ;;
6908
6909     netbsd*)
6910       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6911         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6912         wlarc=
6913       else
6914         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6915         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6916       fi
6917       ;;
6918
6919     solaris*)
6920       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6921         ld_shlibs=no
6922         cat <<EOF 1>&2
6923
6924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6925 *** create shared libraries on Solaris systems.  Therefore, libtool
6926 *** is disabling shared libraries support.  We urge you to upgrade GNU
6927 *** binutils to release 2.9.1 or newer.  Another option is to modify
6928 *** your PATH or compiler configuration so that the native linker is
6929 *** used, and then restart.
6930
6931 EOF
6932       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6933         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6934         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6935       else
6936         ld_shlibs=no
6937       fi
6938       ;;
6939
6940     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6941       case `$LD -v 2>&1` in
6942         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6943         ld_shlibs=no
6944         cat <<_LT_EOF 1>&2
6945
6946 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6947 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6948 *** is disabling shared libraries support.  We urge you to upgrade GNU
6949 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6950 *** your PATH or compiler configuration so that the native linker is
6951 *** used, and then restart.
6952
6953 _LT_EOF
6954         ;;
6955         *)
6956           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6957             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6958             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6959             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6960           else
6961             ld_shlibs=no
6962           fi
6963         ;;
6964       esac
6965       ;;
6966
6967     sunos4*)
6968       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6969       wlarc=
6970       hardcode_direct=yes
6971       hardcode_shlibpath_var=no
6972       ;;
6973
6974     *)
6975       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6977         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6978       else
6979         ld_shlibs=no
6980       fi
6981       ;;
6982     esac
6983
6984     if test "$ld_shlibs" = no; then
6985       runpath_var=
6986       hardcode_libdir_flag_spec=
6987       export_dynamic_flag_spec=
6988       whole_archive_flag_spec=
6989     fi
6990   else
6991     # PORTME fill in a description of your system's linker (not GNU ld)
6992     case $host_os in
6993     aix3*)
6994       allow_undefined_flag=unsupported
6995       always_export_symbols=yes
6996       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'
6997       # Note: this linker hardcodes the directories in LIBPATH if there
6998       # are no directories specified by -L.
6999       hardcode_minus_L=yes
7000       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7001         # Neither direct hardcoding nor static linking is supported with a
7002         # broken collect2.
7003         hardcode_direct=unsupported
7004       fi
7005       ;;
7006
7007     aix4* | aix5*)
7008       if test "$host_cpu" = ia64; then
7009         # On IA64, the linker does run time linking by default, so we don't
7010         # have to do anything special.
7011         aix_use_runtimelinking=no
7012         exp_sym_flag='-Bexport'
7013         no_entry_flag=""
7014       else
7015         # If we're using GNU nm, then we don't want the "-C" option.
7016         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7017         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7018           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'
7019         else
7020           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'
7021         fi
7022         aix_use_runtimelinking=no
7023
7024         # Test if we are trying to use run time linking or normal
7025         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7026         # need to do runtime linking.
7027         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7028           for ld_flag in $LDFLAGS; do
7029           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7030             aix_use_runtimelinking=yes
7031             break
7032           fi
7033           done
7034           ;;
7035         esac
7036
7037         exp_sym_flag='-bexport'
7038         no_entry_flag='-bnoentry'
7039       fi
7040
7041       # When large executables or shared objects are built, AIX ld can
7042       # have problems creating the table of contents.  If linking a library
7043       # or program results in "error TOC overflow" add -mminimal-toc to
7044       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7045       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7046
7047       archive_cmds=''
7048       hardcode_direct=yes
7049       hardcode_libdir_separator=':'
7050       link_all_deplibs=yes
7051
7052       if test "$GCC" = yes; then
7053         case $host_os in aix4.[012]|aix4.[012].*)
7054         # We only want to do this on AIX 4.2 and lower, the check
7055         # below for broken collect2 doesn't work under 4.3+
7056           collect2name=`${CC} -print-prog-name=collect2`
7057           if test -f "$collect2name" && \
7058            strings "$collect2name" | grep resolve_lib_name >/dev/null
7059           then
7060           # We have reworked collect2
7061           hardcode_direct=yes
7062           else
7063           # We have old collect2
7064           hardcode_direct=unsupported
7065           # It fails to find uninstalled libraries when the uninstalled
7066           # path is not listed in the libpath.  Setting hardcode_minus_L
7067           # to unsupported forces relinking
7068           hardcode_minus_L=yes
7069           hardcode_libdir_flag_spec='-L$libdir'
7070           hardcode_libdir_separator=
7071           fi
7072           ;;
7073         esac
7074         shared_flag='-shared'
7075         if test "$aix_use_runtimelinking" = yes; then
7076           shared_flag="$shared_flag "'${wl}-G'
7077         fi
7078       else
7079         # not using gcc
7080         if test "$host_cpu" = ia64; then
7081         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7082         # chokes on -Wl,-G. The following line is correct:
7083           shared_flag='-G'
7084         else
7085           if test "$aix_use_runtimelinking" = yes; then
7086             shared_flag='${wl}-G'
7087           else
7088             shared_flag='${wl}-bM:SRE'
7089           fi
7090         fi
7091       fi
7092
7093       # It seems that -bexpall does not export symbols beginning with
7094       # underscore (_), so it is better to generate a list of symbols to export.
7095       always_export_symbols=yes
7096       if test "$aix_use_runtimelinking" = yes; then
7097         # Warning - without using the other runtime loading flags (-brtl),
7098         # -berok will link without error, but may produce a broken library.
7099         allow_undefined_flag='-berok'
7100        # Determine the default libpath from the value encoded in an empty executable.
7101        cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107
7108 int
7109 main ()
7110 {
7111
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118   (eval $ac_link) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; } &&
7131          { ac_try='test -s conftest$ac_exeext'
7132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133   (eval $ac_try) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); }; }; then
7137
7138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7139 }'`
7140 # Check for a 64-bit object if we didn't find anything.
7141 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; }
7142 }'`; fi
7143 else
7144   echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 fi
7148 rm -f conftest.err conftest.$ac_objext \
7149       conftest$ac_exeext conftest.$ac_ext
7150 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7151
7152        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7153         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"
7154        else
7155         if test "$host_cpu" = ia64; then
7156           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7157           allow_undefined_flag="-z nodefs"
7158           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"
7159         else
7160          # Determine the default libpath from the value encoded in an empty executable.
7161          cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167
7168 int
7169 main ()
7170 {
7171
7172   ;
7173   return 0;
7174 }
7175 _ACEOF
7176 rm -f conftest.$ac_objext conftest$ac_exeext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7178   (eval $ac_link) 2>conftest.er1
7179   ac_status=$?
7180   grep -v '^ *+' conftest.er1 >conftest.err
7181   rm -f conftest.er1
7182   cat conftest.err >&5
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } &&
7185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187   (eval $ac_try) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; } &&
7191          { ac_try='test -s conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197
7198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7199 }'`
7200 # Check for a 64-bit object if we didn't find anything.
7201 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; }
7202 }'`; fi
7203 else
7204   echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7206
7207 fi
7208 rm -f conftest.err conftest.$ac_objext \
7209       conftest$ac_exeext conftest.$ac_ext
7210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7211
7212          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7213           # Warning - without using the other run time loading flags,
7214           # -berok will link without error, but may produce a broken library.
7215           no_undefined_flag=' ${wl}-bernotok'
7216           allow_undefined_flag=' ${wl}-berok'
7217           # Exported symbols can be pulled into shared objects from archives
7218           whole_archive_flag_spec='$convenience'
7219           archive_cmds_need_lc=yes
7220           # This is similar to how AIX traditionally builds its shared libraries.
7221           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'
7222         fi
7223       fi
7224       ;;
7225
7226     amigaos*)
7227       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)'
7228       hardcode_libdir_flag_spec='-L$libdir'
7229       hardcode_minus_L=yes
7230       # see comment about different semantics on the GNU ld section
7231       ld_shlibs=no
7232       ;;
7233
7234     bsdi[45]*)
7235       export_dynamic_flag_spec=-rdynamic
7236       ;;
7237
7238     cygwin* | mingw* | pw32*)
7239       # When not using gcc, we currently assume that we are using
7240       # Microsoft Visual C++.
7241       # hardcode_libdir_flag_spec is actually meaningless, as there is
7242       # no search path for DLLs.
7243       hardcode_libdir_flag_spec=' '
7244       allow_undefined_flag=unsupported
7245       # Tell ltmain to make .lib files, not .a files.
7246       libext=lib
7247       # Tell ltmain to make .dll files, not .so files.
7248       shrext_cmds=".dll"
7249       # FIXME: Setting linknames here is a bad hack.
7250       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7251       # The linker will automatically build a .lib file if we build a DLL.
7252       old_archive_From_new_cmds='true'
7253       # FIXME: Should let the user specify the lib program.
7254       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7255       fix_srcfile_path='`cygpath -w "$srcfile"`'
7256       enable_shared_with_static_runtimes=yes
7257       ;;
7258
7259     darwin* | rhapsody*)
7260       case $host_os in
7261         rhapsody* | darwin1.[012])
7262          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7263          ;;
7264        *) # Darwin 1.3 on
7265          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7266            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7267          else
7268            case ${MACOSX_DEPLOYMENT_TARGET} in
7269              10.[012])
7270                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7271                ;;
7272              10.*)
7273                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7274                ;;
7275            esac
7276          fi
7277          ;;
7278       esac
7279       archive_cmds_need_lc=no
7280       hardcode_direct=no
7281       hardcode_automatic=yes
7282       hardcode_shlibpath_var=unsupported
7283       whole_archive_flag_spec=''
7284       link_all_deplibs=yes
7285     if test "$GCC" = yes ; then
7286         output_verbose_link_cmd='echo'
7287         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7288       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7289       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7290       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}'
7291       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}'
7292     else
7293       case $cc_basename in
7294         xlc*)
7295          output_verbose_link_cmd='echo'
7296          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7297          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7298           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7299          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}'
7300           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}'
7301           ;;
7302        *)
7303          ld_shlibs=no
7304           ;;
7305       esac
7306     fi
7307       ;;
7308
7309     dgux*)
7310       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7311       hardcode_libdir_flag_spec='-L$libdir'
7312       hardcode_shlibpath_var=no
7313       ;;
7314
7315     freebsd1*)
7316       ld_shlibs=no
7317       ;;
7318
7319     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7320     # support.  Future versions do this automatically, but an explicit c++rt0.o
7321     # does not break anything, and helps significantly (at the cost of a little
7322     # extra space).
7323     freebsd2.2*)
7324       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7325       hardcode_libdir_flag_spec='-R$libdir'
7326       hardcode_direct=yes
7327       hardcode_shlibpath_var=no
7328       ;;
7329
7330     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7331     freebsd2*)
7332       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7333       hardcode_direct=yes
7334       hardcode_minus_L=yes
7335       hardcode_shlibpath_var=no
7336       ;;
7337
7338     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7339     freebsd* | kfreebsd*-gnu | dragonfly*)
7340       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7341       hardcode_libdir_flag_spec='-R$libdir'
7342       hardcode_direct=yes
7343       hardcode_shlibpath_var=no
7344       ;;
7345
7346     hpux9*)
7347       if test "$GCC" = yes; then
7348         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'
7349       else
7350         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'
7351       fi
7352       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7353       hardcode_libdir_separator=:
7354       hardcode_direct=yes
7355
7356       # hardcode_minus_L: Not really in the search PATH,
7357       # but as the default location of the library.
7358       hardcode_minus_L=yes
7359       export_dynamic_flag_spec='${wl}-E'
7360       ;;
7361
7362     hpux10*)
7363       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7364         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7365       else
7366         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7367       fi
7368       if test "$with_gnu_ld" = no; then
7369         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7370         hardcode_libdir_separator=:
7371
7372         hardcode_direct=yes
7373         export_dynamic_flag_spec='${wl}-E'
7374
7375         # hardcode_minus_L: Not really in the search PATH,
7376         # but as the default location of the library.
7377         hardcode_minus_L=yes
7378       fi
7379       ;;
7380
7381     hpux11*)
7382       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7383         case $host_cpu in
7384         hppa*64*)
7385           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7386           ;;
7387         ia64*)
7388           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7389           ;;
7390         *)
7391           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7392           ;;
7393         esac
7394       else
7395         case $host_cpu in
7396         hppa*64*)
7397           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7398           ;;
7399         ia64*)
7400           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7401           ;;
7402         *)
7403           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7404           ;;
7405         esac
7406       fi
7407       if test "$with_gnu_ld" = no; then
7408         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7409         hardcode_libdir_separator=:
7410
7411         case $host_cpu in
7412         hppa*64*|ia64*)
7413           hardcode_libdir_flag_spec_ld='+b $libdir'
7414           hardcode_direct=no
7415           hardcode_shlibpath_var=no
7416           ;;
7417         *)
7418           hardcode_direct=yes
7419           export_dynamic_flag_spec='${wl}-E'
7420
7421           # hardcode_minus_L: Not really in the search PATH,
7422           # but as the default location of the library.
7423           hardcode_minus_L=yes
7424           ;;
7425         esac
7426       fi
7427       ;;
7428
7429     irix5* | irix6* | nonstopux*)
7430       if test "$GCC" = yes; then
7431         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'
7432       else
7433         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'
7434         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7435       fi
7436       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7437       hardcode_libdir_separator=:
7438       link_all_deplibs=yes
7439       ;;
7440
7441     netbsd*)
7442       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7443         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7444       else
7445         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7446       fi
7447       hardcode_libdir_flag_spec='-R$libdir'
7448       hardcode_direct=yes
7449       hardcode_shlibpath_var=no
7450       ;;
7451
7452     newsos6)
7453       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454       hardcode_direct=yes
7455       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7456       hardcode_libdir_separator=:
7457       hardcode_shlibpath_var=no
7458       ;;
7459
7460     openbsd*)
7461       hardcode_direct=yes
7462       hardcode_shlibpath_var=no
7463       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7464         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7465         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7466         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7467         export_dynamic_flag_spec='${wl}-E'
7468       else
7469        case $host_os in
7470          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7471            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7472            hardcode_libdir_flag_spec='-R$libdir'
7473            ;;
7474          *)
7475            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7476            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7477            ;;
7478        esac
7479       fi
7480       ;;
7481
7482     os2*)
7483       hardcode_libdir_flag_spec='-L$libdir'
7484       hardcode_minus_L=yes
7485       allow_undefined_flag=unsupported
7486       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'
7487       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7488       ;;
7489
7490     osf3*)
7491       if test "$GCC" = yes; then
7492         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7493         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'
7494       else
7495         allow_undefined_flag=' -expect_unresolved \*'
7496         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'
7497       fi
7498       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7499       hardcode_libdir_separator=:
7500       ;;
7501
7502     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7503       if test "$GCC" = yes; then
7504         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7505         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'
7506         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7507       else
7508         allow_undefined_flag=' -expect_unresolved \*'
7509         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'
7510         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7511         $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'
7512
7513         # Both c and cxx compiler support -rpath directly
7514         hardcode_libdir_flag_spec='-rpath $libdir'
7515       fi
7516       hardcode_libdir_separator=:
7517       ;;
7518
7519     solaris*)
7520       no_undefined_flag=' -z text'
7521       if test "$GCC" = yes; then
7522         wlarc='${wl}'
7523         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7524         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7525           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7526       else
7527         wlarc=''
7528         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7529         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7530         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7531       fi
7532       hardcode_libdir_flag_spec='-R$libdir'
7533       hardcode_shlibpath_var=no
7534       case $host_os in
7535       solaris2.[0-5] | solaris2.[0-5].*) ;;
7536       *)
7537         # The compiler driver will combine linker options so we
7538         # cannot just pass the convience library names through
7539         # without $wl, iff we do not link with $LD.
7540         # Luckily, gcc supports the same syntax we need for Sun Studio.
7541         # Supported since Solaris 2.6 (maybe 2.5.1?)
7542         case $wlarc in
7543         '')
7544           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7545         *)
7546           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' ;;
7547         esac ;;
7548       esac
7549       link_all_deplibs=yes
7550       ;;
7551
7552     sunos4*)
7553       if test "x$host_vendor" = xsequent; then
7554         # Use $CC to link under sequent, because it throws in some extra .o
7555         # files that make .init and .fini sections work.
7556         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7557       else
7558         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7559       fi
7560       hardcode_libdir_flag_spec='-L$libdir'
7561       hardcode_direct=yes
7562       hardcode_minus_L=yes
7563       hardcode_shlibpath_var=no
7564       ;;
7565
7566     sysv4)
7567       case $host_vendor in
7568         sni)
7569           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7570           hardcode_direct=yes # is this really true???
7571         ;;
7572         siemens)
7573           ## LD is ld it makes a PLAMLIB
7574           ## CC just makes a GrossModule.
7575           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7576           reload_cmds='$CC -r -o $output$reload_objs'
7577           hardcode_direct=no
7578         ;;
7579         motorola)
7580           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7582         ;;
7583       esac
7584       runpath_var='LD_RUN_PATH'
7585       hardcode_shlibpath_var=no
7586       ;;
7587
7588     sysv4.3*)
7589       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7590       hardcode_shlibpath_var=no
7591       export_dynamic_flag_spec='-Bexport'
7592       ;;
7593
7594     sysv4*MP*)
7595       if test -d /usr/nec; then
7596         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7597         hardcode_shlibpath_var=no
7598         runpath_var=LD_RUN_PATH
7599         hardcode_runpath_var=yes
7600         ld_shlibs=yes
7601       fi
7602       ;;
7603
7604     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7605       no_undefined_flag='${wl}-z,text'
7606       archive_cmds_need_lc=no
7607       hardcode_shlibpath_var=no
7608       runpath_var='LD_RUN_PATH'
7609
7610       if test "$GCC" = yes; then
7611         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7612         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7613       else
7614         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7615         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7616       fi
7617       ;;
7618
7619     sysv5* | sco3.2v5* | sco5v6*)
7620       # Note: We can NOT use -z defs as we might desire, because we do not
7621       # link with -lc, and that would cause any symbols used from libc to
7622       # always be unresolved, which means just about no library would
7623       # ever link correctly.  If we're not using GNU ld we use -z text
7624       # though, which does catch some bad symbols but isn't as heavy-handed
7625       # as -z defs.
7626       no_undefined_flag='${wl}-z,text'
7627       allow_undefined_flag='${wl}-z,nodefs'
7628       archive_cmds_need_lc=no
7629       hardcode_shlibpath_var=no
7630       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7631       hardcode_libdir_separator=':'
7632       link_all_deplibs=yes
7633       export_dynamic_flag_spec='${wl}-Bexport'
7634       runpath_var='LD_RUN_PATH'
7635
7636       if test "$GCC" = yes; then
7637         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7638         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7639       else
7640         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7641         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7642       fi
7643       ;;
7644
7645     uts4*)
7646       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7647       hardcode_libdir_flag_spec='-L$libdir'
7648       hardcode_shlibpath_var=no
7649       ;;
7650
7651     *)
7652       ld_shlibs=no
7653       ;;
7654     esac
7655   fi
7656
7657 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7658 echo "${ECHO_T}$ld_shlibs" >&6
7659 test "$ld_shlibs" = no && can_build_shared=no
7660
7661 #
7662 # Do we need to explicitly link libc?
7663 #
7664 case "x$archive_cmds_need_lc" in
7665 x|xyes)
7666   # Assume -lc should be added
7667   archive_cmds_need_lc=yes
7668
7669   if test "$enable_shared" = yes && test "$GCC" = yes; then
7670     case $archive_cmds in
7671     *'~'*)
7672       # FIXME: we may have to deal with multi-command sequences.
7673       ;;
7674     '$CC '*)
7675       # Test whether the compiler implicitly links with -lc since on some
7676       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7677       # to ld, don't add -lc before -lgcc.
7678       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7679 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7680       $rm conftest*
7681       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7682
7683       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684   (eval $ac_compile) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } 2>conftest.err; then
7688         soname=conftest
7689         lib=conftest
7690         libobjs=conftest.$ac_objext
7691         deplibs=
7692         wl=$lt_prog_compiler_wl
7693         pic_flag=$lt_prog_compiler_pic
7694         compiler_flags=-v
7695         linker_flags=-v
7696         verstring=
7697         output_objdir=.
7698         libname=conftest
7699         lt_save_allow_undefined_flag=$allow_undefined_flag
7700         allow_undefined_flag=
7701         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7702   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }
7706         then
7707           archive_cmds_need_lc=no
7708         else
7709           archive_cmds_need_lc=yes
7710         fi
7711         allow_undefined_flag=$lt_save_allow_undefined_flag
7712       else
7713         cat conftest.err 1>&5
7714       fi
7715       $rm conftest*
7716       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7717 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7718       ;;
7719     esac
7720   fi
7721   ;;
7722 esac
7723
7724 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7726 library_names_spec=
7727 libname_spec='lib$name'
7728 soname_spec=
7729 shrext_cmds=".so"
7730 postinstall_cmds=
7731 postuninstall_cmds=
7732 finish_cmds=
7733 finish_eval=
7734 shlibpath_var=
7735 shlibpath_overrides_runpath=unknown
7736 version_type=none
7737 dynamic_linker="$host_os ld.so"
7738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7739 if test "$GCC" = yes; then
7740   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7741   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7742     # if the path contains ";" then we assume it to be the separator
7743     # otherwise default to the standard path separator (i.e. ":") - it is
7744     # assumed that no part of a normal pathname contains ";" but that should
7745     # okay in the real world where ";" in dirpaths is itself problematic.
7746     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7747   else
7748     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7749   fi
7750 else
7751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7752 fi
7753 need_lib_prefix=unknown
7754 hardcode_into_libs=no
7755
7756 # when you set need_version to no, make sure it does not cause -set_version
7757 # flags to be left without arguments
7758 need_version=unknown
7759
7760 case $host_os in
7761 aix3*)
7762   version_type=linux
7763   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7764   shlibpath_var=LIBPATH
7765
7766   # AIX 3 has no versioning support, so we append a major version to the name.
7767   soname_spec='${libname}${release}${shared_ext}$major'
7768   ;;
7769
7770 aix4* | aix5*)
7771   version_type=linux
7772   need_lib_prefix=no
7773   need_version=no
7774   hardcode_into_libs=yes
7775   if test "$host_cpu" = ia64; then
7776     # AIX 5 supports IA64
7777     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7778     shlibpath_var=LD_LIBRARY_PATH
7779   else
7780     # With GCC up to 2.95.x, collect2 would create an import file
7781     # for dependence libraries.  The import file would start with
7782     # the line `#! .'.  This would cause the generated library to
7783     # depend on `.', always an invalid library.  This was fixed in
7784     # development snapshots of GCC prior to 3.0.
7785     case $host_os in
7786       aix4 | aix4.[01] | aix4.[01].*)
7787       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7788            echo ' yes '
7789            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7790         :
7791       else
7792         can_build_shared=no
7793       fi
7794       ;;
7795     esac
7796     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7797     # soname into executable. Probably we can add versioning support to
7798     # collect2, so additional links can be useful in future.
7799     if test "$aix_use_runtimelinking" = yes; then
7800       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7801       # instead of lib<name>.a to let people know that these are not
7802       # typical AIX shared libraries.
7803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804     else
7805       # We preserve .a as extension for shared libraries through AIX4.2
7806       # and later when we are not doing run time linking.
7807       library_names_spec='${libname}${release}.a $libname.a'
7808       soname_spec='${libname}${release}${shared_ext}$major'
7809     fi
7810     shlibpath_var=LIBPATH
7811   fi
7812   ;;
7813
7814 amigaos*)
7815   library_names_spec='$libname.ixlibrary $libname.a'
7816   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7817   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'
7818   ;;
7819
7820 beos*)
7821   library_names_spec='${libname}${shared_ext}'
7822   dynamic_linker="$host_os ld.so"
7823   shlibpath_var=LIBRARY_PATH
7824   ;;
7825
7826 bsdi[45]*)
7827   version_type=linux
7828   need_version=no
7829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7830   soname_spec='${libname}${release}${shared_ext}$major'
7831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7832   shlibpath_var=LD_LIBRARY_PATH
7833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7835   # the default ld.so.conf also contains /usr/contrib/lib and
7836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7837   # libtool to hard-code these into programs
7838   ;;
7839
7840 cygwin* | mingw* | pw32*)
7841   version_type=windows
7842   shrext_cmds=".dll"
7843   need_version=no
7844   need_lib_prefix=no
7845
7846   case $GCC,$host_os in
7847   yes,cygwin* | yes,mingw* | yes,pw32*)
7848     library_names_spec='$libname.dll.a'
7849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7850     postinstall_cmds='base_file=`basename \${file}`~
7851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7852       dldir=$destdir/`dirname \$dlpath`~
7853       test -d \$dldir || mkdir -p \$dldir~
7854       $install_prog $dir/$dlname \$dldir/$dlname~
7855       chmod a+x \$dldir/$dlname'
7856     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7857       dlpath=$dir/\$dldll~
7858        $rm \$dlpath'
7859     shlibpath_overrides_runpath=yes
7860
7861     case $host_os in
7862     cygwin*)
7863       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7864       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7865       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7866       ;;
7867     mingw*)
7868       # MinGW DLLs use traditional 'lib' prefix
7869       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7870       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7871       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7872         # It is most probably a Windows format PATH printed by
7873         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7874         # path with ; separators, and with drive letters. We can handle the
7875         # drive letters (cygwin fileutils understands them), so leave them,
7876         # especially as we might pass files found there to a mingw objdump,
7877         # which wouldn't understand a cygwinified path. Ahh.
7878         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7879       else
7880         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7881       fi
7882       ;;
7883     pw32*)
7884       # pw32 DLLs use 'pw' prefix rather than 'lib'
7885       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7886       ;;
7887     esac
7888     ;;
7889
7890   *)
7891     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7892     ;;
7893   esac
7894   dynamic_linker='Win32 ld.exe'
7895   # FIXME: first we should search . and the directory the executable is in
7896   shlibpath_var=PATH
7897   ;;
7898
7899 darwin* | rhapsody*)
7900   dynamic_linker="$host_os dyld"
7901   version_type=darwin
7902   need_lib_prefix=no
7903   need_version=no
7904   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7905   soname_spec='${libname}${release}${major}$shared_ext'
7906   shlibpath_overrides_runpath=yes
7907   shlibpath_var=DYLD_LIBRARY_PATH
7908   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7909   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7910   if test "$GCC" = yes; then
7911     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"`
7912   else
7913     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7914   fi
7915   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7916   ;;
7917
7918 dgux*)
7919   version_type=linux
7920   need_lib_prefix=no
7921   need_version=no
7922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7923   soname_spec='${libname}${release}${shared_ext}$major'
7924   shlibpath_var=LD_LIBRARY_PATH
7925   ;;
7926
7927 freebsd1*)
7928   dynamic_linker=no
7929   ;;
7930
7931 kfreebsd*-gnu)
7932   version_type=linux
7933   need_lib_prefix=no
7934   need_version=no
7935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7936   soname_spec='${libname}${release}${shared_ext}$major'
7937   shlibpath_var=LD_LIBRARY_PATH
7938   shlibpath_overrides_runpath=no
7939   hardcode_into_libs=yes
7940   dynamic_linker='GNU ld.so'
7941   ;;
7942
7943 freebsd* | dragonfly*)
7944   # DragonFly does not have aout.  When/if they implement a new
7945   # versioning mechanism, adjust this.
7946   if test -x /usr/bin/objformat; then
7947     objformat=`/usr/bin/objformat`
7948   else
7949     case $host_os in
7950     freebsd[123]*) objformat=aout ;;
7951     *) objformat=elf ;;
7952     esac
7953   fi
7954   version_type=freebsd-$objformat
7955   case $version_type in
7956     freebsd-elf*)
7957       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7958       need_version=no
7959       need_lib_prefix=no
7960       ;;
7961     freebsd-*)
7962       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7963       need_version=yes
7964       ;;
7965   esac
7966   shlibpath_var=LD_LIBRARY_PATH
7967   case $host_os in
7968   freebsd2*)
7969     shlibpath_overrides_runpath=yes
7970     ;;
7971   freebsd3.[01]* | freebsdelf3.[01]*)
7972     shlibpath_overrides_runpath=yes
7973     hardcode_into_libs=yes
7974     ;;
7975   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7976   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7977     shlibpath_overrides_runpath=no
7978     hardcode_into_libs=yes
7979     ;;
7980   freebsd*) # from 4.6 on
7981     shlibpath_overrides_runpath=yes
7982     hardcode_into_libs=yes
7983     ;;
7984   esac
7985   ;;
7986
7987 gnu*)
7988   version_type=linux
7989   need_lib_prefix=no
7990   need_version=no
7991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7992   soname_spec='${libname}${release}${shared_ext}$major'
7993   shlibpath_var=LD_LIBRARY_PATH
7994   hardcode_into_libs=yes
7995   ;;
7996
7997 hpux9* | hpux10* | hpux11*)
7998   # Give a soname corresponding to the major version so that dld.sl refuses to
7999   # link against other versions.
8000   version_type=sunos
8001   need_lib_prefix=no
8002   need_version=no
8003   case $host_cpu in
8004   ia64*)
8005     shrext_cmds='.so'
8006     hardcode_into_libs=yes
8007     dynamic_linker="$host_os dld.so"
8008     shlibpath_var=LD_LIBRARY_PATH
8009     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011     soname_spec='${libname}${release}${shared_ext}$major'
8012     if test "X$HPUX_IA64_MODE" = X32; then
8013       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8014     else
8015       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8016     fi
8017     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8018     ;;
8019    hppa*64*)
8020      shrext_cmds='.sl'
8021      hardcode_into_libs=yes
8022      dynamic_linker="$host_os dld.sl"
8023      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8024      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8025      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026      soname_spec='${libname}${release}${shared_ext}$major'
8027      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8028      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8029      ;;
8030    *)
8031     shrext_cmds='.sl'
8032     dynamic_linker="$host_os dld.sl"
8033     shlibpath_var=SHLIB_PATH
8034     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8036     soname_spec='${libname}${release}${shared_ext}$major'
8037     ;;
8038   esac
8039   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8040   postinstall_cmds='chmod 555 $lib'
8041   ;;
8042
8043 interix3*)
8044   version_type=linux
8045   need_lib_prefix=no
8046   need_version=no
8047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8048   soname_spec='${libname}${release}${shared_ext}$major'
8049   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8050   shlibpath_var=LD_LIBRARY_PATH
8051   shlibpath_overrides_runpath=no
8052   hardcode_into_libs=yes
8053   ;;
8054
8055 irix5* | irix6* | nonstopux*)
8056   case $host_os in
8057     nonstopux*) version_type=nonstopux ;;
8058     *)
8059         if test "$lt_cv_prog_gnu_ld" = yes; then
8060                 version_type=linux
8061         else
8062                 version_type=irix
8063         fi ;;
8064   esac
8065   need_lib_prefix=no
8066   need_version=no
8067   soname_spec='${libname}${release}${shared_ext}$major'
8068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8069   case $host_os in
8070   irix5* | nonstopux*)
8071     libsuff= shlibsuff=
8072     ;;
8073   *)
8074     case $LD in # libtool.m4 will add one of these switches to LD
8075     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8076       libsuff= shlibsuff= libmagic=32-bit;;
8077     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8078       libsuff=32 shlibsuff=N32 libmagic=N32;;
8079     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8080       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8081     *) libsuff= shlibsuff= libmagic=never-match;;
8082     esac
8083     ;;
8084   esac
8085   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8086   shlibpath_overrides_runpath=no
8087   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8088   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8089   hardcode_into_libs=yes
8090   ;;
8091
8092 # No shared lib support for Linux oldld, aout, or coff.
8093 linux*oldld* | linux*aout* | linux*coff*)
8094   dynamic_linker=no
8095   ;;
8096
8097 # This must be Linux ELF.
8098 linux*)
8099   version_type=linux
8100   need_lib_prefix=no
8101   need_version=no
8102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8103   soname_spec='${libname}${release}${shared_ext}$major'
8104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8105   shlibpath_var=LD_LIBRARY_PATH
8106   shlibpath_overrides_runpath=no
8107   # This implies no fast_install, which is unacceptable.
8108   # Some rework will be needed to allow for fast_install
8109   # before this can be enabled.
8110   hardcode_into_libs=yes
8111
8112   # Append ld.so.conf contents to the search path
8113   if test -f /etc/ld.so.conf; then
8114     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' ' '`
8115     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8116   fi
8117
8118   # We used to test for /lib/ld.so.1 and disable shared libraries on
8119   # powerpc, because MkLinux only supported shared libraries with the
8120   # GNU dynamic linker.  Since this was broken with cross compilers,
8121   # most powerpc-linux boxes support dynamic linking these days and
8122   # people can always --disable-shared, the test was removed, and we
8123   # assume the GNU/Linux dynamic linker is in use.
8124   dynamic_linker='GNU/Linux ld.so'
8125   ;;
8126
8127 knetbsd*-gnu)
8128   version_type=linux
8129   need_lib_prefix=no
8130   need_version=no
8131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8132   soname_spec='${libname}${release}${shared_ext}$major'
8133   shlibpath_var=LD_LIBRARY_PATH
8134   shlibpath_overrides_runpath=no
8135   hardcode_into_libs=yes
8136   dynamic_linker='GNU ld.so'
8137   ;;
8138
8139 netbsd*)
8140   version_type=sunos
8141   need_lib_prefix=no
8142   need_version=no
8143   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8145     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8146     dynamic_linker='NetBSD (a.out) ld.so'
8147   else
8148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8149     soname_spec='${libname}${release}${shared_ext}$major'
8150     dynamic_linker='NetBSD ld.elf_so'
8151   fi
8152   shlibpath_var=LD_LIBRARY_PATH
8153   shlibpath_overrides_runpath=yes
8154   hardcode_into_libs=yes
8155   ;;
8156
8157 newsos6)
8158   version_type=linux
8159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8160   shlibpath_var=LD_LIBRARY_PATH
8161   shlibpath_overrides_runpath=yes
8162   ;;
8163
8164 nto-qnx*)
8165   version_type=linux
8166   need_lib_prefix=no
8167   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
8171   shlibpath_overrides_runpath=yes
8172   ;;
8173
8174 openbsd*)
8175   version_type=sunos
8176   sys_lib_dlsearch_path_spec="/usr/lib"
8177   need_lib_prefix=no
8178   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8179   case $host_os in
8180     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8181     *)                         need_version=no  ;;
8182   esac
8183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8184   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8185   shlibpath_var=LD_LIBRARY_PATH
8186   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8187     case $host_os in
8188       openbsd2.[89] | openbsd2.[89].*)
8189         shlibpath_overrides_runpath=no
8190         ;;
8191       *)
8192         shlibpath_overrides_runpath=yes
8193         ;;
8194       esac
8195   else
8196     shlibpath_overrides_runpath=yes
8197   fi
8198   ;;
8199
8200 os2*)
8201   libname_spec='$name'
8202   shrext_cmds=".dll"
8203   need_lib_prefix=no
8204   library_names_spec='$libname${shared_ext} $libname.a'
8205   dynamic_linker='OS/2 ld.exe'
8206   shlibpath_var=LIBPATH
8207   ;;
8208
8209 osf3* | osf4* | osf5*)
8210   version_type=osf
8211   need_lib_prefix=no
8212   need_version=no
8213   soname_spec='${libname}${release}${shared_ext}$major'
8214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215   shlibpath_var=LD_LIBRARY_PATH
8216   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8217   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8218   ;;
8219
8220 solaris*)
8221   version_type=linux
8222   need_lib_prefix=no
8223   need_version=no
8224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225   soname_spec='${libname}${release}${shared_ext}$major'
8226   shlibpath_var=LD_LIBRARY_PATH
8227   shlibpath_overrides_runpath=yes
8228   hardcode_into_libs=yes
8229   # ldd complains unless libraries are executable
8230   postinstall_cmds='chmod +x $lib'
8231   ;;
8232
8233 sunos4*)
8234   version_type=sunos
8235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8236   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8237   shlibpath_var=LD_LIBRARY_PATH
8238   shlibpath_overrides_runpath=yes
8239   if test "$with_gnu_ld" = yes; then
8240     need_lib_prefix=no
8241   fi
8242   need_version=yes
8243   ;;
8244
8245 sysv4 | sysv4.3*)
8246   version_type=linux
8247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248   soname_spec='${libname}${release}${shared_ext}$major'
8249   shlibpath_var=LD_LIBRARY_PATH
8250   case $host_vendor in
8251     sni)
8252       shlibpath_overrides_runpath=no
8253       need_lib_prefix=no
8254       export_dynamic_flag_spec='${wl}-Blargedynsym'
8255       runpath_var=LD_RUN_PATH
8256       ;;
8257     siemens)
8258       need_lib_prefix=no
8259       ;;
8260     motorola)
8261       need_lib_prefix=no
8262       need_version=no
8263       shlibpath_overrides_runpath=no
8264       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8265       ;;
8266   esac
8267   ;;
8268
8269 sysv4*MP*)
8270   if test -d /usr/nec ;then
8271     version_type=linux
8272     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8273     soname_spec='$libname${shared_ext}.$major'
8274     shlibpath_var=LD_LIBRARY_PATH
8275   fi
8276   ;;
8277
8278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8279   version_type=freebsd-elf
8280   need_lib_prefix=no
8281   need_version=no
8282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8283   soname_spec='${libname}${release}${shared_ext}$major'
8284   shlibpath_var=LD_LIBRARY_PATH
8285   hardcode_into_libs=yes
8286   if test "$with_gnu_ld" = yes; then
8287     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8288     shlibpath_overrides_runpath=no
8289   else
8290     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8291     shlibpath_overrides_runpath=yes
8292     case $host_os in
8293       sco3.2v5*)
8294         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8295         ;;
8296     esac
8297   fi
8298   sys_lib_dlsearch_path_spec='/usr/lib'
8299   ;;
8300
8301 uts4*)
8302   version_type=linux
8303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8304   soname_spec='${libname}${release}${shared_ext}$major'
8305   shlibpath_var=LD_LIBRARY_PATH
8306   ;;
8307
8308 *)
8309   dynamic_linker=no
8310   ;;
8311 esac
8312 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8313 echo "${ECHO_T}$dynamic_linker" >&6
8314 test "$dynamic_linker" = no && can_build_shared=no
8315
8316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8317 if test "$GCC" = yes; then
8318   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8319 fi
8320
8321 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8322 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8323 hardcode_action=
8324 if test -n "$hardcode_libdir_flag_spec" || \
8325    test -n "$runpath_var" || \
8326    test "X$hardcode_automatic" = "Xyes" ; then
8327
8328   # We can hardcode non-existant directories.
8329   if test "$hardcode_direct" != no &&
8330      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8331      # have to relink, otherwise we might link with an installed library
8332      # when we should be linking with a yet-to-be-installed one
8333      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8334      test "$hardcode_minus_L" != no; then
8335     # Linking always hardcodes the temporary library directory.
8336     hardcode_action=relink
8337   else
8338     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8339     hardcode_action=immediate
8340   fi
8341 else
8342   # We cannot hardcode anything, or else we can only hardcode existing
8343   # directories.
8344   hardcode_action=unsupported
8345 fi
8346 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8347 echo "${ECHO_T}$hardcode_action" >&6
8348
8349 if test "$hardcode_action" = relink; then
8350   # Fast installation is not supported
8351   enable_fast_install=no
8352 elif test "$shlibpath_overrides_runpath" = yes ||
8353      test "$enable_shared" = no; then
8354   # Fast installation is not necessary
8355   enable_fast_install=needless
8356 fi
8357
8358 striplib=
8359 old_striplib=
8360 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8361 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8362 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8363   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8364   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8365   echo "$as_me:$LINENO: result: yes" >&5
8366 echo "${ECHO_T}yes" >&6
8367 else
8368 # FIXME - insert some real tests, host_os isn't really good enough
8369   case $host_os in
8370    darwin*)
8371        if test -n "$STRIP" ; then
8372          striplib="$STRIP -x"
8373          echo "$as_me:$LINENO: result: yes" >&5
8374 echo "${ECHO_T}yes" >&6
8375        else
8376   echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8378 fi
8379        ;;
8380    *)
8381   echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8383     ;;
8384   esac
8385 fi
8386
8387 if test "x$enable_dlopen" != xyes; then
8388   enable_dlopen=unknown
8389   enable_dlopen_self=unknown
8390   enable_dlopen_self_static=unknown
8391 else
8392   lt_cv_dlopen=no
8393   lt_cv_dlopen_libs=
8394
8395   case $host_os in
8396   beos*)
8397     lt_cv_dlopen="load_add_on"
8398     lt_cv_dlopen_libs=
8399     lt_cv_dlopen_self=yes
8400     ;;
8401
8402   mingw* | pw32*)
8403     lt_cv_dlopen="LoadLibrary"
8404     lt_cv_dlopen_libs=
8405    ;;
8406
8407   cygwin*)
8408     lt_cv_dlopen="dlopen"
8409     lt_cv_dlopen_libs=
8410    ;;
8411
8412   darwin*)
8413   # if libdl is installed we need to link against it
8414     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8415 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8416 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   ac_check_lib_save_LIBS=$LIBS
8420 LIBS="-ldl  $LIBS"
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427
8428 /* Override any gcc2 internal prototype to avoid an error.  */
8429 #ifdef __cplusplus
8430 extern "C"
8431 #endif
8432 /* We use char because int might match the return type of a gcc2
8433    builtin and then its argument prototype would still apply.  */
8434 char dlopen ();
8435 int
8436 main ()
8437 {
8438 dlopen ();
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445   (eval $ac_link) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest$ac_exeext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_cv_lib_dl_dlopen=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_cv_lib_dl_dlopen=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext \
8472       conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8474 fi
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8476 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8477 if test $ac_cv_lib_dl_dlopen = yes; then
8478   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8479 else
8480
8481     lt_cv_dlopen="dyld"
8482     lt_cv_dlopen_libs=
8483     lt_cv_dlopen_self=yes
8484
8485 fi
8486
8487    ;;
8488
8489   *)
8490     echo "$as_me:$LINENO: checking for shl_load" >&5
8491 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8492 if test "${ac_cv_func_shl_load+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8503 #define shl_load innocuous_shl_load
8504
8505 /* System header to define __stub macros and hopefully few prototypes,
8506     which can conflict with char shl_load (); below.
8507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8508     <limits.h> exists even on freestanding compilers.  */
8509
8510 #ifdef __STDC__
8511 # include <limits.h>
8512 #else
8513 # include <assert.h>
8514 #endif
8515
8516 #undef shl_load
8517
8518 /* Override any gcc2 internal prototype to avoid an error.  */
8519 #ifdef __cplusplus
8520 extern "C"
8521 {
8522 #endif
8523 /* We use char because int might match the return type of a gcc2
8524    builtin and then its argument prototype would still apply.  */
8525 char shl_load ();
8526 /* The GNU C library defines this for functions which it implements
8527     to always fail with ENOSYS.  Some functions are actually named
8528     something starting with __ and the normal name is an alias.  */
8529 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8530 choke me
8531 #else
8532 char (*f) () = shl_load;
8533 #endif
8534 #ifdef __cplusplus
8535 }
8536 #endif
8537
8538 int
8539 main ()
8540 {
8541 return f != shl_load;
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8548   (eval $ac_link) 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } &&
8555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; } &&
8561          { ac_try='test -s conftest$ac_exeext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_cv_func_shl_load=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_cv_func_shl_load=no
8573 fi
8574 rm -f conftest.err conftest.$ac_objext \
8575       conftest$ac_exeext conftest.$ac_ext
8576 fi
8577 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8578 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8579 if test $ac_cv_func_shl_load = yes; then
8580   lt_cv_dlopen="shl_load"
8581 else
8582   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8583 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8584 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-ldld  $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595
8596 /* Override any gcc2 internal prototype to avoid an error.  */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601    builtin and then its argument prototype would still apply.  */
8602 char shl_load ();
8603 int
8604 main ()
8605 {
8606 shl_load ();
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613   (eval $ac_link) 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } &&
8620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest$ac_exeext'
8627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628   (eval $ac_try) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632   ac_cv_lib_dld_shl_load=yes
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_cv_lib_dld_shl_load=no
8638 fi
8639 rm -f conftest.err conftest.$ac_objext \
8640       conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8644 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8645 if test $ac_cv_lib_dld_shl_load = yes; then
8646   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8647 else
8648   echo "$as_me:$LINENO: checking for dlopen" >&5
8649 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8650 if test "${ac_cv_func_dlopen+set}" = set; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653   cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8661 #define dlopen innocuous_dlopen
8662
8663 /* System header to define __stub macros and hopefully few prototypes,
8664     which can conflict with char dlopen (); below.
8665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666     <limits.h> exists even on freestanding compilers.  */
8667
8668 #ifdef __STDC__
8669 # include <limits.h>
8670 #else
8671 # include <assert.h>
8672 #endif
8673
8674 #undef dlopen
8675
8676 /* Override any gcc2 internal prototype to avoid an error.  */
8677 #ifdef __cplusplus
8678 extern "C"
8679 {
8680 #endif
8681 /* We use char because int might match the return type of a gcc2
8682    builtin and then its argument prototype would still apply.  */
8683 char dlopen ();
8684 /* The GNU C library defines this for functions which it implements
8685     to always fail with ENOSYS.  Some functions are actually named
8686     something starting with __ and the normal name is an alias.  */
8687 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8688 choke me
8689 #else
8690 char (*f) () = dlopen;
8691 #endif
8692 #ifdef __cplusplus
8693 }
8694 #endif
8695
8696 int
8697 main ()
8698 {
8699 return f != dlopen;
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706   (eval $ac_link) 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; } &&
8719          { ac_try='test -s conftest$ac_exeext'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; }; then
8725   ac_cv_func_dlopen=yes
8726 else
8727   echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ac_cv_func_dlopen=no
8731 fi
8732 rm -f conftest.err conftest.$ac_objext \
8733       conftest$ac_exeext conftest.$ac_ext
8734 fi
8735 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8736 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8737 if test $ac_cv_func_dlopen = yes; then
8738   lt_cv_dlopen="dlopen"
8739 else
8740   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-ldl  $LIBS"
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753
8754 /* Override any gcc2 internal prototype to avoid an error.  */
8755 #ifdef __cplusplus
8756 extern "C"
8757 #endif
8758 /* We use char because int might match the return type of a gcc2
8759    builtin and then its argument prototype would still apply.  */
8760 char dlopen ();
8761 int
8762 main ()
8763 {
8764 dlopen ();
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771   (eval $ac_link) 2>conftest.er1
8772   ac_status=$?
8773   grep -v '^ *+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; } &&
8784          { ac_try='test -s conftest$ac_exeext'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   ac_cv_lib_dl_dlopen=yes
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_cv_lib_dl_dlopen=no
8796 fi
8797 rm -f conftest.err conftest.$ac_objext \
8798       conftest$ac_exeext conftest.$ac_ext
8799 LIBS=$ac_check_lib_save_LIBS
8800 fi
8801 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8802 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8803 if test $ac_cv_lib_dl_dlopen = yes; then
8804   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8805 else
8806   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8807 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8808 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8809   echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811   ac_check_lib_save_LIBS=$LIBS
8812 LIBS="-lsvld  $LIBS"
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819
8820 /* Override any gcc2 internal prototype to avoid an error.  */
8821 #ifdef __cplusplus
8822 extern "C"
8823 #endif
8824 /* We use char because int might match the return type of a gcc2
8825    builtin and then its argument prototype would still apply.  */
8826 char dlopen ();
8827 int
8828 main ()
8829 {
8830 dlopen ();
8831   ;
8832   return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837   (eval $ac_link) 2>conftest.er1
8838   ac_status=$?
8839   grep -v '^ *+' conftest.er1 >conftest.err
8840   rm -f conftest.er1
8841   cat conftest.err >&5
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } &&
8844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846   (eval $ac_try) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); }; } &&
8850          { ac_try='test -s conftest$ac_exeext'
8851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852   (eval $ac_try) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; }; then
8856   ac_cv_lib_svld_dlopen=yes
8857 else
8858   echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ac_cv_lib_svld_dlopen=no
8862 fi
8863 rm -f conftest.err conftest.$ac_objext \
8864       conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8866 fi
8867 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8868 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8869 if test $ac_cv_lib_svld_dlopen = yes; then
8870   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8871 else
8872   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8873 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8874 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877   ac_check_lib_save_LIBS=$LIBS
8878 LIBS="-ldld  $LIBS"
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885
8886 /* Override any gcc2 internal prototype to avoid an error.  */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 /* We use char because int might match the return type of a gcc2
8891    builtin and then its argument prototype would still apply.  */
8892 char dld_link ();
8893 int
8894 main ()
8895 {
8896 dld_link ();
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>conftest.er1
8904   ac_status=$?
8905   grep -v '^ *+' conftest.er1 >conftest.err
8906   rm -f conftest.er1
8907   cat conftest.err >&5
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; } &&
8916          { ac_try='test -s conftest$ac_exeext'
8917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918   (eval $ac_try) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; }; then
8922   ac_cv_lib_dld_dld_link=yes
8923 else
8924   echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927 ac_cv_lib_dld_dld_link=no
8928 fi
8929 rm -f conftest.err conftest.$ac_objext \
8930       conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8932 fi
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8934 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8935 if test $ac_cv_lib_dld_dld_link = yes; then
8936   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8937 fi
8938
8939
8940 fi
8941
8942
8943 fi
8944
8945
8946 fi
8947
8948
8949 fi
8950
8951
8952 fi
8953
8954     ;;
8955   esac
8956
8957   if test "x$lt_cv_dlopen" != xno; then
8958     enable_dlopen=yes
8959   else
8960     enable_dlopen=no
8961   fi
8962
8963   case $lt_cv_dlopen in
8964   dlopen)
8965     save_CPPFLAGS="$CPPFLAGS"
8966     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8967
8968     save_LDFLAGS="$LDFLAGS"
8969     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8970
8971     save_LIBS="$LIBS"
8972     LIBS="$lt_cv_dlopen_libs $LIBS"
8973
8974     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8975 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8976 if test "${lt_cv_dlopen_self+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979           if test "$cross_compiling" = yes; then :
8980   lt_cv_dlopen_self=cross
8981 else
8982   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8983   lt_status=$lt_dlunknown
8984   cat > conftest.$ac_ext <<EOF
8985 #line 8985 "configure"
8986 #include "confdefs.h"
8987
8988 #if HAVE_DLFCN_H
8989 #include <dlfcn.h>
8990 #endif
8991
8992 #include <stdio.h>
8993
8994 #ifdef RTLD_GLOBAL
8995 #  define LT_DLGLOBAL           RTLD_GLOBAL
8996 #else
8997 #  ifdef DL_GLOBAL
8998 #    define LT_DLGLOBAL         DL_GLOBAL
8999 #  else
9000 #    define LT_DLGLOBAL         0
9001 #  endif
9002 #endif
9003
9004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9005    find out it does not work in some platform. */
9006 #ifndef LT_DLLAZY_OR_NOW
9007 #  ifdef RTLD_LAZY
9008 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9009 #  else
9010 #    ifdef DL_LAZY
9011 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9012 #    else
9013 #      ifdef RTLD_NOW
9014 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9015 #      else
9016 #        ifdef DL_NOW
9017 #          define LT_DLLAZY_OR_NOW      DL_NOW
9018 #        else
9019 #          define LT_DLLAZY_OR_NOW      0
9020 #        endif
9021 #      endif
9022 #    endif
9023 #  endif
9024 #endif
9025
9026 #ifdef __cplusplus
9027 extern "C" void exit (int);
9028 #endif
9029
9030 void fnord() { int i=42;}
9031 int main ()
9032 {
9033   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9034   int status = $lt_dlunknown;
9035
9036   if (self)
9037     {
9038       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9039       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9040       /* dlclose (self); */
9041     }
9042   else
9043     puts (dlerror ());
9044
9045     exit (status);
9046 }
9047 EOF
9048   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049   (eval $ac_link) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9053     (./conftest; exit; ) >&5 2>/dev/null
9054     lt_status=$?
9055     case x$lt_status in
9056       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9057       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9058       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9059     esac
9060   else :
9061     # compilation failed
9062     lt_cv_dlopen_self=no
9063   fi
9064 fi
9065 rm -fr conftest*
9066
9067
9068 fi
9069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9070 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9071
9072     if test "x$lt_cv_dlopen_self" = xyes; then
9073       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9074       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9075 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9076 if test "${lt_cv_dlopen_self_static+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079           if test "$cross_compiling" = yes; then :
9080   lt_cv_dlopen_self_static=cross
9081 else
9082   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9083   lt_status=$lt_dlunknown
9084   cat > conftest.$ac_ext <<EOF
9085 #line 9085 "configure"
9086 #include "confdefs.h"
9087
9088 #if HAVE_DLFCN_H
9089 #include <dlfcn.h>
9090 #endif
9091
9092 #include <stdio.h>
9093
9094 #ifdef RTLD_GLOBAL
9095 #  define LT_DLGLOBAL           RTLD_GLOBAL
9096 #else
9097 #  ifdef DL_GLOBAL
9098 #    define LT_DLGLOBAL         DL_GLOBAL
9099 #  else
9100 #    define LT_DLGLOBAL         0
9101 #  endif
9102 #endif
9103
9104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9105    find out it does not work in some platform. */
9106 #ifndef LT_DLLAZY_OR_NOW
9107 #  ifdef RTLD_LAZY
9108 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9109 #  else
9110 #    ifdef DL_LAZY
9111 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9112 #    else
9113 #      ifdef RTLD_NOW
9114 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9115 #      else
9116 #        ifdef DL_NOW
9117 #          define LT_DLLAZY_OR_NOW      DL_NOW
9118 #        else
9119 #          define LT_DLLAZY_OR_NOW      0
9120 #        endif
9121 #      endif
9122 #    endif
9123 #  endif
9124 #endif
9125
9126 #ifdef __cplusplus
9127 extern "C" void exit (int);
9128 #endif
9129
9130 void fnord() { int i=42;}
9131 int main ()
9132 {
9133   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9134   int status = $lt_dlunknown;
9135
9136   if (self)
9137     {
9138       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9139       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9140       /* dlclose (self); */
9141     }
9142   else
9143     puts (dlerror ());
9144
9145     exit (status);
9146 }
9147 EOF
9148   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149   (eval $ac_link) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9153     (./conftest; exit; ) >&5 2>/dev/null
9154     lt_status=$?
9155     case x$lt_status in
9156       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9157       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9158       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9159     esac
9160   else :
9161     # compilation failed
9162     lt_cv_dlopen_self_static=no
9163   fi
9164 fi
9165 rm -fr conftest*
9166
9167
9168 fi
9169 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9170 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9171     fi
9172
9173     CPPFLAGS="$save_CPPFLAGS"
9174     LDFLAGS="$save_LDFLAGS"
9175     LIBS="$save_LIBS"
9176     ;;
9177   esac
9178
9179   case $lt_cv_dlopen_self in
9180   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9181   *) enable_dlopen_self=unknown ;;
9182   esac
9183
9184   case $lt_cv_dlopen_self_static in
9185   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9186   *) enable_dlopen_self_static=unknown ;;
9187   esac
9188 fi
9189
9190
9191 # Report which library types will actually be built
9192 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9194 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9195 echo "${ECHO_T}$can_build_shared" >&6
9196
9197 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9199 test "$can_build_shared" = "no" && enable_shared=no
9200
9201 # On AIX, shared libraries and static libraries use the same namespace, and
9202 # are all built from PIC.
9203 case $host_os in
9204 aix3*)
9205   test "$enable_shared" = yes && enable_static=no
9206   if test -n "$RANLIB"; then
9207     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9208     postinstall_cmds='$RANLIB $lib'
9209   fi
9210   ;;
9211
9212 aix4* | aix5*)
9213   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9214     test "$enable_shared" = yes && enable_static=no
9215   fi
9216     ;;
9217 esac
9218 echo "$as_me:$LINENO: result: $enable_shared" >&5
9219 echo "${ECHO_T}$enable_shared" >&6
9220
9221 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9222 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9223 # Make sure either enable_shared or enable_static is yes.
9224 test "$enable_shared" = yes || enable_static=yes
9225 echo "$as_me:$LINENO: result: $enable_static" >&5
9226 echo "${ECHO_T}$enable_static" >&6
9227
9228 # The else clause should only fire when bootstrapping the
9229 # libtool distribution, otherwise you forgot to ship ltmain.sh
9230 # with your package, and you will get complaints that there are
9231 # no rules to generate ltmain.sh.
9232 if test -f "$ltmain"; then
9233   # See if we are running on zsh, and set the options which allow our commands through
9234   # without removal of \ escapes.
9235   if test -n "${ZSH_VERSION+set}" ; then
9236     setopt NO_GLOB_SUBST
9237   fi
9238   # Now quote all the things that may contain metacharacters while being
9239   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9240   # variables and quote the copies for generation of the libtool script.
9241   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9242     SED SHELL STRIP \
9243     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9244     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9245     deplibs_check_method reload_flag reload_cmds need_locks \
9246     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9247     lt_cv_sys_global_symbol_to_c_name_address \
9248     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9249     old_postinstall_cmds old_postuninstall_cmds \
9250     compiler \
9251     CC \
9252     LD \
9253     lt_prog_compiler_wl \
9254     lt_prog_compiler_pic \
9255     lt_prog_compiler_static \
9256     lt_prog_compiler_no_builtin_flag \
9257     export_dynamic_flag_spec \
9258     thread_safe_flag_spec \
9259     whole_archive_flag_spec \
9260     enable_shared_with_static_runtimes \
9261     old_archive_cmds \
9262     old_archive_from_new_cmds \
9263     predep_objects \
9264     postdep_objects \
9265     predeps \
9266     postdeps \
9267     compiler_lib_search_path \
9268     archive_cmds \
9269     archive_expsym_cmds \
9270     postinstall_cmds \
9271     postuninstall_cmds \
9272     old_archive_from_expsyms_cmds \
9273     allow_undefined_flag \
9274     no_undefined_flag \
9275     export_symbols_cmds \
9276     hardcode_libdir_flag_spec \
9277     hardcode_libdir_flag_spec_ld \
9278     hardcode_libdir_separator \
9279     hardcode_automatic \
9280     module_cmds \
9281     module_expsym_cmds \
9282     lt_cv_prog_compiler_c_o \
9283     exclude_expsyms \
9284     include_expsyms; do
9285
9286     case $var in
9287     old_archive_cmds | \
9288     old_archive_from_new_cmds | \
9289     archive_cmds | \
9290     archive_expsym_cmds | \
9291     module_cmds | \
9292     module_expsym_cmds | \
9293     old_archive_from_expsyms_cmds | \
9294     export_symbols_cmds | \
9295     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9296     postinstall_cmds | postuninstall_cmds | \
9297     old_postinstall_cmds | old_postuninstall_cmds | \
9298     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9299       # Double-quote double-evaled strings.
9300       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9301       ;;
9302     *)
9303       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9304       ;;
9305     esac
9306   done
9307
9308   case $lt_echo in
9309   *'\$0 --fallback-echo"')
9310     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9311     ;;
9312   esac
9313
9314 cfgfile="${ofile}T"
9315   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9316   $rm -f "$cfgfile"
9317   { echo "$as_me:$LINENO: creating $ofile" >&5
9318 echo "$as_me: creating $ofile" >&6;}
9319
9320   cat <<__EOF__ >> "$cfgfile"
9321 #! $SHELL
9322
9323 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9324 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9325 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9326 #
9327 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9328 # Free Software Foundation, Inc.
9329 #
9330 # This file is part of GNU Libtool:
9331 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9332 #
9333 # This program is free software; you can redistribute it and/or modify
9334 # it under the terms of the GNU General Public License as published by
9335 # the Free Software Foundation; either version 2 of the License, or
9336 # (at your option) any later version.
9337 #
9338 # This program is distributed in the hope that it will be useful, but
9339 # WITHOUT ANY WARRANTY; without even the implied warranty of
9340 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9341 # General Public License for more details.
9342 #
9343 # You should have received a copy of the GNU General Public License
9344 # along with this program; if not, write to the Free Software
9345 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9346 #
9347 # As a special exception to the GNU General Public License, if you
9348 # distribute this file as part of a program that contains a
9349 # configuration script generated by Autoconf, you may include it under
9350 # the same distribution terms that you use for the rest of that program.
9351
9352 # A sed program that does not truncate output.
9353 SED=$lt_SED
9354
9355 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9356 Xsed="$SED -e 1s/^X//"
9357
9358 # The HP-UX ksh and POSIX shell print the target directory to stdout
9359 # if CDPATH is set.
9360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9361
9362 # The names of the tagged configurations supported by this script.
9363 available_tags=
9364
9365 # ### BEGIN LIBTOOL CONFIG
9366
9367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9368
9369 # Shell to use when invoking shell scripts.
9370 SHELL=$lt_SHELL
9371
9372 # Whether or not to build shared libraries.
9373 build_libtool_libs=$enable_shared
9374
9375 # Whether or not to build static libraries.
9376 build_old_libs=$enable_static
9377
9378 # Whether or not to add -lc for building shared libraries.
9379 build_libtool_need_lc=$archive_cmds_need_lc
9380
9381 # Whether or not to disallow shared libs when runtime libs are static
9382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9383
9384 # Whether or not to optimize for fast installation.
9385 fast_install=$enable_fast_install
9386
9387 # The host system.
9388 host_alias=$host_alias
9389 host=$host
9390 host_os=$host_os
9391
9392 # The build system.
9393 build_alias=$build_alias
9394 build=$build
9395 build_os=$build_os
9396
9397 # An echo program that does not interpret backslashes.
9398 echo=$lt_echo
9399
9400 # The archiver.
9401 AR=$lt_AR
9402 AR_FLAGS=$lt_AR_FLAGS
9403
9404 # A C compiler.
9405 LTCC=$lt_LTCC
9406
9407 # LTCC compiler flags.
9408 LTCFLAGS=$lt_LTCFLAGS
9409
9410 # A language-specific compiler.
9411 CC=$lt_compiler
9412
9413 # Is the compiler the GNU C compiler?
9414 with_gcc=$GCC
9415
9416 # An ERE matcher.
9417 EGREP=$lt_EGREP
9418
9419 # The linker used to build libraries.
9420 LD=$lt_LD
9421
9422 # Whether we need hard or soft links.
9423 LN_S=$lt_LN_S
9424
9425 # A BSD-compatible nm program.
9426 NM=$lt_NM
9427
9428 # A symbol stripping program
9429 STRIP=$lt_STRIP
9430
9431 # Used to examine libraries when file_magic_cmd begins "file"
9432 MAGIC_CMD=$MAGIC_CMD
9433
9434 # Used on cygwin: DLL creation program.
9435 DLLTOOL="$DLLTOOL"
9436
9437 # Used on cygwin: object dumper.
9438 OBJDUMP="$OBJDUMP"
9439
9440 # Used on cygwin: assembler.
9441 AS="$AS"
9442
9443 # The name of the directory that contains temporary libtool files.
9444 objdir=$objdir
9445
9446 # How to create reloadable object files.
9447 reload_flag=$lt_reload_flag
9448 reload_cmds=$lt_reload_cmds
9449
9450 # How to pass a linker flag through the compiler.
9451 wl=$lt_lt_prog_compiler_wl
9452
9453 # Object file suffix (normally "o").
9454 objext="$ac_objext"
9455
9456 # Old archive suffix (normally "a").
9457 libext="$libext"
9458
9459 # Shared library suffix (normally ".so").
9460 shrext_cmds='$shrext_cmds'
9461
9462 # Executable file suffix (normally "").
9463 exeext="$exeext"
9464
9465 # Additional compiler flags for building library objects.
9466 pic_flag=$lt_lt_prog_compiler_pic
9467 pic_mode=$pic_mode
9468
9469 # What is the maximum length of a command?
9470 max_cmd_len=$lt_cv_sys_max_cmd_len
9471
9472 # Does compiler simultaneously support -c and -o options?
9473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9474
9475 # Must we lock files when doing compilation?
9476 need_locks=$lt_need_locks
9477
9478 # Do we need the lib prefix for modules?
9479 need_lib_prefix=$need_lib_prefix
9480
9481 # Do we need a version for libraries?
9482 need_version=$need_version
9483
9484 # Whether dlopen is supported.
9485 dlopen_support=$enable_dlopen
9486
9487 # Whether dlopen of programs is supported.
9488 dlopen_self=$enable_dlopen_self
9489
9490 # Whether dlopen of statically linked programs is supported.
9491 dlopen_self_static=$enable_dlopen_self_static
9492
9493 # Compiler flag to prevent dynamic linking.
9494 link_static_flag=$lt_lt_prog_compiler_static
9495
9496 # Compiler flag to turn off builtin functions.
9497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9498
9499 # Compiler flag to allow reflexive dlopens.
9500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9501
9502 # Compiler flag to generate shared objects directly from archives.
9503 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9504
9505 # Compiler flag to generate thread-safe objects.
9506 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9507
9508 # Library versioning type.
9509 version_type=$version_type
9510
9511 # Format of library name prefix.
9512 libname_spec=$lt_libname_spec
9513
9514 # List of archive names.  First name is the real one, the rest are links.
9515 # The last name is the one that the linker finds with -lNAME.
9516 library_names_spec=$lt_library_names_spec
9517
9518 # The coded name of the library, if different from the real name.
9519 soname_spec=$lt_soname_spec
9520
9521 # Commands used to build and install an old-style archive.
9522 RANLIB=$lt_RANLIB
9523 old_archive_cmds=$lt_old_archive_cmds
9524 old_postinstall_cmds=$lt_old_postinstall_cmds
9525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9526
9527 # Create an old-style archive from a shared archive.
9528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9529
9530 # Create a temporary old-style archive to link instead of a shared archive.
9531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9532
9533 # Commands used to build and install a shared archive.
9534 archive_cmds=$lt_archive_cmds
9535 archive_expsym_cmds=$lt_archive_expsym_cmds
9536 postinstall_cmds=$lt_postinstall_cmds
9537 postuninstall_cmds=$lt_postuninstall_cmds
9538
9539 # Commands used to build a loadable module (assumed same as above if empty)
9540 module_cmds=$lt_module_cmds
9541 module_expsym_cmds=$lt_module_expsym_cmds
9542
9543 # Commands to strip libraries.
9544 old_striplib=$lt_old_striplib
9545 striplib=$lt_striplib
9546
9547 # Dependencies to place before the objects being linked to create a
9548 # shared library.
9549 predep_objects=$lt_predep_objects
9550
9551 # Dependencies to place after the objects being linked to create a
9552 # shared library.
9553 postdep_objects=$lt_postdep_objects
9554
9555 # Dependencies to place before the objects being linked to create a
9556 # shared library.
9557 predeps=$lt_predeps
9558
9559 # Dependencies to place after the objects being linked to create a
9560 # shared library.
9561 postdeps=$lt_postdeps
9562
9563 # The library search path used internally by the compiler when linking
9564 # a shared library.
9565 compiler_lib_search_path=$lt_compiler_lib_search_path
9566
9567 # Method to check whether dependent libraries are shared objects.
9568 deplibs_check_method=$lt_deplibs_check_method
9569
9570 # Command to use when deplibs_check_method == file_magic.
9571 file_magic_cmd=$lt_file_magic_cmd
9572
9573 # Flag that allows shared libraries with undefined symbols to be built.
9574 allow_undefined_flag=$lt_allow_undefined_flag
9575
9576 # Flag that forces no undefined symbols.
9577 no_undefined_flag=$lt_no_undefined_flag
9578
9579 # Commands used to finish a libtool library installation in a directory.
9580 finish_cmds=$lt_finish_cmds
9581
9582 # Same as above, but a single script fragment to be evaled but not shown.
9583 finish_eval=$lt_finish_eval
9584
9585 # Take the output of nm and produce a listing of raw symbols and C names.
9586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9587
9588 # Transform the output of nm in a proper C declaration
9589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9590
9591 # Transform the output of nm in a C name address pair
9592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9593
9594 # This is the shared library runtime path variable.
9595 runpath_var=$runpath_var
9596
9597 # This is the shared library path variable.
9598 shlibpath_var=$shlibpath_var
9599
9600 # Is shlibpath searched before the hard-coded library search path?
9601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9602
9603 # How to hardcode a shared library path into an executable.
9604 hardcode_action=$hardcode_action
9605
9606 # Whether we should hardcode library paths into libraries.
9607 hardcode_into_libs=$hardcode_into_libs
9608
9609 # Flag to hardcode \$libdir into a binary during linking.
9610 # This must work even if \$libdir does not exist.
9611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9612
9613 # If ld is used when linking, flag to hardcode \$libdir into
9614 # a binary during linking. This must work even if \$libdir does
9615 # not exist.
9616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9617
9618 # Whether we need a single -rpath flag with a separated argument.
9619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9620
9621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9622 # resulting binary.
9623 hardcode_direct=$hardcode_direct
9624
9625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9626 # resulting binary.
9627 hardcode_minus_L=$hardcode_minus_L
9628
9629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9630 # the resulting binary.
9631 hardcode_shlibpath_var=$hardcode_shlibpath_var
9632
9633 # Set to yes if building a shared library automatically hardcodes DIR into the library
9634 # and all subsequent libraries and executables linked against it.
9635 hardcode_automatic=$hardcode_automatic
9636
9637 # Variables whose values should be saved in libtool wrapper scripts and
9638 # restored at relink time.
9639 variables_saved_for_relink="$variables_saved_for_relink"
9640
9641 # Whether libtool must link a program against all its dependency libraries.
9642 link_all_deplibs=$link_all_deplibs
9643
9644 # Compile-time system search path for libraries
9645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9646
9647 # Run-time system search path for libraries
9648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9649
9650 # Fix the shell variable \$srcfile for the compiler.
9651 fix_srcfile_path="$fix_srcfile_path"
9652
9653 # Set to yes if exported symbols are required.
9654 always_export_symbols=$always_export_symbols
9655
9656 # The commands to list exported symbols.
9657 export_symbols_cmds=$lt_export_symbols_cmds
9658
9659 # The commands to extract the exported symbol list from a shared archive.
9660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9661
9662 # Symbols that should not be listed in the preloaded symbols.
9663 exclude_expsyms=$lt_exclude_expsyms
9664
9665 # Symbols that must always be exported.
9666 include_expsyms=$lt_include_expsyms
9667
9668 # ### END LIBTOOL CONFIG
9669
9670 __EOF__
9671
9672
9673   case $host_os in
9674   aix3*)
9675     cat <<\EOF >> "$cfgfile"
9676
9677 # AIX sometimes has problems with the GCC collect2 program.  For some
9678 # reason, if we set the COLLECT_NAMES environment variable, the problems
9679 # vanish in a puff of smoke.
9680 if test "X${COLLECT_NAMES+set}" != Xset; then
9681   COLLECT_NAMES=
9682   export COLLECT_NAMES
9683 fi
9684 EOF
9685     ;;
9686   esac
9687
9688   # We use sed instead of cat because bash on DJGPP gets confused if
9689   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9690   # text mode, it properly converts lines to CR/LF.  This bash problem
9691   # is reportedly fixed, but why not run on old versions too?
9692   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9693
9694   mv -f "$cfgfile" "$ofile" || \
9695     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9696   chmod +x "$ofile"
9697
9698 else
9699   # If there is no Makefile yet, we rely on a make rule to execute
9700   # `config.status --recheck' to rerun these tests and create the
9701   # libtool script then.
9702   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9703   if test -f "$ltmain_in"; then
9704     test -f Makefile && make "$ltmain"
9705   fi
9706 fi
9707
9708
9709 ac_ext=c
9710 ac_cpp='$CPP $CPPFLAGS'
9711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9714
9715 CC="$lt_save_CC"
9716
9717
9718 # Check whether --with-tags or --without-tags was given.
9719 if test "${with_tags+set}" = set; then
9720   withval="$with_tags"
9721   tagnames="$withval"
9722 fi;
9723
9724 if test -f "$ltmain" && test -n "$tagnames"; then
9725   if test ! -f "${ofile}"; then
9726     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9727 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9728   fi
9729
9730   if test -z "$LTCC"; then
9731     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9732     if test -z "$LTCC"; then
9733       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9734 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9735     else
9736       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9737 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9738     fi
9739   fi
9740   if test -z "$LTCFLAGS"; then
9741     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9742   fi
9743
9744   # Extract list of available tagged configurations in $ofile.
9745   # Note that this assumes the entire list is on one line.
9746   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9747
9748   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9749   for tagname in $tagnames; do
9750     IFS="$lt_save_ifs"
9751     # Check whether tagname contains only valid characters
9752     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9753     "") ;;
9754     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9755 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9756    { (exit 1); exit 1; }; }
9757         ;;
9758     esac
9759
9760     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9761     then
9762       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9763 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9764    { (exit 1); exit 1; }; }
9765     fi
9766
9767     # Update the list of available tags.
9768     if test -n "$tagname"; then
9769       echo appending configuration tag \"$tagname\" to $ofile
9770
9771       case $tagname in
9772       CXX)
9773         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9774             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9775             (test "X$CXX" != "Xg++"))) ; then
9776           ac_ext=cc
9777 ac_cpp='$CXXCPP $CPPFLAGS'
9778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9781
9782
9783
9784
9785 archive_cmds_need_lc_CXX=no
9786 allow_undefined_flag_CXX=
9787 always_export_symbols_CXX=no
9788 archive_expsym_cmds_CXX=
9789 export_dynamic_flag_spec_CXX=
9790 hardcode_direct_CXX=no
9791 hardcode_libdir_flag_spec_CXX=
9792 hardcode_libdir_flag_spec_ld_CXX=
9793 hardcode_libdir_separator_CXX=
9794 hardcode_minus_L_CXX=no
9795 hardcode_shlibpath_var_CXX=unsupported
9796 hardcode_automatic_CXX=no
9797 module_cmds_CXX=
9798 module_expsym_cmds_CXX=
9799 link_all_deplibs_CXX=unknown
9800 old_archive_cmds_CXX=$old_archive_cmds
9801 no_undefined_flag_CXX=
9802 whole_archive_flag_spec_CXX=
9803 enable_shared_with_static_runtimes_CXX=no
9804
9805 # Dependencies to place before and after the object being linked:
9806 predep_objects_CXX=
9807 postdep_objects_CXX=
9808 predeps_CXX=
9809 postdeps_CXX=
9810 compiler_lib_search_path_CXX=
9811
9812 # Source file extension for C++ test sources.
9813 ac_ext=cpp
9814
9815 # Object file extension for compiled C++ test sources.
9816 objext=o
9817 objext_CXX=$objext
9818
9819 # Code to be used in simple compile tests
9820 lt_simple_compile_test_code="int some_variable = 0;\n"
9821
9822 # Code to be used in simple link tests
9823 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9824
9825 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9826
9827 # If no C compiler was specified, use CC.
9828 LTCC=${LTCC-"$CC"}
9829
9830 # If no C compiler flags were specified, use CFLAGS.
9831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9832
9833 # Allow CC to be a program name with arguments.
9834 compiler=$CC
9835
9836
9837 # save warnings/boilerplate of simple test code
9838 ac_outfile=conftest.$ac_objext
9839 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9840 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9841 _lt_compiler_boilerplate=`cat conftest.err`
9842 $rm conftest*
9843
9844 ac_outfile=conftest.$ac_objext
9845 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9846 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9847 _lt_linker_boilerplate=`cat conftest.err`
9848 $rm conftest*
9849
9850
9851 # Allow CC to be a program name with arguments.
9852 lt_save_CC=$CC
9853 lt_save_LD=$LD
9854 lt_save_GCC=$GCC
9855 GCC=$GXX
9856 lt_save_with_gnu_ld=$with_gnu_ld
9857 lt_save_path_LD=$lt_cv_path_LD
9858 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9859   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9860 else
9861   $as_unset lt_cv_prog_gnu_ld
9862 fi
9863 if test -n "${lt_cv_path_LDCXX+set}"; then
9864   lt_cv_path_LD=$lt_cv_path_LDCXX
9865 else
9866   $as_unset lt_cv_path_LD
9867 fi
9868 test -z "${LDCXX+set}" || LD=$LDCXX
9869 CC=${CXX-"c++"}
9870 compiler=$CC
9871 compiler_CXX=$CC
9872 for cc_temp in $compiler""; do
9873   case $cc_temp in
9874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9876     \-*) ;;
9877     *) break;;
9878   esac
9879 done
9880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9881
9882
9883 # We don't want -fno-exception wen compiling C++ code, so set the
9884 # no_builtin_flag separately
9885 if test "$GXX" = yes; then
9886   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9887 else
9888   lt_prog_compiler_no_builtin_flag_CXX=
9889 fi
9890
9891 if test "$GXX" = yes; then
9892   # Set up default GNU C++ configuration
9893
9894
9895 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9896 if test "${with_gnu_ld+set}" = set; then
9897   withval="$with_gnu_ld"
9898   test "$withval" = no || with_gnu_ld=yes
9899 else
9900   with_gnu_ld=no
9901 fi;
9902 ac_prog=ld
9903 if test "$GCC" = yes; then
9904   # Check if gcc -print-prog-name=ld gives a path.
9905   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9906 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9907   case $host in
9908   *-*-mingw*)
9909     # gcc leaves a trailing carriage return which upsets mingw
9910     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9911   *)
9912     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9913   esac
9914   case $ac_prog in
9915     # Accept absolute paths.
9916     [\\/]* | ?:[\\/]*)
9917       re_direlt='/[^/][^/]*/\.\./'
9918       # Canonicalize the pathname of ld
9919       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9920       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9921         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9922       done
9923       test -z "$LD" && LD="$ac_prog"
9924       ;;
9925   "")
9926     # If it fails, then pretend we aren't using GCC.
9927     ac_prog=ld
9928     ;;
9929   *)
9930     # If it is relative, then search for the first ld in PATH.
9931     with_gnu_ld=unknown
9932     ;;
9933   esac
9934 elif test "$with_gnu_ld" = yes; then
9935   echo "$as_me:$LINENO: checking for GNU ld" >&5
9936 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9937 else
9938   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9939 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9940 fi
9941 if test "${lt_cv_path_LD+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   if test -z "$LD"; then
9945   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9946   for ac_dir in $PATH; do
9947     IFS="$lt_save_ifs"
9948     test -z "$ac_dir" && ac_dir=.
9949     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9950       lt_cv_path_LD="$ac_dir/$ac_prog"
9951       # Check to see if the program is GNU ld.  I'd rather use --version,
9952       # but apparently some variants of GNU ld only accept -v.
9953       # Break only if it was the GNU/non-GNU ld that we prefer.
9954       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9955       *GNU* | *'with BFD'*)
9956         test "$with_gnu_ld" != no && break
9957         ;;
9958       *)
9959         test "$with_gnu_ld" != yes && break
9960         ;;
9961       esac
9962     fi
9963   done
9964   IFS="$lt_save_ifs"
9965 else
9966   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9967 fi
9968 fi
9969
9970 LD="$lt_cv_path_LD"
9971 if test -n "$LD"; then
9972   echo "$as_me:$LINENO: result: $LD" >&5
9973 echo "${ECHO_T}$LD" >&6
9974 else
9975   echo "$as_me:$LINENO: result: no" >&5
9976 echo "${ECHO_T}no" >&6
9977 fi
9978 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9979 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9980    { (exit 1); exit 1; }; }
9981 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9982 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9983 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9987 case `$LD -v 2>&1 </dev/null` in
9988 *GNU* | *'with BFD'*)
9989   lt_cv_prog_gnu_ld=yes
9990   ;;
9991 *)
9992   lt_cv_prog_gnu_ld=no
9993   ;;
9994 esac
9995 fi
9996 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9997 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9998 with_gnu_ld=$lt_cv_prog_gnu_ld
9999
10000
10001
10002   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10003   # archiving commands below assume that GNU ld is being used.
10004   if test "$with_gnu_ld" = yes; then
10005     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006     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'
10007
10008     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10009     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10010
10011     # If archive_cmds runs LD, not CC, wlarc should be empty
10012     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10013     #     investigate it a little bit more. (MM)
10014     wlarc='${wl}'
10015
10016     # ancient GNU ld didn't support --whole-archive et. al.
10017     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10018         grep 'no-whole-archive' > /dev/null; then
10019       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10020     else
10021       whole_archive_flag_spec_CXX=
10022     fi
10023   else
10024     with_gnu_ld=no
10025     wlarc=
10026
10027     # A generic and very simple default shared library creation
10028     # command for GNU C++ for the case where it uses the native
10029     # linker, instead of GNU ld.  If possible, this setting should
10030     # overridden to take advantage of the native linker features on
10031     # the platform it is being used on.
10032     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10033   fi
10034
10035   # Commands to make compiler produce verbose output that lists
10036   # what "hidden" libraries, object files and flags are used when
10037   # linking a shared library.
10038   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10039
10040 else
10041   GXX=no
10042   with_gnu_ld=no
10043   wlarc=
10044 fi
10045
10046 # PORTME: fill in a description of your system's C++ link characteristics
10047 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10048 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10049 ld_shlibs_CXX=yes
10050 case $host_os in
10051   aix3*)
10052     # FIXME: insert proper C++ library support
10053     ld_shlibs_CXX=no
10054     ;;
10055   aix4* | aix5*)
10056     if test "$host_cpu" = ia64; then
10057       # On IA64, the linker does run time linking by default, so we don't
10058       # have to do anything special.
10059       aix_use_runtimelinking=no
10060       exp_sym_flag='-Bexport'
10061       no_entry_flag=""
10062     else
10063       aix_use_runtimelinking=no
10064
10065       # Test if we are trying to use run time linking or normal
10066       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10067       # need to do runtime linking.
10068       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10069         for ld_flag in $LDFLAGS; do
10070           case $ld_flag in
10071           *-brtl*)
10072             aix_use_runtimelinking=yes
10073             break
10074             ;;
10075           esac
10076         done
10077         ;;
10078       esac
10079
10080       exp_sym_flag='-bexport'
10081       no_entry_flag='-bnoentry'
10082     fi
10083
10084     # When large executables or shared objects are built, AIX ld can
10085     # have problems creating the table of contents.  If linking a library
10086     # or program results in "error TOC overflow" add -mminimal-toc to
10087     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10088     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10089
10090     archive_cmds_CXX=''
10091     hardcode_direct_CXX=yes
10092     hardcode_libdir_separator_CXX=':'
10093     link_all_deplibs_CXX=yes
10094
10095     if test "$GXX" = yes; then
10096       case $host_os in aix4.[012]|aix4.[012].*)
10097       # We only want to do this on AIX 4.2 and lower, the check
10098       # below for broken collect2 doesn't work under 4.3+
10099         collect2name=`${CC} -print-prog-name=collect2`
10100         if test -f "$collect2name" && \
10101            strings "$collect2name" | grep resolve_lib_name >/dev/null
10102         then
10103           # We have reworked collect2
10104           hardcode_direct_CXX=yes
10105         else
10106           # We have old collect2
10107           hardcode_direct_CXX=unsupported
10108           # It fails to find uninstalled libraries when the uninstalled
10109           # path is not listed in the libpath.  Setting hardcode_minus_L
10110           # to unsupported forces relinking
10111           hardcode_minus_L_CXX=yes
10112           hardcode_libdir_flag_spec_CXX='-L$libdir'
10113           hardcode_libdir_separator_CXX=
10114         fi
10115         ;;
10116       esac
10117       shared_flag='-shared'
10118       if test "$aix_use_runtimelinking" = yes; then
10119         shared_flag="$shared_flag "'${wl}-G'
10120       fi
10121     else
10122       # not using gcc
10123       if test "$host_cpu" = ia64; then
10124         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10125         # chokes on -Wl,-G. The following line is correct:
10126         shared_flag='-G'
10127       else
10128         if test "$aix_use_runtimelinking" = yes; then
10129           shared_flag='${wl}-G'
10130         else
10131           shared_flag='${wl}-bM:SRE'
10132         fi
10133       fi
10134     fi
10135
10136     # It seems that -bexpall does not export symbols beginning with
10137     # underscore (_), so it is better to generate a list of symbols to export.
10138     always_export_symbols_CXX=yes
10139     if test "$aix_use_runtimelinking" = yes; then
10140       # Warning - without using the other runtime loading flags (-brtl),
10141       # -berok will link without error, but may produce a broken library.
10142       allow_undefined_flag_CXX='-berok'
10143       # Determine the default libpath from the value encoded in an empty executable.
10144       cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h.  */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h.  */
10150
10151 int
10152 main ()
10153 {
10154
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161   (eval $ac_link) 2>conftest.er1
10162   ac_status=$?
10163   grep -v '^ *+' conftest.er1 >conftest.err
10164   rm -f conftest.er1
10165   cat conftest.err >&5
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } &&
10168          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170   (eval $ac_try) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; } &&
10174          { ac_try='test -s conftest$ac_exeext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180
10181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10182 }'`
10183 # Check for a 64-bit object if we didn't find anything.
10184 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; }
10185 }'`; fi
10186 else
10187   echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 fi
10191 rm -f conftest.err conftest.$ac_objext \
10192       conftest$ac_exeext conftest.$ac_ext
10193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10194
10195       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10196
10197       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"
10198      else
10199       if test "$host_cpu" = ia64; then
10200         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10201         allow_undefined_flag_CXX="-z nodefs"
10202         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"
10203       else
10204         # Determine the default libpath from the value encoded in an empty executable.
10205         cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211
10212 int
10213 main ()
10214 {
10215
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222   (eval $ac_link) 2>conftest.er1
10223   ac_status=$?
10224   grep -v '^ *+' conftest.er1 >conftest.err
10225   rm -f conftest.er1
10226   cat conftest.err >&5
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); } &&
10229          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231   (eval $ac_try) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; } &&
10235          { ac_try='test -s conftest$ac_exeext'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; }; then
10241
10242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10243 }'`
10244 # Check for a 64-bit object if we didn't find anything.
10245 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; }
10246 }'`; fi
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 fi
10252 rm -f conftest.err conftest.$ac_objext \
10253       conftest$ac_exeext conftest.$ac_ext
10254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10255
10256         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10257         # Warning - without using the other run time loading flags,
10258         # -berok will link without error, but may produce a broken library.
10259         no_undefined_flag_CXX=' ${wl}-bernotok'
10260         allow_undefined_flag_CXX=' ${wl}-berok'
10261         # Exported symbols can be pulled into shared objects from archives
10262         whole_archive_flag_spec_CXX='$convenience'
10263         archive_cmds_need_lc_CXX=yes
10264         # This is similar to how AIX traditionally builds its shared libraries.
10265         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'
10266       fi
10267     fi
10268     ;;
10269
10270   beos*)
10271     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10272       allow_undefined_flag_CXX=unsupported
10273       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10274       # support --undefined.  This deserves some investigation.  FIXME
10275       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10276     else
10277       ld_shlibs_CXX=no
10278     fi
10279     ;;
10280
10281   chorus*)
10282     case $cc_basename in
10283       *)
10284         # FIXME: insert proper C++ library support
10285         ld_shlibs_CXX=no
10286         ;;
10287     esac
10288     ;;
10289
10290   cygwin* | mingw* | pw32*)
10291     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10292     # as there is no search path for DLLs.
10293     hardcode_libdir_flag_spec_CXX='-L$libdir'
10294     allow_undefined_flag_CXX=unsupported
10295     always_export_symbols_CXX=no
10296     enable_shared_with_static_runtimes_CXX=yes
10297
10298     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10299       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'
10300       # If the export-symbols file already is a .def file (1st line
10301       # is EXPORTS), use it as is; otherwise, prepend...
10302       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10303         cp $export_symbols $output_objdir/$soname.def;
10304       else
10305         echo EXPORTS > $output_objdir/$soname.def;
10306         cat $export_symbols >> $output_objdir/$soname.def;
10307       fi~
10308       $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'
10309     else
10310       ld_shlibs_CXX=no
10311     fi
10312   ;;
10313       darwin* | rhapsody*)
10314         case $host_os in
10315         rhapsody* | darwin1.[012])
10316          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10317          ;;
10318        *) # Darwin 1.3 on
10319          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10320            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10321          else
10322            case ${MACOSX_DEPLOYMENT_TARGET} in
10323              10.[012])
10324                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10325                ;;
10326              10.*)
10327                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10328                ;;
10329            esac
10330          fi
10331          ;;
10332         esac
10333       archive_cmds_need_lc_CXX=no
10334       hardcode_direct_CXX=no
10335       hardcode_automatic_CXX=yes
10336       hardcode_shlibpath_var_CXX=unsupported
10337       whole_archive_flag_spec_CXX=''
10338       link_all_deplibs_CXX=yes
10339
10340     if test "$GXX" = yes ; then
10341       lt_int_apple_cc_single_mod=no
10342       output_verbose_link_cmd='echo'
10343       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10344        lt_int_apple_cc_single_mod=yes
10345       fi
10346       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10347        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10348       else
10349           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'
10350         fi
10351         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10352         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10353           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10354             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}'
10355           else
10356             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}'
10357           fi
10358             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}'
10359       else
10360       case $cc_basename in
10361         xlc*)
10362          output_verbose_link_cmd='echo'
10363           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'
10364           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10365           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10366           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}'
10367           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}'
10368           ;;
10369        *)
10370          ld_shlibs_CXX=no
10371           ;;
10372       esac
10373       fi
10374         ;;
10375
10376   dgux*)
10377     case $cc_basename in
10378       ec++*)
10379         # FIXME: insert proper C++ library support
10380         ld_shlibs_CXX=no
10381         ;;
10382       ghcx*)
10383         # Green Hills C++ Compiler
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387       *)
10388         # FIXME: insert proper C++ library support
10389         ld_shlibs_CXX=no
10390         ;;
10391     esac
10392     ;;
10393   freebsd[12]*)
10394     # C++ shared libraries reported to be fairly broken before switch to ELF
10395     ld_shlibs_CXX=no
10396     ;;
10397   freebsd-elf*)
10398     archive_cmds_need_lc_CXX=no
10399     ;;
10400   freebsd* | kfreebsd*-gnu | dragonfly*)
10401     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10402     # conventions
10403     ld_shlibs_CXX=yes
10404     ;;
10405   gnu*)
10406     ;;
10407   hpux9*)
10408     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10409     hardcode_libdir_separator_CXX=:
10410     export_dynamic_flag_spec_CXX='${wl}-E'
10411     hardcode_direct_CXX=yes
10412     hardcode_minus_L_CXX=yes # Not in the search PATH,
10413                                 # but as the default
10414                                 # location of the library.
10415
10416     case $cc_basename in
10417     CC*)
10418       # FIXME: insert proper C++ library support
10419       ld_shlibs_CXX=no
10420       ;;
10421     aCC*)
10422       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'
10423       # Commands to make compiler produce verbose output that lists
10424       # what "hidden" libraries, object files and flags are used when
10425       # linking a shared library.
10426       #
10427       # There doesn't appear to be a way to prevent this compiler from
10428       # explicitly linking system object files so we need to strip them
10429       # from the output so that they don't get included in the library
10430       # dependencies.
10431       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'
10432       ;;
10433     *)
10434       if test "$GXX" = yes; then
10435         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'
10436       else
10437         # FIXME: insert proper C++ library support
10438         ld_shlibs_CXX=no
10439       fi
10440       ;;
10441     esac
10442     ;;
10443   hpux10*|hpux11*)
10444     if test $with_gnu_ld = no; then
10445       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10446       hardcode_libdir_separator_CXX=:
10447
10448       case $host_cpu in
10449       hppa*64*|ia64*)
10450         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10451         ;;
10452       *)
10453         export_dynamic_flag_spec_CXX='${wl}-E'
10454         ;;
10455       esac
10456     fi
10457     case $host_cpu in
10458     hppa*64*|ia64*)
10459       hardcode_direct_CXX=no
10460       hardcode_shlibpath_var_CXX=no
10461       ;;
10462     *)
10463       hardcode_direct_CXX=yes
10464       hardcode_minus_L_CXX=yes # Not in the search PATH,
10465                                               # but as the default
10466                                               # location of the library.
10467       ;;
10468     esac
10469
10470     case $cc_basename in
10471       CC*)
10472         # FIXME: insert proper C++ library support
10473         ld_shlibs_CXX=no
10474         ;;
10475       aCC*)
10476         case $host_cpu in
10477         hppa*64*)
10478           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10479           ;;
10480         ia64*)
10481           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10482           ;;
10483         *)
10484           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10485           ;;
10486         esac
10487         # Commands to make compiler produce verbose output that lists
10488         # what "hidden" libraries, object files and flags are used when
10489         # linking a shared library.
10490         #
10491         # There doesn't appear to be a way to prevent this compiler from
10492         # explicitly linking system object files so we need to strip them
10493         # from the output so that they don't get included in the library
10494         # dependencies.
10495         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'
10496         ;;
10497       *)
10498         if test "$GXX" = yes; then
10499           if test $with_gnu_ld = no; then
10500             case $host_cpu in
10501             hppa*64*)
10502               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10503               ;;
10504             ia64*)
10505               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10506               ;;
10507             *)
10508               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'
10509               ;;
10510             esac
10511           fi
10512         else
10513           # FIXME: insert proper C++ library support
10514           ld_shlibs_CXX=no
10515         fi
10516         ;;
10517     esac
10518     ;;
10519   interix3*)
10520     hardcode_direct_CXX=no
10521     hardcode_shlibpath_var_CXX=no
10522     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10523     export_dynamic_flag_spec_CXX='${wl}-E'
10524     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10525     # Instead, shared libraries are loaded at an image base (0x10000000 by
10526     # default) and relocated if they conflict, which is a slow very memory
10527     # consuming and fragmenting process.  To avoid this, we pick a random,
10528     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10529     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10530     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'
10531     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'
10532     ;;
10533   irix5* | irix6*)
10534     case $cc_basename in
10535       CC*)
10536         # SGI C++
10537         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'
10538
10539         # Archives containing C++ object files must be created using
10540         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10541         # necessary to make sure instantiated templates are included
10542         # in the archive.
10543         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10544         ;;
10545       *)
10546         if test "$GXX" = yes; then
10547           if test "$with_gnu_ld" = no; then
10548             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'
10549           else
10550             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'
10551           fi
10552         fi
10553         link_all_deplibs_CXX=yes
10554         ;;
10555     esac
10556     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10557     hardcode_libdir_separator_CXX=:
10558     ;;
10559   linux*)
10560     case $cc_basename in
10561       KCC*)
10562         # Kuck and Associates, Inc. (KAI) C++ Compiler
10563
10564         # KCC will only create a shared library if the output file
10565         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10566         # to its proper name (with version) after linking.
10567         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'
10568         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'
10569         # Commands to make compiler produce verbose output that lists
10570         # what "hidden" libraries, object files and flags are used when
10571         # linking a shared library.
10572         #
10573         # There doesn't appear to be a way to prevent this compiler from
10574         # explicitly linking system object files so we need to strip them
10575         # from the output so that they don't get included in the library
10576         # dependencies.
10577         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'
10578
10579         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10580         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10581
10582         # Archives containing C++ object files must be created using
10583         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10584         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10585         ;;
10586       icpc*)
10587         # Intel C++
10588         with_gnu_ld=yes
10589         # version 8.0 and above of icpc choke on multiply defined symbols
10590         # if we add $predep_objects and $postdep_objects, however 7.1 and
10591         # earlier do not add the objects themselves.
10592         case `$CC -V 2>&1` in
10593         *"Version 7."*)
10594           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10595           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'
10596           ;;
10597         *)  # Version 8.0 or newer
10598           tmp_idyn=
10599           case $host_cpu in
10600             ia64*) tmp_idyn=' -i_dynamic';;
10601           esac
10602           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603           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'
10604           ;;
10605         esac
10606         archive_cmds_need_lc_CXX=no
10607         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10608         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10609         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10610         ;;
10611       pgCC*)
10612         # Portland Group C++ compiler
10613         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10614         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'
10615
10616         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10617         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10618         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'
10619         ;;
10620       cxx*)
10621         # Compaq C++
10622         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10623         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'
10624
10625         runpath_var=LD_RUN_PATH
10626         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10627         hardcode_libdir_separator_CXX=:
10628
10629         # Commands to make compiler produce verbose output that lists
10630         # what "hidden" libraries, object files and flags are used when
10631         # linking a shared library.
10632         #
10633         # There doesn't appear to be a way to prevent this compiler from
10634         # explicitly linking system object files so we need to strip them
10635         # from the output so that they don't get included in the library
10636         # dependencies.
10637         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'
10638         ;;
10639     esac
10640     ;;
10641   lynxos*)
10642     # FIXME: insert proper C++ library support
10643     ld_shlibs_CXX=no
10644     ;;
10645   m88k*)
10646     # FIXME: insert proper C++ library support
10647     ld_shlibs_CXX=no
10648     ;;
10649   mvs*)
10650     case $cc_basename in
10651       cxx*)
10652         # FIXME: insert proper C++ library support
10653         ld_shlibs_CXX=no
10654         ;;
10655       *)
10656         # FIXME: insert proper C++ library support
10657         ld_shlibs_CXX=no
10658         ;;
10659     esac
10660     ;;
10661   netbsd*)
10662     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10663       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10664       wlarc=
10665       hardcode_libdir_flag_spec_CXX='-R$libdir'
10666       hardcode_direct_CXX=yes
10667       hardcode_shlibpath_var_CXX=no
10668     fi
10669     # Workaround some broken pre-1.5 toolchains
10670     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10671     ;;
10672   openbsd2*)
10673     # C++ shared libraries are fairly broken
10674     ld_shlibs_CXX=no
10675     ;;
10676   openbsd*)
10677     hardcode_direct_CXX=yes
10678     hardcode_shlibpath_var_CXX=no
10679     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10680     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10681     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10682       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10683       export_dynamic_flag_spec_CXX='${wl}-E'
10684       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10685     fi
10686     output_verbose_link_cmd='echo'
10687     ;;
10688   osf3*)
10689     case $cc_basename in
10690       KCC*)
10691         # Kuck and Associates, Inc. (KAI) C++ Compiler
10692
10693         # KCC will only create a shared library if the output file
10694         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10695         # to its proper name (with version) after linking.
10696         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'
10697
10698         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10699         hardcode_libdir_separator_CXX=:
10700
10701         # Archives containing C++ object files must be created using
10702         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10703         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10704
10705         ;;
10706       RCC*)
10707         # Rational C++ 2.4.1
10708         # FIXME: insert proper C++ library support
10709         ld_shlibs_CXX=no
10710         ;;
10711       cxx*)
10712         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10713         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'
10714
10715         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10716         hardcode_libdir_separator_CXX=:
10717
10718         # Commands to make compiler produce verbose output that lists
10719         # what "hidden" libraries, object files and flags are used when
10720         # linking a shared library.
10721         #
10722         # There doesn't appear to be a way to prevent this compiler from
10723         # explicitly linking system object files so we need to strip them
10724         # from the output so that they don't get included in the library
10725         # dependencies.
10726         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'
10727         ;;
10728       *)
10729         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10730           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10731           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'
10732
10733           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10734           hardcode_libdir_separator_CXX=:
10735
10736           # Commands to make compiler produce verbose output that lists
10737           # what "hidden" libraries, object files and flags are used when
10738           # linking a shared library.
10739           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10740
10741         else
10742           # FIXME: insert proper C++ library support
10743           ld_shlibs_CXX=no
10744         fi
10745         ;;
10746     esac
10747     ;;
10748   osf4* | osf5*)
10749     case $cc_basename in
10750       KCC*)
10751         # Kuck and Associates, Inc. (KAI) C++ Compiler
10752
10753         # KCC will only create a shared library if the output file
10754         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10755         # to its proper name (with version) after linking.
10756         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'
10757
10758         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10759         hardcode_libdir_separator_CXX=:
10760
10761         # Archives containing C++ object files must be created using
10762         # the KAI C++ compiler.
10763         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10764         ;;
10765       RCC*)
10766         # Rational C++ 2.4.1
10767         # FIXME: insert proper C++ library support
10768         ld_shlibs_CXX=no
10769         ;;
10770       cxx*)
10771         allow_undefined_flag_CXX=' -expect_unresolved \*'
10772         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'
10773         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10774           echo "-hidden">> $lib.exp~
10775           $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~
10776           $rm $lib.exp'
10777
10778         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10779         hardcode_libdir_separator_CXX=:
10780
10781         # Commands to make compiler produce verbose output that lists
10782         # what "hidden" libraries, object files and flags are used when
10783         # linking a shared library.
10784         #
10785         # There doesn't appear to be a way to prevent this compiler from
10786         # explicitly linking system object files so we need to strip them
10787         # from the output so that they don't get included in the library
10788         # dependencies.
10789         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'
10790         ;;
10791       *)
10792         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10793           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10794          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'
10795
10796           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10797           hardcode_libdir_separator_CXX=:
10798
10799           # Commands to make compiler produce verbose output that lists
10800           # what "hidden" libraries, object files and flags are used when
10801           # linking a shared library.
10802           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10803
10804         else
10805           # FIXME: insert proper C++ library support
10806           ld_shlibs_CXX=no
10807         fi
10808         ;;
10809     esac
10810     ;;
10811   psos*)
10812     # FIXME: insert proper C++ library support
10813     ld_shlibs_CXX=no
10814     ;;
10815   sunos4*)
10816     case $cc_basename in
10817       CC*)
10818         # Sun C++ 4.x
10819         # FIXME: insert proper C++ library support
10820         ld_shlibs_CXX=no
10821         ;;
10822       lcc*)
10823         # Lucid
10824         # FIXME: insert proper C++ library support
10825         ld_shlibs_CXX=no
10826         ;;
10827       *)
10828         # FIXME: insert proper C++ library support
10829         ld_shlibs_CXX=no
10830         ;;
10831     esac
10832     ;;
10833   solaris*)
10834     case $cc_basename in
10835       CC*)
10836         # Sun C++ 4.2, 5.x and Centerline C++
10837         archive_cmds_need_lc_CXX=yes
10838         no_undefined_flag_CXX=' -zdefs'
10839         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10840         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10841         $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'
10842
10843         hardcode_libdir_flag_spec_CXX='-R$libdir'
10844         hardcode_shlibpath_var_CXX=no
10845         case $host_os in
10846           solaris2.[0-5] | solaris2.[0-5].*) ;;
10847           *)
10848             # The C++ compiler is used as linker so we must use $wl
10849             # flag to pass the commands to the underlying system
10850             # linker. We must also pass each convience library through
10851             # to the system linker between allextract/defaultextract.
10852             # The C++ compiler will combine linker options so we
10853             # cannot just pass the convience library names through
10854             # without $wl.
10855             # Supported since Solaris 2.6 (maybe 2.5.1?)
10856             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'
10857             ;;
10858         esac
10859         link_all_deplibs_CXX=yes
10860
10861         output_verbose_link_cmd='echo'
10862
10863         # Archives containing C++ object files must be created using
10864         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10865         # necessary to make sure instantiated templates are included
10866         # in the archive.
10867         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10868         ;;
10869       gcx*)
10870         # Green Hills C++ Compiler
10871         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10872
10873         # The C++ compiler must be used to create the archive.
10874         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10875         ;;
10876       *)
10877         # GNU C++ compiler with Solaris linker
10878         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10879           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10880           if $CC --version | grep -v '^2\.7' > /dev/null; then
10881             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10882             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10883                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10884
10885             # Commands to make compiler produce verbose output that lists
10886             # what "hidden" libraries, object files and flags are used when
10887             # linking a shared library.
10888             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10889           else
10890             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10891             # platform.
10892             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10893             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10894                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10895
10896             # Commands to make compiler produce verbose output that lists
10897             # what "hidden" libraries, object files and flags are used when
10898             # linking a shared library.
10899             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10900           fi
10901
10902           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10903         fi
10904         ;;
10905     esac
10906     ;;
10907   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10908     no_undefined_flag_CXX='${wl}-z,text'
10909     archive_cmds_need_lc_CXX=no
10910     hardcode_shlibpath_var_CXX=no
10911     runpath_var='LD_RUN_PATH'
10912
10913     case $cc_basename in
10914       CC*)
10915         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10916         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10917         ;;
10918       *)
10919         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921         ;;
10922     esac
10923     ;;
10924   sysv5* | sco3.2v5* | sco5v6*)
10925     # Note: We can NOT use -z defs as we might desire, because we do not
10926     # link with -lc, and that would cause any symbols used from libc to
10927     # always be unresolved, which means just about no library would
10928     # ever link correctly.  If we're not using GNU ld we use -z text
10929     # though, which does catch some bad symbols but isn't as heavy-handed
10930     # as -z defs.
10931     # For security reasons, it is highly recommended that you always
10932     # use absolute paths for naming shared libraries, and exclude the
10933     # DT_RUNPATH tag from executables and libraries.  But doing so
10934     # requires that you compile everything twice, which is a pain.
10935     # So that behaviour is only enabled if SCOABSPATH is set to a
10936     # non-empty value in the environment.  Most likely only useful for
10937     # creating official distributions of packages.
10938     # This is a hack until libtool officially supports absolute path
10939     # names for shared libraries.
10940     no_undefined_flag_CXX='${wl}-z,text'
10941     allow_undefined_flag_CXX='${wl}-z,nodefs'
10942     archive_cmds_need_lc_CXX=no
10943     hardcode_shlibpath_var_CXX=no
10944     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10945     hardcode_libdir_separator_CXX=':'
10946     link_all_deplibs_CXX=yes
10947     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10948     runpath_var='LD_RUN_PATH'
10949
10950     case $cc_basename in
10951       CC*)
10952         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10953         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10954         ;;
10955       *)
10956         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10958         ;;
10959     esac
10960     ;;
10961   tandem*)
10962     case $cc_basename in
10963       NCC*)
10964         # NonStop-UX NCC 3.20
10965         # FIXME: insert proper C++ library support
10966         ld_shlibs_CXX=no
10967         ;;
10968       *)
10969         # FIXME: insert proper C++ library support
10970         ld_shlibs_CXX=no
10971         ;;
10972     esac
10973     ;;
10974   vxworks*)
10975     # FIXME: insert proper C++ library support
10976     ld_shlibs_CXX=no
10977     ;;
10978   *)
10979     # FIXME: insert proper C++ library support
10980     ld_shlibs_CXX=no
10981     ;;
10982 esac
10983 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10984 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10985 test "$ld_shlibs_CXX" = no && can_build_shared=no
10986
10987 GCC_CXX="$GXX"
10988 LD_CXX="$LD"
10989
10990 ## CAVEAT EMPTOR:
10991 ## There is no encapsulation within the following macros, do not change
10992 ## the running order or otherwise move them around unless you know exactly
10993 ## what you are doing...
10994
10995 cat > conftest.$ac_ext <<EOF
10996 class Foo
10997 {
10998 public:
10999   Foo (void) { a = 0; }
11000 private:
11001   int a;
11002 };
11003 EOF
11004
11005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11006   (eval $ac_compile) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; then
11010   # Parse the compiler output and extract the necessary
11011   # objects, libraries and library flags.
11012
11013   # Sentinel used to keep track of whether or not we are before
11014   # the conftest object file.
11015   pre_test_object_deps_done=no
11016
11017   # The `*' in the case matches for architectures that use `case' in
11018   # $output_verbose_cmd can trigger glob expansion during the loop
11019   # eval without this substitution.
11020   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11021
11022   for p in `eval $output_verbose_link_cmd`; do
11023     case $p in
11024
11025     -L* | -R* | -l*)
11026        # Some compilers place space between "-{L,R}" and the path.
11027        # Remove the space.
11028        if test $p = "-L" \
11029           || test $p = "-R"; then
11030          prev=$p
11031          continue
11032        else
11033          prev=
11034        fi
11035
11036        if test "$pre_test_object_deps_done" = no; then
11037          case $p in
11038          -L* | -R*)
11039            # Internal compiler library paths should come after those
11040            # provided the user.  The postdeps already come after the
11041            # user supplied libs so there is no need to process them.
11042            if test -z "$compiler_lib_search_path_CXX"; then
11043              compiler_lib_search_path_CXX="${prev}${p}"
11044            else
11045              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11046            fi
11047            ;;
11048          # The "-l" case would never come before the object being
11049          # linked, so don't bother handling this case.
11050          esac
11051        else
11052          if test -z "$postdeps_CXX"; then
11053            postdeps_CXX="${prev}${p}"
11054          else
11055            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11056          fi
11057        fi
11058        ;;
11059
11060     *.$objext)
11061        # This assumes that the test object file only shows up
11062        # once in the compiler output.
11063        if test "$p" = "conftest.$objext"; then
11064          pre_test_object_deps_done=yes
11065          continue
11066        fi
11067
11068        if test "$pre_test_object_deps_done" = no; then
11069          if test -z "$predep_objects_CXX"; then
11070            predep_objects_CXX="$p"
11071          else
11072            predep_objects_CXX="$predep_objects_CXX $p"
11073          fi
11074        else
11075          if test -z "$postdep_objects_CXX"; then
11076            postdep_objects_CXX="$p"
11077          else
11078            postdep_objects_CXX="$postdep_objects_CXX $p"
11079          fi
11080        fi
11081        ;;
11082
11083     *) ;; # Ignore the rest.
11084
11085     esac
11086   done
11087
11088   # Clean up.
11089   rm -f a.out a.exe
11090 else
11091   echo "libtool.m4: error: problem compiling CXX test program"
11092 fi
11093
11094 $rm -f confest.$objext
11095
11096 # PORTME: override above test on systems where it is broken
11097 case $host_os in
11098 interix3*)
11099   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11100   # hack all around it, let's just trust "g++" to DTRT.
11101   predep_objects_CXX=
11102   postdep_objects_CXX=
11103   postdeps_CXX=
11104   ;;
11105
11106 solaris*)
11107   case $cc_basename in
11108   CC*)
11109     # Adding this requires a known-good setup of shared libraries for
11110     # Sun compiler versions before 5.6, else PIC objects from an old
11111     # archive will be linked into the output, leading to subtle bugs.
11112     postdeps_CXX='-lCstd -lCrun'
11113     ;;
11114   esac
11115   ;;
11116 esac
11117
11118
11119 case " $postdeps_CXX " in
11120 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11121 esac
11122
11123 lt_prog_compiler_wl_CXX=
11124 lt_prog_compiler_pic_CXX=
11125 lt_prog_compiler_static_CXX=
11126
11127 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11128 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11129
11130   # C++ specific cases for pic, static, wl, etc.
11131   if test "$GXX" = yes; then
11132     lt_prog_compiler_wl_CXX='-Wl,'
11133     lt_prog_compiler_static_CXX='-static'
11134
11135     case $host_os in
11136     aix*)
11137       # All AIX code is PIC.
11138       if test "$host_cpu" = ia64; then
11139         # AIX 5 now supports IA64 processor
11140         lt_prog_compiler_static_CXX='-Bstatic'
11141       fi
11142       ;;
11143     amigaos*)
11144       # FIXME: we need at least 68020 code to build shared libraries, but
11145       # adding the `-m68020' flag to GCC prevents building anything better,
11146       # like `-m68040'.
11147       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11148       ;;
11149     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11150       # PIC is the default for these OSes.
11151       ;;
11152     mingw* | os2* | pw32*)
11153       # This hack is so that the source file can tell whether it is being
11154       # built for inclusion in a dll (and should export symbols for example).
11155       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11156       ;;
11157     darwin* | rhapsody*)
11158       # PIC is the default on this platform
11159       # Common symbols not allowed in MH_DYLIB files
11160       lt_prog_compiler_pic_CXX='-fno-common'
11161       ;;
11162     *djgpp*)
11163       # DJGPP does not support shared libraries at all
11164       lt_prog_compiler_pic_CXX=
11165       ;;
11166     interix3*)
11167       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11168       # Instead, we relocate shared libraries at runtime.
11169       ;;
11170     sysv4*MP*)
11171       if test -d /usr/nec; then
11172         lt_prog_compiler_pic_CXX=-Kconform_pic
11173       fi
11174       ;;
11175     hpux*)
11176       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11177       # not for PA HP-UX.
11178       case $host_cpu in
11179       hppa*64*|ia64*)
11180         ;;
11181       *)
11182         lt_prog_compiler_pic_CXX='-fPIC'
11183         ;;
11184       esac
11185       ;;
11186     *)
11187       lt_prog_compiler_pic_CXX='-fPIC'
11188       ;;
11189     esac
11190   else
11191     case $host_os in
11192       aix4* | aix5*)
11193         # All AIX code is PIC.
11194         if test "$host_cpu" = ia64; then
11195           # AIX 5 now supports IA64 processor
11196           lt_prog_compiler_static_CXX='-Bstatic'
11197         else
11198           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11199         fi
11200         ;;
11201       chorus*)
11202         case $cc_basename in
11203         cxch68*)
11204           # Green Hills C++ Compiler
11205           # _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"
11206           ;;
11207         esac
11208         ;;
11209        darwin*)
11210          # PIC is the default on this platform
11211          # Common symbols not allowed in MH_DYLIB files
11212          case $cc_basename in
11213            xlc*)
11214            lt_prog_compiler_pic_CXX='-qnocommon'
11215            lt_prog_compiler_wl_CXX='-Wl,'
11216            ;;
11217          esac
11218        ;;
11219       dgux*)
11220         case $cc_basename in
11221           ec++*)
11222             lt_prog_compiler_pic_CXX='-KPIC'
11223             ;;
11224           ghcx*)
11225             # Green Hills C++ Compiler
11226             lt_prog_compiler_pic_CXX='-pic'
11227             ;;
11228           *)
11229             ;;
11230         esac
11231         ;;
11232       freebsd* | kfreebsd*-gnu | dragonfly*)
11233         # FreeBSD uses GNU C++
11234         ;;
11235       hpux9* | hpux10* | hpux11*)
11236         case $cc_basename in
11237           CC*)
11238             lt_prog_compiler_wl_CXX='-Wl,'
11239             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11240             if test "$host_cpu" != ia64; then
11241               lt_prog_compiler_pic_CXX='+Z'
11242             fi
11243             ;;
11244           aCC*)
11245             lt_prog_compiler_wl_CXX='-Wl,'
11246             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11247             case $host_cpu in
11248             hppa*64*|ia64*)
11249               # +Z the default
11250               ;;
11251             *)
11252               lt_prog_compiler_pic_CXX='+Z'
11253               ;;
11254             esac
11255             ;;
11256           *)
11257             ;;
11258         esac
11259         ;;
11260       interix*)
11261         # This is c89, which is MS Visual C++ (no shared libs)
11262         # Anyone wants to do a port?
11263         ;;
11264       irix5* | irix6* | nonstopux*)
11265         case $cc_basename in
11266           CC*)
11267             lt_prog_compiler_wl_CXX='-Wl,'
11268             lt_prog_compiler_static_CXX='-non_shared'
11269             # CC pic flag -KPIC is the default.
11270             ;;
11271           *)
11272             ;;
11273         esac
11274         ;;
11275       linux*)
11276         case $cc_basename in
11277           KCC*)
11278             # KAI C++ Compiler
11279             lt_prog_compiler_wl_CXX='--backend -Wl,'
11280             lt_prog_compiler_pic_CXX='-fPIC'
11281             ;;
11282           icpc* | ecpc*)
11283             # Intel C++
11284             lt_prog_compiler_wl_CXX='-Wl,'
11285             lt_prog_compiler_pic_CXX='-KPIC'
11286             lt_prog_compiler_static_CXX='-static'
11287             ;;
11288           pgCC*)
11289             # Portland Group C++ compiler.
11290             lt_prog_compiler_wl_CXX='-Wl,'
11291             lt_prog_compiler_pic_CXX='-fpic'
11292             lt_prog_compiler_static_CXX='-Bstatic'
11293             ;;
11294           cxx*)
11295             # Compaq C++
11296             # Make sure the PIC flag is empty.  It appears that all Alpha
11297             # Linux and Compaq Tru64 Unix objects are PIC.
11298             lt_prog_compiler_pic_CXX=
11299             lt_prog_compiler_static_CXX='-non_shared'
11300             ;;
11301           *)
11302             ;;
11303         esac
11304         ;;
11305       lynxos*)
11306         ;;
11307       m88k*)
11308         ;;
11309       mvs*)
11310         case $cc_basename in
11311           cxx*)
11312             lt_prog_compiler_pic_CXX='-W c,exportall'
11313             ;;
11314           *)
11315             ;;
11316         esac
11317         ;;
11318       netbsd*)
11319         ;;
11320       osf3* | osf4* | osf5*)
11321         case $cc_basename in
11322           KCC*)
11323             lt_prog_compiler_wl_CXX='--backend -Wl,'
11324             ;;
11325           RCC*)
11326             # Rational C++ 2.4.1
11327             lt_prog_compiler_pic_CXX='-pic'
11328             ;;
11329           cxx*)
11330             # Digital/Compaq C++
11331             lt_prog_compiler_wl_CXX='-Wl,'
11332             # Make sure the PIC flag is empty.  It appears that all Alpha
11333             # Linux and Compaq Tru64 Unix objects are PIC.
11334             lt_prog_compiler_pic_CXX=
11335             lt_prog_compiler_static_CXX='-non_shared'
11336             ;;
11337           *)
11338             ;;
11339         esac
11340         ;;
11341       psos*)
11342         ;;
11343       solaris*)
11344         case $cc_basename in
11345           CC*)
11346             # Sun C++ 4.2, 5.x and Centerline C++
11347             lt_prog_compiler_pic_CXX='-KPIC'
11348             lt_prog_compiler_static_CXX='-Bstatic'
11349             lt_prog_compiler_wl_CXX='-Qoption ld '
11350             ;;
11351           gcx*)
11352             # Green Hills C++ Compiler
11353             lt_prog_compiler_pic_CXX='-PIC'
11354             ;;
11355           *)
11356             ;;
11357         esac
11358         ;;
11359       sunos4*)
11360         case $cc_basename in
11361           CC*)
11362             # Sun C++ 4.x
11363             lt_prog_compiler_pic_CXX='-pic'
11364             lt_prog_compiler_static_CXX='-Bstatic'
11365             ;;
11366           lcc*)
11367             # Lucid
11368             lt_prog_compiler_pic_CXX='-pic'
11369             ;;
11370           *)
11371             ;;
11372         esac
11373         ;;
11374       tandem*)
11375         case $cc_basename in
11376           NCC*)
11377             # NonStop-UX NCC 3.20
11378             lt_prog_compiler_pic_CXX='-KPIC'
11379             ;;
11380           *)
11381             ;;
11382         esac
11383         ;;
11384       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11385         case $cc_basename in
11386           CC*)
11387             lt_prog_compiler_wl_CXX='-Wl,'
11388             lt_prog_compiler_pic_CXX='-KPIC'
11389             lt_prog_compiler_static_CXX='-Bstatic'
11390             ;;
11391         esac
11392         ;;
11393       vxworks*)
11394         ;;
11395       *)
11396         lt_prog_compiler_can_build_shared_CXX=no
11397         ;;
11398     esac
11399   fi
11400
11401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11402 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11403
11404 #
11405 # Check to make sure the PIC flag actually works.
11406 #
11407 if test -n "$lt_prog_compiler_pic_CXX"; then
11408
11409 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11410 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11411 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   lt_prog_compiler_pic_works_CXX=no
11415   ac_outfile=conftest.$ac_objext
11416    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11417    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11418    # Insert the option either (1) after the last *FLAGS variable, or
11419    # (2) before a word containing "conftest.", or (3) at the end.
11420    # Note that $ac_compile itself does not contain backslashes and begins
11421    # with a dollar sign (not a hyphen), so the echo should work correctly.
11422    # The option is referenced via a variable to avoid confusing sed.
11423    lt_compile=`echo "$ac_compile" | $SED \
11424    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11425    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11426    -e 's:$: $lt_compiler_flag:'`
11427    (eval echo "\"\$as_me:11427: $lt_compile\"" >&5)
11428    (eval "$lt_compile" 2>conftest.err)
11429    ac_status=$?
11430    cat conftest.err >&5
11431    echo "$as_me:11431: \$? = $ac_status" >&5
11432    if (exit $ac_status) && test -s "$ac_outfile"; then
11433      # The compiler can only warn and ignore the option if not recognized
11434      # So say no if there are warnings other than the usual output.
11435      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11436      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11437      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11438        lt_prog_compiler_pic_works_CXX=yes
11439      fi
11440    fi
11441    $rm conftest*
11442
11443 fi
11444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11445 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11446
11447 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11448     case $lt_prog_compiler_pic_CXX in
11449      "" | " "*) ;;
11450      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11451      esac
11452 else
11453     lt_prog_compiler_pic_CXX=
11454      lt_prog_compiler_can_build_shared_CXX=no
11455 fi
11456
11457 fi
11458 case $host_os in
11459   # For platforms which do not support PIC, -DPIC is meaningless:
11460   *djgpp*)
11461     lt_prog_compiler_pic_CXX=
11462     ;;
11463   *)
11464     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11465     ;;
11466 esac
11467
11468 #
11469 # Check to make sure the static flag actually works.
11470 #
11471 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11472 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11473 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11474 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11475   echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477   lt_prog_compiler_static_works_CXX=no
11478    save_LDFLAGS="$LDFLAGS"
11479    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11480    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11481    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11482      # The linker can only warn and ignore the option if not recognized
11483      # So say no if there are warnings
11484      if test -s conftest.err; then
11485        # Append any errors to the config.log.
11486        cat conftest.err 1>&5
11487        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11488        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11489        if diff conftest.exp conftest.er2 >/dev/null; then
11490          lt_prog_compiler_static_works_CXX=yes
11491        fi
11492      else
11493        lt_prog_compiler_static_works_CXX=yes
11494      fi
11495    fi
11496    $rm conftest*
11497    LDFLAGS="$save_LDFLAGS"
11498
11499 fi
11500 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11501 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11502
11503 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11504     :
11505 else
11506     lt_prog_compiler_static_CXX=
11507 fi
11508
11509
11510 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11511 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11512 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11513   echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515   lt_cv_prog_compiler_c_o_CXX=no
11516    $rm -r conftest 2>/dev/null
11517    mkdir conftest
11518    cd conftest
11519    mkdir out
11520    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11521
11522    lt_compiler_flag="-o out/conftest2.$ac_objext"
11523    # Insert the option either (1) after the last *FLAGS variable, or
11524    # (2) before a word containing "conftest.", or (3) at the end.
11525    # Note that $ac_compile itself does not contain backslashes and begins
11526    # with a dollar sign (not a hyphen), so the echo should work correctly.
11527    lt_compile=`echo "$ac_compile" | $SED \
11528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11530    -e 's:$: $lt_compiler_flag:'`
11531    (eval echo "\"\$as_me:11531: $lt_compile\"" >&5)
11532    (eval "$lt_compile" 2>out/conftest.err)
11533    ac_status=$?
11534    cat out/conftest.err >&5
11535    echo "$as_me:11535: \$? = $ac_status" >&5
11536    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11537    then
11538      # The compiler can only warn and ignore the option if not recognized
11539      # So say no if there are warnings
11540      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11541      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11542      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11543        lt_cv_prog_compiler_c_o_CXX=yes
11544      fi
11545    fi
11546    chmod u+w . 2>&5
11547    $rm conftest*
11548    # SGI C++ compiler will create directory out/ii_files/ for
11549    # template instantiation
11550    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11551    $rm out/* && rmdir out
11552    cd ..
11553    rmdir conftest
11554    $rm conftest*
11555
11556 fi
11557 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11558 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11559
11560
11561 hard_links="nottested"
11562 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11563   # do not overwrite the value of need_locks provided by the user
11564   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11565 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11566   hard_links=yes
11567   $rm conftest*
11568   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11569   touch conftest.a
11570   ln conftest.a conftest.b 2>&5 || hard_links=no
11571   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11572   echo "$as_me:$LINENO: result: $hard_links" >&5
11573 echo "${ECHO_T}$hard_links" >&6
11574   if test "$hard_links" = no; then
11575     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11576 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11577     need_locks=warn
11578   fi
11579 else
11580   need_locks=no
11581 fi
11582
11583 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11584 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11585
11586   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11587   case $host_os in
11588   aix4* | aix5*)
11589     # If we're using GNU nm, then we don't want the "-C" option.
11590     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11591     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11592       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'
11593     else
11594       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'
11595     fi
11596     ;;
11597   pw32*)
11598     export_symbols_cmds_CXX="$ltdll_cmds"
11599   ;;
11600   cygwin* | mingw*)
11601     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'
11602   ;;
11603   *)
11604     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11605   ;;
11606   esac
11607
11608 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11609 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11610 test "$ld_shlibs_CXX" = no && can_build_shared=no
11611
11612 #
11613 # Do we need to explicitly link libc?
11614 #
11615 case "x$archive_cmds_need_lc_CXX" in
11616 x|xyes)
11617   # Assume -lc should be added
11618   archive_cmds_need_lc_CXX=yes
11619
11620   if test "$enable_shared" = yes && test "$GCC" = yes; then
11621     case $archive_cmds_CXX in
11622     *'~'*)
11623       # FIXME: we may have to deal with multi-command sequences.
11624       ;;
11625     '$CC '*)
11626       # Test whether the compiler implicitly links with -lc since on some
11627       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11628       # to ld, don't add -lc before -lgcc.
11629       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11630 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11631       $rm conftest*
11632       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11633
11634       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635   (eval $ac_compile) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } 2>conftest.err; then
11639         soname=conftest
11640         lib=conftest
11641         libobjs=conftest.$ac_objext
11642         deplibs=
11643         wl=$lt_prog_compiler_wl_CXX
11644         pic_flag=$lt_prog_compiler_pic_CXX
11645         compiler_flags=-v
11646         linker_flags=-v
11647         verstring=
11648         output_objdir=.
11649         libname=conftest
11650         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11651         allow_undefined_flag_CXX=
11652         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11653   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }
11657         then
11658           archive_cmds_need_lc_CXX=no
11659         else
11660           archive_cmds_need_lc_CXX=yes
11661         fi
11662         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11663       else
11664         cat conftest.err 1>&5
11665       fi
11666       $rm conftest*
11667       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11668 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11669       ;;
11670     esac
11671   fi
11672   ;;
11673 esac
11674
11675 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11676 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11677 library_names_spec=
11678 libname_spec='lib$name'
11679 soname_spec=
11680 shrext_cmds=".so"
11681 postinstall_cmds=
11682 postuninstall_cmds=
11683 finish_cmds=
11684 finish_eval=
11685 shlibpath_var=
11686 shlibpath_overrides_runpath=unknown
11687 version_type=none
11688 dynamic_linker="$host_os ld.so"
11689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11690 if test "$GCC" = yes; then
11691   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11692   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11693     # if the path contains ";" then we assume it to be the separator
11694     # otherwise default to the standard path separator (i.e. ":") - it is
11695     # assumed that no part of a normal pathname contains ";" but that should
11696     # okay in the real world where ";" in dirpaths is itself problematic.
11697     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11698   else
11699     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11700   fi
11701 else
11702   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11703 fi
11704 need_lib_prefix=unknown
11705 hardcode_into_libs=no
11706
11707 # when you set need_version to no, make sure it does not cause -set_version
11708 # flags to be left without arguments
11709 need_version=unknown
11710
11711 case $host_os in
11712 aix3*)
11713   version_type=linux
11714   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11715   shlibpath_var=LIBPATH
11716
11717   # AIX 3 has no versioning support, so we append a major version to the name.
11718   soname_spec='${libname}${release}${shared_ext}$major'
11719   ;;
11720
11721 aix4* | aix5*)
11722   version_type=linux
11723   need_lib_prefix=no
11724   need_version=no
11725   hardcode_into_libs=yes
11726   if test "$host_cpu" = ia64; then
11727     # AIX 5 supports IA64
11728     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11729     shlibpath_var=LD_LIBRARY_PATH
11730   else
11731     # With GCC up to 2.95.x, collect2 would create an import file
11732     # for dependence libraries.  The import file would start with
11733     # the line `#! .'.  This would cause the generated library to
11734     # depend on `.', always an invalid library.  This was fixed in
11735     # development snapshots of GCC prior to 3.0.
11736     case $host_os in
11737       aix4 | aix4.[01] | aix4.[01].*)
11738       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11739            echo ' yes '
11740            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11741         :
11742       else
11743         can_build_shared=no
11744       fi
11745       ;;
11746     esac
11747     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11748     # soname into executable. Probably we can add versioning support to
11749     # collect2, so additional links can be useful in future.
11750     if test "$aix_use_runtimelinking" = yes; then
11751       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11752       # instead of lib<name>.a to let people know that these are not
11753       # typical AIX shared libraries.
11754       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755     else
11756       # We preserve .a as extension for shared libraries through AIX4.2
11757       # and later when we are not doing run time linking.
11758       library_names_spec='${libname}${release}.a $libname.a'
11759       soname_spec='${libname}${release}${shared_ext}$major'
11760     fi
11761     shlibpath_var=LIBPATH
11762   fi
11763   ;;
11764
11765 amigaos*)
11766   library_names_spec='$libname.ixlibrary $libname.a'
11767   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11768   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'
11769   ;;
11770
11771 beos*)
11772   library_names_spec='${libname}${shared_ext}'
11773   dynamic_linker="$host_os ld.so"
11774   shlibpath_var=LIBRARY_PATH
11775   ;;
11776
11777 bsdi[45]*)
11778   version_type=linux
11779   need_version=no
11780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781   soname_spec='${libname}${release}${shared_ext}$major'
11782   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11783   shlibpath_var=LD_LIBRARY_PATH
11784   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11785   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11786   # the default ld.so.conf also contains /usr/contrib/lib and
11787   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11788   # libtool to hard-code these into programs
11789   ;;
11790
11791 cygwin* | mingw* | pw32*)
11792   version_type=windows
11793   shrext_cmds=".dll"
11794   need_version=no
11795   need_lib_prefix=no
11796
11797   case $GCC,$host_os in
11798   yes,cygwin* | yes,mingw* | yes,pw32*)
11799     library_names_spec='$libname.dll.a'
11800     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11801     postinstall_cmds='base_file=`basename \${file}`~
11802       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11803       dldir=$destdir/`dirname \$dlpath`~
11804       test -d \$dldir || mkdir -p \$dldir~
11805       $install_prog $dir/$dlname \$dldir/$dlname~
11806       chmod a+x \$dldir/$dlname'
11807     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11808       dlpath=$dir/\$dldll~
11809        $rm \$dlpath'
11810     shlibpath_overrides_runpath=yes
11811
11812     case $host_os in
11813     cygwin*)
11814       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11815       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11816       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11817       ;;
11818     mingw*)
11819       # MinGW DLLs use traditional 'lib' prefix
11820       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11821       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11822       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11823         # It is most probably a Windows format PATH printed by
11824         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11825         # path with ; separators, and with drive letters. We can handle the
11826         # drive letters (cygwin fileutils understands them), so leave them,
11827         # especially as we might pass files found there to a mingw objdump,
11828         # which wouldn't understand a cygwinified path. Ahh.
11829         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11830       else
11831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11832       fi
11833       ;;
11834     pw32*)
11835       # pw32 DLLs use 'pw' prefix rather than 'lib'
11836       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11837       ;;
11838     esac
11839     ;;
11840
11841   *)
11842     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11843     ;;
11844   esac
11845   dynamic_linker='Win32 ld.exe'
11846   # FIXME: first we should search . and the directory the executable is in
11847   shlibpath_var=PATH
11848   ;;
11849
11850 darwin* | rhapsody*)
11851   dynamic_linker="$host_os dyld"
11852   version_type=darwin
11853   need_lib_prefix=no
11854   need_version=no
11855   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11856   soname_spec='${libname}${release}${major}$shared_ext'
11857   shlibpath_overrides_runpath=yes
11858   shlibpath_var=DYLD_LIBRARY_PATH
11859   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11860   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11861   if test "$GCC" = yes; then
11862     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"`
11863   else
11864     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11865   fi
11866   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11867   ;;
11868
11869 dgux*)
11870   version_type=linux
11871   need_lib_prefix=no
11872   need_version=no
11873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11874   soname_spec='${libname}${release}${shared_ext}$major'
11875   shlibpath_var=LD_LIBRARY_PATH
11876   ;;
11877
11878 freebsd1*)
11879   dynamic_linker=no
11880   ;;
11881
11882 kfreebsd*-gnu)
11883   version_type=linux
11884   need_lib_prefix=no
11885   need_version=no
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11887   soname_spec='${libname}${release}${shared_ext}$major'
11888   shlibpath_var=LD_LIBRARY_PATH
11889   shlibpath_overrides_runpath=no
11890   hardcode_into_libs=yes
11891   dynamic_linker='GNU ld.so'
11892   ;;
11893
11894 freebsd* | dragonfly*)
11895   # DragonFly does not have aout.  When/if they implement a new
11896   # versioning mechanism, adjust this.
11897   if test -x /usr/bin/objformat; then
11898     objformat=`/usr/bin/objformat`
11899   else
11900     case $host_os in
11901     freebsd[123]*) objformat=aout ;;
11902     *) objformat=elf ;;
11903     esac
11904   fi
11905   version_type=freebsd-$objformat
11906   case $version_type in
11907     freebsd-elf*)
11908       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11909       need_version=no
11910       need_lib_prefix=no
11911       ;;
11912     freebsd-*)
11913       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11914       need_version=yes
11915       ;;
11916   esac
11917   shlibpath_var=LD_LIBRARY_PATH
11918   case $host_os in
11919   freebsd2*)
11920     shlibpath_overrides_runpath=yes
11921     ;;
11922   freebsd3.[01]* | freebsdelf3.[01]*)
11923     shlibpath_overrides_runpath=yes
11924     hardcode_into_libs=yes
11925     ;;
11926   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11927   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11928     shlibpath_overrides_runpath=no
11929     hardcode_into_libs=yes
11930     ;;
11931   freebsd*) # from 4.6 on
11932     shlibpath_overrides_runpath=yes
11933     hardcode_into_libs=yes
11934     ;;
11935   esac
11936   ;;
11937
11938 gnu*)
11939   version_type=linux
11940   need_lib_prefix=no
11941   need_version=no
11942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11943   soname_spec='${libname}${release}${shared_ext}$major'
11944   shlibpath_var=LD_LIBRARY_PATH
11945   hardcode_into_libs=yes
11946   ;;
11947
11948 hpux9* | hpux10* | hpux11*)
11949   # Give a soname corresponding to the major version so that dld.sl refuses to
11950   # link against other versions.
11951   version_type=sunos
11952   need_lib_prefix=no
11953   need_version=no
11954   case $host_cpu in
11955   ia64*)
11956     shrext_cmds='.so'
11957     hardcode_into_libs=yes
11958     dynamic_linker="$host_os dld.so"
11959     shlibpath_var=LD_LIBRARY_PATH
11960     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962     soname_spec='${libname}${release}${shared_ext}$major'
11963     if test "X$HPUX_IA64_MODE" = X32; then
11964       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11965     else
11966       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11967     fi
11968     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11969     ;;
11970    hppa*64*)
11971      shrext_cmds='.sl'
11972      hardcode_into_libs=yes
11973      dynamic_linker="$host_os dld.sl"
11974      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11975      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11976      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977      soname_spec='${libname}${release}${shared_ext}$major'
11978      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11979      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11980      ;;
11981    *)
11982     shrext_cmds='.sl'
11983     dynamic_linker="$host_os dld.sl"
11984     shlibpath_var=SHLIB_PATH
11985     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987     soname_spec='${libname}${release}${shared_ext}$major'
11988     ;;
11989   esac
11990   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11991   postinstall_cmds='chmod 555 $lib'
11992   ;;
11993
11994 interix3*)
11995   version_type=linux
11996   need_lib_prefix=no
11997   need_version=no
11998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11999   soname_spec='${libname}${release}${shared_ext}$major'
12000   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12001   shlibpath_var=LD_LIBRARY_PATH
12002   shlibpath_overrides_runpath=no
12003   hardcode_into_libs=yes
12004   ;;
12005
12006 irix5* | irix6* | nonstopux*)
12007   case $host_os in
12008     nonstopux*) version_type=nonstopux ;;
12009     *)
12010         if test "$lt_cv_prog_gnu_ld" = yes; then
12011                 version_type=linux
12012         else
12013                 version_type=irix
12014         fi ;;
12015   esac
12016   need_lib_prefix=no
12017   need_version=no
12018   soname_spec='${libname}${release}${shared_ext}$major'
12019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12020   case $host_os in
12021   irix5* | nonstopux*)
12022     libsuff= shlibsuff=
12023     ;;
12024   *)
12025     case $LD in # libtool.m4 will add one of these switches to LD
12026     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12027       libsuff= shlibsuff= libmagic=32-bit;;
12028     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12029       libsuff=32 shlibsuff=N32 libmagic=N32;;
12030     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12031       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12032     *) libsuff= shlibsuff= libmagic=never-match;;
12033     esac
12034     ;;
12035   esac
12036   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12037   shlibpath_overrides_runpath=no
12038   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12039   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12040   hardcode_into_libs=yes
12041   ;;
12042
12043 # No shared lib support for Linux oldld, aout, or coff.
12044 linux*oldld* | linux*aout* | linux*coff*)
12045   dynamic_linker=no
12046   ;;
12047
12048 # This must be Linux ELF.
12049 linux*)
12050   version_type=linux
12051   need_lib_prefix=no
12052   need_version=no
12053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12054   soname_spec='${libname}${release}${shared_ext}$major'
12055   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12056   shlibpath_var=LD_LIBRARY_PATH
12057   shlibpath_overrides_runpath=no
12058   # This implies no fast_install, which is unacceptable.
12059   # Some rework will be needed to allow for fast_install
12060   # before this can be enabled.
12061   hardcode_into_libs=yes
12062
12063   # Append ld.so.conf contents to the search path
12064   if test -f /etc/ld.so.conf; then
12065     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' ' '`
12066     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12067   fi
12068
12069   # We used to test for /lib/ld.so.1 and disable shared libraries on
12070   # powerpc, because MkLinux only supported shared libraries with the
12071   # GNU dynamic linker.  Since this was broken with cross compilers,
12072   # most powerpc-linux boxes support dynamic linking these days and
12073   # people can always --disable-shared, the test was removed, and we
12074   # assume the GNU/Linux dynamic linker is in use.
12075   dynamic_linker='GNU/Linux ld.so'
12076   ;;
12077
12078 knetbsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
12085   shlibpath_overrides_runpath=no
12086   hardcode_into_libs=yes
12087   dynamic_linker='GNU ld.so'
12088   ;;
12089
12090 netbsd*)
12091   version_type=sunos
12092   need_lib_prefix=no
12093   need_version=no
12094   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12096     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12097     dynamic_linker='NetBSD (a.out) ld.so'
12098   else
12099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12100     soname_spec='${libname}${release}${shared_ext}$major'
12101     dynamic_linker='NetBSD ld.elf_so'
12102   fi
12103   shlibpath_var=LD_LIBRARY_PATH
12104   shlibpath_overrides_runpath=yes
12105   hardcode_into_libs=yes
12106   ;;
12107
12108 newsos6)
12109   version_type=linux
12110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12111   shlibpath_var=LD_LIBRARY_PATH
12112   shlibpath_overrides_runpath=yes
12113   ;;
12114
12115 nto-qnx*)
12116   version_type=linux
12117   need_lib_prefix=no
12118   need_version=no
12119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120   soname_spec='${libname}${release}${shared_ext}$major'
12121   shlibpath_var=LD_LIBRARY_PATH
12122   shlibpath_overrides_runpath=yes
12123   ;;
12124
12125 openbsd*)
12126   version_type=sunos
12127   sys_lib_dlsearch_path_spec="/usr/lib"
12128   need_lib_prefix=no
12129   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12130   case $host_os in
12131     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12132     *)                         need_version=no  ;;
12133   esac
12134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12135   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12136   shlibpath_var=LD_LIBRARY_PATH
12137   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12138     case $host_os in
12139       openbsd2.[89] | openbsd2.[89].*)
12140         shlibpath_overrides_runpath=no
12141         ;;
12142       *)
12143         shlibpath_overrides_runpath=yes
12144         ;;
12145       esac
12146   else
12147     shlibpath_overrides_runpath=yes
12148   fi
12149   ;;
12150
12151 os2*)
12152   libname_spec='$name'
12153   shrext_cmds=".dll"
12154   need_lib_prefix=no
12155   library_names_spec='$libname${shared_ext} $libname.a'
12156   dynamic_linker='OS/2 ld.exe'
12157   shlibpath_var=LIBPATH
12158   ;;
12159
12160 osf3* | osf4* | osf5*)
12161   version_type=osf
12162   need_lib_prefix=no
12163   need_version=no
12164   soname_spec='${libname}${release}${shared_ext}$major'
12165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12166   shlibpath_var=LD_LIBRARY_PATH
12167   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12168   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12169   ;;
12170
12171 solaris*)
12172   version_type=linux
12173   need_lib_prefix=no
12174   need_version=no
12175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12176   soname_spec='${libname}${release}${shared_ext}$major'
12177   shlibpath_var=LD_LIBRARY_PATH
12178   shlibpath_overrides_runpath=yes
12179   hardcode_into_libs=yes
12180   # ldd complains unless libraries are executable
12181   postinstall_cmds='chmod +x $lib'
12182   ;;
12183
12184 sunos4*)
12185   version_type=sunos
12186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12187   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12188   shlibpath_var=LD_LIBRARY_PATH
12189   shlibpath_overrides_runpath=yes
12190   if test "$with_gnu_ld" = yes; then
12191     need_lib_prefix=no
12192   fi
12193   need_version=yes
12194   ;;
12195
12196 sysv4 | sysv4.3*)
12197   version_type=linux
12198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12199   soname_spec='${libname}${release}${shared_ext}$major'
12200   shlibpath_var=LD_LIBRARY_PATH
12201   case $host_vendor in
12202     sni)
12203       shlibpath_overrides_runpath=no
12204       need_lib_prefix=no
12205       export_dynamic_flag_spec='${wl}-Blargedynsym'
12206       runpath_var=LD_RUN_PATH
12207       ;;
12208     siemens)
12209       need_lib_prefix=no
12210       ;;
12211     motorola)
12212       need_lib_prefix=no
12213       need_version=no
12214       shlibpath_overrides_runpath=no
12215       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12216       ;;
12217   esac
12218   ;;
12219
12220 sysv4*MP*)
12221   if test -d /usr/nec ;then
12222     version_type=linux
12223     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12224     soname_spec='$libname${shared_ext}.$major'
12225     shlibpath_var=LD_LIBRARY_PATH
12226   fi
12227   ;;
12228
12229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12230   version_type=freebsd-elf
12231   need_lib_prefix=no
12232   need_version=no
12233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12234   soname_spec='${libname}${release}${shared_ext}$major'
12235   shlibpath_var=LD_LIBRARY_PATH
12236   hardcode_into_libs=yes
12237   if test "$with_gnu_ld" = yes; then
12238     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12239     shlibpath_overrides_runpath=no
12240   else
12241     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12242     shlibpath_overrides_runpath=yes
12243     case $host_os in
12244       sco3.2v5*)
12245         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12246         ;;
12247     esac
12248   fi
12249   sys_lib_dlsearch_path_spec='/usr/lib'
12250   ;;
12251
12252 uts4*)
12253   version_type=linux
12254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255   soname_spec='${libname}${release}${shared_ext}$major'
12256   shlibpath_var=LD_LIBRARY_PATH
12257   ;;
12258
12259 *)
12260   dynamic_linker=no
12261   ;;
12262 esac
12263 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12264 echo "${ECHO_T}$dynamic_linker" >&6
12265 test "$dynamic_linker" = no && can_build_shared=no
12266
12267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12268 if test "$GCC" = yes; then
12269   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12270 fi
12271
12272 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12273 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12274 hardcode_action_CXX=
12275 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12276    test -n "$runpath_var_CXX" || \
12277    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12278
12279   # We can hardcode non-existant directories.
12280   if test "$hardcode_direct_CXX" != no &&
12281      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12282      # have to relink, otherwise we might link with an installed library
12283      # when we should be linking with a yet-to-be-installed one
12284      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12285      test "$hardcode_minus_L_CXX" != no; then
12286     # Linking always hardcodes the temporary library directory.
12287     hardcode_action_CXX=relink
12288   else
12289     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12290     hardcode_action_CXX=immediate
12291   fi
12292 else
12293   # We cannot hardcode anything, or else we can only hardcode existing
12294   # directories.
12295   hardcode_action_CXX=unsupported
12296 fi
12297 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12298 echo "${ECHO_T}$hardcode_action_CXX" >&6
12299
12300 if test "$hardcode_action_CXX" = relink; then
12301   # Fast installation is not supported
12302   enable_fast_install=no
12303 elif test "$shlibpath_overrides_runpath" = yes ||
12304      test "$enable_shared" = no; then
12305   # Fast installation is not necessary
12306   enable_fast_install=needless
12307 fi
12308
12309
12310 # The else clause should only fire when bootstrapping the
12311 # libtool distribution, otherwise you forgot to ship ltmain.sh
12312 # with your package, and you will get complaints that there are
12313 # no rules to generate ltmain.sh.
12314 if test -f "$ltmain"; then
12315   # See if we are running on zsh, and set the options which allow our commands through
12316   # without removal of \ escapes.
12317   if test -n "${ZSH_VERSION+set}" ; then
12318     setopt NO_GLOB_SUBST
12319   fi
12320   # Now quote all the things that may contain metacharacters while being
12321   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12322   # variables and quote the copies for generation of the libtool script.
12323   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12324     SED SHELL STRIP \
12325     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12326     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12327     deplibs_check_method reload_flag reload_cmds need_locks \
12328     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12329     lt_cv_sys_global_symbol_to_c_name_address \
12330     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12331     old_postinstall_cmds old_postuninstall_cmds \
12332     compiler_CXX \
12333     CC_CXX \
12334     LD_CXX \
12335     lt_prog_compiler_wl_CXX \
12336     lt_prog_compiler_pic_CXX \
12337     lt_prog_compiler_static_CXX \
12338     lt_prog_compiler_no_builtin_flag_CXX \
12339     export_dynamic_flag_spec_CXX \
12340     thread_safe_flag_spec_CXX \
12341     whole_archive_flag_spec_CXX \
12342     enable_shared_with_static_runtimes_CXX \
12343     old_archive_cmds_CXX \
12344     old_archive_from_new_cmds_CXX \
12345     predep_objects_CXX \
12346     postdep_objects_CXX \
12347     predeps_CXX \
12348     postdeps_CXX \
12349     compiler_lib_search_path_CXX \
12350     archive_cmds_CXX \
12351     archive_expsym_cmds_CXX \
12352     postinstall_cmds_CXX \
12353     postuninstall_cmds_CXX \
12354     old_archive_from_expsyms_cmds_CXX \
12355     allow_undefined_flag_CXX \
12356     no_undefined_flag_CXX \
12357     export_symbols_cmds_CXX \
12358     hardcode_libdir_flag_spec_CXX \
12359     hardcode_libdir_flag_spec_ld_CXX \
12360     hardcode_libdir_separator_CXX \
12361     hardcode_automatic_CXX \
12362     module_cmds_CXX \
12363     module_expsym_cmds_CXX \
12364     lt_cv_prog_compiler_c_o_CXX \
12365     exclude_expsyms_CXX \
12366     include_expsyms_CXX; do
12367
12368     case $var in
12369     old_archive_cmds_CXX | \
12370     old_archive_from_new_cmds_CXX | \
12371     archive_cmds_CXX | \
12372     archive_expsym_cmds_CXX | \
12373     module_cmds_CXX | \
12374     module_expsym_cmds_CXX | \
12375     old_archive_from_expsyms_cmds_CXX | \
12376     export_symbols_cmds_CXX | \
12377     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12378     postinstall_cmds | postuninstall_cmds | \
12379     old_postinstall_cmds | old_postuninstall_cmds | \
12380     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12381       # Double-quote double-evaled strings.
12382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12383       ;;
12384     *)
12385       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12386       ;;
12387     esac
12388   done
12389
12390   case $lt_echo in
12391   *'\$0 --fallback-echo"')
12392     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12393     ;;
12394   esac
12395
12396 cfgfile="$ofile"
12397
12398   cat <<__EOF__ >> "$cfgfile"
12399 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12400
12401 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12402
12403 # Shell to use when invoking shell scripts.
12404 SHELL=$lt_SHELL
12405
12406 # Whether or not to build shared libraries.
12407 build_libtool_libs=$enable_shared
12408
12409 # Whether or not to build static libraries.
12410 build_old_libs=$enable_static
12411
12412 # Whether or not to add -lc for building shared libraries.
12413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12414
12415 # Whether or not to disallow shared libs when runtime libs are static
12416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12417
12418 # Whether or not to optimize for fast installation.
12419 fast_install=$enable_fast_install
12420
12421 # The host system.
12422 host_alias=$host_alias
12423 host=$host
12424 host_os=$host_os
12425
12426 # The build system.
12427 build_alias=$build_alias
12428 build=$build
12429 build_os=$build_os
12430
12431 # An echo program that does not interpret backslashes.
12432 echo=$lt_echo
12433
12434 # The archiver.
12435 AR=$lt_AR
12436 AR_FLAGS=$lt_AR_FLAGS
12437
12438 # A C compiler.
12439 LTCC=$lt_LTCC
12440
12441 # LTCC compiler flags.
12442 LTCFLAGS=$lt_LTCFLAGS
12443
12444 # A language-specific compiler.
12445 CC=$lt_compiler_CXX
12446
12447 # Is the compiler the GNU C compiler?
12448 with_gcc=$GCC_CXX
12449
12450 # An ERE matcher.
12451 EGREP=$lt_EGREP
12452
12453 # The linker used to build libraries.
12454 LD=$lt_LD_CXX
12455
12456 # Whether we need hard or soft links.
12457 LN_S=$lt_LN_S
12458
12459 # A BSD-compatible nm program.
12460 NM=$lt_NM
12461
12462 # A symbol stripping program
12463 STRIP=$lt_STRIP
12464
12465 # Used to examine libraries when file_magic_cmd begins "file"
12466 MAGIC_CMD=$MAGIC_CMD
12467
12468 # Used on cygwin: DLL creation program.
12469 DLLTOOL="$DLLTOOL"
12470
12471 # Used on cygwin: object dumper.
12472 OBJDUMP="$OBJDUMP"
12473
12474 # Used on cygwin: assembler.
12475 AS="$AS"
12476
12477 # The name of the directory that contains temporary libtool files.
12478 objdir=$objdir
12479
12480 # How to create reloadable object files.
12481 reload_flag=$lt_reload_flag
12482 reload_cmds=$lt_reload_cmds
12483
12484 # How to pass a linker flag through the compiler.
12485 wl=$lt_lt_prog_compiler_wl_CXX
12486
12487 # Object file suffix (normally "o").
12488 objext="$ac_objext"
12489
12490 # Old archive suffix (normally "a").
12491 libext="$libext"
12492
12493 # Shared library suffix (normally ".so").
12494 shrext_cmds='$shrext_cmds'
12495
12496 # Executable file suffix (normally "").
12497 exeext="$exeext"
12498
12499 # Additional compiler flags for building library objects.
12500 pic_flag=$lt_lt_prog_compiler_pic_CXX
12501 pic_mode=$pic_mode
12502
12503 # What is the maximum length of a command?
12504 max_cmd_len=$lt_cv_sys_max_cmd_len
12505
12506 # Does compiler simultaneously support -c and -o options?
12507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12508
12509 # Must we lock files when doing compilation?
12510 need_locks=$lt_need_locks
12511
12512 # Do we need the lib prefix for modules?
12513 need_lib_prefix=$need_lib_prefix
12514
12515 # Do we need a version for libraries?
12516 need_version=$need_version
12517
12518 # Whether dlopen is supported.
12519 dlopen_support=$enable_dlopen
12520
12521 # Whether dlopen of programs is supported.
12522 dlopen_self=$enable_dlopen_self
12523
12524 # Whether dlopen of statically linked programs is supported.
12525 dlopen_self_static=$enable_dlopen_self_static
12526
12527 # Compiler flag to prevent dynamic linking.
12528 link_static_flag=$lt_lt_prog_compiler_static_CXX
12529
12530 # Compiler flag to turn off builtin functions.
12531 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12532
12533 # Compiler flag to allow reflexive dlopens.
12534 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12535
12536 # Compiler flag to generate shared objects directly from archives.
12537 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12538
12539 # Compiler flag to generate thread-safe objects.
12540 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12541
12542 # Library versioning type.
12543 version_type=$version_type
12544
12545 # Format of library name prefix.
12546 libname_spec=$lt_libname_spec
12547
12548 # List of archive names.  First name is the real one, the rest are links.
12549 # The last name is the one that the linker finds with -lNAME.
12550 library_names_spec=$lt_library_names_spec
12551
12552 # The coded name of the library, if different from the real name.
12553 soname_spec=$lt_soname_spec
12554
12555 # Commands used to build and install an old-style archive.
12556 RANLIB=$lt_RANLIB
12557 old_archive_cmds=$lt_old_archive_cmds_CXX
12558 old_postinstall_cmds=$lt_old_postinstall_cmds
12559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12560
12561 # Create an old-style archive from a shared archive.
12562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12563
12564 # Create a temporary old-style archive to link instead of a shared archive.
12565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12566
12567 # Commands used to build and install a shared archive.
12568 archive_cmds=$lt_archive_cmds_CXX
12569 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12570 postinstall_cmds=$lt_postinstall_cmds
12571 postuninstall_cmds=$lt_postuninstall_cmds
12572
12573 # Commands used to build a loadable module (assumed same as above if empty)
12574 module_cmds=$lt_module_cmds_CXX
12575 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12576
12577 # Commands to strip libraries.
12578 old_striplib=$lt_old_striplib
12579 striplib=$lt_striplib
12580
12581 # Dependencies to place before the objects being linked to create a
12582 # shared library.
12583 predep_objects=$lt_predep_objects_CXX
12584
12585 # Dependencies to place after the objects being linked to create a
12586 # shared library.
12587 postdep_objects=$lt_postdep_objects_CXX
12588
12589 # Dependencies to place before the objects being linked to create a
12590 # shared library.
12591 predeps=$lt_predeps_CXX
12592
12593 # Dependencies to place after the objects being linked to create a
12594 # shared library.
12595 postdeps=$lt_postdeps_CXX
12596
12597 # The library search path used internally by the compiler when linking
12598 # a shared library.
12599 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12600
12601 # Method to check whether dependent libraries are shared objects.
12602 deplibs_check_method=$lt_deplibs_check_method
12603
12604 # Command to use when deplibs_check_method == file_magic.
12605 file_magic_cmd=$lt_file_magic_cmd
12606
12607 # Flag that allows shared libraries with undefined symbols to be built.
12608 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12609
12610 # Flag that forces no undefined symbols.
12611 no_undefined_flag=$lt_no_undefined_flag_CXX
12612
12613 # Commands used to finish a libtool library installation in a directory.
12614 finish_cmds=$lt_finish_cmds
12615
12616 # Same as above, but a single script fragment to be evaled but not shown.
12617 finish_eval=$lt_finish_eval
12618
12619 # Take the output of nm and produce a listing of raw symbols and C names.
12620 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12621
12622 # Transform the output of nm in a proper C declaration
12623 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12624
12625 # Transform the output of nm in a C name address pair
12626 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12627
12628 # This is the shared library runtime path variable.
12629 runpath_var=$runpath_var
12630
12631 # This is the shared library path variable.
12632 shlibpath_var=$shlibpath_var
12633
12634 # Is shlibpath searched before the hard-coded library search path?
12635 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12636
12637 # How to hardcode a shared library path into an executable.
12638 hardcode_action=$hardcode_action_CXX
12639
12640 # Whether we should hardcode library paths into libraries.
12641 hardcode_into_libs=$hardcode_into_libs
12642
12643 # Flag to hardcode \$libdir into a binary during linking.
12644 # This must work even if \$libdir does not exist.
12645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12646
12647 # If ld is used when linking, flag to hardcode \$libdir into
12648 # a binary during linking. This must work even if \$libdir does
12649 # not exist.
12650 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12651
12652 # Whether we need a single -rpath flag with a separated argument.
12653 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12654
12655 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12656 # resulting binary.
12657 hardcode_direct=$hardcode_direct_CXX
12658
12659 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12660 # resulting binary.
12661 hardcode_minus_L=$hardcode_minus_L_CXX
12662
12663 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12664 # the resulting binary.
12665 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12666
12667 # Set to yes if building a shared library automatically hardcodes DIR into the library
12668 # and all subsequent libraries and executables linked against it.
12669 hardcode_automatic=$hardcode_automatic_CXX
12670
12671 # Variables whose values should be saved in libtool wrapper scripts and
12672 # restored at relink time.
12673 variables_saved_for_relink="$variables_saved_for_relink"
12674
12675 # Whether libtool must link a program against all its dependency libraries.
12676 link_all_deplibs=$link_all_deplibs_CXX
12677
12678 # Compile-time system search path for libraries
12679 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12680
12681 # Run-time system search path for libraries
12682 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12683
12684 # Fix the shell variable \$srcfile for the compiler.
12685 fix_srcfile_path="$fix_srcfile_path_CXX"
12686
12687 # Set to yes if exported symbols are required.
12688 always_export_symbols=$always_export_symbols_CXX
12689
12690 # The commands to list exported symbols.
12691 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12692
12693 # The commands to extract the exported symbol list from a shared archive.
12694 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12695
12696 # Symbols that should not be listed in the preloaded symbols.
12697 exclude_expsyms=$lt_exclude_expsyms_CXX
12698
12699 # Symbols that must always be exported.
12700 include_expsyms=$lt_include_expsyms_CXX
12701
12702 # ### END LIBTOOL TAG CONFIG: $tagname
12703
12704 __EOF__
12705
12706
12707 else
12708   # If there is no Makefile yet, we rely on a make rule to execute
12709   # `config.status --recheck' to rerun these tests and create the
12710   # libtool script then.
12711   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12712   if test -f "$ltmain_in"; then
12713     test -f Makefile && make "$ltmain"
12714   fi
12715 fi
12716
12717
12718 ac_ext=c
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12723
12724 CC=$lt_save_CC
12725 LDCXX=$LD
12726 LD=$lt_save_LD
12727 GCC=$lt_save_GCC
12728 with_gnu_ldcxx=$with_gnu_ld
12729 with_gnu_ld=$lt_save_with_gnu_ld
12730 lt_cv_path_LDCXX=$lt_cv_path_LD
12731 lt_cv_path_LD=$lt_save_path_LD
12732 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12733 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12734
12735         else
12736           tagname=""
12737         fi
12738         ;;
12739
12740       F77)
12741         if test -n "$F77" && test "X$F77" != "Xno"; then
12742
12743 ac_ext=f
12744 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12745 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12747
12748
12749 archive_cmds_need_lc_F77=no
12750 allow_undefined_flag_F77=
12751 always_export_symbols_F77=no
12752 archive_expsym_cmds_F77=
12753 export_dynamic_flag_spec_F77=
12754 hardcode_direct_F77=no
12755 hardcode_libdir_flag_spec_F77=
12756 hardcode_libdir_flag_spec_ld_F77=
12757 hardcode_libdir_separator_F77=
12758 hardcode_minus_L_F77=no
12759 hardcode_automatic_F77=no
12760 module_cmds_F77=
12761 module_expsym_cmds_F77=
12762 link_all_deplibs_F77=unknown
12763 old_archive_cmds_F77=$old_archive_cmds
12764 no_undefined_flag_F77=
12765 whole_archive_flag_spec_F77=
12766 enable_shared_with_static_runtimes_F77=no
12767
12768 # Source file extension for f77 test sources.
12769 ac_ext=f
12770
12771 # Object file extension for compiled f77 test sources.
12772 objext=o
12773 objext_F77=$objext
12774
12775 # Code to be used in simple compile tests
12776 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12777
12778 # Code to be used in simple link tests
12779 lt_simple_link_test_code="      program t\n      end\n"
12780
12781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12782
12783 # If no C compiler was specified, use CC.
12784 LTCC=${LTCC-"$CC"}
12785
12786 # If no C compiler flags were specified, use CFLAGS.
12787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12788
12789 # Allow CC to be a program name with arguments.
12790 compiler=$CC
12791
12792
12793 # save warnings/boilerplate of simple test code
12794 ac_outfile=conftest.$ac_objext
12795 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12797 _lt_compiler_boilerplate=`cat conftest.err`
12798 $rm conftest*
12799
12800 ac_outfile=conftest.$ac_objext
12801 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12803 _lt_linker_boilerplate=`cat conftest.err`
12804 $rm conftest*
12805
12806
12807 # Allow CC to be a program name with arguments.
12808 lt_save_CC="$CC"
12809 CC=${F77-"f77"}
12810 compiler=$CC
12811 compiler_F77=$CC
12812 for cc_temp in $compiler""; do
12813   case $cc_temp in
12814     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12815     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12816     \-*) ;;
12817     *) break;;
12818   esac
12819 done
12820 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12821
12822
12823 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12824 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12825 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12826 echo "${ECHO_T}$can_build_shared" >&6
12827
12828 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12829 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12830 test "$can_build_shared" = "no" && enable_shared=no
12831
12832 # On AIX, shared libraries and static libraries use the same namespace, and
12833 # are all built from PIC.
12834 case $host_os in
12835 aix3*)
12836   test "$enable_shared" = yes && enable_static=no
12837   if test -n "$RANLIB"; then
12838     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12839     postinstall_cmds='$RANLIB $lib'
12840   fi
12841   ;;
12842 aix4* | aix5*)
12843   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12844     test "$enable_shared" = yes && enable_static=no
12845   fi
12846   ;;
12847 esac
12848 echo "$as_me:$LINENO: result: $enable_shared" >&5
12849 echo "${ECHO_T}$enable_shared" >&6
12850
12851 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12852 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12853 # Make sure either enable_shared or enable_static is yes.
12854 test "$enable_shared" = yes || enable_static=yes
12855 echo "$as_me:$LINENO: result: $enable_static" >&5
12856 echo "${ECHO_T}$enable_static" >&6
12857
12858 GCC_F77="$G77"
12859 LD_F77="$LD"
12860
12861 lt_prog_compiler_wl_F77=
12862 lt_prog_compiler_pic_F77=
12863 lt_prog_compiler_static_F77=
12864
12865 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12866 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12867
12868   if test "$GCC" = yes; then
12869     lt_prog_compiler_wl_F77='-Wl,'
12870     lt_prog_compiler_static_F77='-static'
12871
12872     case $host_os in
12873       aix*)
12874       # All AIX code is PIC.
12875       if test "$host_cpu" = ia64; then
12876         # AIX 5 now supports IA64 processor
12877         lt_prog_compiler_static_F77='-Bstatic'
12878       fi
12879       ;;
12880
12881     amigaos*)
12882       # FIXME: we need at least 68020 code to build shared libraries, but
12883       # adding the `-m68020' flag to GCC prevents building anything better,
12884       # like `-m68040'.
12885       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12886       ;;
12887
12888     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12889       # PIC is the default for these OSes.
12890       ;;
12891
12892     mingw* | pw32* | os2*)
12893       # This hack is so that the source file can tell whether it is being
12894       # built for inclusion in a dll (and should export symbols for example).
12895       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12896       ;;
12897
12898     darwin* | rhapsody*)
12899       # PIC is the default on this platform
12900       # Common symbols not allowed in MH_DYLIB files
12901       lt_prog_compiler_pic_F77='-fno-common'
12902       ;;
12903
12904     interix3*)
12905       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12906       # Instead, we relocate shared libraries at runtime.
12907       ;;
12908
12909     msdosdjgpp*)
12910       # Just because we use GCC doesn't mean we suddenly get shared libraries
12911       # on systems that don't support them.
12912       lt_prog_compiler_can_build_shared_F77=no
12913       enable_shared=no
12914       ;;
12915
12916     sysv4*MP*)
12917       if test -d /usr/nec; then
12918         lt_prog_compiler_pic_F77=-Kconform_pic
12919       fi
12920       ;;
12921
12922     hpux*)
12923       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12924       # not for PA HP-UX.
12925       case $host_cpu in
12926       hppa*64*|ia64*)
12927         # +Z the default
12928         ;;
12929       *)
12930         lt_prog_compiler_pic_F77='-fPIC'
12931         ;;
12932       esac
12933       ;;
12934
12935     *)
12936       lt_prog_compiler_pic_F77='-fPIC'
12937       ;;
12938     esac
12939   else
12940     # PORTME Check for flag to pass linker flags through the system compiler.
12941     case $host_os in
12942     aix*)
12943       lt_prog_compiler_wl_F77='-Wl,'
12944       if test "$host_cpu" = ia64; then
12945         # AIX 5 now supports IA64 processor
12946         lt_prog_compiler_static_F77='-Bstatic'
12947       else
12948         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12949       fi
12950       ;;
12951       darwin*)
12952         # PIC is the default on this platform
12953         # Common symbols not allowed in MH_DYLIB files
12954        case $cc_basename in
12955          xlc*)
12956          lt_prog_compiler_pic_F77='-qnocommon'
12957          lt_prog_compiler_wl_F77='-Wl,'
12958          ;;
12959        esac
12960        ;;
12961
12962     mingw* | pw32* | os2*)
12963       # This hack is so that the source file can tell whether it is being
12964       # built for inclusion in a dll (and should export symbols for example).
12965       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12966       ;;
12967
12968     hpux9* | hpux10* | hpux11*)
12969       lt_prog_compiler_wl_F77='-Wl,'
12970       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971       # not for PA HP-UX.
12972       case $host_cpu in
12973       hppa*64*|ia64*)
12974         # +Z the default
12975         ;;
12976       *)
12977         lt_prog_compiler_pic_F77='+Z'
12978         ;;
12979       esac
12980       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12982       ;;
12983
12984     irix5* | irix6* | nonstopux*)
12985       lt_prog_compiler_wl_F77='-Wl,'
12986       # PIC (with -KPIC) is the default.
12987       lt_prog_compiler_static_F77='-non_shared'
12988       ;;
12989
12990     newsos6)
12991       lt_prog_compiler_pic_F77='-KPIC'
12992       lt_prog_compiler_static_F77='-Bstatic'
12993       ;;
12994
12995     linux*)
12996       case $cc_basename in
12997       icc* | ecc*)
12998         lt_prog_compiler_wl_F77='-Wl,'
12999         lt_prog_compiler_pic_F77='-KPIC'
13000         lt_prog_compiler_static_F77='-static'
13001         ;;
13002       pgcc* | pgf77* | pgf90* | pgf95*)
13003         # Portland Group compilers (*not* the Pentium gcc compiler,
13004         # which looks to be a dead project)
13005         lt_prog_compiler_wl_F77='-Wl,'
13006         lt_prog_compiler_pic_F77='-fpic'
13007         lt_prog_compiler_static_F77='-Bstatic'
13008         ;;
13009       ccc*)
13010         lt_prog_compiler_wl_F77='-Wl,'
13011         # All Alpha code is PIC.
13012         lt_prog_compiler_static_F77='-non_shared'
13013         ;;
13014       esac
13015       ;;
13016
13017     osf3* | osf4* | osf5*)
13018       lt_prog_compiler_wl_F77='-Wl,'
13019       # All OSF/1 code is PIC.
13020       lt_prog_compiler_static_F77='-non_shared'
13021       ;;
13022
13023     solaris*)
13024       lt_prog_compiler_pic_F77='-KPIC'
13025       lt_prog_compiler_static_F77='-Bstatic'
13026       case $cc_basename in
13027       f77* | f90* | f95*)
13028         lt_prog_compiler_wl_F77='-Qoption ld ';;
13029       *)
13030         lt_prog_compiler_wl_F77='-Wl,';;
13031       esac
13032       ;;
13033
13034     sunos4*)
13035       lt_prog_compiler_wl_F77='-Qoption ld '
13036       lt_prog_compiler_pic_F77='-PIC'
13037       lt_prog_compiler_static_F77='-Bstatic'
13038       ;;
13039
13040     sysv4 | sysv4.2uw2* | sysv4.3*)
13041       lt_prog_compiler_wl_F77='-Wl,'
13042       lt_prog_compiler_pic_F77='-KPIC'
13043       lt_prog_compiler_static_F77='-Bstatic'
13044       ;;
13045
13046     sysv4*MP*)
13047       if test -d /usr/nec ;then
13048         lt_prog_compiler_pic_F77='-Kconform_pic'
13049         lt_prog_compiler_static_F77='-Bstatic'
13050       fi
13051       ;;
13052
13053     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13054       lt_prog_compiler_wl_F77='-Wl,'
13055       lt_prog_compiler_pic_F77='-KPIC'
13056       lt_prog_compiler_static_F77='-Bstatic'
13057       ;;
13058
13059     unicos*)
13060       lt_prog_compiler_wl_F77='-Wl,'
13061       lt_prog_compiler_can_build_shared_F77=no
13062       ;;
13063
13064     uts4*)
13065       lt_prog_compiler_pic_F77='-pic'
13066       lt_prog_compiler_static_F77='-Bstatic'
13067       ;;
13068
13069     *)
13070       lt_prog_compiler_can_build_shared_F77=no
13071       ;;
13072     esac
13073   fi
13074
13075 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13076 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13077
13078 #
13079 # Check to make sure the PIC flag actually works.
13080 #
13081 if test -n "$lt_prog_compiler_pic_F77"; then
13082
13083 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13084 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13085 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13086   echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088   lt_prog_compiler_pic_works_F77=no
13089   ac_outfile=conftest.$ac_objext
13090    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13091    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13092    # Insert the option either (1) after the last *FLAGS variable, or
13093    # (2) before a word containing "conftest.", or (3) at the end.
13094    # Note that $ac_compile itself does not contain backslashes and begins
13095    # with a dollar sign (not a hyphen), so the echo should work correctly.
13096    # The option is referenced via a variable to avoid confusing sed.
13097    lt_compile=`echo "$ac_compile" | $SED \
13098    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13099    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13100    -e 's:$: $lt_compiler_flag:'`
13101    (eval echo "\"\$as_me:13101: $lt_compile\"" >&5)
13102    (eval "$lt_compile" 2>conftest.err)
13103    ac_status=$?
13104    cat conftest.err >&5
13105    echo "$as_me:13105: \$? = $ac_status" >&5
13106    if (exit $ac_status) && test -s "$ac_outfile"; then
13107      # The compiler can only warn and ignore the option if not recognized
13108      # So say no if there are warnings other than the usual output.
13109      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13110      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13111      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13112        lt_prog_compiler_pic_works_F77=yes
13113      fi
13114    fi
13115    $rm conftest*
13116
13117 fi
13118 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13119 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13120
13121 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13122     case $lt_prog_compiler_pic_F77 in
13123      "" | " "*) ;;
13124      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13125      esac
13126 else
13127     lt_prog_compiler_pic_F77=
13128      lt_prog_compiler_can_build_shared_F77=no
13129 fi
13130
13131 fi
13132 case $host_os in
13133   # For platforms which do not support PIC, -DPIC is meaningless:
13134   *djgpp*)
13135     lt_prog_compiler_pic_F77=
13136     ;;
13137   *)
13138     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13139     ;;
13140 esac
13141
13142 #
13143 # Check to make sure the static flag actually works.
13144 #
13145 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13146 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13147 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13148 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   lt_prog_compiler_static_works_F77=no
13152    save_LDFLAGS="$LDFLAGS"
13153    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13154    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13155    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13156      # The linker can only warn and ignore the option if not recognized
13157      # So say no if there are warnings
13158      if test -s conftest.err; then
13159        # Append any errors to the config.log.
13160        cat conftest.err 1>&5
13161        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13162        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13163        if diff conftest.exp conftest.er2 >/dev/null; then
13164          lt_prog_compiler_static_works_F77=yes
13165        fi
13166      else
13167        lt_prog_compiler_static_works_F77=yes
13168      fi
13169    fi
13170    $rm conftest*
13171    LDFLAGS="$save_LDFLAGS"
13172
13173 fi
13174 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13175 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13176
13177 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13178     :
13179 else
13180     lt_prog_compiler_static_F77=
13181 fi
13182
13183
13184 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13185 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13186 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   lt_cv_prog_compiler_c_o_F77=no
13190    $rm -r conftest 2>/dev/null
13191    mkdir conftest
13192    cd conftest
13193    mkdir out
13194    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13195
13196    lt_compiler_flag="-o out/conftest2.$ac_objext"
13197    # Insert the option either (1) after the last *FLAGS variable, or
13198    # (2) before a word containing "conftest.", or (3) at the end.
13199    # Note that $ac_compile itself does not contain backslashes and begins
13200    # with a dollar sign (not a hyphen), so the echo should work correctly.
13201    lt_compile=`echo "$ac_compile" | $SED \
13202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13204    -e 's:$: $lt_compiler_flag:'`
13205    (eval echo "\"\$as_me:13205: $lt_compile\"" >&5)
13206    (eval "$lt_compile" 2>out/conftest.err)
13207    ac_status=$?
13208    cat out/conftest.err >&5
13209    echo "$as_me:13209: \$? = $ac_status" >&5
13210    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13211    then
13212      # The compiler can only warn and ignore the option if not recognized
13213      # So say no if there are warnings
13214      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13215      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13216      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13217        lt_cv_prog_compiler_c_o_F77=yes
13218      fi
13219    fi
13220    chmod u+w . 2>&5
13221    $rm conftest*
13222    # SGI C++ compiler will create directory out/ii_files/ for
13223    # template instantiation
13224    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13225    $rm out/* && rmdir out
13226    cd ..
13227    rmdir conftest
13228    $rm conftest*
13229
13230 fi
13231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13233
13234
13235 hard_links="nottested"
13236 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13237   # do not overwrite the value of need_locks provided by the user
13238   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13240   hard_links=yes
13241   $rm conftest*
13242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13243   touch conftest.a
13244   ln conftest.a conftest.b 2>&5 || hard_links=no
13245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13246   echo "$as_me:$LINENO: result: $hard_links" >&5
13247 echo "${ECHO_T}$hard_links" >&6
13248   if test "$hard_links" = no; then
13249     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13251     need_locks=warn
13252   fi
13253 else
13254   need_locks=no
13255 fi
13256
13257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13259
13260   runpath_var=
13261   allow_undefined_flag_F77=
13262   enable_shared_with_static_runtimes_F77=no
13263   archive_cmds_F77=
13264   archive_expsym_cmds_F77=
13265   old_archive_From_new_cmds_F77=
13266   old_archive_from_expsyms_cmds_F77=
13267   export_dynamic_flag_spec_F77=
13268   whole_archive_flag_spec_F77=
13269   thread_safe_flag_spec_F77=
13270   hardcode_libdir_flag_spec_F77=
13271   hardcode_libdir_flag_spec_ld_F77=
13272   hardcode_libdir_separator_F77=
13273   hardcode_direct_F77=no
13274   hardcode_minus_L_F77=no
13275   hardcode_shlibpath_var_F77=unsupported
13276   link_all_deplibs_F77=unknown
13277   hardcode_automatic_F77=no
13278   module_cmds_F77=
13279   module_expsym_cmds_F77=
13280   always_export_symbols_F77=no
13281   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13282   # include_expsyms should be a list of space-separated symbols to be *always*
13283   # included in the symbol list
13284   include_expsyms_F77=
13285   # exclude_expsyms can be an extended regexp of symbols to exclude
13286   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13287   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13288   # as well as any symbol that contains `d'.
13289   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13290   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13291   # platforms (ab)use it in PIC code, but their linkers get confused if
13292   # the symbol is explicitly referenced.  Since portable code cannot
13293   # rely on this symbol name, it's probably fine to never include it in
13294   # preloaded symbol tables.
13295   extract_expsyms_cmds=
13296   # Just being paranoid about ensuring that cc_basename is set.
13297   for cc_temp in $compiler""; do
13298   case $cc_temp in
13299     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13300     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13301     \-*) ;;
13302     *) break;;
13303   esac
13304 done
13305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13306
13307   case $host_os in
13308   cygwin* | mingw* | pw32*)
13309     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13310     # When not using gcc, we currently assume that we are using
13311     # Microsoft Visual C++.
13312     if test "$GCC" != yes; then
13313       with_gnu_ld=no
13314     fi
13315     ;;
13316   interix*)
13317     # we just hope/assume this is gcc and not c89 (= MSVC++)
13318     with_gnu_ld=yes
13319     ;;
13320   openbsd*)
13321     with_gnu_ld=no
13322     ;;
13323   esac
13324
13325   ld_shlibs_F77=yes
13326   if test "$with_gnu_ld" = yes; then
13327     # If archive_cmds runs LD, not CC, wlarc should be empty
13328     wlarc='${wl}'
13329
13330     # Set some defaults for GNU ld with shared library support. These
13331     # are reset later if shared libraries are not supported. Putting them
13332     # here allows them to be overridden if necessary.
13333     runpath_var=LD_RUN_PATH
13334     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13335     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13336     # ancient GNU ld didn't support --whole-archive et. al.
13337     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13338         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13339       else
13340         whole_archive_flag_spec_F77=
13341     fi
13342     supports_anon_versioning=no
13343     case `$LD -v 2>/dev/null` in
13344       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13345       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13346       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13347       *\ 2.11.*) ;; # other 2.11 versions
13348       *) supports_anon_versioning=yes ;;
13349     esac
13350
13351     # See if GNU ld supports shared libraries.
13352     case $host_os in
13353     aix3* | aix4* | aix5*)
13354       # On AIX/PPC, the GNU linker is very broken
13355       if test "$host_cpu" != ia64; then
13356         ld_shlibs_F77=no
13357         cat <<EOF 1>&2
13358
13359 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13360 *** to be unable to reliably create shared libraries on AIX.
13361 *** Therefore, libtool is disabling shared libraries support.  If you
13362 *** really care for shared libraries, you may want to modify your PATH
13363 *** so that a non-GNU linker is found, and then restart.
13364
13365 EOF
13366       fi
13367       ;;
13368
13369     amigaos*)
13370       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)'
13371       hardcode_libdir_flag_spec_F77='-L$libdir'
13372       hardcode_minus_L_F77=yes
13373
13374       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13375       # that the semantics of dynamic libraries on AmigaOS, at least up
13376       # to version 4, is to share data among multiple programs linked
13377       # with the same dynamic library.  Since this doesn't match the
13378       # behavior of shared libraries on other platforms, we can't use
13379       # them.
13380       ld_shlibs_F77=no
13381       ;;
13382
13383     beos*)
13384       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13385         allow_undefined_flag_F77=unsupported
13386         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13387         # support --undefined.  This deserves some investigation.  FIXME
13388         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389       else
13390         ld_shlibs_F77=no
13391       fi
13392       ;;
13393
13394     cygwin* | mingw* | pw32*)
13395       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13396       # as there is no search path for DLLs.
13397       hardcode_libdir_flag_spec_F77='-L$libdir'
13398       allow_undefined_flag_F77=unsupported
13399       always_export_symbols_F77=no
13400       enable_shared_with_static_runtimes_F77=yes
13401       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13402
13403       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13404         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13405         # If the export-symbols file already is a .def file (1st line
13406         # is EXPORTS), use it as is; otherwise, prepend...
13407         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13408           cp $export_symbols $output_objdir/$soname.def;
13409         else
13410           echo EXPORTS > $output_objdir/$soname.def;
13411           cat $export_symbols >> $output_objdir/$soname.def;
13412         fi~
13413         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13414       else
13415         ld_shlibs_F77=no
13416       fi
13417       ;;
13418
13419     interix3*)
13420       hardcode_direct_F77=no
13421       hardcode_shlibpath_var_F77=no
13422       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13423       export_dynamic_flag_spec_F77='${wl}-E'
13424       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13425       # Instead, shared libraries are loaded at an image base (0x10000000 by
13426       # default) and relocated if they conflict, which is a slow very memory
13427       # consuming and fragmenting process.  To avoid this, we pick a random,
13428       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13429       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13430       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'
13431       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'
13432       ;;
13433
13434     linux*)
13435       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13436         tmp_addflag=
13437         case $cc_basename,$host_cpu in
13438         pgcc*)                          # Portland Group C compiler
13439           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'
13440           tmp_addflag=' $pic_flag'
13441           ;;
13442         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13443           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'
13444           tmp_addflag=' $pic_flag -Mnomain' ;;
13445         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13446           tmp_addflag=' -i_dynamic' ;;
13447         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13448           tmp_addflag=' -i_dynamic -nofor_main' ;;
13449         ifc* | ifort*)                  # Intel Fortran compiler
13450           tmp_addflag=' -nofor_main' ;;
13451         esac
13452         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453
13454         if test $supports_anon_versioning = yes; then
13455           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13456   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13457   $echo "local: *; };" >> $output_objdir/$libname.ver~
13458           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13459         fi
13460       else
13461         ld_shlibs_F77=no
13462       fi
13463       ;;
13464
13465     netbsd*)
13466       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13467         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13468         wlarc=
13469       else
13470         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13471         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13472       fi
13473       ;;
13474
13475     solaris*)
13476       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13477         ld_shlibs_F77=no
13478         cat <<EOF 1>&2
13479
13480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13481 *** create shared libraries on Solaris systems.  Therefore, libtool
13482 *** is disabling shared libraries support.  We urge you to upgrade GNU
13483 *** binutils to release 2.9.1 or newer.  Another option is to modify
13484 *** your PATH or compiler configuration so that the native linker is
13485 *** used, and then restart.
13486
13487 EOF
13488       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13489         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13491       else
13492         ld_shlibs_F77=no
13493       fi
13494       ;;
13495
13496     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13497       case `$LD -v 2>&1` in
13498         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13499         ld_shlibs_F77=no
13500         cat <<_LT_EOF 1>&2
13501
13502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13503 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13504 *** is disabling shared libraries support.  We urge you to upgrade GNU
13505 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13506 *** your PATH or compiler configuration so that the native linker is
13507 *** used, and then restart.
13508
13509 _LT_EOF
13510         ;;
13511         *)
13512           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13514             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13515             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13516           else
13517             ld_shlibs_F77=no
13518           fi
13519         ;;
13520       esac
13521       ;;
13522
13523     sunos4*)
13524       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13525       wlarc=
13526       hardcode_direct_F77=yes
13527       hardcode_shlibpath_var_F77=no
13528       ;;
13529
13530     *)
13531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13532         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13534       else
13535         ld_shlibs_F77=no
13536       fi
13537       ;;
13538     esac
13539
13540     if test "$ld_shlibs_F77" = no; then
13541       runpath_var=
13542       hardcode_libdir_flag_spec_F77=
13543       export_dynamic_flag_spec_F77=
13544       whole_archive_flag_spec_F77=
13545     fi
13546   else
13547     # PORTME fill in a description of your system's linker (not GNU ld)
13548     case $host_os in
13549     aix3*)
13550       allow_undefined_flag_F77=unsupported
13551       always_export_symbols_F77=yes
13552       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'
13553       # Note: this linker hardcodes the directories in LIBPATH if there
13554       # are no directories specified by -L.
13555       hardcode_minus_L_F77=yes
13556       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13557         # Neither direct hardcoding nor static linking is supported with a
13558         # broken collect2.
13559         hardcode_direct_F77=unsupported
13560       fi
13561       ;;
13562
13563     aix4* | aix5*)
13564       if test "$host_cpu" = ia64; then
13565         # On IA64, the linker does run time linking by default, so we don't
13566         # have to do anything special.
13567         aix_use_runtimelinking=no
13568         exp_sym_flag='-Bexport'
13569         no_entry_flag=""
13570       else
13571         # If we're using GNU nm, then we don't want the "-C" option.
13572         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13573         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13574           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'
13575         else
13576           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'
13577         fi
13578         aix_use_runtimelinking=no
13579
13580         # Test if we are trying to use run time linking or normal
13581         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13582         # need to do runtime linking.
13583         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13584           for ld_flag in $LDFLAGS; do
13585           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13586             aix_use_runtimelinking=yes
13587             break
13588           fi
13589           done
13590           ;;
13591         esac
13592
13593         exp_sym_flag='-bexport'
13594         no_entry_flag='-bnoentry'
13595       fi
13596
13597       # When large executables or shared objects are built, AIX ld can
13598       # have problems creating the table of contents.  If linking a library
13599       # or program results in "error TOC overflow" add -mminimal-toc to
13600       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13601       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13602
13603       archive_cmds_F77=''
13604       hardcode_direct_F77=yes
13605       hardcode_libdir_separator_F77=':'
13606       link_all_deplibs_F77=yes
13607
13608       if test "$GCC" = yes; then
13609         case $host_os in aix4.[012]|aix4.[012].*)
13610         # We only want to do this on AIX 4.2 and lower, the check
13611         # below for broken collect2 doesn't work under 4.3+
13612           collect2name=`${CC} -print-prog-name=collect2`
13613           if test -f "$collect2name" && \
13614            strings "$collect2name" | grep resolve_lib_name >/dev/null
13615           then
13616           # We have reworked collect2
13617           hardcode_direct_F77=yes
13618           else
13619           # We have old collect2
13620           hardcode_direct_F77=unsupported
13621           # It fails to find uninstalled libraries when the uninstalled
13622           # path is not listed in the libpath.  Setting hardcode_minus_L
13623           # to unsupported forces relinking
13624           hardcode_minus_L_F77=yes
13625           hardcode_libdir_flag_spec_F77='-L$libdir'
13626           hardcode_libdir_separator_F77=
13627           fi
13628           ;;
13629         esac
13630         shared_flag='-shared'
13631         if test "$aix_use_runtimelinking" = yes; then
13632           shared_flag="$shared_flag "'${wl}-G'
13633         fi
13634       else
13635         # not using gcc
13636         if test "$host_cpu" = ia64; then
13637         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13638         # chokes on -Wl,-G. The following line is correct:
13639           shared_flag='-G'
13640         else
13641           if test "$aix_use_runtimelinking" = yes; then
13642             shared_flag='${wl}-G'
13643           else
13644             shared_flag='${wl}-bM:SRE'
13645           fi
13646         fi
13647       fi
13648
13649       # It seems that -bexpall does not export symbols beginning with
13650       # underscore (_), so it is better to generate a list of symbols to export.
13651       always_export_symbols_F77=yes
13652       if test "$aix_use_runtimelinking" = yes; then
13653         # Warning - without using the other runtime loading flags (-brtl),
13654         # -berok will link without error, but may produce a broken library.
13655         allow_undefined_flag_F77='-berok'
13656        # Determine the default libpath from the value encoded in an empty executable.
13657        cat >conftest.$ac_ext <<_ACEOF
13658       program main
13659
13660       end
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664   (eval $ac_link) 2>conftest.er1
13665   ac_status=$?
13666   grep -v '^ *+' conftest.er1 >conftest.err
13667   rm -f conftest.er1
13668   cat conftest.err >&5
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); } &&
13671          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; } &&
13677          { ac_try='test -s conftest$ac_exeext'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683
13684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13685 }'`
13686 # Check for a 64-bit object if we didn't find anything.
13687 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; }
13688 }'`; fi
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 fi
13694 rm -f conftest.err conftest.$ac_objext \
13695       conftest$ac_exeext conftest.$ac_ext
13696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13697
13698        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13699         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"
13700        else
13701         if test "$host_cpu" = ia64; then
13702           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13703           allow_undefined_flag_F77="-z nodefs"
13704           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"
13705         else
13706          # Determine the default libpath from the value encoded in an empty executable.
13707          cat >conftest.$ac_ext <<_ACEOF
13708       program main
13709
13710       end
13711 _ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714   (eval $ac_link) 2>conftest.er1
13715   ac_status=$?
13716   grep -v '^ *+' conftest.er1 >conftest.err
13717   rm -f conftest.er1
13718   cat conftest.err >&5
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } &&
13721          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; } &&
13727          { ac_try='test -s conftest$ac_exeext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733
13734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13735 }'`
13736 # Check for a 64-bit object if we didn't find anything.
13737 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; }
13738 }'`; fi
13739 else
13740   echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 fi
13744 rm -f conftest.err conftest.$ac_objext \
13745       conftest$ac_exeext conftest.$ac_ext
13746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13747
13748          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13749           # Warning - without using the other run time loading flags,
13750           # -berok will link without error, but may produce a broken library.
13751           no_undefined_flag_F77=' ${wl}-bernotok'
13752           allow_undefined_flag_F77=' ${wl}-berok'
13753           # Exported symbols can be pulled into shared objects from archives
13754           whole_archive_flag_spec_F77='$convenience'
13755           archive_cmds_need_lc_F77=yes
13756           # This is similar to how AIX traditionally builds its shared libraries.
13757           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'
13758         fi
13759       fi
13760       ;;
13761
13762     amigaos*)
13763       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)'
13764       hardcode_libdir_flag_spec_F77='-L$libdir'
13765       hardcode_minus_L_F77=yes
13766       # see comment about different semantics on the GNU ld section
13767       ld_shlibs_F77=no
13768       ;;
13769
13770     bsdi[45]*)
13771       export_dynamic_flag_spec_F77=-rdynamic
13772       ;;
13773
13774     cygwin* | mingw* | pw32*)
13775       # When not using gcc, we currently assume that we are using
13776       # Microsoft Visual C++.
13777       # hardcode_libdir_flag_spec is actually meaningless, as there is
13778       # no search path for DLLs.
13779       hardcode_libdir_flag_spec_F77=' '
13780       allow_undefined_flag_F77=unsupported
13781       # Tell ltmain to make .lib files, not .a files.
13782       libext=lib
13783       # Tell ltmain to make .dll files, not .so files.
13784       shrext_cmds=".dll"
13785       # FIXME: Setting linknames here is a bad hack.
13786       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13787       # The linker will automatically build a .lib file if we build a DLL.
13788       old_archive_From_new_cmds_F77='true'
13789       # FIXME: Should let the user specify the lib program.
13790       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13791       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13792       enable_shared_with_static_runtimes_F77=yes
13793       ;;
13794
13795     darwin* | rhapsody*)
13796       case $host_os in
13797         rhapsody* | darwin1.[012])
13798          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13799          ;;
13800        *) # Darwin 1.3 on
13801          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13802            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13803          else
13804            case ${MACOSX_DEPLOYMENT_TARGET} in
13805              10.[012])
13806                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13807                ;;
13808              10.*)
13809                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13810                ;;
13811            esac
13812          fi
13813          ;;
13814       esac
13815       archive_cmds_need_lc_F77=no
13816       hardcode_direct_F77=no
13817       hardcode_automatic_F77=yes
13818       hardcode_shlibpath_var_F77=unsupported
13819       whole_archive_flag_spec_F77=''
13820       link_all_deplibs_F77=yes
13821     if test "$GCC" = yes ; then
13822         output_verbose_link_cmd='echo'
13823         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13824       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13825       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13826       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}'
13827       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}'
13828     else
13829       case $cc_basename in
13830         xlc*)
13831          output_verbose_link_cmd='echo'
13832          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13833          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13834           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13835          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}'
13836           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}'
13837           ;;
13838        *)
13839          ld_shlibs_F77=no
13840           ;;
13841       esac
13842     fi
13843       ;;
13844
13845     dgux*)
13846       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847       hardcode_libdir_flag_spec_F77='-L$libdir'
13848       hardcode_shlibpath_var_F77=no
13849       ;;
13850
13851     freebsd1*)
13852       ld_shlibs_F77=no
13853       ;;
13854
13855     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13856     # support.  Future versions do this automatically, but an explicit c++rt0.o
13857     # does not break anything, and helps significantly (at the cost of a little
13858     # extra space).
13859     freebsd2.2*)
13860       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13861       hardcode_libdir_flag_spec_F77='-R$libdir'
13862       hardcode_direct_F77=yes
13863       hardcode_shlibpath_var_F77=no
13864       ;;
13865
13866     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13867     freebsd2*)
13868       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13869       hardcode_direct_F77=yes
13870       hardcode_minus_L_F77=yes
13871       hardcode_shlibpath_var_F77=no
13872       ;;
13873
13874     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13875     freebsd* | kfreebsd*-gnu | dragonfly*)
13876       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13877       hardcode_libdir_flag_spec_F77='-R$libdir'
13878       hardcode_direct_F77=yes
13879       hardcode_shlibpath_var_F77=no
13880       ;;
13881
13882     hpux9*)
13883       if test "$GCC" = yes; then
13884         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'
13885       else
13886         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'
13887       fi
13888       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13889       hardcode_libdir_separator_F77=:
13890       hardcode_direct_F77=yes
13891
13892       # hardcode_minus_L: Not really in the search PATH,
13893       # but as the default location of the library.
13894       hardcode_minus_L_F77=yes
13895       export_dynamic_flag_spec_F77='${wl}-E'
13896       ;;
13897
13898     hpux10*)
13899       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13900         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13901       else
13902         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13903       fi
13904       if test "$with_gnu_ld" = no; then
13905         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13906         hardcode_libdir_separator_F77=:
13907
13908         hardcode_direct_F77=yes
13909         export_dynamic_flag_spec_F77='${wl}-E'
13910
13911         # hardcode_minus_L: Not really in the search PATH,
13912         # but as the default location of the library.
13913         hardcode_minus_L_F77=yes
13914       fi
13915       ;;
13916
13917     hpux11*)
13918       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13919         case $host_cpu in
13920         hppa*64*)
13921           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13922           ;;
13923         ia64*)
13924           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13925           ;;
13926         *)
13927           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13928           ;;
13929         esac
13930       else
13931         case $host_cpu in
13932         hppa*64*)
13933           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13934           ;;
13935         ia64*)
13936           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13937           ;;
13938         *)
13939           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13940           ;;
13941         esac
13942       fi
13943       if test "$with_gnu_ld" = no; then
13944         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13945         hardcode_libdir_separator_F77=:
13946
13947         case $host_cpu in
13948         hppa*64*|ia64*)
13949           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13950           hardcode_direct_F77=no
13951           hardcode_shlibpath_var_F77=no
13952           ;;
13953         *)
13954           hardcode_direct_F77=yes
13955           export_dynamic_flag_spec_F77='${wl}-E'
13956
13957           # hardcode_minus_L: Not really in the search PATH,
13958           # but as the default location of the library.
13959           hardcode_minus_L_F77=yes
13960           ;;
13961         esac
13962       fi
13963       ;;
13964
13965     irix5* | irix6* | nonstopux*)
13966       if test "$GCC" = yes; then
13967         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'
13968       else
13969         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'
13970         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13971       fi
13972       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13973       hardcode_libdir_separator_F77=:
13974       link_all_deplibs_F77=yes
13975       ;;
13976
13977     netbsd*)
13978       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13979         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13980       else
13981         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13982       fi
13983       hardcode_libdir_flag_spec_F77='-R$libdir'
13984       hardcode_direct_F77=yes
13985       hardcode_shlibpath_var_F77=no
13986       ;;
13987
13988     newsos6)
13989       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13990       hardcode_direct_F77=yes
13991       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13992       hardcode_libdir_separator_F77=:
13993       hardcode_shlibpath_var_F77=no
13994       ;;
13995
13996     openbsd*)
13997       hardcode_direct_F77=yes
13998       hardcode_shlibpath_var_F77=no
13999       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14000         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14001         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14002         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14003         export_dynamic_flag_spec_F77='${wl}-E'
14004       else
14005        case $host_os in
14006          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14007            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14008            hardcode_libdir_flag_spec_F77='-R$libdir'
14009            ;;
14010          *)
14011            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14012            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14013            ;;
14014        esac
14015       fi
14016       ;;
14017
14018     os2*)
14019       hardcode_libdir_flag_spec_F77='-L$libdir'
14020       hardcode_minus_L_F77=yes
14021       allow_undefined_flag_F77=unsupported
14022       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'
14023       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14024       ;;
14025
14026     osf3*)
14027       if test "$GCC" = yes; then
14028         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14029         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'
14030       else
14031         allow_undefined_flag_F77=' -expect_unresolved \*'
14032         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'
14033       fi
14034       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14035       hardcode_libdir_separator_F77=:
14036       ;;
14037
14038     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14039       if test "$GCC" = yes; then
14040         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14041         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'
14042         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14043       else
14044         allow_undefined_flag_F77=' -expect_unresolved \*'
14045         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'
14046         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~
14047         $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'
14048
14049         # Both c and cxx compiler support -rpath directly
14050         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14051       fi
14052       hardcode_libdir_separator_F77=:
14053       ;;
14054
14055     solaris*)
14056       no_undefined_flag_F77=' -z text'
14057       if test "$GCC" = yes; then
14058         wlarc='${wl}'
14059         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14060         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14061           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14062       else
14063         wlarc=''
14064         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14066         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14067       fi
14068       hardcode_libdir_flag_spec_F77='-R$libdir'
14069       hardcode_shlibpath_var_F77=no
14070       case $host_os in
14071       solaris2.[0-5] | solaris2.[0-5].*) ;;
14072       *)
14073         # The compiler driver will combine linker options so we
14074         # cannot just pass the convience library names through
14075         # without $wl, iff we do not link with $LD.
14076         # Luckily, gcc supports the same syntax we need for Sun Studio.
14077         # Supported since Solaris 2.6 (maybe 2.5.1?)
14078         case $wlarc in
14079         '')
14080           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14081         *)
14082           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' ;;
14083         esac ;;
14084       esac
14085       link_all_deplibs_F77=yes
14086       ;;
14087
14088     sunos4*)
14089       if test "x$host_vendor" = xsequent; then
14090         # Use $CC to link under sequent, because it throws in some extra .o
14091         # files that make .init and .fini sections work.
14092         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14093       else
14094         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14095       fi
14096       hardcode_libdir_flag_spec_F77='-L$libdir'
14097       hardcode_direct_F77=yes
14098       hardcode_minus_L_F77=yes
14099       hardcode_shlibpath_var_F77=no
14100       ;;
14101
14102     sysv4)
14103       case $host_vendor in
14104         sni)
14105           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14106           hardcode_direct_F77=yes # is this really true???
14107         ;;
14108         siemens)
14109           ## LD is ld it makes a PLAMLIB
14110           ## CC just makes a GrossModule.
14111           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14112           reload_cmds_F77='$CC -r -o $output$reload_objs'
14113           hardcode_direct_F77=no
14114         ;;
14115         motorola)
14116           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14117           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14118         ;;
14119       esac
14120       runpath_var='LD_RUN_PATH'
14121       hardcode_shlibpath_var_F77=no
14122       ;;
14123
14124     sysv4.3*)
14125       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14126       hardcode_shlibpath_var_F77=no
14127       export_dynamic_flag_spec_F77='-Bexport'
14128       ;;
14129
14130     sysv4*MP*)
14131       if test -d /usr/nec; then
14132         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133         hardcode_shlibpath_var_F77=no
14134         runpath_var=LD_RUN_PATH
14135         hardcode_runpath_var=yes
14136         ld_shlibs_F77=yes
14137       fi
14138       ;;
14139
14140     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14141       no_undefined_flag_F77='${wl}-z,text'
14142       archive_cmds_need_lc_F77=no
14143       hardcode_shlibpath_var_F77=no
14144       runpath_var='LD_RUN_PATH'
14145
14146       if test "$GCC" = yes; then
14147         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14149       else
14150         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152       fi
14153       ;;
14154
14155     sysv5* | sco3.2v5* | sco5v6*)
14156       # Note: We can NOT use -z defs as we might desire, because we do not
14157       # link with -lc, and that would cause any symbols used from libc to
14158       # always be unresolved, which means just about no library would
14159       # ever link correctly.  If we're not using GNU ld we use -z text
14160       # though, which does catch some bad symbols but isn't as heavy-handed
14161       # as -z defs.
14162       no_undefined_flag_F77='${wl}-z,text'
14163       allow_undefined_flag_F77='${wl}-z,nodefs'
14164       archive_cmds_need_lc_F77=no
14165       hardcode_shlibpath_var_F77=no
14166       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14167       hardcode_libdir_separator_F77=':'
14168       link_all_deplibs_F77=yes
14169       export_dynamic_flag_spec_F77='${wl}-Bexport'
14170       runpath_var='LD_RUN_PATH'
14171
14172       if test "$GCC" = yes; then
14173         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14174         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14175       else
14176         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14177         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14178       fi
14179       ;;
14180
14181     uts4*)
14182       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14183       hardcode_libdir_flag_spec_F77='-L$libdir'
14184       hardcode_shlibpath_var_F77=no
14185       ;;
14186
14187     *)
14188       ld_shlibs_F77=no
14189       ;;
14190     esac
14191   fi
14192
14193 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14194 echo "${ECHO_T}$ld_shlibs_F77" >&6
14195 test "$ld_shlibs_F77" = no && can_build_shared=no
14196
14197 #
14198 # Do we need to explicitly link libc?
14199 #
14200 case "x$archive_cmds_need_lc_F77" in
14201 x|xyes)
14202   # Assume -lc should be added
14203   archive_cmds_need_lc_F77=yes
14204
14205   if test "$enable_shared" = yes && test "$GCC" = yes; then
14206     case $archive_cmds_F77 in
14207     *'~'*)
14208       # FIXME: we may have to deal with multi-command sequences.
14209       ;;
14210     '$CC '*)
14211       # Test whether the compiler implicitly links with -lc since on some
14212       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14213       # to ld, don't add -lc before -lgcc.
14214       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14215 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14216       $rm conftest*
14217       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14218
14219       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14220   (eval $ac_compile) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); } 2>conftest.err; then
14224         soname=conftest
14225         lib=conftest
14226         libobjs=conftest.$ac_objext
14227         deplibs=
14228         wl=$lt_prog_compiler_wl_F77
14229         pic_flag=$lt_prog_compiler_pic_F77
14230         compiler_flags=-v
14231         linker_flags=-v
14232         verstring=
14233         output_objdir=.
14234         libname=conftest
14235         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14236         allow_undefined_flag_F77=
14237         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14238   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }
14242         then
14243           archive_cmds_need_lc_F77=no
14244         else
14245           archive_cmds_need_lc_F77=yes
14246         fi
14247         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14248       else
14249         cat conftest.err 1>&5
14250       fi
14251       $rm conftest*
14252       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14253 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14254       ;;
14255     esac
14256   fi
14257   ;;
14258 esac
14259
14260 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14261 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14262 library_names_spec=
14263 libname_spec='lib$name'
14264 soname_spec=
14265 shrext_cmds=".so"
14266 postinstall_cmds=
14267 postuninstall_cmds=
14268 finish_cmds=
14269 finish_eval=
14270 shlibpath_var=
14271 shlibpath_overrides_runpath=unknown
14272 version_type=none
14273 dynamic_linker="$host_os ld.so"
14274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14275 if test "$GCC" = yes; then
14276   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14277   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14278     # if the path contains ";" then we assume it to be the separator
14279     # otherwise default to the standard path separator (i.e. ":") - it is
14280     # assumed that no part of a normal pathname contains ";" but that should
14281     # okay in the real world where ";" in dirpaths is itself problematic.
14282     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14283   else
14284     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14285   fi
14286 else
14287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14288 fi
14289 need_lib_prefix=unknown
14290 hardcode_into_libs=no
14291
14292 # when you set need_version to no, make sure it does not cause -set_version
14293 # flags to be left without arguments
14294 need_version=unknown
14295
14296 case $host_os in
14297 aix3*)
14298   version_type=linux
14299   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14300   shlibpath_var=LIBPATH
14301
14302   # AIX 3 has no versioning support, so we append a major version to the name.
14303   soname_spec='${libname}${release}${shared_ext}$major'
14304   ;;
14305
14306 aix4* | aix5*)
14307   version_type=linux
14308   need_lib_prefix=no
14309   need_version=no
14310   hardcode_into_libs=yes
14311   if test "$host_cpu" = ia64; then
14312     # AIX 5 supports IA64
14313     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14314     shlibpath_var=LD_LIBRARY_PATH
14315   else
14316     # With GCC up to 2.95.x, collect2 would create an import file
14317     # for dependence libraries.  The import file would start with
14318     # the line `#! .'.  This would cause the generated library to
14319     # depend on `.', always an invalid library.  This was fixed in
14320     # development snapshots of GCC prior to 3.0.
14321     case $host_os in
14322       aix4 | aix4.[01] | aix4.[01].*)
14323       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14324            echo ' yes '
14325            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14326         :
14327       else
14328         can_build_shared=no
14329       fi
14330       ;;
14331     esac
14332     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14333     # soname into executable. Probably we can add versioning support to
14334     # collect2, so additional links can be useful in future.
14335     if test "$aix_use_runtimelinking" = yes; then
14336       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14337       # instead of lib<name>.a to let people know that these are not
14338       # typical AIX shared libraries.
14339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340     else
14341       # We preserve .a as extension for shared libraries through AIX4.2
14342       # and later when we are not doing run time linking.
14343       library_names_spec='${libname}${release}.a $libname.a'
14344       soname_spec='${libname}${release}${shared_ext}$major'
14345     fi
14346     shlibpath_var=LIBPATH
14347   fi
14348   ;;
14349
14350 amigaos*)
14351   library_names_spec='$libname.ixlibrary $libname.a'
14352   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14353   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'
14354   ;;
14355
14356 beos*)
14357   library_names_spec='${libname}${shared_ext}'
14358   dynamic_linker="$host_os ld.so"
14359   shlibpath_var=LIBRARY_PATH
14360   ;;
14361
14362 bsdi[45]*)
14363   version_type=linux
14364   need_version=no
14365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366   soname_spec='${libname}${release}${shared_ext}$major'
14367   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14368   shlibpath_var=LD_LIBRARY_PATH
14369   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14370   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14371   # the default ld.so.conf also contains /usr/contrib/lib and
14372   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14373   # libtool to hard-code these into programs
14374   ;;
14375
14376 cygwin* | mingw* | pw32*)
14377   version_type=windows
14378   shrext_cmds=".dll"
14379   need_version=no
14380   need_lib_prefix=no
14381
14382   case $GCC,$host_os in
14383   yes,cygwin* | yes,mingw* | yes,pw32*)
14384     library_names_spec='$libname.dll.a'
14385     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14386     postinstall_cmds='base_file=`basename \${file}`~
14387       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14388       dldir=$destdir/`dirname \$dlpath`~
14389       test -d \$dldir || mkdir -p \$dldir~
14390       $install_prog $dir/$dlname \$dldir/$dlname~
14391       chmod a+x \$dldir/$dlname'
14392     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14393       dlpath=$dir/\$dldll~
14394        $rm \$dlpath'
14395     shlibpath_overrides_runpath=yes
14396
14397     case $host_os in
14398     cygwin*)
14399       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14400       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14401       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14402       ;;
14403     mingw*)
14404       # MinGW DLLs use traditional 'lib' prefix
14405       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14406       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14407       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14408         # It is most probably a Windows format PATH printed by
14409         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14410         # path with ; separators, and with drive letters. We can handle the
14411         # drive letters (cygwin fileutils understands them), so leave them,
14412         # especially as we might pass files found there to a mingw objdump,
14413         # which wouldn't understand a cygwinified path. Ahh.
14414         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14415       else
14416         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14417       fi
14418       ;;
14419     pw32*)
14420       # pw32 DLLs use 'pw' prefix rather than 'lib'
14421       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14422       ;;
14423     esac
14424     ;;
14425
14426   *)
14427     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14428     ;;
14429   esac
14430   dynamic_linker='Win32 ld.exe'
14431   # FIXME: first we should search . and the directory the executable is in
14432   shlibpath_var=PATH
14433   ;;
14434
14435 darwin* | rhapsody*)
14436   dynamic_linker="$host_os dyld"
14437   version_type=darwin
14438   need_lib_prefix=no
14439   need_version=no
14440   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14441   soname_spec='${libname}${release}${major}$shared_ext'
14442   shlibpath_overrides_runpath=yes
14443   shlibpath_var=DYLD_LIBRARY_PATH
14444   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14445   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14446   if test "$GCC" = yes; then
14447     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"`
14448   else
14449     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14450   fi
14451   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14452   ;;
14453
14454 dgux*)
14455   version_type=linux
14456   need_lib_prefix=no
14457   need_version=no
14458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14459   soname_spec='${libname}${release}${shared_ext}$major'
14460   shlibpath_var=LD_LIBRARY_PATH
14461   ;;
14462
14463 freebsd1*)
14464   dynamic_linker=no
14465   ;;
14466
14467 kfreebsd*-gnu)
14468   version_type=linux
14469   need_lib_prefix=no
14470   need_version=no
14471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14472   soname_spec='${libname}${release}${shared_ext}$major'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   shlibpath_overrides_runpath=no
14475   hardcode_into_libs=yes
14476   dynamic_linker='GNU ld.so'
14477   ;;
14478
14479 freebsd* | dragonfly*)
14480   # DragonFly does not have aout.  When/if they implement a new
14481   # versioning mechanism, adjust this.
14482   if test -x /usr/bin/objformat; then
14483     objformat=`/usr/bin/objformat`
14484   else
14485     case $host_os in
14486     freebsd[123]*) objformat=aout ;;
14487     *) objformat=elf ;;
14488     esac
14489   fi
14490   version_type=freebsd-$objformat
14491   case $version_type in
14492     freebsd-elf*)
14493       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14494       need_version=no
14495       need_lib_prefix=no
14496       ;;
14497     freebsd-*)
14498       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14499       need_version=yes
14500       ;;
14501   esac
14502   shlibpath_var=LD_LIBRARY_PATH
14503   case $host_os in
14504   freebsd2*)
14505     shlibpath_overrides_runpath=yes
14506     ;;
14507   freebsd3.[01]* | freebsdelf3.[01]*)
14508     shlibpath_overrides_runpath=yes
14509     hardcode_into_libs=yes
14510     ;;
14511   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14512   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14513     shlibpath_overrides_runpath=no
14514     hardcode_into_libs=yes
14515     ;;
14516   freebsd*) # from 4.6 on
14517     shlibpath_overrides_runpath=yes
14518     hardcode_into_libs=yes
14519     ;;
14520   esac
14521   ;;
14522
14523 gnu*)
14524   version_type=linux
14525   need_lib_prefix=no
14526   need_version=no
14527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14528   soname_spec='${libname}${release}${shared_ext}$major'
14529   shlibpath_var=LD_LIBRARY_PATH
14530   hardcode_into_libs=yes
14531   ;;
14532
14533 hpux9* | hpux10* | hpux11*)
14534   # Give a soname corresponding to the major version so that dld.sl refuses to
14535   # link against other versions.
14536   version_type=sunos
14537   need_lib_prefix=no
14538   need_version=no
14539   case $host_cpu in
14540   ia64*)
14541     shrext_cmds='.so'
14542     hardcode_into_libs=yes
14543     dynamic_linker="$host_os dld.so"
14544     shlibpath_var=LD_LIBRARY_PATH
14545     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547     soname_spec='${libname}${release}${shared_ext}$major'
14548     if test "X$HPUX_IA64_MODE" = X32; then
14549       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14550     else
14551       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14552     fi
14553     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14554     ;;
14555    hppa*64*)
14556      shrext_cmds='.sl'
14557      hardcode_into_libs=yes
14558      dynamic_linker="$host_os dld.sl"
14559      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14560      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14561      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562      soname_spec='${libname}${release}${shared_ext}$major'
14563      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14564      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14565      ;;
14566    *)
14567     shrext_cmds='.sl'
14568     dynamic_linker="$host_os dld.sl"
14569     shlibpath_var=SHLIB_PATH
14570     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572     soname_spec='${libname}${release}${shared_ext}$major'
14573     ;;
14574   esac
14575   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14576   postinstall_cmds='chmod 555 $lib'
14577   ;;
14578
14579 interix3*)
14580   version_type=linux
14581   need_lib_prefix=no
14582   need_version=no
14583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14584   soname_spec='${libname}${release}${shared_ext}$major'
14585   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14586   shlibpath_var=LD_LIBRARY_PATH
14587   shlibpath_overrides_runpath=no
14588   hardcode_into_libs=yes
14589   ;;
14590
14591 irix5* | irix6* | nonstopux*)
14592   case $host_os in
14593     nonstopux*) version_type=nonstopux ;;
14594     *)
14595         if test "$lt_cv_prog_gnu_ld" = yes; then
14596                 version_type=linux
14597         else
14598                 version_type=irix
14599         fi ;;
14600   esac
14601   need_lib_prefix=no
14602   need_version=no
14603   soname_spec='${libname}${release}${shared_ext}$major'
14604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14605   case $host_os in
14606   irix5* | nonstopux*)
14607     libsuff= shlibsuff=
14608     ;;
14609   *)
14610     case $LD in # libtool.m4 will add one of these switches to LD
14611     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14612       libsuff= shlibsuff= libmagic=32-bit;;
14613     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14614       libsuff=32 shlibsuff=N32 libmagic=N32;;
14615     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14616       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14617     *) libsuff= shlibsuff= libmagic=never-match;;
14618     esac
14619     ;;
14620   esac
14621   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14622   shlibpath_overrides_runpath=no
14623   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14624   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14625   hardcode_into_libs=yes
14626   ;;
14627
14628 # No shared lib support for Linux oldld, aout, or coff.
14629 linux*oldld* | linux*aout* | linux*coff*)
14630   dynamic_linker=no
14631   ;;
14632
14633 # This must be Linux ELF.
14634 linux*)
14635   version_type=linux
14636   need_lib_prefix=no
14637   need_version=no
14638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639   soname_spec='${libname}${release}${shared_ext}$major'
14640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14641   shlibpath_var=LD_LIBRARY_PATH
14642   shlibpath_overrides_runpath=no
14643   # This implies no fast_install, which is unacceptable.
14644   # Some rework will be needed to allow for fast_install
14645   # before this can be enabled.
14646   hardcode_into_libs=yes
14647
14648   # Append ld.so.conf contents to the search path
14649   if test -f /etc/ld.so.conf; then
14650     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' ' '`
14651     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14652   fi
14653
14654   # We used to test for /lib/ld.so.1 and disable shared libraries on
14655   # powerpc, because MkLinux only supported shared libraries with the
14656   # GNU dynamic linker.  Since this was broken with cross compilers,
14657   # most powerpc-linux boxes support dynamic linking these days and
14658   # people can always --disable-shared, the test was removed, and we
14659   # assume the GNU/Linux dynamic linker is in use.
14660   dynamic_linker='GNU/Linux ld.so'
14661   ;;
14662
14663 knetbsd*-gnu)
14664   version_type=linux
14665   need_lib_prefix=no
14666   need_version=no
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14668   soname_spec='${libname}${release}${shared_ext}$major'
14669   shlibpath_var=LD_LIBRARY_PATH
14670   shlibpath_overrides_runpath=no
14671   hardcode_into_libs=yes
14672   dynamic_linker='GNU ld.so'
14673   ;;
14674
14675 netbsd*)
14676   version_type=sunos
14677   need_lib_prefix=no
14678   need_version=no
14679   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14681     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14682     dynamic_linker='NetBSD (a.out) ld.so'
14683   else
14684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14685     soname_spec='${libname}${release}${shared_ext}$major'
14686     dynamic_linker='NetBSD ld.elf_so'
14687   fi
14688   shlibpath_var=LD_LIBRARY_PATH
14689   shlibpath_overrides_runpath=yes
14690   hardcode_into_libs=yes
14691   ;;
14692
14693 newsos6)
14694   version_type=linux
14695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   shlibpath_overrides_runpath=yes
14698   ;;
14699
14700 nto-qnx*)
14701   version_type=linux
14702   need_lib_prefix=no
14703   need_version=no
14704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705   soname_spec='${libname}${release}${shared_ext}$major'
14706   shlibpath_var=LD_LIBRARY_PATH
14707   shlibpath_overrides_runpath=yes
14708   ;;
14709
14710 openbsd*)
14711   version_type=sunos
14712   sys_lib_dlsearch_path_spec="/usr/lib"
14713   need_lib_prefix=no
14714   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14715   case $host_os in
14716     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14717     *)                         need_version=no  ;;
14718   esac
14719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14720   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14723     case $host_os in
14724       openbsd2.[89] | openbsd2.[89].*)
14725         shlibpath_overrides_runpath=no
14726         ;;
14727       *)
14728         shlibpath_overrides_runpath=yes
14729         ;;
14730       esac
14731   else
14732     shlibpath_overrides_runpath=yes
14733   fi
14734   ;;
14735
14736 os2*)
14737   libname_spec='$name'
14738   shrext_cmds=".dll"
14739   need_lib_prefix=no
14740   library_names_spec='$libname${shared_ext} $libname.a'
14741   dynamic_linker='OS/2 ld.exe'
14742   shlibpath_var=LIBPATH
14743   ;;
14744
14745 osf3* | osf4* | osf5*)
14746   version_type=osf
14747   need_lib_prefix=no
14748   need_version=no
14749   soname_spec='${libname}${release}${shared_ext}$major'
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14753   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14754   ;;
14755
14756 solaris*)
14757   version_type=linux
14758   need_lib_prefix=no
14759   need_version=no
14760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761   soname_spec='${libname}${release}${shared_ext}$major'
14762   shlibpath_var=LD_LIBRARY_PATH
14763   shlibpath_overrides_runpath=yes
14764   hardcode_into_libs=yes
14765   # ldd complains unless libraries are executable
14766   postinstall_cmds='chmod +x $lib'
14767   ;;
14768
14769 sunos4*)
14770   version_type=sunos
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14772   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14773   shlibpath_var=LD_LIBRARY_PATH
14774   shlibpath_overrides_runpath=yes
14775   if test "$with_gnu_ld" = yes; then
14776     need_lib_prefix=no
14777   fi
14778   need_version=yes
14779   ;;
14780
14781 sysv4 | sysv4.3*)
14782   version_type=linux
14783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784   soname_spec='${libname}${release}${shared_ext}$major'
14785   shlibpath_var=LD_LIBRARY_PATH
14786   case $host_vendor in
14787     sni)
14788       shlibpath_overrides_runpath=no
14789       need_lib_prefix=no
14790       export_dynamic_flag_spec='${wl}-Blargedynsym'
14791       runpath_var=LD_RUN_PATH
14792       ;;
14793     siemens)
14794       need_lib_prefix=no
14795       ;;
14796     motorola)
14797       need_lib_prefix=no
14798       need_version=no
14799       shlibpath_overrides_runpath=no
14800       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14801       ;;
14802   esac
14803   ;;
14804
14805 sysv4*MP*)
14806   if test -d /usr/nec ;then
14807     version_type=linux
14808     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14809     soname_spec='$libname${shared_ext}.$major'
14810     shlibpath_var=LD_LIBRARY_PATH
14811   fi
14812   ;;
14813
14814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14815   version_type=freebsd-elf
14816   need_lib_prefix=no
14817   need_version=no
14818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14819   soname_spec='${libname}${release}${shared_ext}$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   hardcode_into_libs=yes
14822   if test "$with_gnu_ld" = yes; then
14823     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14824     shlibpath_overrides_runpath=no
14825   else
14826     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14827     shlibpath_overrides_runpath=yes
14828     case $host_os in
14829       sco3.2v5*)
14830         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14831         ;;
14832     esac
14833   fi
14834   sys_lib_dlsearch_path_spec='/usr/lib'
14835   ;;
14836
14837 uts4*)
14838   version_type=linux
14839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840   soname_spec='${libname}${release}${shared_ext}$major'
14841   shlibpath_var=LD_LIBRARY_PATH
14842   ;;
14843
14844 *)
14845   dynamic_linker=no
14846   ;;
14847 esac
14848 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14849 echo "${ECHO_T}$dynamic_linker" >&6
14850 test "$dynamic_linker" = no && can_build_shared=no
14851
14852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14853 if test "$GCC" = yes; then
14854   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14855 fi
14856
14857 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14858 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14859 hardcode_action_F77=
14860 if test -n "$hardcode_libdir_flag_spec_F77" || \
14861    test -n "$runpath_var_F77" || \
14862    test "X$hardcode_automatic_F77" = "Xyes" ; then
14863
14864   # We can hardcode non-existant directories.
14865   if test "$hardcode_direct_F77" != no &&
14866      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14867      # have to relink, otherwise we might link with an installed library
14868      # when we should be linking with a yet-to-be-installed one
14869      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14870      test "$hardcode_minus_L_F77" != no; then
14871     # Linking always hardcodes the temporary library directory.
14872     hardcode_action_F77=relink
14873   else
14874     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14875     hardcode_action_F77=immediate
14876   fi
14877 else
14878   # We cannot hardcode anything, or else we can only hardcode existing
14879   # directories.
14880   hardcode_action_F77=unsupported
14881 fi
14882 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14883 echo "${ECHO_T}$hardcode_action_F77" >&6
14884
14885 if test "$hardcode_action_F77" = relink; then
14886   # Fast installation is not supported
14887   enable_fast_install=no
14888 elif test "$shlibpath_overrides_runpath" = yes ||
14889      test "$enable_shared" = no; then
14890   # Fast installation is not necessary
14891   enable_fast_install=needless
14892 fi
14893
14894
14895 # The else clause should only fire when bootstrapping the
14896 # libtool distribution, otherwise you forgot to ship ltmain.sh
14897 # with your package, and you will get complaints that there are
14898 # no rules to generate ltmain.sh.
14899 if test -f "$ltmain"; then
14900   # See if we are running on zsh, and set the options which allow our commands through
14901   # without removal of \ escapes.
14902   if test -n "${ZSH_VERSION+set}" ; then
14903     setopt NO_GLOB_SUBST
14904   fi
14905   # Now quote all the things that may contain metacharacters while being
14906   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14907   # variables and quote the copies for generation of the libtool script.
14908   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14909     SED SHELL STRIP \
14910     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14911     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14912     deplibs_check_method reload_flag reload_cmds need_locks \
14913     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14914     lt_cv_sys_global_symbol_to_c_name_address \
14915     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14916     old_postinstall_cmds old_postuninstall_cmds \
14917     compiler_F77 \
14918     CC_F77 \
14919     LD_F77 \
14920     lt_prog_compiler_wl_F77 \
14921     lt_prog_compiler_pic_F77 \
14922     lt_prog_compiler_static_F77 \
14923     lt_prog_compiler_no_builtin_flag_F77 \
14924     export_dynamic_flag_spec_F77 \
14925     thread_safe_flag_spec_F77 \
14926     whole_archive_flag_spec_F77 \
14927     enable_shared_with_static_runtimes_F77 \
14928     old_archive_cmds_F77 \
14929     old_archive_from_new_cmds_F77 \
14930     predep_objects_F77 \
14931     postdep_objects_F77 \
14932     predeps_F77 \
14933     postdeps_F77 \
14934     compiler_lib_search_path_F77 \
14935     archive_cmds_F77 \
14936     archive_expsym_cmds_F77 \
14937     postinstall_cmds_F77 \
14938     postuninstall_cmds_F77 \
14939     old_archive_from_expsyms_cmds_F77 \
14940     allow_undefined_flag_F77 \
14941     no_undefined_flag_F77 \
14942     export_symbols_cmds_F77 \
14943     hardcode_libdir_flag_spec_F77 \
14944     hardcode_libdir_flag_spec_ld_F77 \
14945     hardcode_libdir_separator_F77 \
14946     hardcode_automatic_F77 \
14947     module_cmds_F77 \
14948     module_expsym_cmds_F77 \
14949     lt_cv_prog_compiler_c_o_F77 \
14950     exclude_expsyms_F77 \
14951     include_expsyms_F77; do
14952
14953     case $var in
14954     old_archive_cmds_F77 | \
14955     old_archive_from_new_cmds_F77 | \
14956     archive_cmds_F77 | \
14957     archive_expsym_cmds_F77 | \
14958     module_cmds_F77 | \
14959     module_expsym_cmds_F77 | \
14960     old_archive_from_expsyms_cmds_F77 | \
14961     export_symbols_cmds_F77 | \
14962     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14963     postinstall_cmds | postuninstall_cmds | \
14964     old_postinstall_cmds | old_postuninstall_cmds | \
14965     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14966       # Double-quote double-evaled strings.
14967       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14968       ;;
14969     *)
14970       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14971       ;;
14972     esac
14973   done
14974
14975   case $lt_echo in
14976   *'\$0 --fallback-echo"')
14977     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14978     ;;
14979   esac
14980
14981 cfgfile="$ofile"
14982
14983   cat <<__EOF__ >> "$cfgfile"
14984 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14985
14986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14987
14988 # Shell to use when invoking shell scripts.
14989 SHELL=$lt_SHELL
14990
14991 # Whether or not to build shared libraries.
14992 build_libtool_libs=$enable_shared
14993
14994 # Whether or not to build static libraries.
14995 build_old_libs=$enable_static
14996
14997 # Whether or not to add -lc for building shared libraries.
14998 build_libtool_need_lc=$archive_cmds_need_lc_F77
14999
15000 # Whether or not to disallow shared libs when runtime libs are static
15001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15002
15003 # Whether or not to optimize for fast installation.
15004 fast_install=$enable_fast_install
15005
15006 # The host system.
15007 host_alias=$host_alias
15008 host=$host
15009 host_os=$host_os
15010
15011 # The build system.
15012 build_alias=$build_alias
15013 build=$build
15014 build_os=$build_os
15015
15016 # An echo program that does not interpret backslashes.
15017 echo=$lt_echo
15018
15019 # The archiver.
15020 AR=$lt_AR
15021 AR_FLAGS=$lt_AR_FLAGS
15022
15023 # A C compiler.
15024 LTCC=$lt_LTCC
15025
15026 # LTCC compiler flags.
15027 LTCFLAGS=$lt_LTCFLAGS
15028
15029 # A language-specific compiler.
15030 CC=$lt_compiler_F77
15031
15032 # Is the compiler the GNU C compiler?
15033 with_gcc=$GCC_F77
15034
15035 # An ERE matcher.
15036 EGREP=$lt_EGREP
15037
15038 # The linker used to build libraries.
15039 LD=$lt_LD_F77
15040
15041 # Whether we need hard or soft links.
15042 LN_S=$lt_LN_S
15043
15044 # A BSD-compatible nm program.
15045 NM=$lt_NM
15046
15047 # A symbol stripping program
15048 STRIP=$lt_STRIP
15049
15050 # Used to examine libraries when file_magic_cmd begins "file"
15051 MAGIC_CMD=$MAGIC_CMD
15052
15053 # Used on cygwin: DLL creation program.
15054 DLLTOOL="$DLLTOOL"
15055
15056 # Used on cygwin: object dumper.
15057 OBJDUMP="$OBJDUMP"
15058
15059 # Used on cygwin: assembler.
15060 AS="$AS"
15061
15062 # The name of the directory that contains temporary libtool files.
15063 objdir=$objdir
15064
15065 # How to create reloadable object files.
15066 reload_flag=$lt_reload_flag
15067 reload_cmds=$lt_reload_cmds
15068
15069 # How to pass a linker flag through the compiler.
15070 wl=$lt_lt_prog_compiler_wl_F77
15071
15072 # Object file suffix (normally "o").
15073 objext="$ac_objext"
15074
15075 # Old archive suffix (normally "a").
15076 libext="$libext"
15077
15078 # Shared library suffix (normally ".so").
15079 shrext_cmds='$shrext_cmds'
15080
15081 # Executable file suffix (normally "").
15082 exeext="$exeext"
15083
15084 # Additional compiler flags for building library objects.
15085 pic_flag=$lt_lt_prog_compiler_pic_F77
15086 pic_mode=$pic_mode
15087
15088 # What is the maximum length of a command?
15089 max_cmd_len=$lt_cv_sys_max_cmd_len
15090
15091 # Does compiler simultaneously support -c and -o options?
15092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15093
15094 # Must we lock files when doing compilation?
15095 need_locks=$lt_need_locks
15096
15097 # Do we need the lib prefix for modules?
15098 need_lib_prefix=$need_lib_prefix
15099
15100 # Do we need a version for libraries?
15101 need_version=$need_version
15102
15103 # Whether dlopen is supported.
15104 dlopen_support=$enable_dlopen
15105
15106 # Whether dlopen of programs is supported.
15107 dlopen_self=$enable_dlopen_self
15108
15109 # Whether dlopen of statically linked programs is supported.
15110 dlopen_self_static=$enable_dlopen_self_static
15111
15112 # Compiler flag to prevent dynamic linking.
15113 link_static_flag=$lt_lt_prog_compiler_static_F77
15114
15115 # Compiler flag to turn off builtin functions.
15116 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15117
15118 # Compiler flag to allow reflexive dlopens.
15119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15120
15121 # Compiler flag to generate shared objects directly from archives.
15122 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15123
15124 # Compiler flag to generate thread-safe objects.
15125 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15126
15127 # Library versioning type.
15128 version_type=$version_type
15129
15130 # Format of library name prefix.
15131 libname_spec=$lt_libname_spec
15132
15133 # List of archive names.  First name is the real one, the rest are links.
15134 # The last name is the one that the linker finds with -lNAME.
15135 library_names_spec=$lt_library_names_spec
15136
15137 # The coded name of the library, if different from the real name.
15138 soname_spec=$lt_soname_spec
15139
15140 # Commands used to build and install an old-style archive.
15141 RANLIB=$lt_RANLIB
15142 old_archive_cmds=$lt_old_archive_cmds_F77
15143 old_postinstall_cmds=$lt_old_postinstall_cmds
15144 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15145
15146 # Create an old-style archive from a shared archive.
15147 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15148
15149 # Create a temporary old-style archive to link instead of a shared archive.
15150 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15151
15152 # Commands used to build and install a shared archive.
15153 archive_cmds=$lt_archive_cmds_F77
15154 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15155 postinstall_cmds=$lt_postinstall_cmds
15156 postuninstall_cmds=$lt_postuninstall_cmds
15157
15158 # Commands used to build a loadable module (assumed same as above if empty)
15159 module_cmds=$lt_module_cmds_F77
15160 module_expsym_cmds=$lt_module_expsym_cmds_F77
15161
15162 # Commands to strip libraries.
15163 old_striplib=$lt_old_striplib
15164 striplib=$lt_striplib
15165
15166 # Dependencies to place before the objects being linked to create a
15167 # shared library.
15168 predep_objects=$lt_predep_objects_F77
15169
15170 # Dependencies to place after the objects being linked to create a
15171 # shared library.
15172 postdep_objects=$lt_postdep_objects_F77
15173
15174 # Dependencies to place before the objects being linked to create a
15175 # shared library.
15176 predeps=$lt_predeps_F77
15177
15178 # Dependencies to place after the objects being linked to create a
15179 # shared library.
15180 postdeps=$lt_postdeps_F77
15181
15182 # The library search path used internally by the compiler when linking
15183 # a shared library.
15184 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15185
15186 # Method to check whether dependent libraries are shared objects.
15187 deplibs_check_method=$lt_deplibs_check_method
15188
15189 # Command to use when deplibs_check_method == file_magic.
15190 file_magic_cmd=$lt_file_magic_cmd
15191
15192 # Flag that allows shared libraries with undefined symbols to be built.
15193 allow_undefined_flag=$lt_allow_undefined_flag_F77
15194
15195 # Flag that forces no undefined symbols.
15196 no_undefined_flag=$lt_no_undefined_flag_F77
15197
15198 # Commands used to finish a libtool library installation in a directory.
15199 finish_cmds=$lt_finish_cmds
15200
15201 # Same as above, but a single script fragment to be evaled but not shown.
15202 finish_eval=$lt_finish_eval
15203
15204 # Take the output of nm and produce a listing of raw symbols and C names.
15205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15206
15207 # Transform the output of nm in a proper C declaration
15208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15209
15210 # Transform the output of nm in a C name address pair
15211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15212
15213 # This is the shared library runtime path variable.
15214 runpath_var=$runpath_var
15215
15216 # This is the shared library path variable.
15217 shlibpath_var=$shlibpath_var
15218
15219 # Is shlibpath searched before the hard-coded library search path?
15220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15221
15222 # How to hardcode a shared library path into an executable.
15223 hardcode_action=$hardcode_action_F77
15224
15225 # Whether we should hardcode library paths into libraries.
15226 hardcode_into_libs=$hardcode_into_libs
15227
15228 # Flag to hardcode \$libdir into a binary during linking.
15229 # This must work even if \$libdir does not exist.
15230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15231
15232 # If ld is used when linking, flag to hardcode \$libdir into
15233 # a binary during linking. This must work even if \$libdir does
15234 # not exist.
15235 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15236
15237 # Whether we need a single -rpath flag with a separated argument.
15238 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15239
15240 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15241 # resulting binary.
15242 hardcode_direct=$hardcode_direct_F77
15243
15244 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15245 # resulting binary.
15246 hardcode_minus_L=$hardcode_minus_L_F77
15247
15248 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15249 # the resulting binary.
15250 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15251
15252 # Set to yes if building a shared library automatically hardcodes DIR into the library
15253 # and all subsequent libraries and executables linked against it.
15254 hardcode_automatic=$hardcode_automatic_F77
15255
15256 # Variables whose values should be saved in libtool wrapper scripts and
15257 # restored at relink time.
15258 variables_saved_for_relink="$variables_saved_for_relink"
15259
15260 # Whether libtool must link a program against all its dependency libraries.
15261 link_all_deplibs=$link_all_deplibs_F77
15262
15263 # Compile-time system search path for libraries
15264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15265
15266 # Run-time system search path for libraries
15267 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15268
15269 # Fix the shell variable \$srcfile for the compiler.
15270 fix_srcfile_path="$fix_srcfile_path_F77"
15271
15272 # Set to yes if exported symbols are required.
15273 always_export_symbols=$always_export_symbols_F77
15274
15275 # The commands to list exported symbols.
15276 export_symbols_cmds=$lt_export_symbols_cmds_F77
15277
15278 # The commands to extract the exported symbol list from a shared archive.
15279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15280
15281 # Symbols that should not be listed in the preloaded symbols.
15282 exclude_expsyms=$lt_exclude_expsyms_F77
15283
15284 # Symbols that must always be exported.
15285 include_expsyms=$lt_include_expsyms_F77
15286
15287 # ### END LIBTOOL TAG CONFIG: $tagname
15288
15289 __EOF__
15290
15291
15292 else
15293   # If there is no Makefile yet, we rely on a make rule to execute
15294   # `config.status --recheck' to rerun these tests and create the
15295   # libtool script then.
15296   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15297   if test -f "$ltmain_in"; then
15298     test -f Makefile && make "$ltmain"
15299   fi
15300 fi
15301
15302
15303 ac_ext=c
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15308
15309 CC="$lt_save_CC"
15310
15311         else
15312           tagname=""
15313         fi
15314         ;;
15315
15316       GCJ)
15317         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15318
15319
15320
15321 # Source file extension for Java test sources.
15322 ac_ext=java
15323
15324 # Object file extension for compiled Java test sources.
15325 objext=o
15326 objext_GCJ=$objext
15327
15328 # Code to be used in simple compile tests
15329 lt_simple_compile_test_code="class foo {}\n"
15330
15331 # Code to be used in simple link tests
15332 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15333
15334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15335
15336 # If no C compiler was specified, use CC.
15337 LTCC=${LTCC-"$CC"}
15338
15339 # If no C compiler flags were specified, use CFLAGS.
15340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15341
15342 # Allow CC to be a program name with arguments.
15343 compiler=$CC
15344
15345
15346 # save warnings/boilerplate of simple test code
15347 ac_outfile=conftest.$ac_objext
15348 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15350 _lt_compiler_boilerplate=`cat conftest.err`
15351 $rm conftest*
15352
15353 ac_outfile=conftest.$ac_objext
15354 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15356 _lt_linker_boilerplate=`cat conftest.err`
15357 $rm conftest*
15358
15359
15360 # Allow CC to be a program name with arguments.
15361 lt_save_CC="$CC"
15362 CC=${GCJ-"gcj"}
15363 compiler=$CC
15364 compiler_GCJ=$CC
15365 for cc_temp in $compiler""; do
15366   case $cc_temp in
15367     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15368     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15369     \-*) ;;
15370     *) break;;
15371   esac
15372 done
15373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15374
15375
15376 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15377 archive_cmds_need_lc_GCJ=no
15378
15379 old_archive_cmds_GCJ=$old_archive_cmds
15380
15381 ## CAVEAT EMPTOR:
15382 ## There is no encapsulation within the following macros, do not change
15383 ## the running order or otherwise move them around unless you know exactly
15384 ## what you are doing...
15385
15386 lt_prog_compiler_no_builtin_flag_GCJ=
15387
15388 if test "$GCC" = yes; then
15389   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15390
15391
15392 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15393 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15394 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15395   echo $ECHO_N "(cached) $ECHO_C" >&6
15396 else
15397   lt_cv_prog_compiler_rtti_exceptions=no
15398   ac_outfile=conftest.$ac_objext
15399    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15400    lt_compiler_flag="-fno-rtti -fno-exceptions"
15401    # Insert the option either (1) after the last *FLAGS variable, or
15402    # (2) before a word containing "conftest.", or (3) at the end.
15403    # Note that $ac_compile itself does not contain backslashes and begins
15404    # with a dollar sign (not a hyphen), so the echo should work correctly.
15405    # The option is referenced via a variable to avoid confusing sed.
15406    lt_compile=`echo "$ac_compile" | $SED \
15407    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15408    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15409    -e 's:$: $lt_compiler_flag:'`
15410    (eval echo "\"\$as_me:15410: $lt_compile\"" >&5)
15411    (eval "$lt_compile" 2>conftest.err)
15412    ac_status=$?
15413    cat conftest.err >&5
15414    echo "$as_me:15414: \$? = $ac_status" >&5
15415    if (exit $ac_status) && test -s "$ac_outfile"; then
15416      # The compiler can only warn and ignore the option if not recognized
15417      # So say no if there are warnings other than the usual output.
15418      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15419      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15420      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15421        lt_cv_prog_compiler_rtti_exceptions=yes
15422      fi
15423    fi
15424    $rm conftest*
15425
15426 fi
15427 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15428 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15429
15430 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15431     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15432 else
15433     :
15434 fi
15435
15436 fi
15437
15438 lt_prog_compiler_wl_GCJ=
15439 lt_prog_compiler_pic_GCJ=
15440 lt_prog_compiler_static_GCJ=
15441
15442 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15443 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15444
15445   if test "$GCC" = yes; then
15446     lt_prog_compiler_wl_GCJ='-Wl,'
15447     lt_prog_compiler_static_GCJ='-static'
15448
15449     case $host_os in
15450       aix*)
15451       # All AIX code is PIC.
15452       if test "$host_cpu" = ia64; then
15453         # AIX 5 now supports IA64 processor
15454         lt_prog_compiler_static_GCJ='-Bstatic'
15455       fi
15456       ;;
15457
15458     amigaos*)
15459       # FIXME: we need at least 68020 code to build shared libraries, but
15460       # adding the `-m68020' flag to GCC prevents building anything better,
15461       # like `-m68040'.
15462       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15463       ;;
15464
15465     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15466       # PIC is the default for these OSes.
15467       ;;
15468
15469     mingw* | pw32* | os2*)
15470       # This hack is so that the source file can tell whether it is being
15471       # built for inclusion in a dll (and should export symbols for example).
15472       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15473       ;;
15474
15475     darwin* | rhapsody*)
15476       # PIC is the default on this platform
15477       # Common symbols not allowed in MH_DYLIB files
15478       lt_prog_compiler_pic_GCJ='-fno-common'
15479       ;;
15480
15481     interix3*)
15482       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15483       # Instead, we relocate shared libraries at runtime.
15484       ;;
15485
15486     msdosdjgpp*)
15487       # Just because we use GCC doesn't mean we suddenly get shared libraries
15488       # on systems that don't support them.
15489       lt_prog_compiler_can_build_shared_GCJ=no
15490       enable_shared=no
15491       ;;
15492
15493     sysv4*MP*)
15494       if test -d /usr/nec; then
15495         lt_prog_compiler_pic_GCJ=-Kconform_pic
15496       fi
15497       ;;
15498
15499     hpux*)
15500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15501       # not for PA HP-UX.
15502       case $host_cpu in
15503       hppa*64*|ia64*)
15504         # +Z the default
15505         ;;
15506       *)
15507         lt_prog_compiler_pic_GCJ='-fPIC'
15508         ;;
15509       esac
15510       ;;
15511
15512     *)
15513       lt_prog_compiler_pic_GCJ='-fPIC'
15514       ;;
15515     esac
15516   else
15517     # PORTME Check for flag to pass linker flags through the system compiler.
15518     case $host_os in
15519     aix*)
15520       lt_prog_compiler_wl_GCJ='-Wl,'
15521       if test "$host_cpu" = ia64; then
15522         # AIX 5 now supports IA64 processor
15523         lt_prog_compiler_static_GCJ='-Bstatic'
15524       else
15525         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15526       fi
15527       ;;
15528       darwin*)
15529         # PIC is the default on this platform
15530         # Common symbols not allowed in MH_DYLIB files
15531        case $cc_basename in
15532          xlc*)
15533          lt_prog_compiler_pic_GCJ='-qnocommon'
15534          lt_prog_compiler_wl_GCJ='-Wl,'
15535          ;;
15536        esac
15537        ;;
15538
15539     mingw* | pw32* | os2*)
15540       # This hack is so that the source file can tell whether it is being
15541       # built for inclusion in a dll (and should export symbols for example).
15542       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15543       ;;
15544
15545     hpux9* | hpux10* | hpux11*)
15546       lt_prog_compiler_wl_GCJ='-Wl,'
15547       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15548       # not for PA HP-UX.
15549       case $host_cpu in
15550       hppa*64*|ia64*)
15551         # +Z the default
15552         ;;
15553       *)
15554         lt_prog_compiler_pic_GCJ='+Z'
15555         ;;
15556       esac
15557       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15558       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15559       ;;
15560
15561     irix5* | irix6* | nonstopux*)
15562       lt_prog_compiler_wl_GCJ='-Wl,'
15563       # PIC (with -KPIC) is the default.
15564       lt_prog_compiler_static_GCJ='-non_shared'
15565       ;;
15566
15567     newsos6)
15568       lt_prog_compiler_pic_GCJ='-KPIC'
15569       lt_prog_compiler_static_GCJ='-Bstatic'
15570       ;;
15571
15572     linux*)
15573       case $cc_basename in
15574       icc* | ecc*)
15575         lt_prog_compiler_wl_GCJ='-Wl,'
15576         lt_prog_compiler_pic_GCJ='-KPIC'
15577         lt_prog_compiler_static_GCJ='-static'
15578         ;;
15579       pgcc* | pgf77* | pgf90* | pgf95*)
15580         # Portland Group compilers (*not* the Pentium gcc compiler,
15581         # which looks to be a dead project)
15582         lt_prog_compiler_wl_GCJ='-Wl,'
15583         lt_prog_compiler_pic_GCJ='-fpic'
15584         lt_prog_compiler_static_GCJ='-Bstatic'
15585         ;;
15586       ccc*)
15587         lt_prog_compiler_wl_GCJ='-Wl,'
15588         # All Alpha code is PIC.
15589         lt_prog_compiler_static_GCJ='-non_shared'
15590         ;;
15591       esac
15592       ;;
15593
15594     osf3* | osf4* | osf5*)
15595       lt_prog_compiler_wl_GCJ='-Wl,'
15596       # All OSF/1 code is PIC.
15597       lt_prog_compiler_static_GCJ='-non_shared'
15598       ;;
15599
15600     solaris*)
15601       lt_prog_compiler_pic_GCJ='-KPIC'
15602       lt_prog_compiler_static_GCJ='-Bstatic'
15603       case $cc_basename in
15604       f77* | f90* | f95*)
15605         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15606       *)
15607         lt_prog_compiler_wl_GCJ='-Wl,';;
15608       esac
15609       ;;
15610
15611     sunos4*)
15612       lt_prog_compiler_wl_GCJ='-Qoption ld '
15613       lt_prog_compiler_pic_GCJ='-PIC'
15614       lt_prog_compiler_static_GCJ='-Bstatic'
15615       ;;
15616
15617     sysv4 | sysv4.2uw2* | sysv4.3*)
15618       lt_prog_compiler_wl_GCJ='-Wl,'
15619       lt_prog_compiler_pic_GCJ='-KPIC'
15620       lt_prog_compiler_static_GCJ='-Bstatic'
15621       ;;
15622
15623     sysv4*MP*)
15624       if test -d /usr/nec ;then
15625         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15626         lt_prog_compiler_static_GCJ='-Bstatic'
15627       fi
15628       ;;
15629
15630     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15631       lt_prog_compiler_wl_GCJ='-Wl,'
15632       lt_prog_compiler_pic_GCJ='-KPIC'
15633       lt_prog_compiler_static_GCJ='-Bstatic'
15634       ;;
15635
15636     unicos*)
15637       lt_prog_compiler_wl_GCJ='-Wl,'
15638       lt_prog_compiler_can_build_shared_GCJ=no
15639       ;;
15640
15641     uts4*)
15642       lt_prog_compiler_pic_GCJ='-pic'
15643       lt_prog_compiler_static_GCJ='-Bstatic'
15644       ;;
15645
15646     *)
15647       lt_prog_compiler_can_build_shared_GCJ=no
15648       ;;
15649     esac
15650   fi
15651
15652 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15653 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15654
15655 #
15656 # Check to make sure the PIC flag actually works.
15657 #
15658 if test -n "$lt_prog_compiler_pic_GCJ"; then
15659
15660 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15661 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15662 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15663   echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665   lt_prog_compiler_pic_works_GCJ=no
15666   ac_outfile=conftest.$ac_objext
15667    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15668    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15669    # Insert the option either (1) after the last *FLAGS variable, or
15670    # (2) before a word containing "conftest.", or (3) at the end.
15671    # Note that $ac_compile itself does not contain backslashes and begins
15672    # with a dollar sign (not a hyphen), so the echo should work correctly.
15673    # The option is referenced via a variable to avoid confusing sed.
15674    lt_compile=`echo "$ac_compile" | $SED \
15675    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15676    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15677    -e 's:$: $lt_compiler_flag:'`
15678    (eval echo "\"\$as_me:15678: $lt_compile\"" >&5)
15679    (eval "$lt_compile" 2>conftest.err)
15680    ac_status=$?
15681    cat conftest.err >&5
15682    echo "$as_me:15682: \$? = $ac_status" >&5
15683    if (exit $ac_status) && test -s "$ac_outfile"; then
15684      # The compiler can only warn and ignore the option if not recognized
15685      # So say no if there are warnings other than the usual output.
15686      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15687      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15688      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15689        lt_prog_compiler_pic_works_GCJ=yes
15690      fi
15691    fi
15692    $rm conftest*
15693
15694 fi
15695 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15696 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15697
15698 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15699     case $lt_prog_compiler_pic_GCJ in
15700      "" | " "*) ;;
15701      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15702      esac
15703 else
15704     lt_prog_compiler_pic_GCJ=
15705      lt_prog_compiler_can_build_shared_GCJ=no
15706 fi
15707
15708 fi
15709 case $host_os in
15710   # For platforms which do not support PIC, -DPIC is meaningless:
15711   *djgpp*)
15712     lt_prog_compiler_pic_GCJ=
15713     ;;
15714   *)
15715     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15716     ;;
15717 esac
15718
15719 #
15720 # Check to make sure the static flag actually works.
15721 #
15722 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15723 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15724 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15725 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15726   echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728   lt_prog_compiler_static_works_GCJ=no
15729    save_LDFLAGS="$LDFLAGS"
15730    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15731    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15732    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15733      # The linker can only warn and ignore the option if not recognized
15734      # So say no if there are warnings
15735      if test -s conftest.err; then
15736        # Append any errors to the config.log.
15737        cat conftest.err 1>&5
15738        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15739        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15740        if diff conftest.exp conftest.er2 >/dev/null; then
15741          lt_prog_compiler_static_works_GCJ=yes
15742        fi
15743      else
15744        lt_prog_compiler_static_works_GCJ=yes
15745      fi
15746    fi
15747    $rm conftest*
15748    LDFLAGS="$save_LDFLAGS"
15749
15750 fi
15751 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15752 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15753
15754 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15755     :
15756 else
15757     lt_prog_compiler_static_GCJ=
15758 fi
15759
15760
15761 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15762 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15763 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   lt_cv_prog_compiler_c_o_GCJ=no
15767    $rm -r conftest 2>/dev/null
15768    mkdir conftest
15769    cd conftest
15770    mkdir out
15771    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15772
15773    lt_compiler_flag="-o out/conftest2.$ac_objext"
15774    # Insert the option either (1) after the last *FLAGS variable, or
15775    # (2) before a word containing "conftest.", or (3) at the end.
15776    # Note that $ac_compile itself does not contain backslashes and begins
15777    # with a dollar sign (not a hyphen), so the echo should work correctly.
15778    lt_compile=`echo "$ac_compile" | $SED \
15779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15781    -e 's:$: $lt_compiler_flag:'`
15782    (eval echo "\"\$as_me:15782: $lt_compile\"" >&5)
15783    (eval "$lt_compile" 2>out/conftest.err)
15784    ac_status=$?
15785    cat out/conftest.err >&5
15786    echo "$as_me:15786: \$? = $ac_status" >&5
15787    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15788    then
15789      # The compiler can only warn and ignore the option if not recognized
15790      # So say no if there are warnings
15791      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15792      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15793      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15794        lt_cv_prog_compiler_c_o_GCJ=yes
15795      fi
15796    fi
15797    chmod u+w . 2>&5
15798    $rm conftest*
15799    # SGI C++ compiler will create directory out/ii_files/ for
15800    # template instantiation
15801    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15802    $rm out/* && rmdir out
15803    cd ..
15804    rmdir conftest
15805    $rm conftest*
15806
15807 fi
15808 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15809 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15810
15811
15812 hard_links="nottested"
15813 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15814   # do not overwrite the value of need_locks provided by the user
15815   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15816 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15817   hard_links=yes
15818   $rm conftest*
15819   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15820   touch conftest.a
15821   ln conftest.a conftest.b 2>&5 || hard_links=no
15822   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15823   echo "$as_me:$LINENO: result: $hard_links" >&5
15824 echo "${ECHO_T}$hard_links" >&6
15825   if test "$hard_links" = no; then
15826     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15827 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15828     need_locks=warn
15829   fi
15830 else
15831   need_locks=no
15832 fi
15833
15834 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15836
15837   runpath_var=
15838   allow_undefined_flag_GCJ=
15839   enable_shared_with_static_runtimes_GCJ=no
15840   archive_cmds_GCJ=
15841   archive_expsym_cmds_GCJ=
15842   old_archive_From_new_cmds_GCJ=
15843   old_archive_from_expsyms_cmds_GCJ=
15844   export_dynamic_flag_spec_GCJ=
15845   whole_archive_flag_spec_GCJ=
15846   thread_safe_flag_spec_GCJ=
15847   hardcode_libdir_flag_spec_GCJ=
15848   hardcode_libdir_flag_spec_ld_GCJ=
15849   hardcode_libdir_separator_GCJ=
15850   hardcode_direct_GCJ=no
15851   hardcode_minus_L_GCJ=no
15852   hardcode_shlibpath_var_GCJ=unsupported
15853   link_all_deplibs_GCJ=unknown
15854   hardcode_automatic_GCJ=no
15855   module_cmds_GCJ=
15856   module_expsym_cmds_GCJ=
15857   always_export_symbols_GCJ=no
15858   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15859   # include_expsyms should be a list of space-separated symbols to be *always*
15860   # included in the symbol list
15861   include_expsyms_GCJ=
15862   # exclude_expsyms can be an extended regexp of symbols to exclude
15863   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15864   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15865   # as well as any symbol that contains `d'.
15866   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15867   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15868   # platforms (ab)use it in PIC code, but their linkers get confused if
15869   # the symbol is explicitly referenced.  Since portable code cannot
15870   # rely on this symbol name, it's probably fine to never include it in
15871   # preloaded symbol tables.
15872   extract_expsyms_cmds=
15873   # Just being paranoid about ensuring that cc_basename is set.
15874   for cc_temp in $compiler""; do
15875   case $cc_temp in
15876     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15877     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15878     \-*) ;;
15879     *) break;;
15880   esac
15881 done
15882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15883
15884   case $host_os in
15885   cygwin* | mingw* | pw32*)
15886     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15887     # When not using gcc, we currently assume that we are using
15888     # Microsoft Visual C++.
15889     if test "$GCC" != yes; then
15890       with_gnu_ld=no
15891     fi
15892     ;;
15893   interix*)
15894     # we just hope/assume this is gcc and not c89 (= MSVC++)
15895     with_gnu_ld=yes
15896     ;;
15897   openbsd*)
15898     with_gnu_ld=no
15899     ;;
15900   esac
15901
15902   ld_shlibs_GCJ=yes
15903   if test "$with_gnu_ld" = yes; then
15904     # If archive_cmds runs LD, not CC, wlarc should be empty
15905     wlarc='${wl}'
15906
15907     # Set some defaults for GNU ld with shared library support. These
15908     # are reset later if shared libraries are not supported. Putting them
15909     # here allows them to be overridden if necessary.
15910     runpath_var=LD_RUN_PATH
15911     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15912     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15913     # ancient GNU ld didn't support --whole-archive et. al.
15914     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15915         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15916       else
15917         whole_archive_flag_spec_GCJ=
15918     fi
15919     supports_anon_versioning=no
15920     case `$LD -v 2>/dev/null` in
15921       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15922       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15923       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15924       *\ 2.11.*) ;; # other 2.11 versions
15925       *) supports_anon_versioning=yes ;;
15926     esac
15927
15928     # See if GNU ld supports shared libraries.
15929     case $host_os in
15930     aix3* | aix4* | aix5*)
15931       # On AIX/PPC, the GNU linker is very broken
15932       if test "$host_cpu" != ia64; then
15933         ld_shlibs_GCJ=no
15934         cat <<EOF 1>&2
15935
15936 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15937 *** to be unable to reliably create shared libraries on AIX.
15938 *** Therefore, libtool is disabling shared libraries support.  If you
15939 *** really care for shared libraries, you may want to modify your PATH
15940 *** so that a non-GNU linker is found, and then restart.
15941
15942 EOF
15943       fi
15944       ;;
15945
15946     amigaos*)
15947       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)'
15948       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15949       hardcode_minus_L_GCJ=yes
15950
15951       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15952       # that the semantics of dynamic libraries on AmigaOS, at least up
15953       # to version 4, is to share data among multiple programs linked
15954       # with the same dynamic library.  Since this doesn't match the
15955       # behavior of shared libraries on other platforms, we can't use
15956       # them.
15957       ld_shlibs_GCJ=no
15958       ;;
15959
15960     beos*)
15961       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15962         allow_undefined_flag_GCJ=unsupported
15963         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15964         # support --undefined.  This deserves some investigation.  FIXME
15965         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15966       else
15967         ld_shlibs_GCJ=no
15968       fi
15969       ;;
15970
15971     cygwin* | mingw* | pw32*)
15972       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15973       # as there is no search path for DLLs.
15974       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15975       allow_undefined_flag_GCJ=unsupported
15976       always_export_symbols_GCJ=no
15977       enable_shared_with_static_runtimes_GCJ=yes
15978       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15979
15980       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15981         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15982         # If the export-symbols file already is a .def file (1st line
15983         # is EXPORTS), use it as is; otherwise, prepend...
15984         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15985           cp $export_symbols $output_objdir/$soname.def;
15986         else
15987           echo EXPORTS > $output_objdir/$soname.def;
15988           cat $export_symbols >> $output_objdir/$soname.def;
15989         fi~
15990         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15991       else
15992         ld_shlibs_GCJ=no
15993       fi
15994       ;;
15995
15996     interix3*)
15997       hardcode_direct_GCJ=no
15998       hardcode_shlibpath_var_GCJ=no
15999       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16000       export_dynamic_flag_spec_GCJ='${wl}-E'
16001       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16002       # Instead, shared libraries are loaded at an image base (0x10000000 by
16003       # default) and relocated if they conflict, which is a slow very memory
16004       # consuming and fragmenting process.  To avoid this, we pick a random,
16005       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16006       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16007       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'
16008       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'
16009       ;;
16010
16011     linux*)
16012       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16013         tmp_addflag=
16014         case $cc_basename,$host_cpu in
16015         pgcc*)                          # Portland Group C compiler
16016           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'
16017           tmp_addflag=' $pic_flag'
16018           ;;
16019         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16020           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'
16021           tmp_addflag=' $pic_flag -Mnomain' ;;
16022         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16023           tmp_addflag=' -i_dynamic' ;;
16024         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16025           tmp_addflag=' -i_dynamic -nofor_main' ;;
16026         ifc* | ifort*)                  # Intel Fortran compiler
16027           tmp_addflag=' -nofor_main' ;;
16028         esac
16029         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030
16031         if test $supports_anon_versioning = yes; then
16032           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16033   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16034   $echo "local: *; };" >> $output_objdir/$libname.ver~
16035           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16036         fi
16037       else
16038         ld_shlibs_GCJ=no
16039       fi
16040       ;;
16041
16042     netbsd*)
16043       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16045         wlarc=
16046       else
16047         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16049       fi
16050       ;;
16051
16052     solaris*)
16053       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16054         ld_shlibs_GCJ=no
16055         cat <<EOF 1>&2
16056
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems.  Therefore, libtool
16059 *** is disabling shared libraries support.  We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer.  Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16063
16064 EOF
16065       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068       else
16069         ld_shlibs_GCJ=no
16070       fi
16071       ;;
16072
16073     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16074       case `$LD -v 2>&1` in
16075         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16076         ld_shlibs_GCJ=no
16077         cat <<_LT_EOF 1>&2
16078
16079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16080 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16081 *** is disabling shared libraries support.  We urge you to upgrade GNU
16082 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16083 *** your PATH or compiler configuration so that the native linker is
16084 *** used, and then restart.
16085
16086 _LT_EOF
16087         ;;
16088         *)
16089           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16091             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16092             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16093           else
16094             ld_shlibs_GCJ=no
16095           fi
16096         ;;
16097       esac
16098       ;;
16099
16100     sunos4*)
16101       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16102       wlarc=
16103       hardcode_direct_GCJ=yes
16104       hardcode_shlibpath_var_GCJ=no
16105       ;;
16106
16107     *)
16108       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16111       else
16112         ld_shlibs_GCJ=no
16113       fi
16114       ;;
16115     esac
16116
16117     if test "$ld_shlibs_GCJ" = no; then
16118       runpath_var=
16119       hardcode_libdir_flag_spec_GCJ=
16120       export_dynamic_flag_spec_GCJ=
16121       whole_archive_flag_spec_GCJ=
16122     fi
16123   else
16124     # PORTME fill in a description of your system's linker (not GNU ld)
16125     case $host_os in
16126     aix3*)
16127       allow_undefined_flag_GCJ=unsupported
16128       always_export_symbols_GCJ=yes
16129       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'
16130       # Note: this linker hardcodes the directories in LIBPATH if there
16131       # are no directories specified by -L.
16132       hardcode_minus_L_GCJ=yes
16133       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16134         # Neither direct hardcoding nor static linking is supported with a
16135         # broken collect2.
16136         hardcode_direct_GCJ=unsupported
16137       fi
16138       ;;
16139
16140     aix4* | aix5*)
16141       if test "$host_cpu" = ia64; then
16142         # On IA64, the linker does run time linking by default, so we don't
16143         # have to do anything special.
16144         aix_use_runtimelinking=no
16145         exp_sym_flag='-Bexport'
16146         no_entry_flag=""
16147       else
16148         # If we're using GNU nm, then we don't want the "-C" option.
16149         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16150         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16151           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'
16152         else
16153           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'
16154         fi
16155         aix_use_runtimelinking=no
16156
16157         # Test if we are trying to use run time linking or normal
16158         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16159         # need to do runtime linking.
16160         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16161           for ld_flag in $LDFLAGS; do
16162           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16163             aix_use_runtimelinking=yes
16164             break
16165           fi
16166           done
16167           ;;
16168         esac
16169
16170         exp_sym_flag='-bexport'
16171         no_entry_flag='-bnoentry'
16172       fi
16173
16174       # When large executables or shared objects are built, AIX ld can
16175       # have problems creating the table of contents.  If linking a library
16176       # or program results in "error TOC overflow" add -mminimal-toc to
16177       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16178       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16179
16180       archive_cmds_GCJ=''
16181       hardcode_direct_GCJ=yes
16182       hardcode_libdir_separator_GCJ=':'
16183       link_all_deplibs_GCJ=yes
16184
16185       if test "$GCC" = yes; then
16186         case $host_os in aix4.[012]|aix4.[012].*)
16187         # We only want to do this on AIX 4.2 and lower, the check
16188         # below for broken collect2 doesn't work under 4.3+
16189           collect2name=`${CC} -print-prog-name=collect2`
16190           if test -f "$collect2name" && \
16191            strings "$collect2name" | grep resolve_lib_name >/dev/null
16192           then
16193           # We have reworked collect2
16194           hardcode_direct_GCJ=yes
16195           else
16196           # We have old collect2
16197           hardcode_direct_GCJ=unsupported
16198           # It fails to find uninstalled libraries when the uninstalled
16199           # path is not listed in the libpath.  Setting hardcode_minus_L
16200           # to unsupported forces relinking
16201           hardcode_minus_L_GCJ=yes
16202           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16203           hardcode_libdir_separator_GCJ=
16204           fi
16205           ;;
16206         esac
16207         shared_flag='-shared'
16208         if test "$aix_use_runtimelinking" = yes; then
16209           shared_flag="$shared_flag "'${wl}-G'
16210         fi
16211       else
16212         # not using gcc
16213         if test "$host_cpu" = ia64; then
16214         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16215         # chokes on -Wl,-G. The following line is correct:
16216           shared_flag='-G'
16217         else
16218           if test "$aix_use_runtimelinking" = yes; then
16219             shared_flag='${wl}-G'
16220           else
16221             shared_flag='${wl}-bM:SRE'
16222           fi
16223         fi
16224       fi
16225
16226       # It seems that -bexpall does not export symbols beginning with
16227       # underscore (_), so it is better to generate a list of symbols to export.
16228       always_export_symbols_GCJ=yes
16229       if test "$aix_use_runtimelinking" = yes; then
16230         # Warning - without using the other runtime loading flags (-brtl),
16231         # -berok will link without error, but may produce a broken library.
16232         allow_undefined_flag_GCJ='-berok'
16233        # Determine the default libpath from the value encoded in an empty executable.
16234        cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240
16241 int
16242 main ()
16243 {
16244
16245   ;
16246   return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16251   (eval $ac_link) 2>conftest.er1
16252   ac_status=$?
16253   grep -v '^ *+' conftest.er1 >conftest.err
16254   rm -f conftest.er1
16255   cat conftest.err >&5
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); } &&
16258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; } &&
16264          { ac_try='test -s conftest$ac_exeext'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270
16271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16272 }'`
16273 # Check for a 64-bit object if we didn't find anything.
16274 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; }
16275 }'`; fi
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 fi
16281 rm -f conftest.err conftest.$ac_objext \
16282       conftest$ac_exeext conftest.$ac_ext
16283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16284
16285        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16286         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"
16287        else
16288         if test "$host_cpu" = ia64; then
16289           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16290           allow_undefined_flag_GCJ="-z nodefs"
16291           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"
16292         else
16293          # Determine the default libpath from the value encoded in an empty executable.
16294          cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300
16301 int
16302 main ()
16303 {
16304
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311   (eval $ac_link) 2>conftest.er1
16312   ac_status=$?
16313   grep -v '^ *+' conftest.er1 >conftest.err
16314   rm -f conftest.er1
16315   cat conftest.err >&5
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } &&
16318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320   (eval $ac_try) 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; } &&
16324          { ac_try='test -s conftest$ac_exeext'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330
16331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16332 }'`
16333 # Check for a 64-bit object if we didn't find anything.
16334 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; }
16335 }'`; fi
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 fi
16341 rm -f conftest.err conftest.$ac_objext \
16342       conftest$ac_exeext conftest.$ac_ext
16343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16344
16345          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16346           # Warning - without using the other run time loading flags,
16347           # -berok will link without error, but may produce a broken library.
16348           no_undefined_flag_GCJ=' ${wl}-bernotok'
16349           allow_undefined_flag_GCJ=' ${wl}-berok'
16350           # Exported symbols can be pulled into shared objects from archives
16351           whole_archive_flag_spec_GCJ='$convenience'
16352           archive_cmds_need_lc_GCJ=yes
16353           # This is similar to how AIX traditionally builds its shared libraries.
16354           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'
16355         fi
16356       fi
16357       ;;
16358
16359     amigaos*)
16360       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)'
16361       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16362       hardcode_minus_L_GCJ=yes
16363       # see comment about different semantics on the GNU ld section
16364       ld_shlibs_GCJ=no
16365       ;;
16366
16367     bsdi[45]*)
16368       export_dynamic_flag_spec_GCJ=-rdynamic
16369       ;;
16370
16371     cygwin* | mingw* | pw32*)
16372       # When not using gcc, we currently assume that we are using
16373       # Microsoft Visual C++.
16374       # hardcode_libdir_flag_spec is actually meaningless, as there is
16375       # no search path for DLLs.
16376       hardcode_libdir_flag_spec_GCJ=' '
16377       allow_undefined_flag_GCJ=unsupported
16378       # Tell ltmain to make .lib files, not .a files.
16379       libext=lib
16380       # Tell ltmain to make .dll files, not .so files.
16381       shrext_cmds=".dll"
16382       # FIXME: Setting linknames here is a bad hack.
16383       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16384       # The linker will automatically build a .lib file if we build a DLL.
16385       old_archive_From_new_cmds_GCJ='true'
16386       # FIXME: Should let the user specify the lib program.
16387       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16388       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16389       enable_shared_with_static_runtimes_GCJ=yes
16390       ;;
16391
16392     darwin* | rhapsody*)
16393       case $host_os in
16394         rhapsody* | darwin1.[012])
16395          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16396          ;;
16397        *) # Darwin 1.3 on
16398          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16399            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16400          else
16401            case ${MACOSX_DEPLOYMENT_TARGET} in
16402              10.[012])
16403                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16404                ;;
16405              10.*)
16406                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16407                ;;
16408            esac
16409          fi
16410          ;;
16411       esac
16412       archive_cmds_need_lc_GCJ=no
16413       hardcode_direct_GCJ=no
16414       hardcode_automatic_GCJ=yes
16415       hardcode_shlibpath_var_GCJ=unsupported
16416       whole_archive_flag_spec_GCJ=''
16417       link_all_deplibs_GCJ=yes
16418     if test "$GCC" = yes ; then
16419         output_verbose_link_cmd='echo'
16420         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16421       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16422       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16423       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}'
16424       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}'
16425     else
16426       case $cc_basename in
16427         xlc*)
16428          output_verbose_link_cmd='echo'
16429          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16430          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16431           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16432          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}'
16433           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}'
16434           ;;
16435        *)
16436          ld_shlibs_GCJ=no
16437           ;;
16438       esac
16439     fi
16440       ;;
16441
16442     dgux*)
16443       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16445       hardcode_shlibpath_var_GCJ=no
16446       ;;
16447
16448     freebsd1*)
16449       ld_shlibs_GCJ=no
16450       ;;
16451
16452     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16453     # support.  Future versions do this automatically, but an explicit c++rt0.o
16454     # does not break anything, and helps significantly (at the cost of a little
16455     # extra space).
16456     freebsd2.2*)
16457       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16458       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16459       hardcode_direct_GCJ=yes
16460       hardcode_shlibpath_var_GCJ=no
16461       ;;
16462
16463     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16464     freebsd2*)
16465       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16466       hardcode_direct_GCJ=yes
16467       hardcode_minus_L_GCJ=yes
16468       hardcode_shlibpath_var_GCJ=no
16469       ;;
16470
16471     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16472     freebsd* | kfreebsd*-gnu | dragonfly*)
16473       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16474       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16475       hardcode_direct_GCJ=yes
16476       hardcode_shlibpath_var_GCJ=no
16477       ;;
16478
16479     hpux9*)
16480       if test "$GCC" = yes; then
16481         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'
16482       else
16483         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'
16484       fi
16485       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16486       hardcode_libdir_separator_GCJ=:
16487       hardcode_direct_GCJ=yes
16488
16489       # hardcode_minus_L: Not really in the search PATH,
16490       # but as the default location of the library.
16491       hardcode_minus_L_GCJ=yes
16492       export_dynamic_flag_spec_GCJ='${wl}-E'
16493       ;;
16494
16495     hpux10*)
16496       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16497         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16498       else
16499         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16500       fi
16501       if test "$with_gnu_ld" = no; then
16502         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16503         hardcode_libdir_separator_GCJ=:
16504
16505         hardcode_direct_GCJ=yes
16506         export_dynamic_flag_spec_GCJ='${wl}-E'
16507
16508         # hardcode_minus_L: Not really in the search PATH,
16509         # but as the default location of the library.
16510         hardcode_minus_L_GCJ=yes
16511       fi
16512       ;;
16513
16514     hpux11*)
16515       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16516         case $host_cpu in
16517         hppa*64*)
16518           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16519           ;;
16520         ia64*)
16521           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16522           ;;
16523         *)
16524           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16525           ;;
16526         esac
16527       else
16528         case $host_cpu in
16529         hppa*64*)
16530           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531           ;;
16532         ia64*)
16533           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16534           ;;
16535         *)
16536           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16537           ;;
16538         esac
16539       fi
16540       if test "$with_gnu_ld" = no; then
16541         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16542         hardcode_libdir_separator_GCJ=:
16543
16544         case $host_cpu in
16545         hppa*64*|ia64*)
16546           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16547           hardcode_direct_GCJ=no
16548           hardcode_shlibpath_var_GCJ=no
16549           ;;
16550         *)
16551           hardcode_direct_GCJ=yes
16552           export_dynamic_flag_spec_GCJ='${wl}-E'
16553
16554           # hardcode_minus_L: Not really in the search PATH,
16555           # but as the default location of the library.
16556           hardcode_minus_L_GCJ=yes
16557           ;;
16558         esac
16559       fi
16560       ;;
16561
16562     irix5* | irix6* | nonstopux*)
16563       if test "$GCC" = yes; then
16564         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'
16565       else
16566         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'
16567         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16568       fi
16569       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16570       hardcode_libdir_separator_GCJ=:
16571       link_all_deplibs_GCJ=yes
16572       ;;
16573
16574     netbsd*)
16575       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16576         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16577       else
16578         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16579       fi
16580       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16581       hardcode_direct_GCJ=yes
16582       hardcode_shlibpath_var_GCJ=no
16583       ;;
16584
16585     newsos6)
16586       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587       hardcode_direct_GCJ=yes
16588       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16589       hardcode_libdir_separator_GCJ=:
16590       hardcode_shlibpath_var_GCJ=no
16591       ;;
16592
16593     openbsd*)
16594       hardcode_direct_GCJ=yes
16595       hardcode_shlibpath_var_GCJ=no
16596       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16597         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16599         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16600         export_dynamic_flag_spec_GCJ='${wl}-E'
16601       else
16602        case $host_os in
16603          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16606            ;;
16607          *)
16608            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16610            ;;
16611        esac
16612       fi
16613       ;;
16614
16615     os2*)
16616       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16617       hardcode_minus_L_GCJ=yes
16618       allow_undefined_flag_GCJ=unsupported
16619       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'
16620       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16621       ;;
16622
16623     osf3*)
16624       if test "$GCC" = yes; then
16625         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16626         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'
16627       else
16628         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16629         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'
16630       fi
16631       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16632       hardcode_libdir_separator_GCJ=:
16633       ;;
16634
16635     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16636       if test "$GCC" = yes; then
16637         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16638         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'
16639         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16640       else
16641         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16642         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'
16643         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~
16644         $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'
16645
16646         # Both c and cxx compiler support -rpath directly
16647         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16648       fi
16649       hardcode_libdir_separator_GCJ=:
16650       ;;
16651
16652     solaris*)
16653       no_undefined_flag_GCJ=' -z text'
16654       if test "$GCC" = yes; then
16655         wlarc='${wl}'
16656         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16657         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16658           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16659       else
16660         wlarc=''
16661         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16663         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16664       fi
16665       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16666       hardcode_shlibpath_var_GCJ=no
16667       case $host_os in
16668       solaris2.[0-5] | solaris2.[0-5].*) ;;
16669       *)
16670         # The compiler driver will combine linker options so we
16671         # cannot just pass the convience library names through
16672         # without $wl, iff we do not link with $LD.
16673         # Luckily, gcc supports the same syntax we need for Sun Studio.
16674         # Supported since Solaris 2.6 (maybe 2.5.1?)
16675         case $wlarc in
16676         '')
16677           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16678         *)
16679           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' ;;
16680         esac ;;
16681       esac
16682       link_all_deplibs_GCJ=yes
16683       ;;
16684
16685     sunos4*)
16686       if test "x$host_vendor" = xsequent; then
16687         # Use $CC to link under sequent, because it throws in some extra .o
16688         # files that make .init and .fini sections work.
16689         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16690       else
16691         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16692       fi
16693       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16694       hardcode_direct_GCJ=yes
16695       hardcode_minus_L_GCJ=yes
16696       hardcode_shlibpath_var_GCJ=no
16697       ;;
16698
16699     sysv4)
16700       case $host_vendor in
16701         sni)
16702           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703           hardcode_direct_GCJ=yes # is this really true???
16704         ;;
16705         siemens)
16706           ## LD is ld it makes a PLAMLIB
16707           ## CC just makes a GrossModule.
16708           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16709           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16710           hardcode_direct_GCJ=no
16711         ;;
16712         motorola)
16713           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16714           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16715         ;;
16716       esac
16717       runpath_var='LD_RUN_PATH'
16718       hardcode_shlibpath_var_GCJ=no
16719       ;;
16720
16721     sysv4.3*)
16722       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723       hardcode_shlibpath_var_GCJ=no
16724       export_dynamic_flag_spec_GCJ='-Bexport'
16725       ;;
16726
16727     sysv4*MP*)
16728       if test -d /usr/nec; then
16729         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730         hardcode_shlibpath_var_GCJ=no
16731         runpath_var=LD_RUN_PATH
16732         hardcode_runpath_var=yes
16733         ld_shlibs_GCJ=yes
16734       fi
16735       ;;
16736
16737     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16738       no_undefined_flag_GCJ='${wl}-z,text'
16739       archive_cmds_need_lc_GCJ=no
16740       hardcode_shlibpath_var_GCJ=no
16741       runpath_var='LD_RUN_PATH'
16742
16743       if test "$GCC" = yes; then
16744         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16745         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16746       else
16747         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749       fi
16750       ;;
16751
16752     sysv5* | sco3.2v5* | sco5v6*)
16753       # Note: We can NOT use -z defs as we might desire, because we do not
16754       # link with -lc, and that would cause any symbols used from libc to
16755       # always be unresolved, which means just about no library would
16756       # ever link correctly.  If we're not using GNU ld we use -z text
16757       # though, which does catch some bad symbols but isn't as heavy-handed
16758       # as -z defs.
16759       no_undefined_flag_GCJ='${wl}-z,text'
16760       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16761       archive_cmds_need_lc_GCJ=no
16762       hardcode_shlibpath_var_GCJ=no
16763       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16764       hardcode_libdir_separator_GCJ=':'
16765       link_all_deplibs_GCJ=yes
16766       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16767       runpath_var='LD_RUN_PATH'
16768
16769       if test "$GCC" = yes; then
16770         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16771         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16772       else
16773         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16774         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16775       fi
16776       ;;
16777
16778     uts4*)
16779       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16781       hardcode_shlibpath_var_GCJ=no
16782       ;;
16783
16784     *)
16785       ld_shlibs_GCJ=no
16786       ;;
16787     esac
16788   fi
16789
16790 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16791 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16792 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16793
16794 #
16795 # Do we need to explicitly link libc?
16796 #
16797 case "x$archive_cmds_need_lc_GCJ" in
16798 x|xyes)
16799   # Assume -lc should be added
16800   archive_cmds_need_lc_GCJ=yes
16801
16802   if test "$enable_shared" = yes && test "$GCC" = yes; then
16803     case $archive_cmds_GCJ in
16804     *'~'*)
16805       # FIXME: we may have to deal with multi-command sequences.
16806       ;;
16807     '$CC '*)
16808       # Test whether the compiler implicitly links with -lc since on some
16809       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16810       # to ld, don't add -lc before -lgcc.
16811       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16812 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16813       $rm conftest*
16814       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16815
16816       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817   (eval $ac_compile) 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } 2>conftest.err; then
16821         soname=conftest
16822         lib=conftest
16823         libobjs=conftest.$ac_objext
16824         deplibs=
16825         wl=$lt_prog_compiler_wl_GCJ
16826         pic_flag=$lt_prog_compiler_pic_GCJ
16827         compiler_flags=-v
16828         linker_flags=-v
16829         verstring=
16830         output_objdir=.
16831         libname=conftest
16832         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16833         allow_undefined_flag_GCJ=
16834         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16835   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }
16839         then
16840           archive_cmds_need_lc_GCJ=no
16841         else
16842           archive_cmds_need_lc_GCJ=yes
16843         fi
16844         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16845       else
16846         cat conftest.err 1>&5
16847       fi
16848       $rm conftest*
16849       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16850 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16851       ;;
16852     esac
16853   fi
16854   ;;
16855 esac
16856
16857 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16858 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16859 library_names_spec=
16860 libname_spec='lib$name'
16861 soname_spec=
16862 shrext_cmds=".so"
16863 postinstall_cmds=
16864 postuninstall_cmds=
16865 finish_cmds=
16866 finish_eval=
16867 shlibpath_var=
16868 shlibpath_overrides_runpath=unknown
16869 version_type=none
16870 dynamic_linker="$host_os ld.so"
16871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16872 if test "$GCC" = yes; then
16873   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16874   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16875     # if the path contains ";" then we assume it to be the separator
16876     # otherwise default to the standard path separator (i.e. ":") - it is
16877     # assumed that no part of a normal pathname contains ";" but that should
16878     # okay in the real world where ";" in dirpaths is itself problematic.
16879     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16880   else
16881     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16882   fi
16883 else
16884   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16885 fi
16886 need_lib_prefix=unknown
16887 hardcode_into_libs=no
16888
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version=unknown
16892
16893 case $host_os in
16894 aix3*)
16895   version_type=linux
16896   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16897   shlibpath_var=LIBPATH
16898
16899   # AIX 3 has no versioning support, so we append a major version to the name.
16900   soname_spec='${libname}${release}${shared_ext}$major'
16901   ;;
16902
16903 aix4* | aix5*)
16904   version_type=linux
16905   need_lib_prefix=no
16906   need_version=no
16907   hardcode_into_libs=yes
16908   if test "$host_cpu" = ia64; then
16909     # AIX 5 supports IA64
16910     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911     shlibpath_var=LD_LIBRARY_PATH
16912   else
16913     # With GCC up to 2.95.x, collect2 would create an import file
16914     # for dependence libraries.  The import file would start with
16915     # the line `#! .'.  This would cause the generated library to
16916     # depend on `.', always an invalid library.  This was fixed in
16917     # development snapshots of GCC prior to 3.0.
16918     case $host_os in
16919       aix4 | aix4.[01] | aix4.[01].*)
16920       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16921            echo ' yes '
16922            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16923         :
16924       else
16925         can_build_shared=no
16926       fi
16927       ;;
16928     esac
16929     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930     # soname into executable. Probably we can add versioning support to
16931     # collect2, so additional links can be useful in future.
16932     if test "$aix_use_runtimelinking" = yes; then
16933       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934       # instead of lib<name>.a to let people know that these are not
16935       # typical AIX shared libraries.
16936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937     else
16938       # We preserve .a as extension for shared libraries through AIX4.2
16939       # and later when we are not doing run time linking.
16940       library_names_spec='${libname}${release}.a $libname.a'
16941       soname_spec='${libname}${release}${shared_ext}$major'
16942     fi
16943     shlibpath_var=LIBPATH
16944   fi
16945   ;;
16946
16947 amigaos*)
16948   library_names_spec='$libname.ixlibrary $libname.a'
16949   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16950   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'
16951   ;;
16952
16953 beos*)
16954   library_names_spec='${libname}${shared_ext}'
16955   dynamic_linker="$host_os ld.so"
16956   shlibpath_var=LIBRARY_PATH
16957   ;;
16958
16959 bsdi[45]*)
16960   version_type=linux
16961   need_version=no
16962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963   soname_spec='${libname}${release}${shared_ext}$major'
16964   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16965   shlibpath_var=LD_LIBRARY_PATH
16966   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16967   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16968   # the default ld.so.conf also contains /usr/contrib/lib and
16969   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16970   # libtool to hard-code these into programs
16971   ;;
16972
16973 cygwin* | mingw* | pw32*)
16974   version_type=windows
16975   shrext_cmds=".dll"
16976   need_version=no
16977   need_lib_prefix=no
16978
16979   case $GCC,$host_os in
16980   yes,cygwin* | yes,mingw* | yes,pw32*)
16981     library_names_spec='$libname.dll.a'
16982     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16983     postinstall_cmds='base_file=`basename \${file}`~
16984       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16985       dldir=$destdir/`dirname \$dlpath`~
16986       test -d \$dldir || mkdir -p \$dldir~
16987       $install_prog $dir/$dlname \$dldir/$dlname~
16988       chmod a+x \$dldir/$dlname'
16989     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16990       dlpath=$dir/\$dldll~
16991        $rm \$dlpath'
16992     shlibpath_overrides_runpath=yes
16993
16994     case $host_os in
16995     cygwin*)
16996       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16997       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16999       ;;
17000     mingw*)
17001       # MinGW DLLs use traditional 'lib' prefix
17002       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17003       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17004       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17005         # It is most probably a Windows format PATH printed by
17006         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17007         # path with ; separators, and with drive letters. We can handle the
17008         # drive letters (cygwin fileutils understands them), so leave them,
17009         # especially as we might pass files found there to a mingw objdump,
17010         # which wouldn't understand a cygwinified path. Ahh.
17011         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17012       else
17013         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17014       fi
17015       ;;
17016     pw32*)
17017       # pw32 DLLs use 'pw' prefix rather than 'lib'
17018       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17019       ;;
17020     esac
17021     ;;
17022
17023   *)
17024     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17025     ;;
17026   esac
17027   dynamic_linker='Win32 ld.exe'
17028   # FIXME: first we should search . and the directory the executable is in
17029   shlibpath_var=PATH
17030   ;;
17031
17032 darwin* | rhapsody*)
17033   dynamic_linker="$host_os dyld"
17034   version_type=darwin
17035   need_lib_prefix=no
17036   need_version=no
17037   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17038   soname_spec='${libname}${release}${major}$shared_ext'
17039   shlibpath_overrides_runpath=yes
17040   shlibpath_var=DYLD_LIBRARY_PATH
17041   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17042   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17043   if test "$GCC" = yes; then
17044     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"`
17045   else
17046     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17047   fi
17048   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17049   ;;
17050
17051 dgux*)
17052   version_type=linux
17053   need_lib_prefix=no
17054   need_version=no
17055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17056   soname_spec='${libname}${release}${shared_ext}$major'
17057   shlibpath_var=LD_LIBRARY_PATH
17058   ;;
17059
17060 freebsd1*)
17061   dynamic_linker=no
17062   ;;
17063
17064 kfreebsd*-gnu)
17065   version_type=linux
17066   need_lib_prefix=no
17067   need_version=no
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   shlibpath_var=LD_LIBRARY_PATH
17071   shlibpath_overrides_runpath=no
17072   hardcode_into_libs=yes
17073   dynamic_linker='GNU ld.so'
17074   ;;
17075
17076 freebsd* | dragonfly*)
17077   # DragonFly does not have aout.  When/if they implement a new
17078   # versioning mechanism, adjust this.
17079   if test -x /usr/bin/objformat; then
17080     objformat=`/usr/bin/objformat`
17081   else
17082     case $host_os in
17083     freebsd[123]*) objformat=aout ;;
17084     *) objformat=elf ;;
17085     esac
17086   fi
17087   version_type=freebsd-$objformat
17088   case $version_type in
17089     freebsd-elf*)
17090       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17091       need_version=no
17092       need_lib_prefix=no
17093       ;;
17094     freebsd-*)
17095       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17096       need_version=yes
17097       ;;
17098   esac
17099   shlibpath_var=LD_LIBRARY_PATH
17100   case $host_os in
17101   freebsd2*)
17102     shlibpath_overrides_runpath=yes
17103     ;;
17104   freebsd3.[01]* | freebsdelf3.[01]*)
17105     shlibpath_overrides_runpath=yes
17106     hardcode_into_libs=yes
17107     ;;
17108   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17109   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17110     shlibpath_overrides_runpath=no
17111     hardcode_into_libs=yes
17112     ;;
17113   freebsd*) # from 4.6 on
17114     shlibpath_overrides_runpath=yes
17115     hardcode_into_libs=yes
17116     ;;
17117   esac
17118   ;;
17119
17120 gnu*)
17121   version_type=linux
17122   need_lib_prefix=no
17123   need_version=no
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125   soname_spec='${libname}${release}${shared_ext}$major'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   hardcode_into_libs=yes
17128   ;;
17129
17130 hpux9* | hpux10* | hpux11*)
17131   # Give a soname corresponding to the major version so that dld.sl refuses to
17132   # link against other versions.
17133   version_type=sunos
17134   need_lib_prefix=no
17135   need_version=no
17136   case $host_cpu in
17137   ia64*)
17138     shrext_cmds='.so'
17139     hardcode_into_libs=yes
17140     dynamic_linker="$host_os dld.so"
17141     shlibpath_var=LD_LIBRARY_PATH
17142     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144     soname_spec='${libname}${release}${shared_ext}$major'
17145     if test "X$HPUX_IA64_MODE" = X32; then
17146       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17147     else
17148       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17149     fi
17150     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17151     ;;
17152    hppa*64*)
17153      shrext_cmds='.sl'
17154      hardcode_into_libs=yes
17155      dynamic_linker="$host_os dld.sl"
17156      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17157      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17158      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159      soname_spec='${libname}${release}${shared_ext}$major'
17160      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17161      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17162      ;;
17163    *)
17164     shrext_cmds='.sl'
17165     dynamic_linker="$host_os dld.sl"
17166     shlibpath_var=SHLIB_PATH
17167     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169     soname_spec='${libname}${release}${shared_ext}$major'
17170     ;;
17171   esac
17172   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17173   postinstall_cmds='chmod 555 $lib'
17174   ;;
17175
17176 interix3*)
17177   version_type=linux
17178   need_lib_prefix=no
17179   need_version=no
17180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181   soname_spec='${libname}${release}${shared_ext}$major'
17182   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17183   shlibpath_var=LD_LIBRARY_PATH
17184   shlibpath_overrides_runpath=no
17185   hardcode_into_libs=yes
17186   ;;
17187
17188 irix5* | irix6* | nonstopux*)
17189   case $host_os in
17190     nonstopux*) version_type=nonstopux ;;
17191     *)
17192         if test "$lt_cv_prog_gnu_ld" = yes; then
17193                 version_type=linux
17194         else
17195                 version_type=irix
17196         fi ;;
17197   esac
17198   need_lib_prefix=no
17199   need_version=no
17200   soname_spec='${libname}${release}${shared_ext}$major'
17201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17202   case $host_os in
17203   irix5* | nonstopux*)
17204     libsuff= shlibsuff=
17205     ;;
17206   *)
17207     case $LD in # libtool.m4 will add one of these switches to LD
17208     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17209       libsuff= shlibsuff= libmagic=32-bit;;
17210     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17211       libsuff=32 shlibsuff=N32 libmagic=N32;;
17212     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17213       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17214     *) libsuff= shlibsuff= libmagic=never-match;;
17215     esac
17216     ;;
17217   esac
17218   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17219   shlibpath_overrides_runpath=no
17220   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17221   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17222   hardcode_into_libs=yes
17223   ;;
17224
17225 # No shared lib support for Linux oldld, aout, or coff.
17226 linux*oldld* | linux*aout* | linux*coff*)
17227   dynamic_linker=no
17228   ;;
17229
17230 # This must be Linux ELF.
17231 linux*)
17232   version_type=linux
17233   need_lib_prefix=no
17234   need_version=no
17235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236   soname_spec='${libname}${release}${shared_ext}$major'
17237   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17238   shlibpath_var=LD_LIBRARY_PATH
17239   shlibpath_overrides_runpath=no
17240   # This implies no fast_install, which is unacceptable.
17241   # Some rework will be needed to allow for fast_install
17242   # before this can be enabled.
17243   hardcode_into_libs=yes
17244
17245   # Append ld.so.conf contents to the search path
17246   if test -f /etc/ld.so.conf; then
17247     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' ' '`
17248     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17249   fi
17250
17251   # We used to test for /lib/ld.so.1 and disable shared libraries on
17252   # powerpc, because MkLinux only supported shared libraries with the
17253   # GNU dynamic linker.  Since this was broken with cross compilers,
17254   # most powerpc-linux boxes support dynamic linking these days and
17255   # people can always --disable-shared, the test was removed, and we
17256   # assume the GNU/Linux dynamic linker is in use.
17257   dynamic_linker='GNU/Linux ld.so'
17258   ;;
17259
17260 knetbsd*-gnu)
17261   version_type=linux
17262   need_lib_prefix=no
17263   need_version=no
17264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17265   soname_spec='${libname}${release}${shared_ext}$major'
17266   shlibpath_var=LD_LIBRARY_PATH
17267   shlibpath_overrides_runpath=no
17268   hardcode_into_libs=yes
17269   dynamic_linker='GNU ld.so'
17270   ;;
17271
17272 netbsd*)
17273   version_type=sunos
17274   need_lib_prefix=no
17275   need_version=no
17276   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17278     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17279     dynamic_linker='NetBSD (a.out) ld.so'
17280   else
17281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282     soname_spec='${libname}${release}${shared_ext}$major'
17283     dynamic_linker='NetBSD ld.elf_so'
17284   fi
17285   shlibpath_var=LD_LIBRARY_PATH
17286   shlibpath_overrides_runpath=yes
17287   hardcode_into_libs=yes
17288   ;;
17289
17290 newsos6)
17291   version_type=linux
17292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293   shlibpath_var=LD_LIBRARY_PATH
17294   shlibpath_overrides_runpath=yes
17295   ;;
17296
17297 nto-qnx*)
17298   version_type=linux
17299   need_lib_prefix=no
17300   need_version=no
17301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302   soname_spec='${libname}${release}${shared_ext}$major'
17303   shlibpath_var=LD_LIBRARY_PATH
17304   shlibpath_overrides_runpath=yes
17305   ;;
17306
17307 openbsd*)
17308   version_type=sunos
17309   sys_lib_dlsearch_path_spec="/usr/lib"
17310   need_lib_prefix=no
17311   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17312   case $host_os in
17313     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17314     *)                         need_version=no  ;;
17315   esac
17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17318   shlibpath_var=LD_LIBRARY_PATH
17319   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17320     case $host_os in
17321       openbsd2.[89] | openbsd2.[89].*)
17322         shlibpath_overrides_runpath=no
17323         ;;
17324       *)
17325         shlibpath_overrides_runpath=yes
17326         ;;
17327       esac
17328   else
17329     shlibpath_overrides_runpath=yes
17330   fi
17331   ;;
17332
17333 os2*)
17334   libname_spec='$name'
17335   shrext_cmds=".dll"
17336   need_lib_prefix=no
17337   library_names_spec='$libname${shared_ext} $libname.a'
17338   dynamic_linker='OS/2 ld.exe'
17339   shlibpath_var=LIBPATH
17340   ;;
17341
17342 osf3* | osf4* | osf5*)
17343   version_type=osf
17344   need_lib_prefix=no
17345   need_version=no
17346   soname_spec='${libname}${release}${shared_ext}$major'
17347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348   shlibpath_var=LD_LIBRARY_PATH
17349   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17350   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17351   ;;
17352
17353 solaris*)
17354   version_type=linux
17355   need_lib_prefix=no
17356   need_version=no
17357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358   soname_spec='${libname}${release}${shared_ext}$major'
17359   shlibpath_var=LD_LIBRARY_PATH
17360   shlibpath_overrides_runpath=yes
17361   hardcode_into_libs=yes
17362   # ldd complains unless libraries are executable
17363   postinstall_cmds='chmod +x $lib'
17364   ;;
17365
17366 sunos4*)
17367   version_type=sunos
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17369   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   shlibpath_overrides_runpath=yes
17372   if test "$with_gnu_ld" = yes; then
17373     need_lib_prefix=no
17374   fi
17375   need_version=yes
17376   ;;
17377
17378 sysv4 | sysv4.3*)
17379   version_type=linux
17380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381   soname_spec='${libname}${release}${shared_ext}$major'
17382   shlibpath_var=LD_LIBRARY_PATH
17383   case $host_vendor in
17384     sni)
17385       shlibpath_overrides_runpath=no
17386       need_lib_prefix=no
17387       export_dynamic_flag_spec='${wl}-Blargedynsym'
17388       runpath_var=LD_RUN_PATH
17389       ;;
17390     siemens)
17391       need_lib_prefix=no
17392       ;;
17393     motorola)
17394       need_lib_prefix=no
17395       need_version=no
17396       shlibpath_overrides_runpath=no
17397       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17398       ;;
17399   esac
17400   ;;
17401
17402 sysv4*MP*)
17403   if test -d /usr/nec ;then
17404     version_type=linux
17405     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17406     soname_spec='$libname${shared_ext}.$major'
17407     shlibpath_var=LD_LIBRARY_PATH
17408   fi
17409   ;;
17410
17411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17412   version_type=freebsd-elf
17413   need_lib_prefix=no
17414   need_version=no
17415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17416   soname_spec='${libname}${release}${shared_ext}$major'
17417   shlibpath_var=LD_LIBRARY_PATH
17418   hardcode_into_libs=yes
17419   if test "$with_gnu_ld" = yes; then
17420     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17421     shlibpath_overrides_runpath=no
17422   else
17423     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17424     shlibpath_overrides_runpath=yes
17425     case $host_os in
17426       sco3.2v5*)
17427         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17428         ;;
17429     esac
17430   fi
17431   sys_lib_dlsearch_path_spec='/usr/lib'
17432   ;;
17433
17434 uts4*)
17435   version_type=linux
17436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437   soname_spec='${libname}${release}${shared_ext}$major'
17438   shlibpath_var=LD_LIBRARY_PATH
17439   ;;
17440
17441 *)
17442   dynamic_linker=no
17443   ;;
17444 esac
17445 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17446 echo "${ECHO_T}$dynamic_linker" >&6
17447 test "$dynamic_linker" = no && can_build_shared=no
17448
17449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17450 if test "$GCC" = yes; then
17451   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17452 fi
17453
17454 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17455 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17456 hardcode_action_GCJ=
17457 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17458    test -n "$runpath_var_GCJ" || \
17459    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17460
17461   # We can hardcode non-existant directories.
17462   if test "$hardcode_direct_GCJ" != no &&
17463      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17464      # have to relink, otherwise we might link with an installed library
17465      # when we should be linking with a yet-to-be-installed one
17466      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17467      test "$hardcode_minus_L_GCJ" != no; then
17468     # Linking always hardcodes the temporary library directory.
17469     hardcode_action_GCJ=relink
17470   else
17471     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17472     hardcode_action_GCJ=immediate
17473   fi
17474 else
17475   # We cannot hardcode anything, or else we can only hardcode existing
17476   # directories.
17477   hardcode_action_GCJ=unsupported
17478 fi
17479 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17480 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17481
17482 if test "$hardcode_action_GCJ" = relink; then
17483   # Fast installation is not supported
17484   enable_fast_install=no
17485 elif test "$shlibpath_overrides_runpath" = yes ||
17486      test "$enable_shared" = no; then
17487   # Fast installation is not necessary
17488   enable_fast_install=needless
17489 fi
17490
17491
17492 # The else clause should only fire when bootstrapping the
17493 # libtool distribution, otherwise you forgot to ship ltmain.sh
17494 # with your package, and you will get complaints that there are
17495 # no rules to generate ltmain.sh.
17496 if test -f "$ltmain"; then
17497   # See if we are running on zsh, and set the options which allow our commands through
17498   # without removal of \ escapes.
17499   if test -n "${ZSH_VERSION+set}" ; then
17500     setopt NO_GLOB_SUBST
17501   fi
17502   # Now quote all the things that may contain metacharacters while being
17503   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17504   # variables and quote the copies for generation of the libtool script.
17505   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17506     SED SHELL STRIP \
17507     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17508     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17509     deplibs_check_method reload_flag reload_cmds need_locks \
17510     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17511     lt_cv_sys_global_symbol_to_c_name_address \
17512     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17513     old_postinstall_cmds old_postuninstall_cmds \
17514     compiler_GCJ \
17515     CC_GCJ \
17516     LD_GCJ \
17517     lt_prog_compiler_wl_GCJ \
17518     lt_prog_compiler_pic_GCJ \
17519     lt_prog_compiler_static_GCJ \
17520     lt_prog_compiler_no_builtin_flag_GCJ \
17521     export_dynamic_flag_spec_GCJ \
17522     thread_safe_flag_spec_GCJ \
17523     whole_archive_flag_spec_GCJ \
17524     enable_shared_with_static_runtimes_GCJ \
17525     old_archive_cmds_GCJ \
17526     old_archive_from_new_cmds_GCJ \
17527     predep_objects_GCJ \
17528     postdep_objects_GCJ \
17529     predeps_GCJ \
17530     postdeps_GCJ \
17531     compiler_lib_search_path_GCJ \
17532     archive_cmds_GCJ \
17533     archive_expsym_cmds_GCJ \
17534     postinstall_cmds_GCJ \
17535     postuninstall_cmds_GCJ \
17536     old_archive_from_expsyms_cmds_GCJ \
17537     allow_undefined_flag_GCJ \
17538     no_undefined_flag_GCJ \
17539     export_symbols_cmds_GCJ \
17540     hardcode_libdir_flag_spec_GCJ \
17541     hardcode_libdir_flag_spec_ld_GCJ \
17542     hardcode_libdir_separator_GCJ \
17543     hardcode_automatic_GCJ \
17544     module_cmds_GCJ \
17545     module_expsym_cmds_GCJ \
17546     lt_cv_prog_compiler_c_o_GCJ \
17547     exclude_expsyms_GCJ \
17548     include_expsyms_GCJ; do
17549
17550     case $var in
17551     old_archive_cmds_GCJ | \
17552     old_archive_from_new_cmds_GCJ | \
17553     archive_cmds_GCJ | \
17554     archive_expsym_cmds_GCJ | \
17555     module_cmds_GCJ | \
17556     module_expsym_cmds_GCJ | \
17557     old_archive_from_expsyms_cmds_GCJ | \
17558     export_symbols_cmds_GCJ | \
17559     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17560     postinstall_cmds | postuninstall_cmds | \
17561     old_postinstall_cmds | old_postuninstall_cmds | \
17562     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17563       # Double-quote double-evaled strings.
17564       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17565       ;;
17566     *)
17567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17568       ;;
17569     esac
17570   done
17571
17572   case $lt_echo in
17573   *'\$0 --fallback-echo"')
17574     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17575     ;;
17576   esac
17577
17578 cfgfile="$ofile"
17579
17580   cat <<__EOF__ >> "$cfgfile"
17581 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17582
17583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17584
17585 # Shell to use when invoking shell scripts.
17586 SHELL=$lt_SHELL
17587
17588 # Whether or not to build shared libraries.
17589 build_libtool_libs=$enable_shared
17590
17591 # Whether or not to build static libraries.
17592 build_old_libs=$enable_static
17593
17594 # Whether or not to add -lc for building shared libraries.
17595 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17596
17597 # Whether or not to disallow shared libs when runtime libs are static
17598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17599
17600 # Whether or not to optimize for fast installation.
17601 fast_install=$enable_fast_install
17602
17603 # The host system.
17604 host_alias=$host_alias
17605 host=$host
17606 host_os=$host_os
17607
17608 # The build system.
17609 build_alias=$build_alias
17610 build=$build
17611 build_os=$build_os
17612
17613 # An echo program that does not interpret backslashes.
17614 echo=$lt_echo
17615
17616 # The archiver.
17617 AR=$lt_AR
17618 AR_FLAGS=$lt_AR_FLAGS
17619
17620 # A C compiler.
17621 LTCC=$lt_LTCC
17622
17623 # LTCC compiler flags.
17624 LTCFLAGS=$lt_LTCFLAGS
17625
17626 # A language-specific compiler.
17627 CC=$lt_compiler_GCJ
17628
17629 # Is the compiler the GNU C compiler?
17630 with_gcc=$GCC_GCJ
17631
17632 # An ERE matcher.
17633 EGREP=$lt_EGREP
17634
17635 # The linker used to build libraries.
17636 LD=$lt_LD_GCJ
17637
17638 # Whether we need hard or soft links.
17639 LN_S=$lt_LN_S
17640
17641 # A BSD-compatible nm program.
17642 NM=$lt_NM
17643
17644 # A symbol stripping program
17645 STRIP=$lt_STRIP
17646
17647 # Used to examine libraries when file_magic_cmd begins "file"
17648 MAGIC_CMD=$MAGIC_CMD
17649
17650 # Used on cygwin: DLL creation program.
17651 DLLTOOL="$DLLTOOL"
17652
17653 # Used on cygwin: object dumper.
17654 OBJDUMP="$OBJDUMP"
17655
17656 # Used on cygwin: assembler.
17657 AS="$AS"
17658
17659 # The name of the directory that contains temporary libtool files.
17660 objdir=$objdir
17661
17662 # How to create reloadable object files.
17663 reload_flag=$lt_reload_flag
17664 reload_cmds=$lt_reload_cmds
17665
17666 # How to pass a linker flag through the compiler.
17667 wl=$lt_lt_prog_compiler_wl_GCJ
17668
17669 # Object file suffix (normally "o").
17670 objext="$ac_objext"
17671
17672 # Old archive suffix (normally "a").
17673 libext="$libext"
17674
17675 # Shared library suffix (normally ".so").
17676 shrext_cmds='$shrext_cmds'
17677
17678 # Executable file suffix (normally "").
17679 exeext="$exeext"
17680
17681 # Additional compiler flags for building library objects.
17682 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17683 pic_mode=$pic_mode
17684
17685 # What is the maximum length of a command?
17686 max_cmd_len=$lt_cv_sys_max_cmd_len
17687
17688 # Does compiler simultaneously support -c and -o options?
17689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17690
17691 # Must we lock files when doing compilation?
17692 need_locks=$lt_need_locks
17693
17694 # Do we need the lib prefix for modules?
17695 need_lib_prefix=$need_lib_prefix
17696
17697 # Do we need a version for libraries?
17698 need_version=$need_version
17699
17700 # Whether dlopen is supported.
17701 dlopen_support=$enable_dlopen
17702
17703 # Whether dlopen of programs is supported.
17704 dlopen_self=$enable_dlopen_self
17705
17706 # Whether dlopen of statically linked programs is supported.
17707 dlopen_self_static=$enable_dlopen_self_static
17708
17709 # Compiler flag to prevent dynamic linking.
17710 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17711
17712 # Compiler flag to turn off builtin functions.
17713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17714
17715 # Compiler flag to allow reflexive dlopens.
17716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17717
17718 # Compiler flag to generate shared objects directly from archives.
17719 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17720
17721 # Compiler flag to generate thread-safe objects.
17722 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17723
17724 # Library versioning type.
17725 version_type=$version_type
17726
17727 # Format of library name prefix.
17728 libname_spec=$lt_libname_spec
17729
17730 # List of archive names.  First name is the real one, the rest are links.
17731 # The last name is the one that the linker finds with -lNAME.
17732 library_names_spec=$lt_library_names_spec
17733
17734 # The coded name of the library, if different from the real name.
17735 soname_spec=$lt_soname_spec
17736
17737 # Commands used to build and install an old-style archive.
17738 RANLIB=$lt_RANLIB
17739 old_archive_cmds=$lt_old_archive_cmds_GCJ
17740 old_postinstall_cmds=$lt_old_postinstall_cmds
17741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17742
17743 # Create an old-style archive from a shared archive.
17744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17745
17746 # Create a temporary old-style archive to link instead of a shared archive.
17747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17748
17749 # Commands used to build and install a shared archive.
17750 archive_cmds=$lt_archive_cmds_GCJ
17751 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17752 postinstall_cmds=$lt_postinstall_cmds
17753 postuninstall_cmds=$lt_postuninstall_cmds
17754
17755 # Commands used to build a loadable module (assumed same as above if empty)
17756 module_cmds=$lt_module_cmds_GCJ
17757 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17758
17759 # Commands to strip libraries.
17760 old_striplib=$lt_old_striplib
17761 striplib=$lt_striplib
17762
17763 # Dependencies to place before the objects being linked to create a
17764 # shared library.
17765 predep_objects=$lt_predep_objects_GCJ
17766
17767 # Dependencies to place after the objects being linked to create a
17768 # shared library.
17769 postdep_objects=$lt_postdep_objects_GCJ
17770
17771 # Dependencies to place before the objects being linked to create a
17772 # shared library.
17773 predeps=$lt_predeps_GCJ
17774
17775 # Dependencies to place after the objects being linked to create a
17776 # shared library.
17777 postdeps=$lt_postdeps_GCJ
17778
17779 # The library search path used internally by the compiler when linking
17780 # a shared library.
17781 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17782
17783 # Method to check whether dependent libraries are shared objects.
17784 deplibs_check_method=$lt_deplibs_check_method
17785
17786 # Command to use when deplibs_check_method == file_magic.
17787 file_magic_cmd=$lt_file_magic_cmd
17788
17789 # Flag that allows shared libraries with undefined symbols to be built.
17790 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17791
17792 # Flag that forces no undefined symbols.
17793 no_undefined_flag=$lt_no_undefined_flag_GCJ
17794
17795 # Commands used to finish a libtool library installation in a directory.
17796 finish_cmds=$lt_finish_cmds
17797
17798 # Same as above, but a single script fragment to be evaled but not shown.
17799 finish_eval=$lt_finish_eval
17800
17801 # Take the output of nm and produce a listing of raw symbols and C names.
17802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17803
17804 # Transform the output of nm in a proper C declaration
17805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17806
17807 # Transform the output of nm in a C name address pair
17808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17809
17810 # This is the shared library runtime path variable.
17811 runpath_var=$runpath_var
17812
17813 # This is the shared library path variable.
17814 shlibpath_var=$shlibpath_var
17815
17816 # Is shlibpath searched before the hard-coded library search path?
17817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17818
17819 # How to hardcode a shared library path into an executable.
17820 hardcode_action=$hardcode_action_GCJ
17821
17822 # Whether we should hardcode library paths into libraries.
17823 hardcode_into_libs=$hardcode_into_libs
17824
17825 # Flag to hardcode \$libdir into a binary during linking.
17826 # This must work even if \$libdir does not exist.
17827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17828
17829 # If ld is used when linking, flag to hardcode \$libdir into
17830 # a binary during linking. This must work even if \$libdir does
17831 # not exist.
17832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17833
17834 # Whether we need a single -rpath flag with a separated argument.
17835 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17836
17837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17838 # resulting binary.
17839 hardcode_direct=$hardcode_direct_GCJ
17840
17841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17842 # resulting binary.
17843 hardcode_minus_L=$hardcode_minus_L_GCJ
17844
17845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17846 # the resulting binary.
17847 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17848
17849 # Set to yes if building a shared library automatically hardcodes DIR into the library
17850 # and all subsequent libraries and executables linked against it.
17851 hardcode_automatic=$hardcode_automatic_GCJ
17852
17853 # Variables whose values should be saved in libtool wrapper scripts and
17854 # restored at relink time.
17855 variables_saved_for_relink="$variables_saved_for_relink"
17856
17857 # Whether libtool must link a program against all its dependency libraries.
17858 link_all_deplibs=$link_all_deplibs_GCJ
17859
17860 # Compile-time system search path for libraries
17861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17862
17863 # Run-time system search path for libraries
17864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17865
17866 # Fix the shell variable \$srcfile for the compiler.
17867 fix_srcfile_path="$fix_srcfile_path_GCJ"
17868
17869 # Set to yes if exported symbols are required.
17870 always_export_symbols=$always_export_symbols_GCJ
17871
17872 # The commands to list exported symbols.
17873 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17874
17875 # The commands to extract the exported symbol list from a shared archive.
17876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17877
17878 # Symbols that should not be listed in the preloaded symbols.
17879 exclude_expsyms=$lt_exclude_expsyms_GCJ
17880
17881 # Symbols that must always be exported.
17882 include_expsyms=$lt_include_expsyms_GCJ
17883
17884 # ### END LIBTOOL TAG CONFIG: $tagname
17885
17886 __EOF__
17887
17888
17889 else
17890   # If there is no Makefile yet, we rely on a make rule to execute
17891   # `config.status --recheck' to rerun these tests and create the
17892   # libtool script then.
17893   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17894   if test -f "$ltmain_in"; then
17895     test -f Makefile && make "$ltmain"
17896   fi
17897 fi
17898
17899
17900 ac_ext=c
17901 ac_cpp='$CPP $CPPFLAGS'
17902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17905
17906 CC="$lt_save_CC"
17907
17908         else
17909           tagname=""
17910         fi
17911         ;;
17912
17913       RC)
17914
17915
17916
17917 # Source file extension for RC test sources.
17918 ac_ext=rc
17919
17920 # Object file extension for compiled RC test sources.
17921 objext=o
17922 objext_RC=$objext
17923
17924 # Code to be used in simple compile tests
17925 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17926
17927 # Code to be used in simple link tests
17928 lt_simple_link_test_code="$lt_simple_compile_test_code"
17929
17930 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17931
17932 # If no C compiler was specified, use CC.
17933 LTCC=${LTCC-"$CC"}
17934
17935 # If no C compiler flags were specified, use CFLAGS.
17936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17937
17938 # Allow CC to be a program name with arguments.
17939 compiler=$CC
17940
17941
17942 # save warnings/boilerplate of simple test code
17943 ac_outfile=conftest.$ac_objext
17944 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17946 _lt_compiler_boilerplate=`cat conftest.err`
17947 $rm conftest*
17948
17949 ac_outfile=conftest.$ac_objext
17950 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17952 _lt_linker_boilerplate=`cat conftest.err`
17953 $rm conftest*
17954
17955
17956 # Allow CC to be a program name with arguments.
17957 lt_save_CC="$CC"
17958 CC=${RC-"windres"}
17959 compiler=$CC
17960 compiler_RC=$CC
17961 for cc_temp in $compiler""; do
17962   case $cc_temp in
17963     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17964     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17965     \-*) ;;
17966     *) break;;
17967   esac
17968 done
17969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17970
17971 lt_cv_prog_compiler_c_o_RC=yes
17972
17973 # The else clause should only fire when bootstrapping the
17974 # libtool distribution, otherwise you forgot to ship ltmain.sh
17975 # with your package, and you will get complaints that there are
17976 # no rules to generate ltmain.sh.
17977 if test -f "$ltmain"; then
17978   # See if we are running on zsh, and set the options which allow our commands through
17979   # without removal of \ escapes.
17980   if test -n "${ZSH_VERSION+set}" ; then
17981     setopt NO_GLOB_SUBST
17982   fi
17983   # Now quote all the things that may contain metacharacters while being
17984   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17985   # variables and quote the copies for generation of the libtool script.
17986   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17987     SED SHELL STRIP \
17988     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17989     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17990     deplibs_check_method reload_flag reload_cmds need_locks \
17991     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17992     lt_cv_sys_global_symbol_to_c_name_address \
17993     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17994     old_postinstall_cmds old_postuninstall_cmds \
17995     compiler_RC \
17996     CC_RC \
17997     LD_RC \
17998     lt_prog_compiler_wl_RC \
17999     lt_prog_compiler_pic_RC \
18000     lt_prog_compiler_static_RC \
18001     lt_prog_compiler_no_builtin_flag_RC \
18002     export_dynamic_flag_spec_RC \
18003     thread_safe_flag_spec_RC \
18004     whole_archive_flag_spec_RC \
18005     enable_shared_with_static_runtimes_RC \
18006     old_archive_cmds_RC \
18007     old_archive_from_new_cmds_RC \
18008     predep_objects_RC \
18009     postdep_objects_RC \
18010     predeps_RC \
18011     postdeps_RC \
18012     compiler_lib_search_path_RC \
18013     archive_cmds_RC \
18014     archive_expsym_cmds_RC \
18015     postinstall_cmds_RC \
18016     postuninstall_cmds_RC \
18017     old_archive_from_expsyms_cmds_RC \
18018     allow_undefined_flag_RC \
18019     no_undefined_flag_RC \
18020     export_symbols_cmds_RC \
18021     hardcode_libdir_flag_spec_RC \
18022     hardcode_libdir_flag_spec_ld_RC \
18023     hardcode_libdir_separator_RC \
18024     hardcode_automatic_RC \
18025     module_cmds_RC \
18026     module_expsym_cmds_RC \
18027     lt_cv_prog_compiler_c_o_RC \
18028     exclude_expsyms_RC \
18029     include_expsyms_RC; do
18030
18031     case $var in
18032     old_archive_cmds_RC | \
18033     old_archive_from_new_cmds_RC | \
18034     archive_cmds_RC | \
18035     archive_expsym_cmds_RC | \
18036     module_cmds_RC | \
18037     module_expsym_cmds_RC | \
18038     old_archive_from_expsyms_cmds_RC | \
18039     export_symbols_cmds_RC | \
18040     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18041     postinstall_cmds | postuninstall_cmds | \
18042     old_postinstall_cmds | old_postuninstall_cmds | \
18043     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18044       # Double-quote double-evaled strings.
18045       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18046       ;;
18047     *)
18048       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18049       ;;
18050     esac
18051   done
18052
18053   case $lt_echo in
18054   *'\$0 --fallback-echo"')
18055     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18056     ;;
18057   esac
18058
18059 cfgfile="$ofile"
18060
18061   cat <<__EOF__ >> "$cfgfile"
18062 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18063
18064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18065
18066 # Shell to use when invoking shell scripts.
18067 SHELL=$lt_SHELL
18068
18069 # Whether or not to build shared libraries.
18070 build_libtool_libs=$enable_shared
18071
18072 # Whether or not to build static libraries.
18073 build_old_libs=$enable_static
18074
18075 # Whether or not to add -lc for building shared libraries.
18076 build_libtool_need_lc=$archive_cmds_need_lc_RC
18077
18078 # Whether or not to disallow shared libs when runtime libs are static
18079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18080
18081 # Whether or not to optimize for fast installation.
18082 fast_install=$enable_fast_install
18083
18084 # The host system.
18085 host_alias=$host_alias
18086 host=$host
18087 host_os=$host_os
18088
18089 # The build system.
18090 build_alias=$build_alias
18091 build=$build
18092 build_os=$build_os
18093
18094 # An echo program that does not interpret backslashes.
18095 echo=$lt_echo
18096
18097 # The archiver.
18098 AR=$lt_AR
18099 AR_FLAGS=$lt_AR_FLAGS
18100
18101 # A C compiler.
18102 LTCC=$lt_LTCC
18103
18104 # LTCC compiler flags.
18105 LTCFLAGS=$lt_LTCFLAGS
18106
18107 # A language-specific compiler.
18108 CC=$lt_compiler_RC
18109
18110 # Is the compiler the GNU C compiler?
18111 with_gcc=$GCC_RC
18112
18113 # An ERE matcher.
18114 EGREP=$lt_EGREP
18115
18116 # The linker used to build libraries.
18117 LD=$lt_LD_RC
18118
18119 # Whether we need hard or soft links.
18120 LN_S=$lt_LN_S
18121
18122 # A BSD-compatible nm program.
18123 NM=$lt_NM
18124
18125 # A symbol stripping program
18126 STRIP=$lt_STRIP
18127
18128 # Used to examine libraries when file_magic_cmd begins "file"
18129 MAGIC_CMD=$MAGIC_CMD
18130
18131 # Used on cygwin: DLL creation program.
18132 DLLTOOL="$DLLTOOL"
18133
18134 # Used on cygwin: object dumper.
18135 OBJDUMP="$OBJDUMP"
18136
18137 # Used on cygwin: assembler.
18138 AS="$AS"
18139
18140 # The name of the directory that contains temporary libtool files.
18141 objdir=$objdir
18142
18143 # How to create reloadable object files.
18144 reload_flag=$lt_reload_flag
18145 reload_cmds=$lt_reload_cmds
18146
18147 # How to pass a linker flag through the compiler.
18148 wl=$lt_lt_prog_compiler_wl_RC
18149
18150 # Object file suffix (normally "o").
18151 objext="$ac_objext"
18152
18153 # Old archive suffix (normally "a").
18154 libext="$libext"
18155
18156 # Shared library suffix (normally ".so").
18157 shrext_cmds='$shrext_cmds'
18158
18159 # Executable file suffix (normally "").
18160 exeext="$exeext"
18161
18162 # Additional compiler flags for building library objects.
18163 pic_flag=$lt_lt_prog_compiler_pic_RC
18164 pic_mode=$pic_mode
18165
18166 # What is the maximum length of a command?
18167 max_cmd_len=$lt_cv_sys_max_cmd_len
18168
18169 # Does compiler simultaneously support -c and -o options?
18170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18171
18172 # Must we lock files when doing compilation?
18173 need_locks=$lt_need_locks
18174
18175 # Do we need the lib prefix for modules?
18176 need_lib_prefix=$need_lib_prefix
18177
18178 # Do we need a version for libraries?
18179 need_version=$need_version
18180
18181 # Whether dlopen is supported.
18182 dlopen_support=$enable_dlopen
18183
18184 # Whether dlopen of programs is supported.
18185 dlopen_self=$enable_dlopen_self
18186
18187 # Whether dlopen of statically linked programs is supported.
18188 dlopen_self_static=$enable_dlopen_self_static
18189
18190 # Compiler flag to prevent dynamic linking.
18191 link_static_flag=$lt_lt_prog_compiler_static_RC
18192
18193 # Compiler flag to turn off builtin functions.
18194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18195
18196 # Compiler flag to allow reflexive dlopens.
18197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18198
18199 # Compiler flag to generate shared objects directly from archives.
18200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18201
18202 # Compiler flag to generate thread-safe objects.
18203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18204
18205 # Library versioning type.
18206 version_type=$version_type
18207
18208 # Format of library name prefix.
18209 libname_spec=$lt_libname_spec
18210
18211 # List of archive names.  First name is the real one, the rest are links.
18212 # The last name is the one that the linker finds with -lNAME.
18213 library_names_spec=$lt_library_names_spec
18214
18215 # The coded name of the library, if different from the real name.
18216 soname_spec=$lt_soname_spec
18217
18218 # Commands used to build and install an old-style archive.
18219 RANLIB=$lt_RANLIB
18220 old_archive_cmds=$lt_old_archive_cmds_RC
18221 old_postinstall_cmds=$lt_old_postinstall_cmds
18222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18223
18224 # Create an old-style archive from a shared archive.
18225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18226
18227 # Create a temporary old-style archive to link instead of a shared archive.
18228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18229
18230 # Commands used to build and install a shared archive.
18231 archive_cmds=$lt_archive_cmds_RC
18232 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18233 postinstall_cmds=$lt_postinstall_cmds
18234 postuninstall_cmds=$lt_postuninstall_cmds
18235
18236 # Commands used to build a loadable module (assumed same as above if empty)
18237 module_cmds=$lt_module_cmds_RC
18238 module_expsym_cmds=$lt_module_expsym_cmds_RC
18239
18240 # Commands to strip libraries.
18241 old_striplib=$lt_old_striplib
18242 striplib=$lt_striplib
18243
18244 # Dependencies to place before the objects being linked to create a
18245 # shared library.
18246 predep_objects=$lt_predep_objects_RC
18247
18248 # Dependencies to place after the objects being linked to create a
18249 # shared library.
18250 postdep_objects=$lt_postdep_objects_RC
18251
18252 # Dependencies to place before the objects being linked to create a
18253 # shared library.
18254 predeps=$lt_predeps_RC
18255
18256 # Dependencies to place after the objects being linked to create a
18257 # shared library.
18258 postdeps=$lt_postdeps_RC
18259
18260 # The library search path used internally by the compiler when linking
18261 # a shared library.
18262 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18263
18264 # Method to check whether dependent libraries are shared objects.
18265 deplibs_check_method=$lt_deplibs_check_method
18266
18267 # Command to use when deplibs_check_method == file_magic.
18268 file_magic_cmd=$lt_file_magic_cmd
18269
18270 # Flag that allows shared libraries with undefined symbols to be built.
18271 allow_undefined_flag=$lt_allow_undefined_flag_RC
18272
18273 # Flag that forces no undefined symbols.
18274 no_undefined_flag=$lt_no_undefined_flag_RC
18275
18276 # Commands used to finish a libtool library installation in a directory.
18277 finish_cmds=$lt_finish_cmds
18278
18279 # Same as above, but a single script fragment to be evaled but not shown.
18280 finish_eval=$lt_finish_eval
18281
18282 # Take the output of nm and produce a listing of raw symbols and C names.
18283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18284
18285 # Transform the output of nm in a proper C declaration
18286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18287
18288 # Transform the output of nm in a C name address pair
18289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18290
18291 # This is the shared library runtime path variable.
18292 runpath_var=$runpath_var
18293
18294 # This is the shared library path variable.
18295 shlibpath_var=$shlibpath_var
18296
18297 # Is shlibpath searched before the hard-coded library search path?
18298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18299
18300 # How to hardcode a shared library path into an executable.
18301 hardcode_action=$hardcode_action_RC
18302
18303 # Whether we should hardcode library paths into libraries.
18304 hardcode_into_libs=$hardcode_into_libs
18305
18306 # Flag to hardcode \$libdir into a binary during linking.
18307 # This must work even if \$libdir does not exist.
18308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18309
18310 # If ld is used when linking, flag to hardcode \$libdir into
18311 # a binary during linking. This must work even if \$libdir does
18312 # not exist.
18313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18314
18315 # Whether we need a single -rpath flag with a separated argument.
18316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18317
18318 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18319 # resulting binary.
18320 hardcode_direct=$hardcode_direct_RC
18321
18322 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18323 # resulting binary.
18324 hardcode_minus_L=$hardcode_minus_L_RC
18325
18326 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18327 # the resulting binary.
18328 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18329
18330 # Set to yes if building a shared library automatically hardcodes DIR into the library
18331 # and all subsequent libraries and executables linked against it.
18332 hardcode_automatic=$hardcode_automatic_RC
18333
18334 # Variables whose values should be saved in libtool wrapper scripts and
18335 # restored at relink time.
18336 variables_saved_for_relink="$variables_saved_for_relink"
18337
18338 # Whether libtool must link a program against all its dependency libraries.
18339 link_all_deplibs=$link_all_deplibs_RC
18340
18341 # Compile-time system search path for libraries
18342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18343
18344 # Run-time system search path for libraries
18345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18346
18347 # Fix the shell variable \$srcfile for the compiler.
18348 fix_srcfile_path="$fix_srcfile_path_RC"
18349
18350 # Set to yes if exported symbols are required.
18351 always_export_symbols=$always_export_symbols_RC
18352
18353 # The commands to list exported symbols.
18354 export_symbols_cmds=$lt_export_symbols_cmds_RC
18355
18356 # The commands to extract the exported symbol list from a shared archive.
18357 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18358
18359 # Symbols that should not be listed in the preloaded symbols.
18360 exclude_expsyms=$lt_exclude_expsyms_RC
18361
18362 # Symbols that must always be exported.
18363 include_expsyms=$lt_include_expsyms_RC
18364
18365 # ### END LIBTOOL TAG CONFIG: $tagname
18366
18367 __EOF__
18368
18369
18370 else
18371   # If there is no Makefile yet, we rely on a make rule to execute
18372   # `config.status --recheck' to rerun these tests and create the
18373   # libtool script then.
18374   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18375   if test -f "$ltmain_in"; then
18376     test -f Makefile && make "$ltmain"
18377   fi
18378 fi
18379
18380
18381 ac_ext=c
18382 ac_cpp='$CPP $CPPFLAGS'
18383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18386
18387 CC="$lt_save_CC"
18388
18389         ;;
18390
18391       *)
18392         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18393 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18394    { (exit 1); exit 1; }; }
18395         ;;
18396       esac
18397
18398       # Append the new tag name to the list of available tags.
18399       if test -n "$tagname" ; then
18400       available_tags="$available_tags $tagname"
18401     fi
18402     fi
18403   done
18404   IFS="$lt_save_ifs"
18405
18406   # Now substitute the updated list of available tags.
18407   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18408     mv "${ofile}T" "$ofile"
18409     chmod +x "$ofile"
18410   else
18411     rm -f "${ofile}T"
18412     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18413 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18414    { (exit 1); exit 1; }; }
18415   fi
18416 fi
18417
18418
18419
18420 # This can be used to rebuild libtool when needed
18421 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18422
18423 # Always use our own libtool.
18424 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18425
18426 # Prevent multiple expansion
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439 # Check whether --with-system-libtool or --without-system-libtool was given.
18440 if test "${with_system_libtool+set}" = set; then
18441   withval="$with_system_libtool"
18442    # Extract the first word of "libtool", so it can be a program name with args.
18443 set dummy libtool; ac_word=$2
18444 echo "$as_me:$LINENO: checking for $ac_word" >&5
18445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18446 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   case $LIBTOOL in
18450   [\\/]* | ?:[\\/]*)
18451   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18452   ;;
18453   *)
18454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455 as_dummy="$PATH:/usr/local/bin"
18456 for as_dir in $as_dummy
18457 do
18458   IFS=$as_save_IFS
18459   test -z "$as_dir" && as_dir=.
18460   for ac_exec_ext in '' $ac_executable_extensions; do
18461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18462     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18464     break 2
18465   fi
18466 done
18467 done
18468
18469   ;;
18470 esac
18471 fi
18472 LIBTOOL=$ac_cv_path_LIBTOOL
18473
18474 if test -n "$LIBTOOL"; then
18475   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18476 echo "${ECHO_T}$LIBTOOL" >&6
18477 else
18478   echo "$as_me:$LINENO: result: no" >&5
18479 echo "${ECHO_T}no" >&6
18480 fi
18481
18482 else
18483
18484   LIBTOOL="`pwd`/libtool"
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499 fi;
18500
18501
18502
18503 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18504 if test "${enable_strict_dependencies+set}" = set; then
18505   enableval="$enable_strict_dependencies"
18506
18507 fi;
18508
18509 docdir='${datadir}/doc/freeradius'
18510 echo "$as_me:$LINENO: checking docdir" >&5
18511 echo $ECHO_N "checking docdir... $ECHO_C" >&6
18512
18513 # Check whether --with-docdir or --without-docdir was given.
18514 if test "${with_docdir+set}" = set; then
18515   withval="$with_docdir"
18516    case "$withval" in
18517     no)
18518         { { echo "$as_me:$LINENO: error: Need docdir" >&5
18519 echo "$as_me: error: Need docdir" >&2;}
18520    { (exit 1); exit 1; }; }
18521         ;;
18522     yes)
18523         ;;
18524     [\\/$]* | ?:[\\/]* )
18525         docdir="$withval"
18526         ;;
18527     *)
18528         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
18529 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
18530    { (exit 1); exit 1; }; }
18531         ;;
18532   esac
18533
18534 fi;
18535
18536 echo "$as_me:$LINENO: result: $docdir" >&5
18537 echo "${ECHO_T}$docdir" >&6
18538
18539 logdir='${localstatedir}/log/radius'
18540 echo "$as_me:$LINENO: checking logdir" >&5
18541 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18542
18543 # Check whether --with-logdir or --without-logdir was given.
18544 if test "${with_logdir+set}" = set; then
18545   withval="$with_logdir"
18546    case "$withval" in
18547     no)
18548         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18549 echo "$as_me: error: Need logdir" >&2;}
18550    { (exit 1); exit 1; }; }
18551         ;;
18552     yes)
18553         ;;
18554     [\\/$]* | ?:[\\/]* )
18555         logdir="$withval"
18556         ;;
18557     *)
18558         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
18559 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
18560    { (exit 1); exit 1; }; }
18561         ;;
18562   esac
18563
18564 fi;
18565
18566 echo "$as_me:$LINENO: result: $logdir" >&5
18567 echo "${ECHO_T}$logdir" >&6
18568
18569 radacctdir='${logdir}/radacct'
18570 echo "$as_me:$LINENO: checking radacctdir" >&5
18571 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18572
18573 # Check whether --with-radacctdir or --without-radacctdir was given.
18574 if test "${with_radacctdir+set}" = set; then
18575   withval="$with_radacctdir"
18576    case "$withval" in
18577     no)
18578         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18579 echo "$as_me: error: Need radacctdir" >&2;}
18580    { (exit 1); exit 1; }; }
18581         ;;
18582     yes)
18583         ;;
18584     [\\/$]* | ?:[\\/]* )
18585         radacctdir="$withval"
18586         ;;
18587     *)
18588         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
18589 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
18590    { (exit 1); exit 1; }; }
18591         ;;
18592   esac
18593
18594 fi;
18595
18596 echo "$as_me:$LINENO: result: $radacctdir" >&5
18597 echo "${ECHO_T}$radacctdir" >&6
18598
18599 raddbdir='${sysconfdir}/raddb'
18600 echo "$as_me:$LINENO: checking raddbdir" >&5
18601 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18602
18603 # Check whether --with-raddbdir or --without-raddbdir was given.
18604 if test "${with_raddbdir+set}" = set; then
18605   withval="$with_raddbdir"
18606    case "$withval" in
18607     no)
18608         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18609 echo "$as_me: error: Need raddbdir" >&2;}
18610    { (exit 1); exit 1; }; }
18611         ;;
18612     yes)
18613         ;;
18614     [\\/$]* | ?:[\\/]* )
18615         raddbdir="$withval"
18616         ;;
18617     *)
18618         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
18619 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
18620    { (exit 1); exit 1; }; }
18621         ;;
18622   esac
18623
18624 fi;
18625
18626 echo "$as_me:$LINENO: result: $raddbdir" >&5
18627 echo "${ECHO_T}$raddbdir" >&6
18628
18629 ASCEND_BINARY=yes
18630
18631 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18632 if test "${with_ascend_binary+set}" = set; then
18633   withval="$with_ascend_binary"
18634    case "$withval" in
18635     yes)
18636         ;;
18637     *)
18638         ASCEND_BINARY=""
18639   esac
18640
18641 fi;
18642 if test "X$ASCEND_BINARY" = "Xyes"; then
18643   cat >>confdefs.h <<\_ACEOF
18644 #define ASCEND_BINARY 1
18645 _ACEOF
18646
18647 fi
18648
18649 WITH_THREADS=yes
18650
18651 # Check whether --with-threads or --without-threads was given.
18652 if test "${with_threads+set}" = set; then
18653   withval="$with_threads"
18654    case "$withval" in
18655     yes)
18656         ;;
18657     *)
18658         WITH_THREADS=""
18659   esac
18660
18661 fi;
18662
18663 WITH_SNMP=yes
18664
18665 # Check whether --with-snmp or --without-snmp was given.
18666 if test "${with_snmp+set}" = set; then
18667   withval="$with_snmp"
18668    case "$withval" in
18669     yes)
18670         ;;
18671     *)
18672         WITH_SNMP=no
18673   esac
18674
18675 fi;
18676
18677 rad_enable_largefiles=no
18678
18679 # Check whether --with-large-files or --without-large-files was given.
18680 if test "${with_large_files+set}" = set; then
18681   withval="$with_large_files"
18682    case "$withval" in
18683     yes)
18684         rad_enable_largefiles=yes
18685         ;;
18686     *)
18687         ;;
18688   esac
18689
18690 fi;
18691
18692
18693 STATIC_MODULES=
18694
18695 # Check whether --with-static_modules or --without-static_modules was given.
18696 if test "${with_static_modules+set}" = set; then
18697   withval="$with_static_modules"
18698
18699   for i in $withval; do
18700     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18701   done
18702
18703 fi;
18704
18705 MODULES=
18706
18707 # Check whether --with-modules or --without-modules was given.
18708 if test "${with_modules+set}" = set; then
18709   withval="$with_modules"
18710
18711  for i in $withval; do
18712    MODULES="$MODULES $i"
18713  done
18714
18715 fi;
18716
18717 # Check whether --enable-developer or --disable-developer was given.
18718 if test "${enable_developer+set}" = set; then
18719   enableval="$enable_developer"
18720    case "$enableval" in
18721     no)
18722         developer=no
18723         ;;
18724     *)
18725         developer=yes
18726   esac
18727
18728 fi;
18729
18730 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18731     developer="yes"
18732 fi
18733
18734 EXPERIMENTAL=
18735
18736 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18737 if test "${with_experimental_modules+set}" = set; then
18738   withval="$with_experimental_modules"
18739    case "$withval" in
18740     yes)
18741         EXPERIMENTAL=yes
18742         ;;
18743     *)
18744   esac
18745
18746 fi;
18747
18748 OPENSSL_INCLUDE_DIR=
18749
18750 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18751 if test "${with_openssl_includes+set}" = set; then
18752   withval="$with_openssl_includes"
18753    case "$withval" in
18754     *) OPENSSL_INCLUDE_DIR="$withval"
18755         ;;
18756   esac
18757
18758 fi;
18759
18760 OPENSSL_LIB_DIR=
18761
18762 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18763 if test "${with_openssl_libraries+set}" = set; then
18764   withval="$with_openssl_libraries"
18765    case "$withval" in
18766     *) OPENSSL_LIB_DIR="$withval"
18767         ;;
18768   esac
18769
18770 fi;
18771
18772
18773
18774 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18775 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18776   withval="$with_rlm_FOO_lib_dir"
18777    case "$withval" in
18778     *)
18779         ;;
18780   esac
18781
18782 fi;
18783
18784
18785 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18786 if test "${with_rlm_FOO_include_dir+set}" = set; then
18787   withval="$with_rlm_FOO_include_dir"
18788    case "$withval" in
18789     *)
18790         ;;
18791   esac
18792
18793 fi;
18794
18795
18796 WITH_UDPFROMTO=no
18797
18798 # Check whether --with-udpfromto or --without-udpfromto was given.
18799 if test "${with_udpfromto+set}" = set; then
18800   withval="$with_udpfromto"
18801    case "$withval" in
18802     yes)
18803         WITH_UDPFROMTO=yes
18804         ;;
18805     *)
18806         WITH_UDPFROMTO=no
18807   esac
18808
18809 fi;
18810
18811 if test "x$WITH_UDPFROMTO" = "xyes"; then
18812         cat >>confdefs.h <<\_ACEOF
18813 #define WITH_UDPFROMTO 1
18814 _ACEOF
18815
18816 fi
18817
18818
18819 # Check whether --with-edir or --without-edir was given.
18820 if test "${with_edir+set}" = set; then
18821   withval="$with_edir"
18822
18823 fi;
18824
18825
18826 CHECKRAD=checkrad.pl
18827 # Extract the first word of "perl", so it can be a program name with args.
18828 set dummy perl; ac_word=$2
18829 echo "$as_me:$LINENO: checking for $ac_word" >&5
18830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18831 if test "${ac_cv_path_PERL+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   case $PERL in
18835   [\\/]* | ?:[\\/]*)
18836   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18837   ;;
18838   *)
18839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18840 for as_dir in $PATH
18841 do
18842   IFS=$as_save_IFS
18843   test -z "$as_dir" && as_dir=.
18844   for ac_exec_ext in '' $ac_executable_extensions; do
18845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18846     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18848     break 2
18849   fi
18850 done
18851 done
18852
18853   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18854   ;;
18855 esac
18856 fi
18857 PERL=$ac_cv_path_PERL
18858
18859 if test -n "$PERL"; then
18860   echo "$as_me:$LINENO: result: $PERL" >&5
18861 echo "${ECHO_T}$PERL" >&6
18862 else
18863   echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6
18865 fi
18866
18867 if test "x$ac_cv_path_PERL" = "x"; then
18868   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18869 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18870 fi
18871 # Extract the first word of "snmpget", so it can be a program name with args.
18872 set dummy snmpget; ac_word=$2
18873 echo "$as_me:$LINENO: checking for $ac_word" >&5
18874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18875 if test "${ac_cv_path_SNMPGET+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   case $SNMPGET in
18879   [\\/]* | ?:[\\/]*)
18880   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18881   ;;
18882   *)
18883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18885 do
18886   IFS=$as_save_IFS
18887   test -z "$as_dir" && as_dir=.
18888   for ac_exec_ext in '' $ac_executable_extensions; do
18889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892     break 2
18893   fi
18894 done
18895 done
18896
18897   ;;
18898 esac
18899 fi
18900 SNMPGET=$ac_cv_path_SNMPGET
18901
18902 if test -n "$SNMPGET"; then
18903   echo "$as_me:$LINENO: result: $SNMPGET" >&5
18904 echo "${ECHO_T}$SNMPGET" >&6
18905 else
18906   echo "$as_me:$LINENO: result: no" >&5
18907 echo "${ECHO_T}no" >&6
18908 fi
18909
18910 if test "x$ac_cv_path_SNMPGET" = "x"; then
18911   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18912 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18913 fi
18914
18915 # Extract the first word of "snmpwalk", so it can be a program name with args.
18916 set dummy snmpwalk; ac_word=$2
18917 echo "$as_me:$LINENO: checking for $ac_word" >&5
18918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18919 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18920   echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922   case $SNMPWALK in
18923   [\\/]* | ?:[\\/]*)
18924   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18925   ;;
18926   *)
18927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18928 for as_dir in $PATH
18929 do
18930   IFS=$as_save_IFS
18931   test -z "$as_dir" && as_dir=.
18932   for ac_exec_ext in '' $ac_executable_extensions; do
18933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18934     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18936     break 2
18937   fi
18938 done
18939 done
18940
18941   ;;
18942 esac
18943 fi
18944 SNMPWALK=$ac_cv_path_SNMPWALK
18945
18946 if test -n "$SNMPWALK"; then
18947   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18948 echo "${ECHO_T}$SNMPWALK" >&6
18949 else
18950   echo "$as_me:$LINENO: result: no" >&5
18951 echo "${ECHO_T}no" >&6
18952 fi
18953
18954 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18955   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18956 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18957 fi
18958
18959 # Extract the first word of "rusers", so it can be a program name with args.
18960 set dummy rusers; ac_word=$2
18961 echo "$as_me:$LINENO: checking for $ac_word" >&5
18962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18963 if test "${ac_cv_path_RUSERS+set}" = set; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   case $RUSERS in
18967   [\\/]* | ?:[\\/]*)
18968   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18969   ;;
18970   *)
18971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972 for as_dir in $PATH
18973 do
18974   IFS=$as_save_IFS
18975   test -z "$as_dir" && as_dir=.
18976   for ac_exec_ext in '' $ac_executable_extensions; do
18977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18980     break 2
18981   fi
18982 done
18983 done
18984
18985   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18986   ;;
18987 esac
18988 fi
18989 RUSERS=$ac_cv_path_RUSERS
18990
18991 if test -n "$RUSERS"; then
18992   echo "$as_me:$LINENO: result: $RUSERS" >&5
18993 echo "${ECHO_T}$RUSERS" >&6
18994 else
18995   echo "$as_me:$LINENO: result: no" >&5
18996 echo "${ECHO_T}no" >&6
18997 fi
18998
18999
19000 missing_dir=`cd $ac_aux_dir && pwd`
19001 echo "$as_me:$LINENO: checking for working aclocal" >&5
19002 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19003 # Run test in a subshell; some versions of sh will print an error if
19004 # an executable is not found, even if stderr is redirected.
19005 # Redirect stdin to placate older versions of autoconf.  Sigh.
19006 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19007    ACLOCAL=aclocal
19008    echo "$as_me:$LINENO: result: found" >&5
19009 echo "${ECHO_T}found" >&6
19010 else
19011    ACLOCAL="$missing_dir/missing aclocal"
19012    echo "$as_me:$LINENO: result: missing" >&5
19013 echo "${ECHO_T}missing" >&6
19014 fi
19015
19016 echo "$as_me:$LINENO: checking for working autoconf" >&5
19017 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19018 # Run test in a subshell; some versions of sh will print an error if
19019 # an executable is not found, even if stderr is redirected.
19020 # Redirect stdin to placate older versions of autoconf.  Sigh.
19021 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19022    AUTOCONF=autoconf
19023    echo "$as_me:$LINENO: result: found" >&5
19024 echo "${ECHO_T}found" >&6
19025 else
19026    AUTOCONF="$missing_dir/missing autoconf"
19027    echo "$as_me:$LINENO: result: missing" >&5
19028 echo "${ECHO_T}missing" >&6
19029 fi
19030
19031 echo "$as_me:$LINENO: checking for working autoheader" >&5
19032 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19033 # Run test in a subshell; some versions of sh will print an error if
19034 # an executable is not found, even if stderr is redirected.
19035 # Redirect stdin to placate older versions of autoconf.  Sigh.
19036 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19037    AUTOHEADER=autoheader
19038    echo "$as_me:$LINENO: result: found" >&5
19039 echo "${ECHO_T}found" >&6
19040 else
19041    AUTOHEADER="$missing_dir/missing autoheader"
19042    echo "$as_me:$LINENO: result: missing" >&5
19043 echo "${ECHO_T}missing" >&6
19044 fi
19045
19046
19047 # Extract the first word of "locate", so it can be a program name with args.
19048 set dummy locate; ac_word=$2
19049 echo "$as_me:$LINENO: checking for $ac_word" >&5
19050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19051 if test "${ac_cv_path_LOCATE+set}" = set; then
19052   echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054   case $LOCATE in
19055   [\\/]* | ?:[\\/]*)
19056   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19057   ;;
19058   *)
19059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19060 for as_dir in $PATH
19061 do
19062   IFS=$as_save_IFS
19063   test -z "$as_dir" && as_dir=.
19064   for ac_exec_ext in '' $ac_executable_extensions; do
19065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19066     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19068     break 2
19069   fi
19070 done
19071 done
19072
19073   ;;
19074 esac
19075 fi
19076 LOCATE=$ac_cv_path_LOCATE
19077
19078 if test -n "$LOCATE"; then
19079   echo "$as_me:$LINENO: result: $LOCATE" >&5
19080 echo "${ECHO_T}$LOCATE" >&6
19081 else
19082   echo "$as_me:$LINENO: result: no" >&5
19083 echo "${ECHO_T}no" >&6
19084 fi
19085
19086 # Extract the first word of "dirname", so it can be a program name with args.
19087 set dummy dirname; ac_word=$2
19088 echo "$as_me:$LINENO: checking for $ac_word" >&5
19089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19090 if test "${ac_cv_path_DIRNAME+set}" = set; then
19091   echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093   case $DIRNAME in
19094   [\\/]* | ?:[\\/]*)
19095   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19096   ;;
19097   *)
19098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099 for as_dir in $PATH
19100 do
19101   IFS=$as_save_IFS
19102   test -z "$as_dir" && as_dir=.
19103   for ac_exec_ext in '' $ac_executable_extensions; do
19104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19107     break 2
19108   fi
19109 done
19110 done
19111
19112   ;;
19113 esac
19114 fi
19115 DIRNAME=$ac_cv_path_DIRNAME
19116
19117 if test -n "$DIRNAME"; then
19118   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19119 echo "${ECHO_T}$DIRNAME" >&6
19120 else
19121   echo "$as_me:$LINENO: result: no" >&5
19122 echo "${ECHO_T}no" >&6
19123 fi
19124
19125 # Extract the first word of "grep", so it can be a program name with args.
19126 set dummy grep; ac_word=$2
19127 echo "$as_me:$LINENO: checking for $ac_word" >&5
19128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19129 if test "${ac_cv_path_GREP+set}" = set; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   case $GREP in
19133   [\\/]* | ?:[\\/]*)
19134   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19135   ;;
19136   *)
19137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19139 do
19140   IFS=$as_save_IFS
19141   test -z "$as_dir" && as_dir=.
19142   for ac_exec_ext in '' $ac_executable_extensions; do
19143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19144     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19146     break 2
19147   fi
19148 done
19149 done
19150
19151   ;;
19152 esac
19153 fi
19154 GREP=$ac_cv_path_GREP
19155
19156 if test -n "$GREP"; then
19157   echo "$as_me:$LINENO: result: $GREP" >&5
19158 echo "${ECHO_T}$GREP" >&6
19159 else
19160   echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6
19162 fi
19163
19164
19165
19166 old_CFLAGS=$CFLAGS
19167 if test "x$WITH_THREADS" = "xyes"; then
19168   if test $ac_cv_prog_suncc = "yes"; then
19169     CFLAGS="$CFLAGS -mt"
19170   fi
19171
19172
19173 for ac_header in pthread.h
19174 do
19175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19177   echo "$as_me:$LINENO: checking for $ac_header" >&5
19178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19180   echo $ECHO_N "(cached) $ECHO_C" >&6
19181 fi
19182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19184 else
19185   # Is the header compilable?
19186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194 $ac_includes_default
19195 #include <$ac_header>
19196 _ACEOF
19197 rm -f conftest.$ac_objext
19198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19199   (eval $ac_compile) 2>conftest.er1
19200   ac_status=$?
19201   grep -v '^ *+' conftest.er1 >conftest.err
19202   rm -f conftest.er1
19203   cat conftest.err >&5
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); } &&
19206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208   (eval $ac_try) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; } &&
19212          { ac_try='test -s conftest.$ac_objext'
19213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214   (eval $ac_try) 2>&5
19215   ac_status=$?
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); }; }; then
19218   ac_header_compiler=yes
19219 else
19220   echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223 ac_header_compiler=no
19224 fi
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19227 echo "${ECHO_T}$ac_header_compiler" >&6
19228
19229 # Is the header present?
19230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h.  */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h.  */
19238 #include <$ac_header>
19239 _ACEOF
19240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } >/dev/null; then
19248   if test -s conftest.err; then
19249     ac_cpp_err=$ac_c_preproc_warn_flag
19250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19251   else
19252     ac_cpp_err=
19253   fi
19254 else
19255   ac_cpp_err=yes
19256 fi
19257 if test -z "$ac_cpp_err"; then
19258   ac_header_preproc=yes
19259 else
19260   echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19262
19263   ac_header_preproc=no
19264 fi
19265 rm -f conftest.err conftest.$ac_ext
19266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19267 echo "${ECHO_T}$ac_header_preproc" >&6
19268
19269 # So?  What about this header?
19270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19271   yes:no: )
19272     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19276     ac_header_preproc=yes
19277     ;;
19278   no:yes:* )
19279     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19281     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19282 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19283     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19285     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19286 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19291     (
19292       cat <<\_ASBOX
19293 ## ------------------------------------------ ##
19294 ## Report this to the AC_PACKAGE_NAME lists.  ##
19295 ## ------------------------------------------ ##
19296 _ASBOX
19297     ) |
19298       sed "s/^/$as_me: WARNING:     /" >&2
19299     ;;
19300 esac
19301 echo "$as_me:$LINENO: checking for $ac_header" >&5
19302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   eval "$as_ac_Header=\$ac_header_preproc"
19307 fi
19308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19310
19311 fi
19312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19313   cat >>confdefs.h <<_ACEOF
19314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19315 _ACEOF
19316
19317 else
19318    WITH_THREADS="no"
19319 fi
19320
19321 done
19322
19323
19324   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19325 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19326 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329   ac_check_lib_save_LIBS=$LIBS
19330 LIBS="-lpthread  $LIBS"
19331 cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337
19338 /* Override any gcc2 internal prototype to avoid an error.  */
19339 #ifdef __cplusplus
19340 extern "C"
19341 #endif
19342 /* We use char because int might match the return type of a gcc2
19343    builtin and then its argument prototype would still apply.  */
19344 char pthread_create ();
19345 int
19346 main ()
19347 {
19348 pthread_create ();
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355   (eval $ac_link) 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } &&
19362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; } &&
19368          { ac_try='test -s conftest$ac_exeext'
19369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370   (eval $ac_try) 2>&5
19371   ac_status=$?
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); }; }; then
19374   ac_cv_lib_pthread_pthread_create=yes
19375 else
19376   echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_cv_lib_pthread_pthread_create=no
19380 fi
19381 rm -f conftest.err conftest.$ac_objext \
19382       conftest$ac_exeext conftest.$ac_ext
19383 LIBS=$ac_check_lib_save_LIBS
19384 fi
19385 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19386 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19387 if test $ac_cv_lib_pthread_pthread_create = yes; then
19388    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19389                   LIBS="$LIBS -lpthread"
19390 else
19391   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19392 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19393 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lc_r  $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404
19405 /* Override any gcc2 internal prototype to avoid an error.  */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 /* We use char because int might match the return type of a gcc2
19410    builtin and then its argument prototype would still apply.  */
19411 char pthread_create ();
19412 int
19413 main ()
19414 {
19415 pthread_create ();
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422   (eval $ac_link) 2>conftest.er1
19423   ac_status=$?
19424   grep -v '^ *+' conftest.er1 >conftest.err
19425   rm -f conftest.er1
19426   cat conftest.err >&5
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } &&
19429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; } &&
19435          { ac_try='test -s conftest$ac_exeext'
19436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437   (eval $ac_try) 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_cv_lib_c_r_pthread_create=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_cv_lib_c_r_pthread_create=no
19447 fi
19448 rm -f conftest.err conftest.$ac_objext \
19449       conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19451 fi
19452 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19453 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19454 if test $ac_cv_lib_c_r_pthread_create = yes; then
19455    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19456 else
19457    WITH_THREADS="no"
19458
19459 fi
19460
19461
19462 fi
19463
19464 fi
19465
19466 if test "x$WITH_THREADS" != "xyes"; then
19467   CFLAGS=$old_CFLAGS
19468   ac_cv_header_pthread_h="no"
19469   WITH_THREADS=no
19470 else
19471
19472   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19473 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19474 if test "${ac_cv_search_sem_init+set}" = set; then
19475   echo $ECHO_N "(cached) $ECHO_C" >&6
19476 else
19477   ac_func_search_save_LIBS=$LIBS
19478 ac_cv_search_sem_init=no
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485
19486 /* Override any gcc2 internal prototype to avoid an error.  */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 /* We use char because int might match the return type of a gcc2
19491    builtin and then its argument prototype would still apply.  */
19492 char sem_init ();
19493 int
19494 main ()
19495 {
19496 sem_init ();
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503   (eval $ac_link) 2>conftest.er1
19504   ac_status=$?
19505   grep -v '^ *+' conftest.er1 >conftest.err
19506   rm -f conftest.er1
19507   cat conftest.err >&5
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); } &&
19510          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512   (eval $ac_try) 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; } &&
19516          { ac_try='test -s conftest$ac_exeext'
19517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518   (eval $ac_try) 2>&5
19519   ac_status=$?
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); }; }; then
19522   ac_cv_search_sem_init="none required"
19523 else
19524   echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 fi
19528 rm -f conftest.err conftest.$ac_objext \
19529       conftest$ac_exeext conftest.$ac_ext
19530 if test "$ac_cv_search_sem_init" = no; then
19531   for ac_lib in pthread sem posix4 rt; do
19532     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19533     cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539
19540 /* Override any gcc2 internal prototype to avoid an error.  */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 /* We use char because int might match the return type of a gcc2
19545    builtin and then its argument prototype would still apply.  */
19546 char sem_init ();
19547 int
19548 main ()
19549 {
19550 sem_init ();
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19557   (eval $ac_link) 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } &&
19564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566   (eval $ac_try) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; } &&
19570          { ac_try='test -s conftest$ac_exeext'
19571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572   (eval $ac_try) 2>&5
19573   ac_status=$?
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); }; }; then
19576   ac_cv_search_sem_init="-l$ac_lib"
19577 break
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 fi
19583 rm -f conftest.err conftest.$ac_objext \
19584       conftest$ac_exeext conftest.$ac_ext
19585   done
19586 fi
19587 LIBS=$ac_func_search_save_LIBS
19588 fi
19589 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19590 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19591 if test "$ac_cv_search_sem_init" != no; then
19592   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19593
19594 else
19595   { { 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
19596 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;}
19597    { (exit 1); exit 1; }; }
19598
19599 fi
19600
19601 fi
19602
19603
19604 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19605 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19606 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19607   echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609   ac_check_lib_save_LIBS=$LIBS
19610 LIBS="-lsocket  $LIBS"
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617
19618 /* Override any gcc2 internal prototype to avoid an error.  */
19619 #ifdef __cplusplus
19620 extern "C"
19621 #endif
19622 /* We use char because int might match the return type of a gcc2
19623    builtin and then its argument prototype would still apply.  */
19624 char getsockname ();
19625 int
19626 main ()
19627 {
19628 getsockname ();
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 rm -f conftest.$ac_objext conftest$ac_exeext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635   (eval $ac_link) 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } &&
19642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
19648          { ac_try='test -s conftest$ac_exeext'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; }; then
19654   ac_cv_lib_socket_getsockname=yes
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 ac_cv_lib_socket_getsockname=no
19660 fi
19661 rm -f conftest.err conftest.$ac_objext \
19662       conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19664 fi
19665 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19666 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19667 if test $ac_cv_lib_socket_getsockname = yes; then
19668   cat >>confdefs.h <<_ACEOF
19669 #define HAVE_LIBSOCKET 1
19670 _ACEOF
19671
19672   LIBS="-lsocket $LIBS"
19673
19674 fi
19675
19676
19677
19678 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19679 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19680 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19681   echo $ECHO_N "(cached) $ECHO_C" >&6
19682 else
19683   ac_check_lib_save_LIBS=$LIBS
19684 LIBS="-lresolv  $LIBS"
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691
19692 /* Override any gcc2 internal prototype to avoid an error.  */
19693 #ifdef __cplusplus
19694 extern "C"
19695 #endif
19696 /* We use char because int might match the return type of a gcc2
19697    builtin and then its argument prototype would still apply.  */
19698 char inet_aton ();
19699 int
19700 main ()
19701 {
19702 inet_aton ();
19703   ;
19704   return 0;
19705 }
19706 _ACEOF
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19709   (eval $ac_link) 2>conftest.er1
19710   ac_status=$?
19711   grep -v '^ *+' conftest.er1 >conftest.err
19712   rm -f conftest.er1
19713   cat conftest.err >&5
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } &&
19716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718   (eval $ac_try) 2>&5
19719   ac_status=$?
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); }; } &&
19722          { ac_try='test -s conftest$ac_exeext'
19723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724   (eval $ac_try) 2>&5
19725   ac_status=$?
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); }; }; then
19728   ac_cv_lib_resolv_inet_aton=yes
19729 else
19730   echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19732
19733 ac_cv_lib_resolv_inet_aton=no
19734 fi
19735 rm -f conftest.err conftest.$ac_objext \
19736       conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_check_lib_save_LIBS
19738 fi
19739 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19740 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19741 if test $ac_cv_lib_resolv_inet_aton = yes; then
19742   cat >>confdefs.h <<_ACEOF
19743 #define HAVE_LIBRESOLV 1
19744 _ACEOF
19745
19746   LIBS="-lresolv $LIBS"
19747
19748 fi
19749
19750
19751
19752 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19753 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19754 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757   ac_check_lib_save_LIBS=$LIBS
19758 LIBS="-lnsl  $LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h.  */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h.  */
19765
19766 /* Override any gcc2 internal prototype to avoid an error.  */
19767 #ifdef __cplusplus
19768 extern "C"
19769 #endif
19770 /* We use char because int might match the return type of a gcc2
19771    builtin and then its argument prototype would still apply.  */
19772 char inet_ntoa ();
19773 int
19774 main ()
19775 {
19776 inet_ntoa ();
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783   (eval $ac_link) 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } &&
19790          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792   (eval $ac_try) 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; } &&
19796          { ac_try='test -s conftest$ac_exeext'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   ac_cv_lib_nsl_inet_ntoa=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807 ac_cv_lib_nsl_inet_ntoa=no
19808 fi
19809 rm -f conftest.err conftest.$ac_objext \
19810       conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19812 fi
19813 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19814 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19815 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19816   cat >>confdefs.h <<_ACEOF
19817 #define HAVE_LIBNSL 1
19818 _ACEOF
19819
19820   LIBS="-lnsl $LIBS"
19821
19822 fi
19823
19824
19825 OPENSSL_LIBS=
19826 old_LIBS=$LIBS
19827 if test "x$OPENSSL_LIB_DIR" != "x"; then
19828     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
19829 fi
19830 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
19831 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
19832 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
19833   echo $ECHO_N "(cached) $ECHO_C" >&6
19834 else
19835   ac_check_lib_save_LIBS=$LIBS
19836 LIBS="-lcrypto  $LIBS"
19837 cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843
19844 /* Override any gcc2 internal prototype to avoid an error.  */
19845 #ifdef __cplusplus
19846 extern "C"
19847 #endif
19848 /* We use char because int might match the return type of a gcc2
19849    builtin and then its argument prototype would still apply.  */
19850 char DH_new ();
19851 int
19852 main ()
19853 {
19854 DH_new ();
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 rm -f conftest.$ac_objext conftest$ac_exeext
19860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19861   (eval $ac_link) 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } &&
19868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; } &&
19874          { ac_try='test -s conftest$ac_exeext'
19875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876   (eval $ac_try) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; }; then
19880   ac_cv_lib_crypto_DH_new=yes
19881 else
19882   echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 ac_cv_lib_crypto_DH_new=no
19886 fi
19887 rm -f conftest.err conftest.$ac_objext \
19888       conftest$ac_exeext conftest.$ac_ext
19889 LIBS=$ac_check_lib_save_LIBS
19890 fi
19891 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
19892 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
19893 if test $ac_cv_lib_crypto_DH_new = yes; then
19894
19895
19896 cat >>confdefs.h <<\_ACEOF
19897 #define HAVE_LIBCRYPTO 1
19898 _ACEOF
19899
19900         echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
19901 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
19902 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
19903   echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905   ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-lssl  $LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h.  */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h.  */
19913
19914 /* Override any gcc2 internal prototype to avoid an error.  */
19915 #ifdef __cplusplus
19916 extern "C"
19917 #endif
19918 /* We use char because int might match the return type of a gcc2
19919    builtin and then its argument prototype would still apply.  */
19920 char SSL_new ();
19921 int
19922 main ()
19923 {
19924 SSL_new ();
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931   (eval $ac_link) 2>conftest.er1
19932   ac_status=$?
19933   grep -v '^ *+' conftest.er1 >conftest.err
19934   rm -f conftest.er1
19935   cat conftest.err >&5
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } &&
19938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; } &&
19944          { ac_try='test -s conftest$ac_exeext'
19945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946   (eval $ac_try) 2>&5
19947   ac_status=$?
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; }; then
19950   ac_cv_lib_ssl_SSL_new=yes
19951 else
19952   echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19954
19955 ac_cv_lib_ssl_SSL_new=no
19956 fi
19957 rm -f conftest.err conftest.$ac_objext \
19958       conftest$ac_exeext conftest.$ac_ext
19959 LIBS=$ac_check_lib_save_LIBS
19960 fi
19961 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
19962 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
19963 if test $ac_cv_lib_ssl_SSL_new = yes; then
19964
19965
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_LIBSSL 1
19968 _ACEOF
19969
19970                 if test "x$OPENSSL_LIB_DIR" != "x"; then
19971                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
19972                 fi
19973                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
19974
19975 fi
19976
19977
19978 fi
19979
19980 LIBS=$old_LIBS
19981
19982
19983 case "$host" in
19984 *-interix*)
19985         CFLAGS="$CFLAGS -D_ALL_SOURCE"
19986         ;;
19987 *-darwin*)
19988         CFLAGS="$CFLAGS -DDARWIN"
19989         ;;
19990 esac
19991
19992
19993
19994
19995
19996
19997 ac_header_dirent=no
19998 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19999   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20000 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20001 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005   cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h.  */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h.  */
20011 #include <sys/types.h>
20012 #include <$ac_hdr>
20013
20014 int
20015 main ()
20016 {
20017 if ((DIR *) 0)
20018 return 0;
20019   ;
20020   return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20025   (eval $ac_compile) 2>conftest.er1
20026   ac_status=$?
20027   grep -v '^ *+' conftest.er1 >conftest.err
20028   rm -f conftest.er1
20029   cat conftest.err >&5
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); } &&
20032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034   (eval $ac_try) 2>&5
20035   ac_status=$?
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); }; } &&
20038          { ac_try='test -s conftest.$ac_objext'
20039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040   (eval $ac_try) 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; }; then
20044   eval "$as_ac_Header=yes"
20045 else
20046   echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20048
20049 eval "$as_ac_Header=no"
20050 fi
20051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20052 fi
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20056   cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20058 _ACEOF
20059
20060 ac_header_dirent=$ac_hdr; break
20061 fi
20062
20063 done
20064 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20065 if test $ac_header_dirent = dirent.h; then
20066   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20067 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20068 if test "${ac_cv_search_opendir+set}" = set; then
20069   echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071   ac_func_search_save_LIBS=$LIBS
20072 ac_cv_search_opendir=no
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079
20080 /* Override any gcc2 internal prototype to avoid an error.  */
20081 #ifdef __cplusplus
20082 extern "C"
20083 #endif
20084 /* We use char because int might match the return type of a gcc2
20085    builtin and then its argument prototype would still apply.  */
20086 char opendir ();
20087 int
20088 main ()
20089 {
20090 opendir ();
20091   ;
20092   return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20097   (eval $ac_link) 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } &&
20104          { ac_try='test -z "$ac_c_werror_flag"                   || 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"                   || test ! -s conftest.err'
20159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160   (eval $ac_try) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; } &&
20164          { ac_try='test -s conftest$ac_exeext'
20165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166   (eval $ac_try) 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; }; then
20170   ac_cv_search_opendir="-l$ac_lib"
20171 break
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 fi
20177 rm -f conftest.err conftest.$ac_objext \
20178       conftest$ac_exeext conftest.$ac_ext
20179   done
20180 fi
20181 LIBS=$ac_func_search_save_LIBS
20182 fi
20183 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20184 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20185 if test "$ac_cv_search_opendir" != no; then
20186   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20187
20188 fi
20189
20190 else
20191   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20193 if test "${ac_cv_search_opendir+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196   ac_func_search_save_LIBS=$LIBS
20197 ac_cv_search_opendir=no
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204
20205 /* Override any gcc2 internal prototype to avoid an error.  */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 /* We use char because int might match the return type of a gcc2
20210    builtin and then its argument prototype would still apply.  */
20211 char opendir ();
20212 int
20213 main ()
20214 {
20215 opendir ();
20216   ;
20217   return 0;
20218 }
20219 _ACEOF
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222   (eval $ac_link) 2>conftest.er1
20223   ac_status=$?
20224   grep -v '^ *+' conftest.er1 >conftest.err
20225   rm -f conftest.er1
20226   cat conftest.err >&5
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231   (eval $ac_try) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; } &&
20235          { ac_try='test -s conftest$ac_exeext'
20236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237   (eval $ac_try) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; }; then
20241   ac_cv_search_opendir="none required"
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246 fi
20247 rm -f conftest.err conftest.$ac_objext \
20248       conftest$ac_exeext conftest.$ac_ext
20249 if test "$ac_cv_search_opendir" = no; then
20250   for ac_lib in x; do
20251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20252     cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h.  */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h.  */
20258
20259 /* Override any gcc2 internal prototype to avoid an error.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 /* We use char because int might match the return type of a gcc2
20264    builtin and then its argument prototype would still apply.  */
20265 char opendir ();
20266 int
20267 main ()
20268 {
20269 opendir ();
20270   ;
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276   (eval $ac_link) 2>conftest.er1
20277   ac_status=$?
20278   grep -v '^ *+' conftest.er1 >conftest.err
20279   rm -f conftest.er1
20280   cat conftest.err >&5
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); } &&
20283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285   (eval $ac_try) 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; } &&
20289          { ac_try='test -s conftest$ac_exeext'
20290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291   (eval $ac_try) 2>&5
20292   ac_status=$?
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); }; }; then
20295   ac_cv_search_opendir="-l$ac_lib"
20296 break
20297 else
20298   echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 fi
20302 rm -f conftest.err conftest.$ac_objext \
20303       conftest$ac_exeext conftest.$ac_ext
20304   done
20305 fi
20306 LIBS=$ac_func_search_save_LIBS
20307 fi
20308 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20309 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20310 if test "$ac_cv_search_opendir" != no; then
20311   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20312
20313 fi
20314
20315 fi
20316
20317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20319 if test "${ac_cv_header_stdc+set}" = set; then
20320   echo $ECHO_N "(cached) $ECHO_C" >&6
20321 else
20322   cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328 #include <stdlib.h>
20329 #include <stdarg.h>
20330 #include <string.h>
20331 #include <float.h>
20332
20333 int
20334 main ()
20335 {
20336
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343   (eval $ac_compile) 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } &&
20350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352   (eval $ac_try) 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; } &&
20356          { ac_try='test -s conftest.$ac_objext'
20357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358   (eval $ac_try) 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; }; then
20362   ac_cv_header_stdc=yes
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367 ac_cv_header_stdc=no
20368 fi
20369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20370
20371 if test $ac_cv_header_stdc = yes; then
20372   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20373   cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h.  */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h.  */
20379 #include <string.h>
20380
20381 _ACEOF
20382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20383   $EGREP "memchr" >/dev/null 2>&1; then
20384   :
20385 else
20386   ac_cv_header_stdc=no
20387 fi
20388 rm -f conftest*
20389
20390 fi
20391
20392 if test $ac_cv_header_stdc = yes; then
20393   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20394   cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h.  */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h.  */
20400 #include <stdlib.h>
20401
20402 _ACEOF
20403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20404   $EGREP "free" >/dev/null 2>&1; then
20405   :
20406 else
20407   ac_cv_header_stdc=no
20408 fi
20409 rm -f conftest*
20410
20411 fi
20412
20413 if test $ac_cv_header_stdc = yes; then
20414   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20415   if test "$cross_compiling" = yes; then
20416   :
20417 else
20418   cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424 #include <ctype.h>
20425 #if ((' ' & 0x0FF) == 0x020)
20426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20428 #else
20429 # define ISLOWER(c) \
20430                    (('a' <= (c) && (c) <= 'i') \
20431                      || ('j' <= (c) && (c) <= 'r') \
20432                      || ('s' <= (c) && (c) <= 'z'))
20433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20434 #endif
20435
20436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20437 int
20438 main ()
20439 {
20440   int i;
20441   for (i = 0; i < 256; i++)
20442     if (XOR (islower (i), ISLOWER (i))
20443         || toupper (i) != TOUPPER (i))
20444       exit(2);
20445   exit (0);
20446 }
20447 _ACEOF
20448 rm -f conftest$ac_exeext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450   (eval $ac_link) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455   (eval $ac_try) 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); }; }; then
20459   :
20460 else
20461   echo "$as_me: program exited with status $ac_status" >&5
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 ( exit $ac_status )
20466 ac_cv_header_stdc=no
20467 fi
20468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20469 fi
20470 fi
20471 fi
20472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20474 if test $ac_cv_header_stdc = yes; then
20475
20476 cat >>confdefs.h <<\_ACEOF
20477 #define STDC_HEADERS 1
20478 _ACEOF
20479
20480 fi
20481
20482 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20483 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20484 if test "${ac_cv_header_time+set}" = set; then
20485   echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487   cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 #include <sys/types.h>
20494 #include <sys/time.h>
20495 #include <time.h>
20496
20497 int
20498 main ()
20499 {
20500 if ((struct tm *) 0)
20501 return 0;
20502   ;
20503   return 0;
20504 }
20505 _ACEOF
20506 rm -f conftest.$ac_objext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20508   (eval $ac_compile) 2>conftest.er1
20509   ac_status=$?
20510   grep -v '^ *+' conftest.er1 >conftest.err
20511   rm -f conftest.er1
20512   cat conftest.err >&5
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); } &&
20515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); }; } &&
20521          { ac_try='test -s conftest.$ac_objext'
20522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523   (eval $ac_try) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); }; }; then
20527   ac_cv_header_time=yes
20528 else
20529   echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20531
20532 ac_cv_header_time=no
20533 fi
20534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20535 fi
20536 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20537 echo "${ECHO_T}$ac_cv_header_time" >&6
20538 if test $ac_cv_header_time = yes; then
20539
20540 cat >>confdefs.h <<\_ACEOF
20541 #define TIME_WITH_SYS_TIME 1
20542 _ACEOF
20543
20544 fi
20545
20546 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20547 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20548 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551   cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h.  */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h.  */
20557 #include <sys/types.h>
20558 #include <sys/wait.h>
20559 #ifndef WEXITSTATUS
20560 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20561 #endif
20562 #ifndef WIFEXITED
20563 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20564 #endif
20565
20566 int
20567 main ()
20568 {
20569   int s;
20570   wait (&s);
20571   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20572   ;
20573   return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578   (eval $ac_compile) 2>conftest.er1
20579   ac_status=$?
20580   grep -v '^ *+' conftest.er1 >conftest.err
20581   rm -f conftest.er1
20582   cat conftest.err >&5
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); } &&
20585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587   (eval $ac_try) 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20597   ac_cv_header_sys_wait_h=yes
20598 else
20599   echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602 ac_cv_header_sys_wait_h=no
20603 fi
20604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20605 fi
20606 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20607 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20608 if test $ac_cv_header_sys_wait_h = yes; then
20609
20610 cat >>confdefs.h <<\_ACEOF
20611 #define HAVE_SYS_WAIT_H 1
20612 _ACEOF
20613
20614 fi
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647 for ac_header in \
20648         unistd.h \
20649         crypt.h \
20650         errno.h \
20651         resource.h \
20652         getopt.h \
20653         malloc.h \
20654         utmp.h \
20655         utmpx.h \
20656         signal.h \
20657         sys/select.h \
20658         syslog.h \
20659         inttypes.h \
20660         stdint.h \
20661         stdio.h \
20662         netdb.h \
20663         semaphore.h \
20664         arpa/inet.h \
20665         netinet/in.h \
20666         sys/types.h \
20667         sys/socket.h \
20668         sys/time.h \
20669         sys/wait.h \
20670         sys/security.h \
20671         fcntl.h \
20672         sys/fcntl.h \
20673         sys/stat.h \
20674         sys/prctl.h \
20675         prot.h \
20676         sia.h \
20677         siad.h
20678
20679 do
20680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20682   echo "$as_me:$LINENO: checking for $ac_header" >&5
20683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20685   echo $ECHO_N "(cached) $ECHO_C" >&6
20686 fi
20687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20689 else
20690   # Is the header compilable?
20691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699 $ac_includes_default
20700 #include <$ac_header>
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704   (eval $ac_compile) 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
20708   cat conftest.err >&5
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } &&
20711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713   (eval $ac_try) 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; } &&
20717          { ac_try='test -s conftest.$ac_objext'
20718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719   (eval $ac_try) 2>&5
20720   ac_status=$?
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); }; }; then
20723   ac_header_compiler=yes
20724 else
20725   echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 ac_header_compiler=no
20729 fi
20730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20732 echo "${ECHO_T}$ac_header_compiler" >&6
20733
20734 # Is the header present?
20735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 #include <$ac_header>
20744 _ACEOF
20745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20747   ac_status=$?
20748   grep -v '^ *+' conftest.er1 >conftest.err
20749   rm -f conftest.er1
20750   cat conftest.err >&5
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } >/dev/null; then
20753   if test -s conftest.err; then
20754     ac_cpp_err=$ac_c_preproc_warn_flag
20755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20756   else
20757     ac_cpp_err=
20758   fi
20759 else
20760   ac_cpp_err=yes
20761 fi
20762 if test -z "$ac_cpp_err"; then
20763   ac_header_preproc=yes
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768   ac_header_preproc=no
20769 fi
20770 rm -f conftest.err conftest.$ac_ext
20771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20772 echo "${ECHO_T}$ac_header_preproc" >&6
20773
20774 # So?  What about this header?
20775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20776   yes:no: )
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20781     ac_header_preproc=yes
20782     ;;
20783   no:yes:* )
20784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20796     (
20797       cat <<\_ASBOX
20798 ## ------------------------------------------ ##
20799 ## Report this to the AC_PACKAGE_NAME lists.  ##
20800 ## ------------------------------------------ ##
20801 _ASBOX
20802     ) |
20803       sed "s/^/$as_me: WARNING:     /" >&2
20804     ;;
20805 esac
20806 echo "$as_me:$LINENO: checking for $ac_header" >&5
20807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20809   echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811   eval "$as_ac_Header=\$ac_header_preproc"
20812 fi
20813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20815
20816 fi
20817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20818   cat >>confdefs.h <<_ACEOF
20819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20820 _ACEOF
20821
20822 fi
20823
20824 done
20825
20826
20827 REGEX=no
20828 if test "${ac_cv_header_regex_h+set}" = set; then
20829   echo "$as_me:$LINENO: checking for regex.h" >&5
20830 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20831 if test "${ac_cv_header_regex_h+set}" = set; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 fi
20834 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20835 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20836 else
20837   # Is the header compilable?
20838 echo "$as_me:$LINENO: checking regex.h usability" >&5
20839 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h.  */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h.  */
20846 $ac_includes_default
20847 #include <regex.h>
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20851   (eval $ac_compile) 2>conftest.er1
20852   ac_status=$?
20853   grep -v '^ *+' conftest.er1 >conftest.err
20854   rm -f conftest.er1
20855   cat conftest.err >&5
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); } &&
20858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; } &&
20864          { ac_try='test -s conftest.$ac_objext'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   ac_header_compiler=yes
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 ac_header_compiler=no
20876 fi
20877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20879 echo "${ECHO_T}$ac_header_compiler" >&6
20880
20881 # Is the header present?
20882 echo "$as_me:$LINENO: checking regex.h presence" >&5
20883 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20884 cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890 #include <regex.h>
20891 _ACEOF
20892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } >/dev/null; then
20900   if test -s conftest.err; then
20901     ac_cpp_err=$ac_c_preproc_warn_flag
20902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20903   else
20904     ac_cpp_err=
20905   fi
20906 else
20907   ac_cpp_err=yes
20908 fi
20909 if test -z "$ac_cpp_err"; then
20910   ac_header_preproc=yes
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915   ac_header_preproc=no
20916 fi
20917 rm -f conftest.err conftest.$ac_ext
20918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20919 echo "${ECHO_T}$ac_header_preproc" >&6
20920
20921 # So?  What about this header?
20922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20923   yes:no: )
20924     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20925 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20926     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20927 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20928     ac_header_preproc=yes
20929     ;;
20930   no:yes:* )
20931     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20932 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20933     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
20934 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
20935     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20936 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20937     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
20938 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20939     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20940 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20941     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20942 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20943     (
20944       cat <<\_ASBOX
20945 ## ------------------------------------------ ##
20946 ## Report this to the AC_PACKAGE_NAME lists.  ##
20947 ## ------------------------------------------ ##
20948 _ASBOX
20949     ) |
20950       sed "s/^/$as_me: WARNING:     /" >&2
20951     ;;
20952 esac
20953 echo "$as_me:$LINENO: checking for regex.h" >&5
20954 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20955 if test "${ac_cv_header_regex_h+set}" = set; then
20956   echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958   ac_cv_header_regex_h=$ac_header_preproc
20959 fi
20960 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20961 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20962
20963 fi
20964 if test $ac_cv_header_regex_h = yes; then
20965   cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_REGEX_H 1
20967 _ACEOF
20968
20969 fi
20970
20971
20972 if test "x$ac_cv_header_regex_h" = "xyes"; then
20973   REGEX_EXTENDED=no
20974   REGEX=yes
20975   cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 #include <regex.h>
20982      #ifdef REG_EXTENDED
20983        yes
20984      #endif
20985
20986 _ACEOF
20987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988   $EGREP "yes" >/dev/null 2>&1; then
20989   cat >>confdefs.h <<\_ACEOF
20990 #define HAVE_REG_EXTENDED 1
20991 _ACEOF
20992  REGEX_EXTENDED=yes
20993 fi
20994 rm -f conftest*
20995
20996 fi
20997
20998
20999
21000 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21001 then
21002   cat >>confdefs.h <<\_ACEOF
21003 #define OSFC2 1
21004 _ACEOF
21005
21006 fi
21007
21008 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21009 then
21010   cat >>confdefs.h <<\_ACEOF
21011 #define OSFSIA 1
21012 _ACEOF
21013
21014 fi
21015
21016 OPENSSL_INCLUDE="-DNO_OPENSSL"
21017 if test "x$OPENSSL_LIBS" = "x"; then
21018     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21019 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21020 else
21021     old_CPPFLAGS=$CPPFLAGS
21022     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21023         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21024     fi
21025         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21026
21027
21028
21029
21030 for ac_header in \
21031         openssl/ssl.h \
21032         openssl/crypto.h \
21033         openssl/err.h \
21034         openssl/engine.h
21035 do
21036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038   echo "$as_me:$LINENO: checking for $ac_header" >&5
21039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21041   echo $ECHO_N "(cached) $ECHO_C" >&6
21042 fi
21043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21045 else
21046   # Is the header compilable?
21047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h.  */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h.  */
21055 $ac_includes_default
21056 #include <$ac_header>
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060   (eval $ac_compile) 2>conftest.er1
21061   ac_status=$?
21062   grep -v '^ *+' conftest.er1 >conftest.err
21063   rm -f conftest.er1
21064   cat conftest.err >&5
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } &&
21067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069   (eval $ac_try) 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); }; } &&
21073          { ac_try='test -s conftest.$ac_objext'
21074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075   (eval $ac_try) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; }; then
21079   ac_header_compiler=yes
21080 else
21081   echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 ac_header_compiler=no
21085 fi
21086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21088 echo "${ECHO_T}$ac_header_compiler" >&6
21089
21090 # Is the header present?
21091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21093 cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099 #include <$ac_header>
21100 _ACEOF
21101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21103   ac_status=$?
21104   grep -v '^ *+' conftest.er1 >conftest.err
21105   rm -f conftest.er1
21106   cat conftest.err >&5
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); } >/dev/null; then
21109   if test -s conftest.err; then
21110     ac_cpp_err=$ac_c_preproc_warn_flag
21111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21112   else
21113     ac_cpp_err=
21114   fi
21115 else
21116   ac_cpp_err=yes
21117 fi
21118 if test -z "$ac_cpp_err"; then
21119   ac_header_preproc=yes
21120 else
21121   echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124   ac_header_preproc=no
21125 fi
21126 rm -f conftest.err conftest.$ac_ext
21127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21128 echo "${ECHO_T}$ac_header_preproc" >&6
21129
21130 # So?  What about this header?
21131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21132   yes:no: )
21133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21137     ac_header_preproc=yes
21138     ;;
21139   no:yes:* )
21140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21152     (
21153       cat <<\_ASBOX
21154 ## ------------------------------------------ ##
21155 ## Report this to the AC_PACKAGE_NAME lists.  ##
21156 ## ------------------------------------------ ##
21157 _ASBOX
21158     ) |
21159       sed "s/^/$as_me: WARNING:     /" >&2
21160     ;;
21161 esac
21162 echo "$as_me:$LINENO: checking for $ac_header" >&5
21163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21165   echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167   eval "$as_ac_Header=\$ac_header_preproc"
21168 fi
21169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21171
21172 fi
21173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21174   cat >>confdefs.h <<_ACEOF
21175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21176 _ACEOF
21177
21178 else
21179   OPENSSL_LIBS=
21180
21181 fi
21182
21183 done
21184
21185     if test "x$OPENSSL_LIBS" != "x"; then
21186         echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21187 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21188         cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h.  */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h.  */
21194 #include <openssl/crypto.h>
21195              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21196              yes
21197              #endif
21198
21199 _ACEOF
21200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21201   $EGREP "yes" >/dev/null 2>&1; then
21202   goodssl="yes"
21203 fi
21204 rm -f conftest*
21205
21206         if test "x$goodssl" != "xyes"; then
21207             echo "$as_me:$LINENO: result: no" >&5
21208 echo "${ECHO_T}no" >&6
21209             OPENSSL_LIBS=
21210         else
21211             echo "$as_me:$LINENO: result: yes" >&5
21212 echo "${ECHO_T}yes" >&6
21213             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21214                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21215             else
21216                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21217             fi
21218         fi
21219     fi
21220     CPPFLAGS=$old_CPPFLAGS
21221 fi
21222
21223
21224 export OPENSSL_LIBS
21225
21226
21227 echo "$as_me:$LINENO: checking for off_t" >&5
21228 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21229 if test "${ac_cv_type_off_t+set}" = set; then
21230   echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232   cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 $ac_includes_default
21239 int
21240 main ()
21241 {
21242 if ((off_t *) 0)
21243   return 0;
21244 if (sizeof (off_t))
21245   return 0;
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext
21251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21252   (eval $ac_compile) 2>conftest.er1
21253   ac_status=$?
21254   grep -v '^ *+' conftest.er1 >conftest.err
21255   rm -f conftest.er1
21256   cat conftest.err >&5
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); } &&
21259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261   (eval $ac_try) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; } &&
21265          { ac_try='test -s conftest.$ac_objext'
21266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267   (eval $ac_try) 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   ac_cv_type_off_t=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 ac_cv_type_off_t=no
21277 fi
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279 fi
21280 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21281 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21282 if test $ac_cv_type_off_t = yes; then
21283   :
21284 else
21285
21286 cat >>confdefs.h <<_ACEOF
21287 #define off_t long
21288 _ACEOF
21289
21290 fi
21291
21292 echo "$as_me:$LINENO: checking for pid_t" >&5
21293 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21294 if test "${ac_cv_type_pid_t+set}" = set; then
21295   echo $ECHO_N "(cached) $ECHO_C" >&6
21296 else
21297   cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 $ac_includes_default
21304 int
21305 main ()
21306 {
21307 if ((pid_t *) 0)
21308   return 0;
21309 if (sizeof (pid_t))
21310   return 0;
21311   ;
21312   return 0;
21313 }
21314 _ACEOF
21315 rm -f conftest.$ac_objext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21317   (eval $ac_compile) 2>conftest.er1
21318   ac_status=$?
21319   grep -v '^ *+' conftest.er1 >conftest.err
21320   rm -f conftest.er1
21321   cat conftest.err >&5
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); } &&
21324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326   (eval $ac_try) 2>&5
21327   ac_status=$?
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); }; } &&
21330          { ac_try='test -s conftest.$ac_objext'
21331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332   (eval $ac_try) 2>&5
21333   ac_status=$?
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); }; }; then
21336   ac_cv_type_pid_t=yes
21337 else
21338   echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21340
21341 ac_cv_type_pid_t=no
21342 fi
21343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21344 fi
21345 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21346 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21347 if test $ac_cv_type_pid_t = yes; then
21348   :
21349 else
21350
21351 cat >>confdefs.h <<_ACEOF
21352 #define pid_t int
21353 _ACEOF
21354
21355 fi
21356
21357 echo "$as_me:$LINENO: checking for size_t" >&5
21358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21359 if test "${ac_cv_type_size_t+set}" = set; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362   cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h.  */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h.  */
21368 $ac_includes_default
21369 int
21370 main ()
21371 {
21372 if ((size_t *) 0)
21373   return 0;
21374 if (sizeof (size_t))
21375   return 0;
21376   ;
21377   return 0;
21378 }
21379 _ACEOF
21380 rm -f conftest.$ac_objext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21382   (eval $ac_compile) 2>conftest.er1
21383   ac_status=$?
21384   grep -v '^ *+' conftest.er1 >conftest.err
21385   rm -f conftest.er1
21386   cat conftest.err >&5
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } &&
21389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391   (eval $ac_try) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }; } &&
21395          { ac_try='test -s conftest.$ac_objext'
21396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; }; then
21401   ac_cv_type_size_t=yes
21402 else
21403   echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 ac_cv_type_size_t=no
21407 fi
21408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21409 fi
21410 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21411 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21412 if test $ac_cv_type_size_t = yes; then
21413   :
21414 else
21415
21416 cat >>confdefs.h <<_ACEOF
21417 #define size_t unsigned
21418 _ACEOF
21419
21420 fi
21421
21422 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21423 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21424 if test "${ac_cv_type_uid_t+set}" = set; then
21425   echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427   cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 #include <sys/types.h>
21434
21435 _ACEOF
21436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21437   $EGREP "uid_t" >/dev/null 2>&1; then
21438   ac_cv_type_uid_t=yes
21439 else
21440   ac_cv_type_uid_t=no
21441 fi
21442 rm -f conftest*
21443
21444 fi
21445 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21446 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21447 if test $ac_cv_type_uid_t = no; then
21448
21449 cat >>confdefs.h <<\_ACEOF
21450 #define uid_t int
21451 _ACEOF
21452
21453
21454 cat >>confdefs.h <<\_ACEOF
21455 #define gid_t int
21456 _ACEOF
21457
21458 fi
21459
21460
21461
21462   echo "$as_me:$LINENO: checking for socklen_t" >&5
21463 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21464 if test "${ac_cv_type_socklen_t+set}" = set; then
21465   echo $ECHO_N "(cached) $ECHO_C" >&6
21466 else
21467    ac_cv_type_socklen_t=no
21468       cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h.  */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h.  */
21474 #ifdef HAVE_SYS_TYPES_H
21475 #include <sys/types.h>
21476 #endif
21477 #ifdef HAVE_SYS_SOCKET_H
21478 #include <sys/socket.h>
21479 #endif
21480
21481 int
21482 main ()
21483 {
21484 socklen_t foo
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21491   (eval $ac_compile) 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } &&
21498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500   (eval $ac_try) 2>&5
21501   ac_status=$?
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); }; } &&
21504          { ac_try='test -s conftest.$ac_objext'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; }; then
21510   ac_cv_type_socklen_t=yes
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 fi
21516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21517
21518
21519 fi
21520 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21521 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21522
21523   if test "$ac_cv_type_socklen_t" != "yes"; then
21524          cat >>confdefs.h <<\_ACEOF
21525 #define socklen_t int
21526 _ACEOF
21527
21528   fi
21529
21530
21531
21532   echo "$as_me:$LINENO: checking for uint8_t" >&5
21533 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21534 if test "${ac_cv_type_uint8_t+set}" = set; then
21535   echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537    ac_cv_type_uint8_t=no
21538       cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 #ifdef HAVE_INTTYPES_H
21545 #include <inttypes.h>
21546 #endif
21547 #ifdef HAVE_STDINT_H
21548 #include <stdint.h>
21549 #endif
21550
21551 int
21552 main ()
21553 {
21554 uint8_t foo
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext
21560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21561   (eval $ac_compile) 2>conftest.er1
21562   ac_status=$?
21563   grep -v '^ *+' conftest.er1 >conftest.err
21564   rm -f conftest.er1
21565   cat conftest.err >&5
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); } &&
21568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; } &&
21574          { ac_try='test -s conftest.$ac_objext'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   ac_cv_type_uint8_t=yes
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 fi
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21587
21588
21589 fi
21590 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21591 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21592
21593   if test "$ac_cv_type_uint8_t" != "yes"; then
21594          cat >>confdefs.h <<\_ACEOF
21595 #define uint8_t unsigned char
21596 _ACEOF
21597
21598   fi
21599
21600
21601
21602   echo "$as_me:$LINENO: checking for uint16_t" >&5
21603 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21604 if test "${ac_cv_type_uint16_t+set}" = set; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607    ac_cv_type_uint16_t=no
21608       cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 #ifdef HAVE_INTTYPES_H
21615 #include <inttypes.h>
21616 #endif
21617 #ifdef HAVE_STDINT_H
21618 #include <stdint.h>
21619 #endif
21620
21621 int
21622 main ()
21623 {
21624 uint16_t foo
21625   ;
21626   return 0;
21627 }
21628 _ACEOF
21629 rm -f conftest.$ac_objext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21631   (eval $ac_compile) 2>conftest.er1
21632   ac_status=$?
21633   grep -v '^ *+' conftest.er1 >conftest.err
21634   rm -f conftest.er1
21635   cat conftest.err >&5
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } &&
21638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640   (eval $ac_try) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); }; } &&
21644          { ac_try='test -s conftest.$ac_objext'
21645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646   (eval $ac_try) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   ac_cv_type_uint16_t=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 fi
21656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21657
21658
21659 fi
21660 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21661 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21662
21663   if test "$ac_cv_type_uint16_t" != "yes"; then
21664          cat >>confdefs.h <<\_ACEOF
21665 #define uint16_t unsigned short
21666 _ACEOF
21667
21668   fi
21669
21670
21671
21672   echo "$as_me:$LINENO: checking for uint32_t" >&5
21673 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21674 if test "${ac_cv_type_uint32_t+set}" = set; then
21675   echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677    ac_cv_type_uint32_t=no
21678       cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 #ifdef HAVE_INTTYPES_H
21685 #include <inttypes.h>
21686 #endif
21687 #ifdef HAVE_STDINT_H
21688 #include <stdint.h>
21689 #endif
21690
21691 int
21692 main ()
21693 {
21694 uint32_t foo
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701   (eval $ac_compile) 2>conftest.er1
21702   ac_status=$?
21703   grep -v '^ *+' conftest.er1 >conftest.err
21704   rm -f conftest.er1
21705   cat conftest.err >&5
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); } &&
21708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710   (eval $ac_try) 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; } &&
21714          { ac_try='test -s conftest.$ac_objext'
21715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716   (eval $ac_try) 2>&5
21717   ac_status=$?
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); }; }; then
21720   ac_cv_type_uint32_t=yes
21721 else
21722   echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21724
21725 fi
21726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21727
21728
21729 fi
21730 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21731 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21732
21733   if test "$ac_cv_type_uint32_t" != "yes"; then
21734          cat >>confdefs.h <<\_ACEOF
21735 #define uint32_t unsigned int
21736 _ACEOF
21737
21738   fi
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765 for ac_func in \
21766         getopt_long \
21767         lockf \
21768         strsignal \
21769         sigaction \
21770         sigprocmask \
21771         pthread_sigmask \
21772         snprintf \
21773         vsnprintf \
21774         setsid \
21775         strncasecmp \
21776         strcasecmp \
21777         localtime_r \
21778         ctime_r \
21779         gmtime_r \
21780         strsep \
21781         inet_aton \
21782         inet_pton \
21783         inet_ntop \
21784         gethostname \
21785         setlinebuf \
21786         setvbuf \
21787         getusershell \
21788         initgroups \
21789         closefrom
21790
21791 do
21792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21793 echo "$as_me:$LINENO: checking for $ac_func" >&5
21794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21795 if eval "test \"\${$as_ac_var+set}\" = set"; then
21796   echo $ECHO_N "(cached) $ECHO_C" >&6
21797 else
21798   cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21806 #define $ac_func innocuous_$ac_func
21807
21808 /* System header to define __stub macros and hopefully few prototypes,
21809     which can conflict with char $ac_func (); below.
21810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21811     <limits.h> exists even on freestanding compilers.  */
21812
21813 #ifdef __STDC__
21814 # include <limits.h>
21815 #else
21816 # include <assert.h>
21817 #endif
21818
21819 #undef $ac_func
21820
21821 /* Override any gcc2 internal prototype to avoid an error.  */
21822 #ifdef __cplusplus
21823 extern "C"
21824 {
21825 #endif
21826 /* We use char because int might match the return type of a gcc2
21827    builtin and then its argument prototype would still apply.  */
21828 char $ac_func ();
21829 /* The GNU C library defines this for functions which it implements
21830     to always fail with ENOSYS.  Some functions are actually named
21831     something starting with __ and the normal name is an alias.  */
21832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21833 choke me
21834 #else
21835 char (*f) () = $ac_func;
21836 #endif
21837 #ifdef __cplusplus
21838 }
21839 #endif
21840
21841 int
21842 main ()
21843 {
21844 return f != $ac_func;
21845   ;
21846   return 0;
21847 }
21848 _ACEOF
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851   (eval $ac_link) 2>conftest.er1
21852   ac_status=$?
21853   grep -v '^ *+' conftest.er1 >conftest.err
21854   rm -f conftest.er1
21855   cat conftest.err >&5
21856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); } &&
21858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21860   (eval $ac_try) 2>&5
21861   ac_status=$?
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); }; } &&
21864          { ac_try='test -s conftest$ac_exeext'
21865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866   (eval $ac_try) 2>&5
21867   ac_status=$?
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); }; }; then
21870   eval "$as_ac_var=yes"
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875 eval "$as_ac_var=no"
21876 fi
21877 rm -f conftest.err conftest.$ac_objext \
21878       conftest$ac_exeext conftest.$ac_ext
21879 fi
21880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21882 if test `eval echo '${'$as_ac_var'}'` = yes; then
21883   cat >>confdefs.h <<_ACEOF
21884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21885 _ACEOF
21886
21887 fi
21888 done
21889
21890 for ac_func in \
21891         crypt \
21892         strncasecmp \
21893         strcasecmp \
21894         inet_aton \
21895         gethostname \
21896         setlinebuf \
21897         getusershell \
21898         endusershell
21899
21900 do
21901 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21902 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21903 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 else
21906   cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912
21913 #include <stdio.h>
21914 #include <string.h>
21915 #ifdef HAVE_UNISTD_H
21916 #include <unistd.h>
21917 #endif
21918 #ifdef HAVE_CRYPT_H
21919 #include <crypt.h>
21920 #endif
21921 #ifdef HAVE_ERRNO_H
21922 #include <errno.h>
21923 #endif
21924 #ifdef HAVE_RESOURCE_H
21925 #include <resource.h>
21926 #endif
21927 #ifdef HAVE_GETOPT_H
21928 #include <getopt.h>
21929 #endif
21930 #ifdef HAVE_MALLOC_H
21931 #include <malloc.h>
21932 #endif
21933 #ifdef HAVE_UTMP_H
21934 #include <utmp.h>
21935 #endif
21936 #ifdef HAVE_UTMPX_H
21937 #include <utmpx.h>
21938 #endif
21939 #ifdef HAVE_SYS_SELECT_H
21940 #include <sys/select.h>
21941 #endif
21942 #ifdef HAVE_DLFCN_H
21943 #include <dlfcn.h>
21944 #endif
21945 #ifdef HAVE_REGEX_H
21946 #include <regex.h>
21947 #endif
21948 #ifdef HAVE_SYSLOG_H
21949 #include <syslog.h>
21950 #endif
21951 #ifdef HAVE_INTTYPES_H
21952 #include <inttypes.h>
21953 #endif
21954 #ifdef HAVE_STDINT_H
21955 #include <stdint.h>
21956 #endif
21957 #ifdef HAVE_ARPA_INET_H
21958 #include <arpa/inet.h>
21959 #endif
21960
21961 int
21962 main ()
21963 {
21964 char *(*pfn) = (char *(*)) $ac_func
21965   ;
21966   return 0;
21967 }
21968 _ACEOF
21969 rm -f conftest.$ac_objext
21970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21971   (eval $ac_compile) 2>conftest.er1
21972   ac_status=$?
21973   grep -v '^ *+' conftest.er1 >conftest.err
21974   rm -f conftest.er1
21975   cat conftest.err >&5
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); } &&
21978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980   (eval $ac_try) 2>&5
21981   ac_status=$?
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); }; } &&
21984          { ac_try='test -s conftest.$ac_objext'
21985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986   (eval $ac_try) 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; }; then
21990   eval "radius_cv_decl_needed_$ac_func=no"
21991 else
21992   echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995 eval "radius_cv_decl_needed_$ac_func=yes"
21996 fi
21997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21998 fi
21999
22000 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22001   echo "$as_me:$LINENO: result: yes" >&5
22002 echo "${ECHO_T}yes" >&6
22003   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22004   cat >>confdefs.h <<_ACEOF
22005 #define $radius_tr_decl 1
22006 _ACEOF
22007
22008 else
22009   echo "$as_me:$LINENO: result: no" >&5
22010 echo "${ECHO_T}no" >&6
22011 fi
22012
22013 done
22014
22015
22016 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22017 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22018 if test "${ac_cv_type_signal+set}" = set; then
22019   echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021   cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 #include <sys/types.h>
22028 #include <signal.h>
22029 #ifdef signal
22030 # undef signal
22031 #endif
22032 #ifdef __cplusplus
22033 extern "C" void (*signal (int, void (*)(int)))(int);
22034 #else
22035 void (*signal ()) ();
22036 #endif
22037
22038 int
22039 main ()
22040 {
22041 int i;
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048   (eval $ac_compile) 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } &&
22055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057   (eval $ac_try) 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; } &&
22061          { ac_try='test -s conftest.$ac_objext'
22062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063   (eval $ac_try) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; }; then
22067   ac_cv_type_signal=void
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 ac_cv_type_signal=int
22073 fi
22074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22075 fi
22076 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22077 echo "${ECHO_T}$ac_cv_type_signal" >&6
22078
22079 cat >>confdefs.h <<_ACEOF
22080 #define RETSIGTYPE $ac_cv_type_signal
22081 _ACEOF
22082
22083
22084
22085 if test "x$ac_cv_header_utmpx_h" = "xyes"
22086 then
22087
22088   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22089 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22090
22091
22092   cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h.  */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h.  */
22098
22099 #include <utmpx.h>
22100 #ifndef offsetof
22101 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22102 #endif
22103
22104 int
22105 main ()
22106 {
22107  int foo = offsetof(struct utmpx, ut_xtime)
22108   ;
22109   return 0;
22110 }
22111 _ACEOF
22112 rm -f conftest.$ac_objext
22113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22114   (eval $ac_compile) 2>conftest.er1
22115   ac_status=$?
22116   grep -v '^ *+' conftest.er1 >conftest.err
22117   rm -f conftest.er1
22118   cat conftest.err >&5
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } &&
22121          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123   (eval $ac_try) 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); }; } &&
22127          { ac_try='test -s conftest.$ac_objext'
22128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129   (eval $ac_try) 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); }; }; then
22133   has_element=" "
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138 has_element=
22139 fi
22140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22141
22142   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22143   if test "x$has_element" != "x"; then
22144     echo "$as_me:$LINENO: result: yes" >&5
22145 echo "${ECHO_T}yes" >&6
22146     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22147   else
22148     echo "$as_me:$LINENO: result: no" >&5
22149 echo "${ECHO_T}no" >&6
22150     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22151  fi
22152
22153  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22154  then
22155    cat >>confdefs.h <<\_ACEOF
22156 #define ut_xtime ut_tv.tv_sec
22157 _ACEOF
22158
22159  fi
22160 fi
22161
22162
22163   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22164 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22165
22166
22167   cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h.  */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h.  */
22173
22174 #include <netinet/in.h>
22175 #ifndef offsetof
22176 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22177 #endif
22178
22179 int
22180 main ()
22181 {
22182  int foo = offsetof(struct in_pktinfo, ipi_addr)
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest.$ac_objext
22188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22189   (eval $ac_compile) 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } &&
22196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; } &&
22202          { ac_try='test -s conftest.$ac_objext'
22203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204   (eval $ac_try) 2>&5
22205   ac_status=$?
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); }; }; then
22208   has_element=" "
22209 else
22210   echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213 has_element=
22214 fi
22215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22216
22217   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22218   if test "x$has_element" != "x"; then
22219     echo "$as_me:$LINENO: result: yes" >&5
22220 echo "${ECHO_T}yes" >&6
22221     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22222   else
22223     echo "$as_me:$LINENO: result: no" >&5
22224 echo "${ECHO_T}no" >&6
22225     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22226  fi
22227
22228 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22229 then
22230         cat >>confdefs.h <<\_ACEOF
22231 #define HAVE_IP_PKTINFO 1
22232 _ACEOF
22233
22234 fi
22235
22236
22237 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22238 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22239 if test "${ac_cv_c_const+set}" = set; then
22240   echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248
22249 int
22250 main ()
22251 {
22252 /* FIXME: Include the comments suggested by Paul. */
22253 #ifndef __cplusplus
22254   /* Ultrix mips cc rejects this.  */
22255   typedef int charset[2];
22256   const charset x;
22257   /* SunOS 4.1.1 cc rejects this.  */
22258   char const *const *ccp;
22259   char **p;
22260   /* NEC SVR4.0.2 mips cc rejects this.  */
22261   struct point {int x, y;};
22262   static struct point const zero = {0,0};
22263   /* AIX XL C 1.02.0.0 rejects this.
22264      It does not let you subtract one const X* pointer from another in
22265      an arm of an if-expression whose if-part is not a constant
22266      expression */
22267   const char *g = "string";
22268   ccp = &g + (g ? g-g : 0);
22269   /* HPUX 7.0 cc rejects these. */
22270   ++ccp;
22271   p = (char**) ccp;
22272   ccp = (char const *const *) p;
22273   { /* SCO 3.2v4 cc rejects this.  */
22274     char *t;
22275     char const *s = 0 ? (char *) 0 : (char const *) 0;
22276
22277     *t++ = 0;
22278   }
22279   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22280     int x[] = {25, 17};
22281     const int *foo = &x[0];
22282     ++foo;
22283   }
22284   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22285     typedef const int *iptr;
22286     iptr p = 0;
22287     ++p;
22288   }
22289   { /* AIX XL C 1.02.0.0 rejects this saying
22290        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22291     struct s { int j; const int *ap[3]; };
22292     struct s *b; b->j = 5;
22293   }
22294   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22295     const int foo = 10;
22296   }
22297 #endif
22298
22299   ;
22300   return 0;
22301 }
22302 _ACEOF
22303 rm -f conftest.$ac_objext
22304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22305   (eval $ac_compile) 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } &&
22312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; } &&
22318          { ac_try='test -s conftest.$ac_objext'
22319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320   (eval $ac_try) 2>&5
22321   ac_status=$?
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); }; }; then
22324   ac_cv_c_const=yes
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329 ac_cv_c_const=no
22330 fi
22331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22332 fi
22333 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22334 echo "${ECHO_T}$ac_cv_c_const" >&6
22335 if test $ac_cv_c_const = no; then
22336
22337 cat >>confdefs.h <<\_ACEOF
22338 #define const
22339 _ACEOF
22340
22341 fi
22342
22343
22344 echo "$as_me:$LINENO: checking type of OS" >&5
22345 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22346 OS=`uname -s`
22347 echo "$as_me:$LINENO: result: $OS" >&5
22348 echo "${ECHO_T}$OS" >&6
22349 if test "$OS" = "OS/2"; then
22350         LIBPREFIX=
22351 else
22352         LIBPREFIX=lib
22353 fi
22354
22355
22356 if test "x$GCC" = "xyes"; then
22357     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22358 fi
22359
22360 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22361 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22362 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22363   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22364   CFLAGS="$CFLAGS $devflags"
22365   INSTALLSTRIP=""
22366   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22367 echo "${ECHO_T}yes.  Using $devflags" >&6
22368 else
22369   devflags=""
22370   CFLAGS="$CFLAGS -DNDEBUG"
22371   INSTALLSTRIP="-s"
22372   echo "$as_me:$LINENO: result: no." >&5
22373 echo "${ECHO_T}no." >&6
22374 fi
22375
22376
22377 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22378 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22379 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22380   echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382   ac_check_lib_save_LIBS=$LIBS
22383 LIBS="-lcrypt  $LIBS"
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390
22391 /* Override any gcc2 internal prototype to avoid an error.  */
22392 #ifdef __cplusplus
22393 extern "C"
22394 #endif
22395 /* We use char because int might match the return type of a gcc2
22396    builtin and then its argument prototype would still apply.  */
22397 char crypt ();
22398 int
22399 main ()
22400 {
22401 crypt ();
22402   ;
22403   return 0;
22404 }
22405 _ACEOF
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22408   (eval $ac_link) 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } &&
22415          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417   (eval $ac_try) 2>&5
22418   ac_status=$?
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); }; } &&
22421          { ac_try='test -s conftest$ac_exeext'
22422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423   (eval $ac_try) 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); }; }; then
22427   ac_cv_lib_crypt_crypt=yes
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432 ac_cv_lib_crypt_crypt=no
22433 fi
22434 rm -f conftest.err conftest.$ac_objext \
22435       conftest$ac_exeext conftest.$ac_ext
22436 LIBS=$ac_check_lib_save_LIBS
22437 fi
22438 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22439 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22440 if test $ac_cv_lib_crypt_crypt = yes; then
22441   CRYPTLIB="-lcrypt"
22442
22443 fi
22444
22445 if test "$CRYPTLIB" != ""; then
22446   cat >>confdefs.h <<\_ACEOF
22447 #define HAVE_CRYPT 1
22448 _ACEOF
22449
22450 else
22451   echo "$as_me:$LINENO: checking for crypt" >&5
22452 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22453 if test "${ac_cv_func_crypt+set}" = set; then
22454   echo $ECHO_N "(cached) $ECHO_C" >&6
22455 else
22456   cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h.  */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h.  */
22462 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22464 #define crypt innocuous_crypt
22465
22466 /* System header to define __stub macros and hopefully few prototypes,
22467     which can conflict with char crypt (); below.
22468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22469     <limits.h> exists even on freestanding compilers.  */
22470
22471 #ifdef __STDC__
22472 # include <limits.h>
22473 #else
22474 # include <assert.h>
22475 #endif
22476
22477 #undef crypt
22478
22479 /* Override any gcc2 internal prototype to avoid an error.  */
22480 #ifdef __cplusplus
22481 extern "C"
22482 {
22483 #endif
22484 /* We use char because int might match the return type of a gcc2
22485    builtin and then its argument prototype would still apply.  */
22486 char crypt ();
22487 /* The GNU C library defines this for functions which it implements
22488     to always fail with ENOSYS.  Some functions are actually named
22489     something starting with __ and the normal name is an alias.  */
22490 #if defined (__stub_crypt) || defined (__stub___crypt)
22491 choke me
22492 #else
22493 char (*f) () = crypt;
22494 #endif
22495 #ifdef __cplusplus
22496 }
22497 #endif
22498
22499 int
22500 main ()
22501 {
22502 return f != crypt;
22503   ;
22504   return 0;
22505 }
22506 _ACEOF
22507 rm -f conftest.$ac_objext conftest$ac_exeext
22508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509   (eval $ac_link) 2>conftest.er1
22510   ac_status=$?
22511   grep -v '^ *+' conftest.er1 >conftest.err
22512   rm -f conftest.er1
22513   cat conftest.err >&5
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); } &&
22516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518   (eval $ac_try) 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; } &&
22522          { ac_try='test -s conftest$ac_exeext'
22523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524   (eval $ac_try) 2>&5
22525   ac_status=$?
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); }; }; then
22528   ac_cv_func_crypt=yes
22529 else
22530   echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22532
22533 ac_cv_func_crypt=no
22534 fi
22535 rm -f conftest.err conftest.$ac_objext \
22536       conftest$ac_exeext conftest.$ac_ext
22537 fi
22538 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22539 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22540 if test $ac_cv_func_crypt = yes; then
22541   cat >>confdefs.h <<\_ACEOF
22542 #define HAVE_CRYPT 1
22543 _ACEOF
22544
22545 fi
22546
22547 fi
22548
22549 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22550 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22551 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554   ac_check_lib_save_LIBS=$LIBS
22555 LIBS="-lcipher  $LIBS"
22556 cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562
22563 /* Override any gcc2 internal prototype to avoid an error.  */
22564 #ifdef __cplusplus
22565 extern "C"
22566 #endif
22567 /* We use char because int might match the return type of a gcc2
22568    builtin and then its argument prototype would still apply.  */
22569 char setkey ();
22570 int
22571 main ()
22572 {
22573 setkey ();
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 rm -f conftest.$ac_objext conftest$ac_exeext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22580   (eval $ac_link) 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } &&
22587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589   (eval $ac_try) 2>&5
22590   ac_status=$?
22591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); }; } &&
22593          { ac_try='test -s conftest$ac_exeext'
22594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595   (eval $ac_try) 2>&5
22596   ac_status=$?
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); }; }; then
22599   ac_cv_lib_cipher_setkey=yes
22600 else
22601   echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604 ac_cv_lib_cipher_setkey=no
22605 fi
22606 rm -f conftest.err conftest.$ac_objext \
22607       conftest$ac_exeext conftest.$ac_ext
22608 LIBS=$ac_check_lib_save_LIBS
22609 fi
22610 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22611 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22612 if test $ac_cv_lib_cipher_setkey = yes; then
22613   CRYPTLIB="${CRYPTLIB} -lcipher"
22614
22615 fi
22616
22617
22618
22619 if test "x$WITH_SNMP" = "xyes"; then
22620
22621
22622
22623
22624 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22625 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22626
22627 cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h.  */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h.  */
22633
22634 #ifdef HAVE_SYS_TYPES_H
22635 #include <sys/types.h>
22636 #endif
22637 #ifdef HAVE_STDINT_H
22638 #include <stdint.h>
22639 #endif
22640 #ifdef HAVE_STDIO_H
22641 #include <stdio.h>
22642 #endif
22643 #ifdef HAVE_NETDB_H
22644 #include <netdb.h>
22645 #endif
22646 #ifdef HAVE_UNISTD_H
22647 #include <unistd.h>
22648 #endif
22649 #include <ucd-snmp/ucd-snmp-config.h>
22650 #include <ucd-snmp/asn1.h>
22651 #include <ucd-snmp/snmp.h>
22652 #include <ucd-snmp/snmp_impl.h>
22653 int
22654 main ()
22655 {
22656  int a = 1;
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22663   (eval $ac_compile) 2>conftest.er1
22664   ac_status=$?
22665   grep -v '^ *+' conftest.er1 >conftest.err
22666   rm -f conftest.er1
22667   cat conftest.err >&5
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); } &&
22670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672   (eval $ac_try) 2>&5
22673   ac_status=$?
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); }; } &&
22676          { ac_try='test -s conftest.$ac_objext'
22677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); }; }; then
22682   SNMP_INCLUDE="";ucdsnmp=yes
22683 else
22684   echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22686
22687 ucdsnmp=
22688 fi
22689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22690
22691 if test "x$ucdsnmp" = "x"; then
22692   old_CFLAGS="$CFLAGS"
22693   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
22694     CFLAGS="$old_CFLAGS -I$try"
22695     cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h.  */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h.  */
22701
22702 #ifdef HAVE_SYS_TYPES_H
22703 #include <sys/types.h>
22704 #endif
22705 #ifdef HAVE_STDINT_H
22706 #include <stdint.h>
22707 #endif
22708 #ifdef HAVE_STDIO_H
22709 #include <stdio.h>
22710 #endif
22711 #ifdef HAVE_NETDB_H
22712 #include <netdb.h>
22713 #endif
22714 #ifdef HAVE_UNISTD_H
22715 #include <unistd.h>
22716 #endif
22717 #include <ucd-snmp/ucd-snmp-config.h>
22718 #include <ucd-snmp/asn1.h>
22719 #include <ucd-snmp/snmp.h>
22720 #include <ucd-snmp/snmp_impl.h>
22721 int
22722 main ()
22723 {
22724  int a = 1;
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 rm -f conftest.$ac_objext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731   (eval $ac_compile) 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } &&
22738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; } &&
22744          { ac_try='test -s conftest.$ac_objext'
22745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746   (eval $ac_try) 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); }; }; then
22750   SNMP_INCLUDE="-I$try";ucdsnmp=yes
22751 else
22752   echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 ucdsnmp=
22756 fi
22757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22758     if test "x$ucdsnmp" != "x"; then
22759       break;
22760     fi
22761   done
22762   CFLAGS="$old_CFLAGS"
22763 fi
22764
22765 if test "x$ucdsnmp" = "x"; then
22766   old_CFLAGS="$CFLAGS"
22767   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22768     CFLAGS="$old_CFLAGS -I$try"
22769 cat >conftest.$ac_ext <<_ACEOF
22770 /* confdefs.h.  */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h.  */
22775
22776 #ifdef HAVE_SYS_TYPES_H
22777 #include <sys/types.h>
22778 #endif
22779 #ifdef HAVE_STDINT_H
22780 #include <stdint.h>
22781 #endif
22782 #ifdef HAVE_STDIO_H
22783 #include <stdio.h>
22784 #endif
22785 #ifdef HAVE_NETDB_H
22786 #include <netdb.h>
22787 #endif
22788 #ifdef HAVE_UNISTD_H
22789 #include <unistd.h>
22790 #endif
22791 #include <asn1.h>
22792 #include <snmp.h>
22793 #include <snmp_impl.h>
22794 int
22795 main ()
22796 {
22797  int a = 1;
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22804   (eval $ac_compile) 2>conftest.er1
22805   ac_status=$?
22806   grep -v '^ *+' conftest.er1 >conftest.err
22807   rm -f conftest.er1
22808   cat conftest.err >&5
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); } &&
22811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813   (eval $ac_try) 2>&5
22814   ac_status=$?
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); }; } &&
22817          { ac_try='test -s conftest.$ac_objext'
22818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819   (eval $ac_try) 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); }; }; then
22823   SNMP_INCLUDE="";ucdsnmp=no
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828 ucdsnmp=
22829 fi
22830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22831     if test "x$ucdsnmp" != "x"; then
22832       break;
22833     fi
22834   done
22835   CFLAGS="$old_CFLAGS"
22836 fi
22837
22838 if test "x$ucdsnmp" = "x"; then
22839   old_CFLAGS="$CFLAGS"
22840   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22841     CFLAGS="$old_CFLAGS -I$try"
22842     cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848
22849 #ifdef HAVE_SYS_TYPES_H
22850 #include <sys/types.h>
22851 #endif
22852 #ifdef HAVE_STDINT_H
22853 #include <stdint.h>
22854 #endif
22855 #ifdef HAVE_STDIO_H
22856 #include <stdio.h>
22857 #endif
22858 #ifdef HAVE_NETDB_H
22859 #include <netdb.h>
22860 #endif
22861 #ifdef HAVE_UNISTD_H
22862 #include <unistd.h>
22863 #endif
22864 #include <asn1.h>
22865 #include <snmp.h>
22866 #include <snmp_impl.h>
22867 int
22868 main ()
22869 {
22870  int a = 1;
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877   (eval $ac_compile) 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } &&
22884          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886   (eval $ac_try) 2>&5
22887   ac_status=$?
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); }; } &&
22890          { ac_try='test -s conftest.$ac_objext'
22891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892   (eval $ac_try) 2>&5
22893   ac_status=$?
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); }; }; then
22896   SNMP_INCLUDE="-I$try";ucdsnmp=no
22897 else
22898   echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 ucdsnmp=
22902 fi
22903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22904     if test "x$ucdsnmp" != "x"; then
22905       break;
22906     fi
22907   done
22908   CFLAGS="$old_CFLAGS"
22909 fi
22910
22911 if test "x$ucdsnmp" = "x"; then
22912   echo "$as_me:$LINENO: result: no" >&5
22913 echo "${ECHO_T}no" >&6
22914 else
22915   if test "x$ucdsnmp" = "xyes"; then
22916     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22917 echo "${ECHO_T}(ucd-snmp)yes" >&6
22918     cat >>confdefs.h <<\_ACEOF
22919 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22920 _ACEOF
22921
22922   else
22923     echo "$as_me:$LINENO: result: yes" >&5
22924 echo "${ECHO_T}yes" >&6
22925     cat >>confdefs.h <<\_ACEOF
22926 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22927 _ACEOF
22928
22929   fi
22930   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22931 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22932
22933   old_LIBS="$LIBS"
22934   LIBS="$old_LIBS -lsnmp"
22935   cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h.  */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h.  */
22941 extern char snmp_build_var_op();
22942 int
22943 main ()
22944 {
22945  snmp_build_var_op()
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952   (eval $ac_link) 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } &&
22959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961   (eval $ac_try) 2>&5
22962   ac_status=$?
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); }; } &&
22965          { ac_try='test -s conftest$ac_exeext'
22966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; }; then
22971   SNMP_LIBS="-lsnmp"
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976 SNMP_LIBS=
22977 fi
22978 rm -f conftest.err conftest.$ac_objext \
22979       conftest$ac_exeext conftest.$ac_ext
22980
22981   if test "x$SNMP_LIBS" = "x"; then
22982     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
22983       LIBS="$old_LIBS -L$try -lsnmp"
22984       cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990 extern char snmp_build_var_op();
22991 int
22992 main ()
22993 {
22994  snmp_build_var_op()
22995   ;
22996   return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001   (eval $ac_link) 2>conftest.er1
23002   ac_status=$?
23003   grep -v '^ *+' conftest.er1 >conftest.err
23004   rm -f conftest.er1
23005   cat conftest.err >&5
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); } &&
23008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; } &&
23014          { ac_try='test -s conftest$ac_exeext'
23015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016   (eval $ac_try) 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); }; }; then
23020   SNMP_LIBS="-L$try -lsnmp"
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 SNMP_LIBS=
23026 fi
23027 rm -f conftest.err conftest.$ac_objext \
23028       conftest$ac_exeext conftest.$ac_ext
23029       if test "x$SNMP_LIBS" != "x"; then
23030         break;
23031       fi
23032       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23033       cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h.  */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h.  */
23039 extern char snmp_build_var_op();
23040 int
23041 main ()
23042 {
23043  snmp_build_var_op()
23044   ;
23045   return 0;
23046 }
23047 _ACEOF
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23050   (eval $ac_link) 2>conftest.er1
23051   ac_status=$?
23052   grep -v '^ *+' conftest.er1 >conftest.err
23053   rm -f conftest.er1
23054   cat conftest.err >&5
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); } &&
23057          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059   (eval $ac_try) 2>&5
23060   ac_status=$?
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); }; } &&
23063          { ac_try='test -s conftest$ac_exeext'
23064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065   (eval $ac_try) 2>&5
23066   ac_status=$?
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); }; }; then
23069   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23070 else
23071   echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23073
23074 SNMP_LIBS=
23075 fi
23076 rm -f conftest.err conftest.$ac_objext \
23077       conftest$ac_exeext conftest.$ac_ext
23078       if test "x$SNMP_LIBS" != "x"; then
23079         break;
23080       fi
23081       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23082       cat >conftest.$ac_ext <<_ACEOF
23083 /* confdefs.h.  */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h.  */
23088 extern char snmp_build_var_op();
23089 int
23090 main ()
23091 {
23092  snmp_build_var_op()
23093   ;
23094   return 0;
23095 }
23096 _ACEOF
23097 rm -f conftest.$ac_objext conftest$ac_exeext
23098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23099   (eval $ac_link) 2>conftest.er1
23100   ac_status=$?
23101   grep -v '^ *+' conftest.er1 >conftest.err
23102   rm -f conftest.er1
23103   cat conftest.err >&5
23104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105   (exit $ac_status); } &&
23106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108   (eval $ac_try) 2>&5
23109   ac_status=$?
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); }; } &&
23112          { ac_try='test -s conftest$ac_exeext'
23113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114   (eval $ac_try) 2>&5
23115   ac_status=$?
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); }; }; then
23118   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23119 else
23120   echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23122
23123 SNMP_LIBS=
23124 fi
23125 rm -f conftest.err conftest.$ac_objext \
23126       conftest$ac_exeext conftest.$ac_ext
23127       if test "x$SNMP_LIBS" != "x"; then
23128         break;
23129       fi
23130     done
23131   fi
23132   LIBS="$old_LIBS"
23133
23134           CFLAGS="$old_CFLAGS"
23135   if test "x$SNMP_LIBS" = "x"; then
23136     echo "$as_me:$LINENO: result: no" >&5
23137 echo "${ECHO_T}no" >&6
23138     SNMP_INCLUDE=
23139   else
23140     echo "$as_me:$LINENO: result: yes" >&5
23141 echo "${ECHO_T}yes" >&6
23142     cat >>confdefs.h <<\_ACEOF
23143 #define WITH_SNMP 1
23144 _ACEOF
23145
23146     cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_LIBSNMP 1
23148 _ACEOF
23149
23150   fi
23151 fi
23152
23153 fi
23154
23155 gethostbyaddrrstyle=""
23156 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23157 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23158 case "$host" in
23159 *-freebsd*)
23160         cat >>confdefs.h <<\_ACEOF
23161 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23162 _ACEOF
23163
23164         gethostbyaddrrstyle=BSD
23165         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23166 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23167         ;;
23168 esac
23169 if test "x$gethostbyaddrrstyle" = "x"; then
23170         cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h.  */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h.  */
23176
23177 #include <stdio.h>
23178 #include <netdb.h>
23179
23180 int
23181 main ()
23182 {
23183  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23184   ;
23185   return 0;
23186 }
23187 _ACEOF
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23190   (eval $ac_link) 2>conftest.er1
23191   ac_status=$?
23192   grep -v '^ *+' conftest.er1 >conftest.err
23193   rm -f conftest.er1
23194   cat conftest.err >&5
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); } &&
23197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199   (eval $ac_try) 2>&5
23200   ac_status=$?
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); }; } &&
23203          { ac_try='test -s conftest$ac_exeext'
23204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205   (eval $ac_try) 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; }; then
23209
23210         cat >>confdefs.h <<\_ACEOF
23211 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23212 _ACEOF
23213
23214         gethostbyaddrrstyle=GNU
23215
23216 else
23217   echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220 fi
23221 rm -f conftest.err conftest.$ac_objext \
23222       conftest$ac_exeext conftest.$ac_ext
23223 fi
23224 if test "x$gethostbyaddrrstyle" = "x"; then
23225         cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h.  */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h.  */
23231
23232 #include <stdio.h>
23233 #include <netdb.h>
23234
23235 int
23236 main ()
23237 {
23238  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23239   ;
23240   return 0;
23241 }
23242 _ACEOF
23243 rm -f conftest.$ac_objext conftest$ac_exeext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23245   (eval $ac_link) 2>conftest.er1
23246   ac_status=$?
23247   grep -v '^ *+' conftest.er1 >conftest.err
23248   rm -f conftest.er1
23249   cat conftest.err >&5
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); } &&
23252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23254   (eval $ac_try) 2>&5
23255   ac_status=$?
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); }; } &&
23258          { ac_try='test -s conftest$ac_exeext'
23259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260   (eval $ac_try) 2>&5
23261   ac_status=$?
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); }; }; then
23264
23265                 cat >>confdefs.h <<\_ACEOF
23266 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23267 _ACEOF
23268
23269                 gethostbyaddrrstyle=SYSV
23270
23271 else
23272   echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23274
23275 fi
23276 rm -f conftest.err conftest.$ac_objext \
23277       conftest$ac_exeext conftest.$ac_ext
23278 fi
23279 if test "x$gethostbyaddrrstyle" = "x"; then
23280         cat >conftest.$ac_ext <<_ACEOF
23281 /* confdefs.h.  */
23282 _ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h.  */
23286
23287 #include <stdio.h>
23288 #include <netdb.h>
23289
23290 int
23291 main ()
23292 {
23293  gethostbyaddr(NULL, 0, 0)
23294   ;
23295   return 0;
23296 }
23297 _ACEOF
23298 rm -f conftest.$ac_objext conftest$ac_exeext
23299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23300   (eval $ac_link) 2>conftest.er1
23301   ac_status=$?
23302   grep -v '^ *+' conftest.er1 >conftest.err
23303   rm -f conftest.er1
23304   cat conftest.err >&5
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); } &&
23307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309   (eval $ac_try) 2>&5
23310   ac_status=$?
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); }; } &&
23313          { ac_try='test -s conftest$ac_exeext'
23314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315   (eval $ac_try) 2>&5
23316   ac_status=$?
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); }; }; then
23319
23320                 cat >>confdefs.h <<\_ACEOF
23321 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23322 _ACEOF
23323
23324                 gethostbyaddrrstyle=BSD
23325
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 fi
23331 rm -f conftest.err conftest.$ac_objext \
23332       conftest$ac_exeext conftest.$ac_ext
23333 fi
23334
23335 if test "x$gethostbyaddrrstyle" = "x"; then
23336         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23337 echo "${ECHO_T}none!  It must not exist, here." >&6
23338 else
23339         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23340 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23341 fi
23342
23343 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23344         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23345 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23346 fi
23347
23348 gethostbynamerstyle=""
23349 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23350 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357
23358 #include <stdio.h>
23359 #include <netdb.h>
23360
23361 int
23362 main ()
23363 {
23364  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23365   ;
23366   return 0;
23367 }
23368 _ACEOF
23369 rm -f conftest.$ac_objext conftest$ac_exeext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23371   (eval $ac_link) 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } &&
23378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; } &&
23384          { ac_try='test -s conftest$ac_exeext'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; }; then
23390
23391         cat >>confdefs.h <<\_ACEOF
23392 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23393 _ACEOF
23394
23395         gethostbynamerstyle=GNU
23396
23397 else
23398   echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23400
23401 fi
23402 rm -f conftest.err conftest.$ac_objext \
23403       conftest$ac_exeext conftest.$ac_ext
23404 if test "x$gethostbynamerstyle" = "x"; then
23405         cat >conftest.$ac_ext <<_ACEOF
23406 /* confdefs.h.  */
23407 _ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h.  */
23411
23412 #include <stdio.h>
23413 #include <netdb.h>
23414
23415 int
23416 main ()
23417 {
23418  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23419   ;
23420   return 0;
23421 }
23422 _ACEOF
23423 rm -f conftest.$ac_objext conftest$ac_exeext
23424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23425   (eval $ac_link) 2>conftest.er1
23426   ac_status=$?
23427   grep -v '^ *+' conftest.er1 >conftest.err
23428   rm -f conftest.er1
23429   cat conftest.err >&5
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); } &&
23432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; } &&
23438          { ac_try='test -s conftest$ac_exeext'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; }; then
23444
23445                 cat >>confdefs.h <<\_ACEOF
23446 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23447 _ACEOF
23448
23449                 gethostbynamerstyle=SYSV
23450
23451 else
23452   echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455 fi
23456 rm -f conftest.err conftest.$ac_objext \
23457       conftest$ac_exeext conftest.$ac_ext
23458 fi
23459 if test "x$gethostbynamerstyle" = "x"; then
23460         cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466
23467 #include <stdio.h>
23468 #include <netdb.h>
23469
23470 int
23471 main ()
23472 {
23473  gethostbyname(NULL)
23474   ;
23475   return 0;
23476 }
23477 _ACEOF
23478 rm -f conftest.$ac_objext conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480   (eval $ac_link) 2>conftest.er1
23481   ac_status=$?
23482   grep -v '^ *+' conftest.er1 >conftest.err
23483   rm -f conftest.er1
23484   cat conftest.err >&5
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); } &&
23487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489   (eval $ac_try) 2>&5
23490   ac_status=$?
23491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492   (exit $ac_status); }; } &&
23493          { ac_try='test -s conftest$ac_exeext'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; }; then
23499
23500                 cat >>confdefs.h <<\_ACEOF
23501 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23502 _ACEOF
23503
23504                 gethostbynamerstyle=BSD
23505
23506 else
23507   echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 fi
23511 rm -f conftest.err conftest.$ac_objext \
23512       conftest$ac_exeext conftest.$ac_ext
23513 fi
23514
23515 if test "x$gethostbynamerstyle" = "x"; then
23516         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23517 echo "${ECHO_T}none!  It must not exist, here." >&6
23518 else
23519         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23520 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23521 fi
23522
23523 if test "x$gethostbynamerstyle" = "xBSD"; then
23524         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23525 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23526 fi
23527
23528 ctimerstyle=""
23529 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23530 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23531 cat >conftest.$ac_ext <<_ACEOF
23532 /* confdefs.h.  */
23533 _ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h.  */
23537
23538 #include <time.h>
23539
23540 int
23541 main ()
23542 {
23543  ctime_r(NULL, NULL, 0)
23544   ;
23545   return 0;
23546 }
23547 _ACEOF
23548 rm -f conftest.$ac_objext conftest$ac_exeext
23549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23550   (eval $ac_link) 2>conftest.er1
23551   ac_status=$?
23552   grep -v '^ *+' conftest.er1 >conftest.err
23553   rm -f conftest.er1
23554   cat conftest.err >&5
23555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556   (exit $ac_status); } &&
23557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559   (eval $ac_try) 2>&5
23560   ac_status=$?
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); }; } &&
23563          { ac_try='test -s conftest$ac_exeext'
23564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565   (eval $ac_try) 2>&5
23566   ac_status=$?
23567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568   (exit $ac_status); }; }; then
23569
23570         cat >>confdefs.h <<\_ACEOF
23571 #define CTIMERSTYLE SOLARISSTYLE
23572 _ACEOF
23573
23574         ctimerstyle="SOLARIS"
23575
23576 else
23577   echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23579
23580 fi
23581 rm -f conftest.err conftest.$ac_objext \
23582       conftest$ac_exeext conftest.$ac_ext
23583 if test "x$ctimerstyle" = "x"; then
23584         cat >conftest.$ac_ext <<_ACEOF
23585 /* confdefs.h.  */
23586 _ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h.  */
23590
23591 #include <time.h>
23592
23593 int
23594 main ()
23595 {
23596  ctime_r(NULL, NULL)
23597   ;
23598   return 0;
23599 }
23600 _ACEOF
23601 rm -f conftest.$ac_objext conftest$ac_exeext
23602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23603   (eval $ac_link) 2>conftest.er1
23604   ac_status=$?
23605   grep -v '^ *+' conftest.er1 >conftest.err
23606   rm -f conftest.er1
23607   cat conftest.err >&5
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); } &&
23610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612   (eval $ac_try) 2>&5
23613   ac_status=$?
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); }; } &&
23616          { ac_try='test -s conftest$ac_exeext'
23617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618   (eval $ac_try) 2>&5
23619   ac_status=$?
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); }; }; then
23622
23623                 cat >>confdefs.h <<\_ACEOF
23624 #define CTIMERSTYLE POSIXSTYLE
23625 _ACEOF
23626
23627                 ctimerstyle="POSIX"
23628
23629 else
23630   echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 fi
23634 rm -f conftest.err conftest.$ac_objext \
23635       conftest$ac_exeext conftest.$ac_ext
23636 fi
23637
23638 if test "x$ctimerstyle" = "x"; then
23639         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23640 echo "${ECHO_T}none!  It must not exist, here." >&6
23641 else
23642         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23643 echo "${ECHO_T}${ctimerstyle}-style" >&6
23644 fi
23645
23646
23647 if test x"$rad_enable_largefiles" = xyes ; then
23648     echo "$as_me:$LINENO: checking for largefile linkage" >&5
23649 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23650     case "$host" in
23651     *-aix4.01*)
23652         echo "$as_me:$LINENO: result: no" >&5
23653 echo "${ECHO_T}no" >&6
23654         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23655 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23656    { (exit 1); exit 1; }; }
23657         ;;
23658     *-aix4*)
23659         echo "$as_me:$LINENO: result: ok" >&5
23660 echo "${ECHO_T}ok" >&6
23661         LFS_CFLAGS="-D_LARGE_FILES"
23662         LFS_LDFLAGS=""
23663         LFS_LIBS=""
23664         ;;
23665     *-hpux*)
23666         echo "$as_me:$LINENO: result: ok" >&5
23667 echo "${ECHO_T}ok" >&6
23668         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23669         LFS_LDFLAGS=""
23670         LFS_LIBS=""
23671         ;;
23672     *-irix*)
23673         echo "$as_me:$LINENO: result: no" >&5
23674 echo "${ECHO_T}no" >&6
23675         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23676 echo "$as_me: error: Large files not supported on this platform" >&2;}
23677    { (exit 1); exit 1; }; }
23678         ;;
23679     *-linux*)
23680         echo "$as_me:$LINENO: result: maybe" >&5
23681 echo "${ECHO_T}maybe" >&6
23682         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23683         LFS_LDFLAGS=""
23684         LFS_LIBS=""
23685
23686 cat >>confdefs.h <<\_ACEOF
23687 #define _GNU_SOURCE 1
23688 _ACEOF
23689
23690         ;;
23691     *-solaris*)
23692         echo "$as_me:$LINENO: result: ok" >&5
23693 echo "${ECHO_T}ok" >&6
23694         # Extract the first word of "getconf", so it can be a program name with args.
23695 set dummy getconf; ac_word=$2
23696 echo "$as_me:$LINENO: checking for $ac_word" >&5
23697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23698 if test "${ac_cv_path_GETCONF+set}" = set; then
23699   echo $ECHO_N "(cached) $ECHO_C" >&6
23700 else
23701   case $GETCONF in
23702   [\\/]* | ?:[\\/]*)
23703   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23704   ;;
23705   *)
23706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23707 for as_dir in $PATH
23708 do
23709   IFS=$as_save_IFS
23710   test -z "$as_dir" && as_dir=.
23711   for ac_exec_ext in '' $ac_executable_extensions; do
23712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23713     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23715     break 2
23716   fi
23717 done
23718 done
23719
23720   ;;
23721 esac
23722 fi
23723 GETCONF=$ac_cv_path_GETCONF
23724
23725 if test -n "$GETCONF"; then
23726   echo "$as_me:$LINENO: result: $GETCONF" >&5
23727 echo "${ECHO_T}$GETCONF" >&6
23728 else
23729   echo "$as_me:$LINENO: result: no" >&5
23730 echo "${ECHO_T}no" >&6
23731 fi
23732
23733         if test -z "$GETCONF" ; then
23734             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23735 echo "$as_me: error: getconf required to configure large file support" >&2;}
23736    { (exit 1); exit 1; }; }
23737         fi
23738         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23739         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23740         LFS_LIBS=`$GETCONF LFS_LIBS`
23741         ;;
23742     *)
23743         echo "$as_me:$LINENO: result: maybe" >&5
23744 echo "${ECHO_T}maybe" >&6
23745         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23746         LFS_LDFLAGS=""
23747         LFS_LIBS=""
23748         ;;
23749     esac
23750
23751
23752
23753 fi
23754
23755 HOSTINFO=$host
23756
23757
23758
23759 top_builddir=`pwd`
23760 export top_builddir
23761 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23762 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23763
23764
23765
23766
23767
23768 mysubdirs=
23769 if test "x$EXPERIMENTAL" = "xyes"; then
23770   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23771     mysubdirs=`echo $bar`
23772 else
23773         for bar in `cat src/modules/stable`; do
23774     if test -f src/modules/$bar/configure; then
23775       mysubdirs="$mysubdirs src/modules/$bar"
23776     fi
23777   done
23778 fi
23779
23780 if test "x$EXPERIMENTAL" = "xyes"; then
23781   for foo in `ls -1 src/modules | grep rlm_`; do
23782     MODULES="$MODULES $foo"
23783   done
23784 else
23785             for foo in `cat src/modules/stable`; do
23786     MODULES="$MODULES $foo"
23787    done
23788 fi
23789
23790
23791
23792 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
23793
23794
23795
23796
23797
23798
23799
23800 USE_SHARED_LIBS=$enable_shared
23801
23802 USE_STATIC_LIBS=$enable_static
23803
23804
23805
23806
23807
23808 export CFLAGS LIBS
23809
23810                                                                                                                                             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"
23811 cat >confcache <<\_ACEOF
23812 # This file is a shell script that caches the results of configure
23813 # tests run on this system so they can be shared between configure
23814 # scripts and configure runs, see configure's option --config-cache.
23815 # It is not useful on other systems.  If it contains results you don't
23816 # want to keep, you may remove or edit it.
23817 #
23818 # config.status only pays attention to the cache file if you give it
23819 # the --recheck option to rerun configure.
23820 #
23821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23823 # following values.
23824
23825 _ACEOF
23826
23827 # The following way of writing the cache mishandles newlines in values,
23828 # but we know of no workaround that is simple, portable, and efficient.
23829 # So, don't put newlines in cache variables' values.
23830 # Ultrix sh set writes to stderr and can't be redirected directly,
23831 # and sets the high bit in the cache file unless we assign to the vars.
23832 {
23833   (set) 2>&1 |
23834     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23835     *ac_space=\ *)
23836       # `set' does not quote correctly, so add quotes (double-quote
23837       # substitution turns \\\\ into \\, and sed turns \\ into \).
23838       sed -n \
23839         "s/'/'\\\\''/g;
23840           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23841       ;;
23842     *)
23843       # `set' quotes correctly as required by POSIX, so do not add quotes.
23844       sed -n \
23845         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23846       ;;
23847     esac;
23848 } |
23849   sed '
23850      t clear
23851      : clear
23852      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23853      t end
23854      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23855      : end' >>confcache
23856 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23857   if test -w $cache_file; then
23858     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23859     cat confcache >$cache_file
23860   else
23861     echo "not updating unwritable cache $cache_file"
23862   fi
23863 fi
23864 rm -f confcache
23865
23866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23867 # Let make expand exec_prefix.
23868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23869
23870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23872 # trailing colons and then remove the whole line if VPATH becomes empty
23873 # (actually we leave an empty line to preserve line numbers).
23874 if test "x$srcdir" = x.; then
23875   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23876 s/:*\$(srcdir):*/:/;
23877 s/:*\${srcdir}:*/:/;
23878 s/:*@srcdir@:*/:/;
23879 s/^\([^=]*=[     ]*\):*/\1/;
23880 s/:*$//;
23881 s/^[^=]*=[       ]*$//;
23882 }'
23883 fi
23884
23885 DEFS=-DHAVE_CONFIG_H
23886
23887 ac_libobjs=
23888 ac_ltlibobjs=
23889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23890   # 1. Remove the extension, and $U if already installed.
23891   ac_i=`echo "$ac_i" |
23892          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23893   # 2. Add them.
23894   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23895   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23896 done
23897 LIBOBJS=$ac_libobjs
23898
23899 LTLIBOBJS=$ac_ltlibobjs
23900
23901
23902
23903 : ${CONFIG_STATUS=./config.status}
23904 ac_clean_files_save=$ac_clean_files
23905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23906 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23907 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23908 cat >$CONFIG_STATUS <<_ACEOF
23909 #! $SHELL
23910 # Generated by $as_me.
23911 # Run this file to recreate the current configuration.
23912 # Compiler output produced by configure, useful for debugging
23913 # configure, is in config.log if it exists.
23914
23915 debug=false
23916 ac_cs_recheck=false
23917 ac_cs_silent=false
23918 SHELL=\${CONFIG_SHELL-$SHELL}
23919 _ACEOF
23920
23921 cat >>$CONFIG_STATUS <<\_ACEOF
23922 ## --------------------- ##
23923 ## M4sh Initialization.  ##
23924 ## --------------------- ##
23925
23926 # Be Bourne compatible
23927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23928   emulate sh
23929   NULLCMD=:
23930   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23931   # is contrary to our usage.  Disable this feature.
23932   alias -g '${1+"$@"}'='"$@"'
23933 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23934   set -o posix
23935 fi
23936 DUALCASE=1; export DUALCASE # for MKS sh
23937
23938 # Support unset when possible.
23939 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23940   as_unset=unset
23941 else
23942   as_unset=false
23943 fi
23944
23945
23946 # Work around bugs in pre-3.0 UWIN ksh.
23947 $as_unset ENV MAIL MAILPATH
23948 PS1='$ '
23949 PS2='> '
23950 PS4='+ '
23951
23952 # NLS nuisances.
23953 for as_var in \
23954   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23955   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23956   LC_TELEPHONE LC_TIME
23957 do
23958   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23959     eval $as_var=C; export $as_var
23960   else
23961     $as_unset $as_var
23962   fi
23963 done
23964
23965 # Required to use basename.
23966 if expr a : '\(a\)' >/dev/null 2>&1; then
23967   as_expr=expr
23968 else
23969   as_expr=false
23970 fi
23971
23972 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23973   as_basename=basename
23974 else
23975   as_basename=false
23976 fi
23977
23978
23979 # Name of the executable.
23980 as_me=`$as_basename "$0" ||
23981 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23982          X"$0" : 'X\(//\)$' \| \
23983          X"$0" : 'X\(/\)$' \| \
23984          .     : '\(.\)' 2>/dev/null ||
23985 echo X/"$0" |
23986     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23987           /^X\/\(\/\/\)$/{ s//\1/; q; }
23988           /^X\/\(\/\).*/{ s//\1/; q; }
23989           s/.*/./; q'`
23990
23991
23992 # PATH needs CR, and LINENO needs CR and PATH.
23993 # Avoid depending upon Character Ranges.
23994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23997 as_cr_digits='0123456789'
23998 as_cr_alnum=$as_cr_Letters$as_cr_digits
23999
24000 # The user is always right.
24001 if test "${PATH_SEPARATOR+set}" != set; then
24002   echo "#! /bin/sh" >conf$$.sh
24003   echo  "exit 0"   >>conf$$.sh
24004   chmod +x conf$$.sh
24005   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24006     PATH_SEPARATOR=';'
24007   else
24008     PATH_SEPARATOR=:
24009   fi
24010   rm -f conf$$.sh
24011 fi
24012
24013
24014   as_lineno_1=$LINENO
24015   as_lineno_2=$LINENO
24016   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24017   test "x$as_lineno_1" != "x$as_lineno_2" &&
24018   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24019   # Find who we are.  Look in the path if we contain no path at all
24020   # relative or not.
24021   case $0 in
24022     *[\\/]* ) as_myself=$0 ;;
24023     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24024 for as_dir in $PATH
24025 do
24026   IFS=$as_save_IFS
24027   test -z "$as_dir" && as_dir=.
24028   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24029 done
24030
24031        ;;
24032   esac
24033   # We did not find ourselves, most probably we were run as `sh COMMAND'
24034   # in which case we are not to be found in the path.
24035   if test "x$as_myself" = x; then
24036     as_myself=$0
24037   fi
24038   if test ! -f "$as_myself"; then
24039     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24040 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24041    { (exit 1); exit 1; }; }
24042   fi
24043   case $CONFIG_SHELL in
24044   '')
24045     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24046 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24047 do
24048   IFS=$as_save_IFS
24049   test -z "$as_dir" && as_dir=.
24050   for as_base in sh bash ksh sh5; do
24051          case $as_dir in
24052          /*)
24053            if ("$as_dir/$as_base" -c '
24054   as_lineno_1=$LINENO
24055   as_lineno_2=$LINENO
24056   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24057   test "x$as_lineno_1" != "x$as_lineno_2" &&
24058   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24059              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24060              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24061              CONFIG_SHELL=$as_dir/$as_base
24062              export CONFIG_SHELL
24063              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24064            fi;;
24065          esac
24066        done
24067 done
24068 ;;
24069   esac
24070
24071   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24072   # uniformly replaced by the line number.  The first 'sed' inserts a
24073   # line-number line before each line; the second 'sed' does the real
24074   # work.  The second script uses 'N' to pair each line-number line
24075   # with the numbered line, and appends trailing '-' during
24076   # substitution so that $LINENO is not a special case at line end.
24077   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24078   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24079   sed '=' <$as_myself |
24080     sed '
24081       N
24082       s,$,-,
24083       : loop
24084       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24085       t loop
24086       s,-$,,
24087       s,^['$as_cr_digits']*\n,,
24088     ' >$as_me.lineno &&
24089   chmod +x $as_me.lineno ||
24090     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24091 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24092    { (exit 1); exit 1; }; }
24093
24094   # Don't try to exec as it changes $[0], causing all sort of problems
24095   # (the dirname of $[0] is not the place where we might find the
24096   # original and so on.  Autoconf is especially sensible to this).
24097   . ./$as_me.lineno
24098   # Exit status is that of the last command.
24099   exit
24100 }
24101
24102
24103 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24104   *c*,-n*) ECHO_N= ECHO_C='
24105 ' ECHO_T='      ' ;;
24106   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24107   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24108 esac
24109
24110 if expr a : '\(a\)' >/dev/null 2>&1; then
24111   as_expr=expr
24112 else
24113   as_expr=false
24114 fi
24115
24116 rm -f conf$$ conf$$.exe conf$$.file
24117 echo >conf$$.file
24118 if ln -s conf$$.file conf$$ 2>/dev/null; then
24119   # We could just check for DJGPP; but this test a) works b) is more generic
24120   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24121   if test -f conf$$.exe; then
24122     # Don't use ln at all; we don't have any links
24123     as_ln_s='cp -p'
24124   else
24125     as_ln_s='ln -s'
24126   fi
24127 elif ln conf$$.file conf$$ 2>/dev/null; then
24128   as_ln_s=ln
24129 else
24130   as_ln_s='cp -p'
24131 fi
24132 rm -f conf$$ conf$$.exe conf$$.file
24133
24134 if mkdir -p . 2>/dev/null; then
24135   as_mkdir_p=:
24136 else
24137   test -d ./-p && rmdir ./-p
24138   as_mkdir_p=false
24139 fi
24140
24141 as_executable_p="test -f"
24142
24143 # Sed expression to map a string onto a valid CPP name.
24144 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24145
24146 # Sed expression to map a string onto a valid variable name.
24147 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24148
24149
24150 # IFS
24151 # We need space, tab and new line, in precisely that order.
24152 as_nl='
24153 '
24154 IFS="   $as_nl"
24155
24156 # CDPATH.
24157 $as_unset CDPATH
24158
24159 exec 6>&1
24160
24161 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24162 # report actual input values of CONFIG_FILES etc. instead of their
24163 # values after options handling.  Logging --version etc. is OK.
24164 exec 5>>config.log
24165 {
24166   echo
24167   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24168 ## Running $as_me. ##
24169 _ASBOX
24170 } >&5
24171 cat >&5 <<_CSEOF
24172
24173 This file was extended by $as_me, which was
24174 generated by GNU Autoconf 2.59.  Invocation command line was
24175
24176   CONFIG_FILES    = $CONFIG_FILES
24177   CONFIG_HEADERS  = $CONFIG_HEADERS
24178   CONFIG_LINKS    = $CONFIG_LINKS
24179   CONFIG_COMMANDS = $CONFIG_COMMANDS
24180   $ $0 $@
24181
24182 _CSEOF
24183 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24184 echo >&5
24185 _ACEOF
24186
24187 # Files that config.status was made for.
24188 if test -n "$ac_config_files"; then
24189   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24190 fi
24191
24192 if test -n "$ac_config_headers"; then
24193   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24194 fi
24195
24196 if test -n "$ac_config_links"; then
24197   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24198 fi
24199
24200 if test -n "$ac_config_commands"; then
24201   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24202 fi
24203
24204 cat >>$CONFIG_STATUS <<\_ACEOF
24205
24206 ac_cs_usage="\
24207 \`$as_me' instantiates files from templates according to the
24208 current configuration.
24209
24210 Usage: $0 [OPTIONS] [FILE]...
24211
24212   -h, --help       print this help, then exit
24213   -V, --version    print version number, then exit
24214   -q, --quiet      do not print progress messages
24215   -d, --debug      don't remove temporary files
24216       --recheck    update $as_me by reconfiguring in the same conditions
24217   --file=FILE[:TEMPLATE]
24218                    instantiate the configuration file FILE
24219   --header=FILE[:TEMPLATE]
24220                    instantiate the configuration header FILE
24221
24222 Configuration files:
24223 $config_files
24224
24225 Configuration headers:
24226 $config_headers
24227
24228 Report bugs to <bug-autoconf@gnu.org>."
24229 _ACEOF
24230
24231 cat >>$CONFIG_STATUS <<_ACEOF
24232 ac_cs_version="\\
24233 config.status
24234 configured by $0, generated by GNU Autoconf 2.59,
24235   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24236
24237 Copyright (C) 2003 Free Software Foundation, Inc.
24238 This config.status script is free software; the Free Software Foundation
24239 gives unlimited permission to copy, distribute and modify it."
24240 srcdir=$srcdir
24241 _ACEOF
24242
24243 cat >>$CONFIG_STATUS <<\_ACEOF
24244 # If no file are specified by the user, then we need to provide default
24245 # value.  By we need to know if files were specified by the user.
24246 ac_need_defaults=:
24247 while test $# != 0
24248 do
24249   case $1 in
24250   --*=*)
24251     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24252     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24253     ac_shift=:
24254     ;;
24255   -*)
24256     ac_option=$1
24257     ac_optarg=$2
24258     ac_shift=shift
24259     ;;
24260   *) # This is not an option, so the user has probably given explicit
24261      # arguments.
24262      ac_option=$1
24263      ac_need_defaults=false;;
24264   esac
24265
24266   case $ac_option in
24267   # Handling of the options.
24268 _ACEOF
24269 cat >>$CONFIG_STATUS <<\_ACEOF
24270   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24271     ac_cs_recheck=: ;;
24272   --version | --vers* | -V )
24273     echo "$ac_cs_version"; exit 0 ;;
24274   --he | --h)
24275     # Conflict between --help and --header
24276     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24277 Try \`$0 --help' for more information." >&5
24278 echo "$as_me: error: ambiguous option: $1
24279 Try \`$0 --help' for more information." >&2;}
24280    { (exit 1); exit 1; }; };;
24281   --help | --hel | -h )
24282     echo "$ac_cs_usage"; exit 0 ;;
24283   --debug | --d* | -d )
24284     debug=: ;;
24285   --file | --fil | --fi | --f )
24286     $ac_shift
24287     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24288     ac_need_defaults=false;;
24289   --header | --heade | --head | --hea )
24290     $ac_shift
24291     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24292     ac_need_defaults=false;;
24293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24294   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24295     ac_cs_silent=: ;;
24296
24297   # This is an error.
24298   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24299 Try \`$0 --help' for more information." >&5
24300 echo "$as_me: error: unrecognized option: $1
24301 Try \`$0 --help' for more information." >&2;}
24302    { (exit 1); exit 1; }; } ;;
24303
24304   *) ac_config_targets="$ac_config_targets $1" ;;
24305
24306   esac
24307   shift
24308 done
24309
24310 ac_configure_extra_args=
24311
24312 if $ac_cs_silent; then
24313   exec 6>/dev/null
24314   ac_configure_extra_args="$ac_configure_extra_args --silent"
24315 fi
24316
24317 _ACEOF
24318 cat >>$CONFIG_STATUS <<_ACEOF
24319 if \$ac_cs_recheck; then
24320   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24321   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24322 fi
24323
24324 _ACEOF
24325
24326
24327
24328
24329
24330 cat >>$CONFIG_STATUS <<\_ACEOF
24331 for ac_config_target in $ac_config_targets
24332 do
24333   case "$ac_config_target" in
24334   # Handling of arguments.
24335   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24336   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24337   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24338   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24339   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24340   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24341   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24342   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24343   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24344   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24345   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24346   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24347   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24348   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24349   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24350   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24351 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24352    { (exit 1); exit 1; }; };;
24353   esac
24354 done
24355
24356 # If the user did not use the arguments to specify the items to instantiate,
24357 # then the envvar interface is used.  Set only those that are not.
24358 # We use the long form for the default assignment because of an extremely
24359 # bizarre bug on SunOS 4.1.3.
24360 if $ac_need_defaults; then
24361   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24362   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24363 fi
24364
24365 # Have a temporary directory for convenience.  Make it in the build tree
24366 # simply because there is no reason to put it here, and in addition,
24367 # creating and moving files from /tmp can sometimes cause problems.
24368 # Create a temporary directory, and hook for its removal unless debugging.
24369 $debug ||
24370 {
24371   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24372   trap '{ (exit 1); exit 1; }' 1 2 13 15
24373 }
24374
24375 # Create a (secure) tmp directory for tmp files.
24376
24377 {
24378   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24379   test -n "$tmp" && test -d "$tmp"
24380 }  ||
24381 {
24382   tmp=./confstat$$-$RANDOM
24383   (umask 077 && mkdir $tmp)
24384 } ||
24385 {
24386    echo "$me: cannot create a temporary directory in ." >&2
24387    { (exit 1); exit 1; }
24388 }
24389
24390 _ACEOF
24391
24392 cat >>$CONFIG_STATUS <<_ACEOF
24393
24394 #
24395 # CONFIG_FILES section.
24396 #
24397
24398 # No need to generate the scripts if there are no CONFIG_FILES.
24399 # This happens for instance when ./config.status config.h
24400 if test -n "\$CONFIG_FILES"; then
24401   # Protect against being on the right side of a sed subst in config.status.
24402   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24403    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24404 s,@SHELL@,$SHELL,;t t
24405 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24406 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24407 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24408 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24409 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24410 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24411 s,@exec_prefix@,$exec_prefix,;t t
24412 s,@prefix@,$prefix,;t t
24413 s,@program_transform_name@,$program_transform_name,;t t
24414 s,@bindir@,$bindir,;t t
24415 s,@sbindir@,$sbindir,;t t
24416 s,@libexecdir@,$libexecdir,;t t
24417 s,@datadir@,$datadir,;t t
24418 s,@sysconfdir@,$sysconfdir,;t t
24419 s,@sharedstatedir@,$sharedstatedir,;t t
24420 s,@localstatedir@,$localstatedir,;t t
24421 s,@libdir@,$libdir,;t t
24422 s,@includedir@,$includedir,;t t
24423 s,@oldincludedir@,$oldincludedir,;t t
24424 s,@infodir@,$infodir,;t t
24425 s,@mandir@,$mandir,;t t
24426 s,@build_alias@,$build_alias,;t t
24427 s,@host_alias@,$host_alias,;t t
24428 s,@target_alias@,$target_alias,;t t
24429 s,@DEFS@,$DEFS,;t t
24430 s,@ECHO_C@,$ECHO_C,;t t
24431 s,@ECHO_N@,$ECHO_N,;t t
24432 s,@ECHO_T@,$ECHO_T,;t t
24433 s,@LIBS@,$LIBS,;t t
24434 s,@CC@,$CC,;t t
24435 s,@CFLAGS@,$CFLAGS,;t t
24436 s,@LDFLAGS@,$LDFLAGS,;t t
24437 s,@CPPFLAGS@,$CPPFLAGS,;t t
24438 s,@ac_ct_CC@,$ac_ct_CC,;t t
24439 s,@EXEEXT@,$EXEEXT,;t t
24440 s,@OBJEXT@,$OBJEXT,;t t
24441 s,@CPP@,$CPP,;t t
24442 s,@EGREP@,$EGREP,;t t
24443 s,@RANLIB@,$RANLIB,;t t
24444 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24445 s,@abs_top_builddir@,$abs_top_builddir,;t t
24446 s,@GMAKE@,$GMAKE,;t t
24447 s,@MAKE@,$MAKE,;t t
24448 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
24449 s,@LIBTOOL@,$LIBTOOL,;t t
24450 s,@build@,$build,;t t
24451 s,@build_cpu@,$build_cpu,;t t
24452 s,@build_vendor@,$build_vendor,;t t
24453 s,@build_os@,$build_os,;t t
24454 s,@host@,$host,;t t
24455 s,@host_cpu@,$host_cpu,;t t
24456 s,@host_vendor@,$host_vendor,;t t
24457 s,@host_os@,$host_os,;t t
24458 s,@LN_S@,$LN_S,;t t
24459 s,@ECHO@,$ECHO,;t t
24460 s,@AR@,$AR,;t t
24461 s,@ac_ct_AR@,$ac_ct_AR,;t t
24462 s,@STRIP@,$STRIP,;t t
24463 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24464 s,@CXX@,$CXX,;t t
24465 s,@CXXFLAGS@,$CXXFLAGS,;t t
24466 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24467 s,@CXXCPP@,$CXXCPP,;t t
24468 s,@F77@,$F77,;t t
24469 s,@FFLAGS@,$FFLAGS,;t t
24470 s,@ac_ct_F77@,$ac_ct_F77,;t t
24471 s,@docdir@,$docdir,;t t
24472 s,@logdir@,$logdir,;t t
24473 s,@radacctdir@,$radacctdir,;t t
24474 s,@raddbdir@,$raddbdir,;t t
24475 s,@PERL@,$PERL,;t t
24476 s,@SNMPGET@,$SNMPGET,;t t
24477 s,@SNMPWALK@,$SNMPWALK,;t t
24478 s,@RUSERS@,$RUSERS,;t t
24479 s,@ACLOCAL@,$ACLOCAL,;t t
24480 s,@AUTOCONF@,$AUTOCONF,;t t
24481 s,@AUTOHEADER@,$AUTOHEADER,;t t
24482 s,@LOCATE@,$LOCATE,;t t
24483 s,@DIRNAME@,$DIRNAME,;t t
24484 s,@GREP@,$GREP,;t t
24485 s,@REGEX@,$REGEX,;t t
24486 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24487 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24488 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24489 s,@LIBPREFIX@,$LIBPREFIX,;t t
24490 s,@CRYPTLIB@,$CRYPTLIB,;t t
24491 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24492 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24493 s,@GETCONF@,$GETCONF,;t t
24494 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24495 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24496 s,@LFS_LIBS@,$LFS_LIBS,;t t
24497 s,@HOSTINFO@,$HOSTINFO,;t t
24498 s,@LIBLTDL@,$LIBLTDL,;t t
24499 s,@INCLTDL@,$INCLTDL,;t t
24500 s,@subdirs@,$subdirs,;t t
24501 s,@MODULES@,$MODULES,;t t
24502 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24503 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24504 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24505 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24506 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24507 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24508 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24509 s,@LIBOBJS@,$LIBOBJS,;t t
24510 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24511 CEOF
24512
24513 _ACEOF
24514
24515   cat >>$CONFIG_STATUS <<\_ACEOF
24516   # Split the substitutions into bite-sized pieces for seds with
24517   # small command number limits, like on Digital OSF/1 and HP-UX.
24518   ac_max_sed_lines=48
24519   ac_sed_frag=1 # Number of current file.
24520   ac_beg=1 # First line for current file.
24521   ac_end=$ac_max_sed_lines # Line after last line for current file.
24522   ac_more_lines=:
24523   ac_sed_cmds=
24524   while $ac_more_lines; do
24525     if test $ac_beg -gt 1; then
24526       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24527     else
24528       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24529     fi
24530     if test ! -s $tmp/subs.frag; then
24531       ac_more_lines=false
24532     else
24533       # The purpose of the label and of the branching condition is to
24534       # speed up the sed processing (if there are no `@' at all, there
24535       # is no need to browse any of the substitutions).
24536       # These are the two extra sed commands mentioned above.
24537       (echo ':t
24538   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24539       if test -z "$ac_sed_cmds"; then
24540         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24541       else
24542         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24543       fi
24544       ac_sed_frag=`expr $ac_sed_frag + 1`
24545       ac_beg=$ac_end
24546       ac_end=`expr $ac_end + $ac_max_sed_lines`
24547     fi
24548   done
24549   if test -z "$ac_sed_cmds"; then
24550     ac_sed_cmds=cat
24551   fi
24552 fi # test -n "$CONFIG_FILES"
24553
24554 _ACEOF
24555 cat >>$CONFIG_STATUS <<\_ACEOF
24556 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24557   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24558   case $ac_file in
24559   - | *:- | *:-:* ) # input from stdin
24560         cat >$tmp/stdin
24561         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24562         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24563   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24564         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24565   * )   ac_file_in=$ac_file.in ;;
24566   esac
24567
24568   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24569   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24571          X"$ac_file" : 'X\(//\)[^/]' \| \
24572          X"$ac_file" : 'X\(//\)$' \| \
24573          X"$ac_file" : 'X\(/\)' \| \
24574          .     : '\(.\)' 2>/dev/null ||
24575 echo X"$ac_file" |
24576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24578           /^X\(\/\/\)$/{ s//\1/; q; }
24579           /^X\(\/\).*/{ s//\1/; q; }
24580           s/.*/./; q'`
24581   { if $as_mkdir_p; then
24582     mkdir -p "$ac_dir"
24583   else
24584     as_dir="$ac_dir"
24585     as_dirs=
24586     while test ! -d "$as_dir"; do
24587       as_dirs="$as_dir $as_dirs"
24588       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24590          X"$as_dir" : 'X\(//\)[^/]' \| \
24591          X"$as_dir" : 'X\(//\)$' \| \
24592          X"$as_dir" : 'X\(/\)' \| \
24593          .     : '\(.\)' 2>/dev/null ||
24594 echo X"$as_dir" |
24595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24597           /^X\(\/\/\)$/{ s//\1/; q; }
24598           /^X\(\/\).*/{ s//\1/; q; }
24599           s/.*/./; q'`
24600     done
24601     test ! -n "$as_dirs" || mkdir $as_dirs
24602   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24604    { (exit 1); exit 1; }; }; }
24605
24606   ac_builddir=.
24607
24608 if test "$ac_dir" != .; then
24609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24610   # A "../" for each directory in $ac_dir_suffix.
24611   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24612 else
24613   ac_dir_suffix= ac_top_builddir=
24614 fi
24615
24616 case $srcdir in
24617   .)  # No --srcdir option.  We are building in place.
24618     ac_srcdir=.
24619     if test -z "$ac_top_builddir"; then
24620        ac_top_srcdir=.
24621     else
24622        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24623     fi ;;
24624   [\\/]* | ?:[\\/]* )  # Absolute path.
24625     ac_srcdir=$srcdir$ac_dir_suffix;
24626     ac_top_srcdir=$srcdir ;;
24627   *) # Relative path.
24628     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24629     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24630 esac
24631
24632 # Do not use `cd foo && pwd` to compute absolute paths, because
24633 # the directories may not exist.
24634 case `pwd` in
24635 .) ac_abs_builddir="$ac_dir";;
24636 *)
24637   case "$ac_dir" in
24638   .) ac_abs_builddir=`pwd`;;
24639   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24640   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24641   esac;;
24642 esac
24643 case $ac_abs_builddir in
24644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24645 *)
24646   case ${ac_top_builddir}. in
24647   .) ac_abs_top_builddir=$ac_abs_builddir;;
24648   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24649   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24650   esac;;
24651 esac
24652 case $ac_abs_builddir in
24653 .) ac_abs_srcdir=$ac_srcdir;;
24654 *)
24655   case $ac_srcdir in
24656   .) ac_abs_srcdir=$ac_abs_builddir;;
24657   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24658   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24659   esac;;
24660 esac
24661 case $ac_abs_builddir in
24662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24663 *)
24664   case $ac_top_srcdir in
24665   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24666   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24667   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24668   esac;;
24669 esac
24670
24671
24672
24673   # Let's still pretend it is `configure' which instantiates (i.e., don't
24674   # use $as_me), people would be surprised to read:
24675   #    /* config.h.  Generated by config.status.  */
24676   if test x"$ac_file" = x-; then
24677     configure_input=
24678   else
24679     configure_input="$ac_file.  "
24680   fi
24681   configure_input=$configure_input"Generated from `echo $ac_file_in |
24682                                      sed 's,.*/,,'` by configure."
24683
24684   # First look for the input files in the build tree, otherwise in the
24685   # src tree.
24686   ac_file_inputs=`IFS=:
24687     for f in $ac_file_in; do
24688       case $f in
24689       -) echo $tmp/stdin ;;
24690       [\\/$]*)
24691          # Absolute (can't be DOS-style, as IFS=:)
24692          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24693 echo "$as_me: error: cannot find input file: $f" >&2;}
24694    { (exit 1); exit 1; }; }
24695          echo "$f";;
24696       *) # Relative
24697          if test -f "$f"; then
24698            # Build tree
24699            echo "$f"
24700          elif test -f "$srcdir/$f"; then
24701            # Source tree
24702            echo "$srcdir/$f"
24703          else
24704            # /dev/null tree
24705            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24706 echo "$as_me: error: cannot find input file: $f" >&2;}
24707    { (exit 1); exit 1; }; }
24708          fi;;
24709       esac
24710     done` || { (exit 1); exit 1; }
24711
24712   if test x"$ac_file" != x-; then
24713     { echo "$as_me:$LINENO: creating $ac_file" >&5
24714 echo "$as_me: creating $ac_file" >&6;}
24715     rm -f "$ac_file"
24716   fi
24717 _ACEOF
24718 cat >>$CONFIG_STATUS <<_ACEOF
24719   sed "$ac_vpsub
24720 $extrasub
24721 _ACEOF
24722 cat >>$CONFIG_STATUS <<\_ACEOF
24723 :t
24724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24725 s,@configure_input@,$configure_input,;t t
24726 s,@srcdir@,$ac_srcdir,;t t
24727 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24728 s,@top_srcdir@,$ac_top_srcdir,;t t
24729 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24730 s,@builddir@,$ac_builddir,;t t
24731 s,@abs_builddir@,$ac_abs_builddir,;t t
24732 s,@top_builddir@,$ac_top_builddir,;t t
24733 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24734 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24735   rm -f $tmp/stdin
24736   if test x"$ac_file" != x-; then
24737     mv $tmp/out $ac_file
24738   else
24739     cat $tmp/out
24740     rm -f $tmp/out
24741   fi
24742
24743 done
24744 _ACEOF
24745 cat >>$CONFIG_STATUS <<\_ACEOF
24746
24747 #
24748 # CONFIG_HEADER section.
24749 #
24750
24751 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24752 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24753 #
24754 # ac_d sets the value in "#define NAME VALUE" lines.
24755 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24756 ac_dB='[         ].*$,\1#\2'
24757 ac_dC=' '
24758 ac_dD=',;t'
24759 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24760 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24761 ac_uB='$,\1#\2define\3'
24762 ac_uC=' '
24763 ac_uD=',;t'
24764
24765 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24766   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24767   case $ac_file in
24768   - | *:- | *:-:* ) # input from stdin
24769         cat >$tmp/stdin
24770         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24771         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24772   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24774   * )   ac_file_in=$ac_file.in ;;
24775   esac
24776
24777   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24778 echo "$as_me: creating $ac_file" >&6;}
24779
24780   # First look for the input files in the build tree, otherwise in the
24781   # src tree.
24782   ac_file_inputs=`IFS=:
24783     for f in $ac_file_in; do
24784       case $f in
24785       -) echo $tmp/stdin ;;
24786       [\\/$]*)
24787          # Absolute (can't be DOS-style, as IFS=:)
24788          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24789 echo "$as_me: error: cannot find input file: $f" >&2;}
24790    { (exit 1); exit 1; }; }
24791          # Do quote $f, to prevent DOS paths from being IFS'd.
24792          echo "$f";;
24793       *) # Relative
24794          if test -f "$f"; then
24795            # Build tree
24796            echo "$f"
24797          elif test -f "$srcdir/$f"; then
24798            # Source tree
24799            echo "$srcdir/$f"
24800          else
24801            # /dev/null tree
24802            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24803 echo "$as_me: error: cannot find input file: $f" >&2;}
24804    { (exit 1); exit 1; }; }
24805          fi;;
24806       esac
24807     done` || { (exit 1); exit 1; }
24808   # Remove the trailing spaces.
24809   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24810
24811 _ACEOF
24812
24813 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24814 # `conftest.undefs', that substitutes the proper values into
24815 # config.h.in to produce config.h.  The first handles `#define'
24816 # templates, and the second `#undef' templates.
24817 # And first: Protect against being on the right side of a sed subst in
24818 # config.status.  Protect against being in an unquoted here document
24819 # in config.status.
24820 rm -f conftest.defines conftest.undefs
24821 # Using a here document instead of a string reduces the quoting nightmare.
24822 # Putting comments in sed scripts is not portable.
24823 #
24824 # `end' is used to avoid that the second main sed command (meant for
24825 # 0-ary CPP macros) applies to n-ary macro definitions.
24826 # See the Autoconf documentation for `clear'.
24827 cat >confdef2sed.sed <<\_ACEOF
24828 s/[\\&,]/\\&/g
24829 s,[\\$`],\\&,g
24830 t clear
24831 : clear
24832 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24833 t end
24834 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24835 : end
24836 _ACEOF
24837 # If some macros were called several times there might be several times
24838 # the same #defines, which is useless.  Nevertheless, we may not want to
24839 # sort them, since we want the *last* AC-DEFINE to be honored.
24840 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24841 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24842 rm -f confdef2sed.sed
24843
24844 # This sed command replaces #undef with comments.  This is necessary, for
24845 # example, in the case of _POSIX_SOURCE, which is predefined and required
24846 # on some systems where configure will not decide to define it.
24847 cat >>conftest.undefs <<\_ACEOF
24848 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24849 _ACEOF
24850
24851 # Break up conftest.defines because some shells have a limit on the size
24852 # of here documents, and old seds have small limits too (100 cmds).
24853 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24854 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24855 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24856 echo '  :' >>$CONFIG_STATUS
24857 rm -f conftest.tail
24858 while grep . conftest.defines >/dev/null
24859 do
24860   # Write a limited-size here document to $tmp/defines.sed.
24861   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24862   # Speed up: don't consider the non `#define' lines.
24863   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24864   # Work around the forget-to-reset-the-flag bug.
24865   echo 't clr' >>$CONFIG_STATUS
24866   echo ': clr' >>$CONFIG_STATUS
24867   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24868   echo 'CEOF
24869   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24870   rm -f $tmp/in
24871   mv $tmp/out $tmp/in
24872 ' >>$CONFIG_STATUS
24873   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24874   rm -f conftest.defines
24875   mv conftest.tail conftest.defines
24876 done
24877 rm -f conftest.defines
24878 echo '  fi # grep' >>$CONFIG_STATUS
24879 echo >>$CONFIG_STATUS
24880
24881 # Break up conftest.undefs because some shells have a limit on the size
24882 # of here documents, and old seds have small limits too (100 cmds).
24883 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24884 rm -f conftest.tail
24885 while grep . conftest.undefs >/dev/null
24886 do
24887   # Write a limited-size here document to $tmp/undefs.sed.
24888   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24889   # Speed up: don't consider the non `#undef'
24890   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24891   # Work around the forget-to-reset-the-flag bug.
24892   echo 't clr' >>$CONFIG_STATUS
24893   echo ': clr' >>$CONFIG_STATUS
24894   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24895   echo 'CEOF
24896   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24897   rm -f $tmp/in
24898   mv $tmp/out $tmp/in
24899 ' >>$CONFIG_STATUS
24900   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24901   rm -f conftest.undefs
24902   mv conftest.tail conftest.undefs
24903 done
24904 rm -f conftest.undefs
24905
24906 cat >>$CONFIG_STATUS <<\_ACEOF
24907   # Let's still pretend it is `configure' which instantiates (i.e., don't
24908   # use $as_me), people would be surprised to read:
24909   #    /* config.h.  Generated by config.status.  */
24910   if test x"$ac_file" = x-; then
24911     echo "/* Generated by configure.  */" >$tmp/config.h
24912   else
24913     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24914   fi
24915   cat $tmp/in >>$tmp/config.h
24916   rm -f $tmp/in
24917   if test x"$ac_file" != x-; then
24918     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24919       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24920 echo "$as_me: $ac_file is unchanged" >&6;}
24921     else
24922       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24923 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24924          X"$ac_file" : 'X\(//\)[^/]' \| \
24925          X"$ac_file" : 'X\(//\)$' \| \
24926          X"$ac_file" : 'X\(/\)' \| \
24927          .     : '\(.\)' 2>/dev/null ||
24928 echo X"$ac_file" |
24929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24930           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24931           /^X\(\/\/\)$/{ s//\1/; q; }
24932           /^X\(\/\).*/{ s//\1/; q; }
24933           s/.*/./; q'`
24934       { if $as_mkdir_p; then
24935     mkdir -p "$ac_dir"
24936   else
24937     as_dir="$ac_dir"
24938     as_dirs=
24939     while test ! -d "$as_dir"; do
24940       as_dirs="$as_dir $as_dirs"
24941       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24943          X"$as_dir" : 'X\(//\)[^/]' \| \
24944          X"$as_dir" : 'X\(//\)$' \| \
24945          X"$as_dir" : 'X\(/\)' \| \
24946          .     : '\(.\)' 2>/dev/null ||
24947 echo X"$as_dir" |
24948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24950           /^X\(\/\/\)$/{ s//\1/; q; }
24951           /^X\(\/\).*/{ s//\1/; q; }
24952           s/.*/./; q'`
24953     done
24954     test ! -n "$as_dirs" || mkdir $as_dirs
24955   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24956 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24957    { (exit 1); exit 1; }; }; }
24958
24959       rm -f $ac_file
24960       mv $tmp/config.h $ac_file
24961     fi
24962   else
24963     cat $tmp/config.h
24964     rm -f $tmp/config.h
24965   fi
24966 done
24967 _ACEOF
24968
24969 cat >>$CONFIG_STATUS <<\_ACEOF
24970
24971 { (exit 0); exit 0; }
24972 _ACEOF
24973 chmod +x $CONFIG_STATUS
24974 ac_clean_files=$ac_clean_files_save
24975
24976
24977 # configure is writing to config.log, and then calls config.status.
24978 # config.status does its own redirection, appending to config.log.
24979 # Unfortunately, on DOS this fails, as config.log is still kept open
24980 # by configure, so config.status won't be able to write to it; its
24981 # output is simply discarded.  So we exec the FD to /dev/null,
24982 # effectively closing config.log, so it can be properly (re)opened and
24983 # appended to by config.status.  When coming back to configure, we
24984 # need to make the FD available again.
24985 if test "$no_create" != yes; then
24986   ac_cs_success=:
24987   ac_config_status_args=
24988   test "$silent" = yes &&
24989     ac_config_status_args="$ac_config_status_args --quiet"
24990   exec 5>/dev/null
24991   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24992   exec 5>>config.log
24993   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24994   # would make configure fail if this is the last instruction.
24995   $ac_cs_success || { (exit 1); exit 1; }
24996 fi
24997
24998 #
24999 # CONFIG_SUBDIRS section.
25000 #
25001 if test "$no_recursion" != yes; then
25002
25003   # Remove --cache-file and --srcdir arguments so they do not pile up.
25004   ac_sub_configure_args=
25005   ac_prev=
25006   for ac_arg in $ac_configure_args; do
25007     if test -n "$ac_prev"; then
25008       ac_prev=
25009       continue
25010     fi
25011     case $ac_arg in
25012     -cache-file | --cache-file | --cache-fil | --cache-fi \
25013     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25014       ac_prev=cache_file ;;
25015     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25016     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25017     | --c=*)
25018       ;;
25019     --config-cache | -C)
25020       ;;
25021     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25022       ac_prev=srcdir ;;
25023     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25024       ;;
25025     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25026       ac_prev=prefix ;;
25027     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25028       ;;
25029     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25030     esac
25031   done
25032
25033   # Always prepend --prefix to ensure using the same prefix
25034   # in subdir configurations.
25035   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25036
25037   ac_popdir=`pwd`
25038   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25039
25040     # Do not complain, so a configure script can configure whichever
25041     # parts of a large source tree are present.
25042     test -d $srcdir/$ac_dir || continue
25043
25044     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25045 echo "$as_me: configuring in $ac_dir" >&6;}
25046     { if $as_mkdir_p; then
25047     mkdir -p "$ac_dir"
25048   else
25049     as_dir="$ac_dir"
25050     as_dirs=
25051     while test ! -d "$as_dir"; do
25052       as_dirs="$as_dir $as_dirs"
25053       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25055          X"$as_dir" : 'X\(//\)[^/]' \| \
25056          X"$as_dir" : 'X\(//\)$' \| \
25057          X"$as_dir" : 'X\(/\)' \| \
25058          .     : '\(.\)' 2>/dev/null ||
25059 echo X"$as_dir" |
25060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25061           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25062           /^X\(\/\/\)$/{ s//\1/; q; }
25063           /^X\(\/\).*/{ s//\1/; q; }
25064           s/.*/./; q'`
25065     done
25066     test ! -n "$as_dirs" || mkdir $as_dirs
25067   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25069    { (exit 1); exit 1; }; }; }
25070
25071     ac_builddir=.
25072
25073 if test "$ac_dir" != .; then
25074   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25075   # A "../" for each directory in $ac_dir_suffix.
25076   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25077 else
25078   ac_dir_suffix= ac_top_builddir=
25079 fi
25080
25081 case $srcdir in
25082   .)  # No --srcdir option.  We are building in place.
25083     ac_srcdir=.
25084     if test -z "$ac_top_builddir"; then
25085        ac_top_srcdir=.
25086     else
25087        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25088     fi ;;
25089   [\\/]* | ?:[\\/]* )  # Absolute path.
25090     ac_srcdir=$srcdir$ac_dir_suffix;
25091     ac_top_srcdir=$srcdir ;;
25092   *) # Relative path.
25093     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25094     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25095 esac
25096
25097 # Do not use `cd foo && pwd` to compute absolute paths, because
25098 # the directories may not exist.
25099 case `pwd` in
25100 .) ac_abs_builddir="$ac_dir";;
25101 *)
25102   case "$ac_dir" in
25103   .) ac_abs_builddir=`pwd`;;
25104   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25105   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25106   esac;;
25107 esac
25108 case $ac_abs_builddir in
25109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25110 *)
25111   case ${ac_top_builddir}. in
25112   .) ac_abs_top_builddir=$ac_abs_builddir;;
25113   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25114   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25115   esac;;
25116 esac
25117 case $ac_abs_builddir in
25118 .) ac_abs_srcdir=$ac_srcdir;;
25119 *)
25120   case $ac_srcdir in
25121   .) ac_abs_srcdir=$ac_abs_builddir;;
25122   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25123   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25124   esac;;
25125 esac
25126 case $ac_abs_builddir in
25127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25128 *)
25129   case $ac_top_srcdir in
25130   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25131   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25132   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25133   esac;;
25134 esac
25135
25136
25137     cd $ac_dir
25138
25139     # Check for guested configure; otherwise get Cygnus style configure.
25140     if test -f $ac_srcdir/configure.gnu; then
25141       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25142     elif test -f $ac_srcdir/configure; then
25143       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25144     elif test -f $ac_srcdir/configure.in; then
25145       ac_sub_configure=$ac_configure
25146     else
25147       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25149       ac_sub_configure=
25150     fi
25151
25152     # The recursion is here.
25153     if test -n "$ac_sub_configure"; then
25154       # Make the cache file name correct relative to the subdirectory.
25155       case $cache_file in
25156       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25157       *) # Relative path.
25158         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25159       esac
25160
25161       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25162 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25163       # The eval makes quoting arguments work.
25164       eval $ac_sub_configure $ac_sub_configure_args \
25165            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25166         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25167 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25168    { (exit 1); exit 1; }; }
25169     fi
25170
25171     cd "$ac_popdir"
25172   done
25173 fi
25174
25175
25176           ac_config_commands="$ac_config_commands default-1"
25177
25178           ac_config_commands="$ac_config_commands default-2"
25179
25180           ac_config_commands="$ac_config_commands default-3"
25181
25182           ac_config_commands="$ac_config_commands default-4"
25183